digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Bitrates: TMPGEnc closes quickly? (http://www.digitalfaq.com/archives/encode/11114-bitrates-tmpgenc-closes.html)

OrbMan 07-25-2004 09:10 AM

Bitrates: TMPGEnc closes quickly?
 
Hi I could use some help with CQMatic:

I have had CQMatic working already today, but it suddenly stopped being able to run TMPGEnc. Things I have tried:

1 - I use 8.3 folder and file names in all cases, using v1.2.06
2 - am loading a working .avs file in TMPGEnc, after resetting project file
3 - select my output directory (8.3 also) in TMPGEnc
4 - load my KVCDx3 MPEG1 template
5 - confirm source range is de-selected
5 - save project as text
6 - launch CQMatic
7 - load project file
8 - set TMPGEnc location in Settings
9 - run CalcuMatic to get my time and bitrate, in this case 95/918.6, and enter them in CQMatic
10 - select X1/Prediction Only
11 - click Execute

I get the quick open and close problem. Then I tried deleting the .conf and .tpr files in the CQMatic directory and running through the whole process again. Same problem.

Here is the log:

http://www.kvcd.net
CQMatic Version 1.2.06
Copyright Softronex Corporation, 2003.
All rights reserved.
Time: 10:06:02 Date: 07/25/2004
Ready!
Project: C:\CQmatic\WM.tpr

Creating: CQMatic.tpr

D:\CQMatic\WM.m1v
Project resolution: 528x480
Execute.
Movie Time: 95
Average Bitrate: 918.6
Prediction Only mode
Executing Prediction Phase...
Process started at 10:08:27
On 07/25/2004
CQ set for prediction
Setting up initial sampling.
Using CQ of 60.00
Prediction cycle #1
Encoder started...
Process time: 0.05 minutes.
Encoder end.
File size difference = -14100480.000000
Low fence: 60.000000
High fence: 90.000000
Last CQ = 60.00
Current CQ = 75.00
CQ difference = 15.000000
Using CQ of 75.00
Prediction cycle #2
Encoder started...
Process time: 0.05 minutes.
Encoder end.
File size difference = -14100480.000000
Low fence: 75.000000
High fence: 90.000000
Last CQ = 75.00
Current CQ = 82.50
CQ difference = 7.500000
Using CQ of 82.50
Prediction cycle #3
Encoder started...
Process time: 0.03 minutes.
Encoder end.
File size difference = -14100480.000000
Low fence: 82.500000
High fence: 90.000000
Last CQ = 82.50
Current CQ = 86.25
CQ difference = 3.750000
Using CQ of 86.25
Prediction cycle #4
Encoder started...
Process time: 0.05 minutes.
Encoder end.
File size difference = -14100480.000000
Low fence: 86.250000
High fence: 90.000000
Last CQ = 86.25
Current CQ = 88.13
CQ difference = 1.875000
Using CQ of 88.13
Prediction cycle #5
Encoder started...
Process time: 0.03 minutes.
Encoder end.
File size difference = -14100480.000000
Low fence: 88.125000
High fence: 90.000000
Last CQ = 88.13
Current CQ = 89.06
CQ difference = 0.937500
Using CQ of 89.06
Prediction cycle #6
Encoder started...
Process time: 0.05 minutes.
Encoder end.
File size difference = -14100480.000000
Low fence: 89.062500
High fence: 90.000000
Last CQ = 89.06
Current CQ = 89.53
CQ difference = 0.468750
Using CQ of 89.53
Prediction cycle #7
Encoder started...
Process time: 0.03 minutes.
Encoder end.
File size difference = -14100480.000000
Low fence: 89.531250
High fence: 90.000000
Last CQ = 89.53
Current CQ = 89.77
CQ difference = 0.234375
Using CQ of 89.77
Prediction cycle #8
Encoder started...
Process time: 0.05 minutes.
Encoder end.
File size difference = -14100480.000000
Low fence: 89.765625
High fence: 90.000000
Last CQ = 89.77
Current CQ = 89.88
CQ difference = 0.117188
Final CQ value is 89.77
CQMatic complete!
Total minutes of process: 0.35
Process ended at 10:08:48
On 07/25/2004

kwag 07-25-2004 09:15 AM

ll your File size differences are negative.
Reset your source range in TMPEG before saving the project.

-kwag

OrbMan 07-25-2004 09:55 AM

already done, see #5 (the first one :wink: ) above

OrbMan 07-25-2004 09:56 AM

That is, source range is not checked. Do you mean check it and then un-check it again?

Dialhot 07-25-2004 10:53 AM

Unchecking is not enought as it keeps the previous settings in memory. you have to RESET them.

For that : double click on the "source range" feature, don't worry if a warnign windows pops up, just continue. Click on "default" button, then on the cut editing menu (bottom, left) select "reset editting" (if that entry is not already greyed). Then exit from this screen.

The source range is now checked: NOW uncheck it :-)

Thats is what "reset range editing" means, and you have to do all that evry time.

OrbMan 07-25-2004 11:39 AM

Thanks, that did it! I thought I had read everything, but maybe I missed those instructions somwehere...

tyler5 10-05-2004 07:11 AM

Quote:

Originally Posted by Dialhot
Unchecking is not enought as it keeps the previous settings in memory. you have to RESET them.

For that : double click on the "source range" feature, don't worry if a warnign windows pops up, just continue. Click on "default" button, then on the cut editing menu (bottom, left) select "reset editting" (if that entry is not already greyed). Then exit from this screen.

The source range is now checked: NOW uncheck it :-)

Thats is what "reset range editing" means, and you have to do all that evry time.

did that, i still get the 'closes quick' problem.

please help me, i just cannot figure CQMatic out.

Dialhot 10-05-2004 10:21 AM

Quote:

Originally Posted by tyler5
did that, i still get the 'closes quick' problem..

Did you manage to use it once or is it the first try you do with this tool ?

tyler5 10-05-2004 03:10 PM

this would be my first try. i've managed to encode movies to kvcd before but i've always put a random cq number in tmpgenc so sometimes i get a file thats 400mb and sometimes i get a file thats 850mb. i would really like to learn to use cqmatic so i could avoid guessing the cq myself.

hope someone can teach me how to use it.

Dialhot 10-05-2004 04:13 PM

You surely didn't do all the steps. Follow carefully what OrbMan descibe in it's post dated from "Sun Jul 25, 2004 3:10 pm".

tyler5 10-05-2004 10:33 PM

Re: TMPGEnc closes quickly prob
 
Quote:

Originally Posted by OrbMan
1 - I use 8.3 folder and file names in all cases, using v1.2.06 - don't know what that means. can someone explain please?
2 - am loading a working .avs file in TMPGEnc, after resetting project file - i don't use scripts, i just encode following the "idiot's guide".
3 - select my output directory (8.3 also) in TMPGEnc - what's a "8.3" ?
4 - load my KVCDx3 MPEG1 template - yes, i did that. also tried other templates.
5 - confirm source range is de-selected - did that too following exactly what DialHot said.
5 - save project as text - done.
6 - launch CQMatic - done.
7 - load project file - done.
8 - set TMPGEnc location in Settings - done.
9 - run CalcuMatic to get my time and bitrate, in this case 95/918.6, and enter them in CQMatic - done.
10 - select X1/Prediction Only - done.
11 - click Execute - done.

TMPGEnc then opens and closes like 4-6 times in 1.5-2 seconds and the CQ value is 89.77 :(


Dialhot 10-06-2004 06:02 AM

Re: TMPGEnc closes quickly prob
 
Quote:

Originally Posted by tyler5
TMPGEnc then opens and closes like 4-6 times in 1.5-2 seconds and the CQ value is 89.77 :(

[/quote]
That means taht you did not do CORRECTLY all the steps :-)
After OrbMan post there are others post to read.

You MUST RESET the editing, not only uncheck it.

tyler5 10-06-2004 08:54 AM

1 - I use 8.3 folder and file names in all cases, using v1.2.06 - don't know what that means. can someone explain please?
3 - select my output directory (8.3 also) in TMPGEnc - what's a "8.3" ?

could someone explain this to me. and yes i did reset it if reseting means doing exactly as you said.

settings>advanced>source range
i open it (it is already unchecked, btw), hit the default button and exit (because 'reset cut editing' is already greyed. then i uncheck 'source range')

tyler5 10-06-2004 09:10 AM

ok, i finally got cqmatic to work but after predicting it always ends up with 89.77 no matter what the movie or the bitrate is. how can i get rid of that and if that has already been answered in this forum then PLEASE forward me to the thread (a link would be nice) not tell me to search it myself ;)

thanks in advance

Dialhot 10-06-2004 09:36 AM

Quote:

Originally Posted by tyler5
ok, i finally got cqmatic to work but after predicting it always ends up with 89.77 no matter what the movie or the bitrate is.

Do a new attempt after having removed the two tpr files that are in the same directory where is cqmatic.exe. These files will be regenerated by CQMatic.

If something is still wrong, post the log file to see if there is something strange.

tyler5 10-06-2004 11:11 AM

http://www.kvcd.net
CQMatic Version 1.2.06
Copyright Softronex Corporation, 2003.
All rights reserved.
Time: 19:12:24 Date: 10/06/2004
Ready!
Project: C:\Documents and Settings\Administrator\Desktop\Mean.Girls.tpr

Creating: CQMatic.tpr

F:\Videos\Mean.Girls.m2v
Project resolution: 528x480
Execute.
Movie Time: 50
Average Bitrate: 10000
Full Encode mode
Executing Prediction Phase...
Process started at 19:12:35
On 10/06/2004
CQ set for prediction
Setting up initial sampling.
Using CQ of 60.00
Prediction cycle #1
Encoder started...
Process time: 0.08 minutes.
Encoder end.
File size difference = 773.195862
Low fence: 60.000000
High fence: 90.000000
Last CQ = 60.00
Current CQ = 75.00
CQ difference = 15.000000
Using CQ of 75.00
Prediction cycle #2
Encoder started...
Process time: 0.05 minutes.
Encoder end.
File size difference = 3345.749268
Low fence: 75.000000
High fence: 90.000000
Last CQ = 75.00
Current CQ = 82.50
CQ difference = 7.500000
Using CQ of 82.50
Prediction cycle #3
Encoder started...
Process time: 0.05 minutes.
Encoder end.
File size difference = 3065.501221
Low fence: 82.500000
High fence: 90.000000
Last CQ = 82.50
Current CQ = 86.25
CQ difference = 3.750000
Using CQ of 86.25
Prediction cycle #4
Encoder started...
Process time: 0.03 minutes.
Encoder end.
File size difference = 3079.081787
Low fence: 86.250000
High fence: 90.000000
Last CQ = 86.25
Current CQ = 88.13
CQ difference = 1.875000
Using CQ of 88.13
Prediction cycle #5
Encoder started...
Process time: 0.05 minutes.
Encoder end.
File size difference = 7788.256836
Low fence: 88.125000
High fence: 90.000000
Last CQ = 88.13
Current CQ = 89.06
CQ difference = 0.937500
Using CQ of 89.06
Prediction cycle #6
Encoder started...
Process time: 0.03 minutes.
Encoder end.
File size difference = 11861.003906
Low fence: 89.062500
High fence: 90.000000
Last CQ = 89.06
Current CQ = 89.53
CQ difference = 0.468750
Using CQ of 89.53
Prediction cycle #7
Encoder started...
Process time: 0.03 minutes.
Encoder end.
File size difference = 2888.684082
Low fence: 89.531250
High fence: 90.000000
Last CQ = 89.53
Current CQ = 89.77
CQ difference = 0.234375
Using CQ of 89.77
Prediction cycle #8
Encoder started...
Process time: 0.03 minutes.
Encoder end.
File size difference = 27128.222656
Low fence: 89.765625
High fence: 90.000000
Last CQ = 89.77
Current CQ = 89.88
CQ difference = 0.117188
Final CQ value is 89.77
Encoding set to Full encode.
Full encode start...
CQMatic complete!
Total minutes of process: 0.37
Process ended at 19:12:57
On 10/06/2004

Dialhot 10-06-2004 11:18 AM

Can you check the sample encoded by CQMatic (it should have the name "F:\Videos\Mean.Girls.m2v.sample"). Read it into a media player (if you have a mpeg2 codec installed) or open it into virtualdubmod. What is in this file ?

tyler5 10-06-2004 01:14 PM

ok i got cqmatic to work (i didnt let the testing finish, thats why i got no results, silly me :)) but now i have another question. do i have to set the average bitrate myself in tmpgenc or will cqmatic do it for me? if it will then it doesnt work for me cause after calculating out the cq which works great, it leaves the bitrate still at 'maximum 2500, minimum 300' although i did set the average bitrate in cqmatic before processing (got it from calcumatic). so what should i do? set it myself manually? if so, then if my average bitrate is supposed to be 1016kbit/s then whats my max. and min. cause there is no option in tmpgenc for 'average' bitrate, only max. and min.

thanks in advance.

rds_correia 10-06-2004 04:13 PM

Hi Tyler5 :),
Well there is a better way than average bitrate with tmpgenc :arrow: that is CQ mode :D
So based on the data you provide it with, CQMatic calculates the correct CQ (constant quality) to apply in the encoding phase.
Don't worry you don't need average bitrate, at all ;-)
Just give it a run and see if the resulting encoded file stays near the final wanted size :)
I'm sure it will.
Oh, almost forgot.
If you need something to calculate the average bitrate needed by the CQMatic options use it's brother Calcumatic ;-).
Cheers


All times are GMT -5. The time now is 09:07 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.