digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Bitrates: CQMatic/CalcuMatic (http://www.digitalfaq.com/archives/encode/4595-bitrates-cqmatic-calcumatic.html)

ozjeff99 07-29-2003 07:01 AM

Used Qmatic for first time (RC-3). Starting with CQ of 60 it took 50mins to find CQ of 71. Some relevant stats:

PAL DVD movie: da Hip Hop Witch (interlaced)
Avg. bit rate 1158
Movie Time 85
Max/Min rate used in Tmpgenc(v2.511) 2000/660

Length of .mv1 = 818,325kB. Should have been 716MB

Used MA script with Deinterlace. I also use idct=5 in Mpeg2Source().

Any ideas anyone?

ozjeff99

vhelp 07-29-2003 07:03 AM

hi Kwag..

Quote:

Changes to 1.0 RC-5
Fixed: Avoid continuous "bumps" in CQ, when dealing at very low CQ values out of linear scale.
Fixed: Small cosmetic button alignment.
Yeah, I was wondering WHEN you was gonna get to that hehe :lol:

-vhelp

tigger 07-29-2003 11:58 AM

well, think i got the clue :)

encoded film 88 mins,

set min = 0.57*avg bitrate, max=2000, predicted cq with cqmatic,
set min to 270, then encoded the movie with the predicted cq, video stream length = 699mb, after muxing : 790 MB !!! SO PERFECT!!!
THX KWAG FOR THIS GREAT TOOL!!! :) :D :D :D :D

kwag 07-29-2003 12:09 PM

Great to hear that tigger :D
Your source was DVD right :?:

-kwag

tigger 07-29-2003 12:18 PM

yes, pal dvd
friday the 13th *G*

nicksteel 07-29-2003 01:41 PM

Please don't forget.........
 
Todo:
* Continued testing higher degree of prediction accuracy.
* Add user precision selection. (For version 2, if necessary )
* Add log file on disk [ Log now copied to Clipboard ]
* Avoid multiple running instances on CQMatic.
* Shutdown after completion. (For version 2 )

Please don't forget the bitrate calculator w/ specified output size for us DVD fanatics.

( I realize it has lesser priority )

kwag 07-29-2003 01:44 PM

Re: Please don't forget.........
 
Quote:

Originally Posted by nicksteel
Todo:
* Continued testing higher degree of prediction accuracy.
* Add user precision selection. (For version 2, if necessary )
* Add log file on disk [ Log now copied to Clipboard ]
* Avoid multiple running instances on CQMatic.
* Shutdown after completion. (For version 2 )

Please don't forget the bitrate calculator w/ specified output size for us DVD fanatics.

:oops: Sorry, I forgot to put it on that "todo" list, but it's in the list for version 2 ;)
I'll edit that post now :!:

Edit:
Added this to the list:
* Integrated Bitrate Calculator with CD, DVD and user specified target sizes. (For version 2)

-kwag

nicksteel 07-29-2003 03:01 PM

* Integrated Bitrate Calculator with CD, DVD and user specified target sizes. (For version 2)

Great! Now that you have a Cyberhome, I think you'll like playing with CDVD.

kwag 07-29-2003 03:37 PM

Quote:

Originally Posted by nicksteel
* Integrated Bitrate Calculator with CD, DVD and user specified target sizes. (For version 2)

Great! Now that you have a Cyberhome, I think you'll like playing with CDVD.

:idea: Maybe with CKDVD :mrgreen:

nicksteel 07-29-2003 04:03 PM

Quote:

Originally Posted by kwag
Quote:

Originally Posted by nicksteel
* Integrated Bitrate Calculator with CD, DVD and user specified target sizes. (For version 2)

Great! Now that you have a Cyberhome, I think you'll like playing with CDVD.

:idea: Maybe with CKDVD :mrgreen:

Would you believe that is what I've been putting on my labels for quite a while now? It seemed pretty logical to me!

ozjeff99 07-29-2003 08:02 PM

Quote:

Originally Posted by tigger
set min = 0.57*avg bitrate, max=2000, predicted cq with cqmatic,
set min to 270, then encoded the movie with the predicted cq, video stream length = 699mb, after muxing : 790 MB !!! SO

Good result tigger. One that I hope to emulate. I'm a little confused. Do we set MIN = .57*avebitrate for prediction purposes then resort back to a different MIN for the encode?

ozjeff99

jorel 07-29-2003 08:07 PM

no my friend,don't back,
use the result of the formula.

:wink:

kwag 07-30-2003 01:04 AM

CQMatic Version 1.0 Release
 
Version 1.0 Released :!:
(Top of this thread) :cool:
Now give it a whirl with DivX, XviD, Interlaced, Progressive, or any sources you can throw at it :!:
Please let me know your results :cool:

-kwag

vhelp 07-30-2003 01:36 AM

hi Kwag..

I know.. I'm up late..

I'm having some problems w/ your latest update..

Now, it's giving me this error message:

-----------------------------------
For encode mode, 3:2 pulldown when playback can not be used if the flame
rate is not 23.976fps or 24fps.
-----------------------------------

* TMPG v2.53
* Movie: "Dogma"
* 128min
* Ave bit: 733 (my calc)
* min bit: 418 (my calc)
* frames: 184,135.68

Question:
* are you setting up your temp .tpr files for MPEG-1 ??

Thanks for any assist,
-vhelp

tigger 07-30-2003 01:39 AM

jorel, when i use the min bitrate from prediction, i donīt get good results, well files too big, files very too small...

when i set it back to a different min, to 270, everythings works fine...
canīt explain why...but now iīm fine with cqmatic :)

kwag 07-30-2003 01:45 AM

Quote:

Originally Posted by vhelp
Question:
* are you setting up your temp .tpr files for MPEG-1 ??

Hi vhelp,

I don't modify the user .tpr. I create a copy of it, and modify the relevant parameters for prediction only.
Have you tried to load your .tpr after saving it, and click "Start" on TMPEG to see if you get any errors :?:
If it loads fine in TMPEG, and starts encoding without errors, then it should also run fine when CQMatic loads the .tpr.

-kwag

vhelp 07-30-2003 01:46 AM

@ Kwag..

Ok, I think I may know what the issue(s) are..

1 - I have an older version TMPG (v2.53 to be exact) and,
2 - some of those .tpr source syntax may not be availble in MY version.

So, what I'm going to do is try another TMPG version (higher) if I can find
any on my hd that I D/L'ed previously.

Sorry for the confusion - I'm sure it's not CQManiac !! hehe CQMATIC !!

Will keep you posted!!
Over and out!
-vhelp

kwag 07-30-2003 01:49 AM

Quote:

Originally Posted by vhelp

Sorry for the confusion - I'm sure it's not CQManiac !! hehe CQMATIC !!

Well it could be :!:
Just let me know :cool:

-kwag

vhelp 07-30-2003 01:55 AM

Hi again..

Sorry, I'm back..
Quote:

I don't modify the user .tpr. I create a copy of it, and modify the relevant parameters for prediction only.
Have you tried to load your .tpr after saving it, and click "Start" on TMPEG to see if you get any errors
If it loads fine in TMPEG, and starts encoding without errors, then it should also run fine when CQMatic loads the .tpr.
Actually, I thought you did some .tpr tweaks (your temp files, that is)
but since you said you DON'T, then I'm stumped, since even my later
version TMPG is falling up.

Member my short 258 frames I mentioned ??
..How it's still repeating those same frames ??
..and, (probably didn't mention) but those same 258 frames repeated
from a previous experience, ..say first 20 minutes of a vob - thats the
confusing part, cause it should have (on the whole 128min encode) used
different frames.

also, I made sure that my [ ] Source Range was unchecked. And, resaved
it. And reloaded it w/ you latest version, but it's still [x] checking the
source range anyways. Cause, when I go back into TMPG, (one used in
your CQMATIC) I open the Advance tab, and [x] Source Range is checked
again. BUT, when I load in my .tpr file, the [ ] Source Range is unchecked!

I will try to find a newer TMPG version and test again. If it works, then it's
just a matter of "nailing" the latest (oldest) version TMPG, so that others
don't fall into the same predicament :wink: IF anything, at least we know
for sure, what the cut-off is ie, TMPG v2.53 :wink:

-vhelp

vhelp 07-30-2003 02:01 AM

@ Kwag..

Ok, I found a TMPG v2.56

I'll give that one a try !!
-vhelp

vhelp 07-30-2003 02:14 AM

Hi (last time) Kwag..

This time, I got the same issues before, w/ the error mesage about 3:2 pulldown.

Also, a new twist..
The window open very fast, three time and closed down. I know I've read
this issue before, so I'll give a search tomorrow, cause I'm really tired now :)

Thanks for lots,
signing off...
-vhelp


But, here is my log file FWIW:
-----------------------------------

http://www.kvcd.net
CQMatic Version 1.0 Release.
Copyright Softronex Corporation, 2003.
All rights reserved.
Time: 03:09:30 Date: 07/30/2003
Ready!
Project: H:\dogma.2.tpr

Creating: CQMatic.tpr

H:\dogma.mpg
Execute.
Movie Time: 128
Average Bitrate: 733
Prediction Only mode
Executing Prediction Phase...
Process started at 03:10:57
On 07/30/2003
CQ too LOW!. Adjusted.
Using CQ of 55.00
Entering CF phase.
Using CQ of 50.00
FAST source analysis...
Process time: 0.23 minutes.
Encoder end.
Correction Factor = 0.6800
Exit CF phase.
Using CQ of 55.00
Encoder started...
Process time: 0.02 minutes.
Encoder end.
File size difference = 1077.562378
Last CQ = 55.000000
Current CQ = 90.000000
Using CQ of 90.00
Encoder started...
Process time: 0.05 minutes.
Encoder end.
File size difference = 1077.562378
CQ ABOVE watermark. CQ set to 90.0
Using CQ of 90.00
CQMatic complete!
Total minutes of process: 0.30
Process ended at 03:11:15
On 07/30/2003

GetUp 07-30-2003 03:21 AM

Re: Hmm...bad results
 
Quote:

Originally Posted by GetUp
Ok, my PC just finished encoding movie...
Result: 781 129 659 bytes
Must be: 683.19 Mb....
Too bad. :(
The movie was: Half Past Dead, hi-action movie
Average bitrate: 972
MAX - 2000
MIN - 554
Total lenght - 97 min
Source - DVD
Now I cant fit it to cd, even with 112 kbps sound
CQmatic - version RC-3
Now i try to predict with newest (RC-5) version of CQmatic...

Still no success!
With RC5 the size of result is 771 802 741

May be MovieStacker gived me WRONG average bitrate? With which tool i can check it?

And I'll try version 1.0 final...

mistermickster 07-30-2003 04:46 AM

@Kwag

Why use a max bitrate of 2000? SVCD or x(S)VCD can go higher, why not use it? Would it not improve the encode?

Also, do you have answers to my previous post?

Quote:

So, if I want to encode a sample with my script settings and fave template to check the resulting quality, how do I do it?

Also, do the filters loaded in the optimal script come with Avisynth or are they external?

What sort of figures are passed to the Letterbox and GripCrop filters?

Cheers

DKruskie 07-30-2003 11:36 AM

This probably sound stupid but how do I find the log for cqmatic, I know it says it copies to the clipboard, but where is the clipboard, because I cant seem to find it on my comp?

David

Razorblade2000 07-30-2003 11:42 AM

Clipboard =

copy -> clipboard
paste <- cliboard

(ctrl+c and ctrl+v)

kwag 07-30-2003 12:01 PM

Quote:

Originally Posted by vhelp
This time, I got the same issues before, w/ the error mesage about 3:2 pulldown.

Fixed in 1.01 ;)

-kwag

DKruskie 07-30-2003 12:06 PM

Thanks Razor..I should've realized it was something simple.



David

kwag 07-30-2003 12:07 PM

Quote:

Originally Posted by mistermickster
@Kwag

Why use a max bitrate of 2000? SVCD or x(S)VCD can go higher, why not use it? Would it not improve the encode?

It has to do with the linearity range in TMPEG, when allocation bits. If the MIN and MAX are spread to wide apart from average, specifically when average is not centered between MIN and MAX, prediction will not be as accurate.
Quote:


Also, do you have answers to my previous post?


So, if I want to encode a sample with my script settings and fave template to check the resulting quality, how do I do it?

Also, do the filters loaded in the optimal script come with Avisynth or are they external?

What sort of figures are passed to the Letterbox and GripCrop filters?

This is a CQMatic thread :!: Not an AviSynth thread :!:

-kwag

nicksteel 07-30-2003 01:41 PM

Kwag, just have to ask...........
 
:?: Given the rapid development of CQMatic and numerous postings and tests, have you any speculation about when you will reach release 2.0 that includes the DVD friendly bitrate calculator?

I'm still testing with KDVD by using the prediction formula you so thoughtfully posted and really appreciate the effort you're putting into this. I think the day is quickly approaching when we can just start CQMatic and sit back and watch it do all the work! :D

It's been a long time since I saw your first postings on another site that described putting an entire film on a single CD. :D KVCD/KDVD and now automatic prediction!

kwag 07-30-2003 02:59 PM

Hi nicksteel,

I don't have a time frame yet, because I want to get prediction as perfect as possible. There are still some inconsistencies with interlaced sources and DivX sources. Not as bad as before, but still not as accurate as I want it to be. So you'll be seeing 1.0x releases, which will be either bug fixes, or prediction adjustments only. After that, then I'll release version2, which will sport the calculator and who knows what else :)
But I assure you that when we are happy with prediction, count on less that 24 hours, and you'll see version 2 posted ;)

-kwag

kinggee 07-30-2003 08:21 PM

ok, heres my results on Dog Soldiers PAL DVD (99min):

movie stacker average bitrate - 1009
i used 2000max and 300min in tmpgenc
movie stacker wanted file size - 727mg
encoded file size - 750mg :(

the encoded file size was not too far off, but i still can't fit it onto a cd :!:

could it be that movie stacker is giving me a high average bitrate for some reason :?:

kwag 07-30-2003 08:26 PM

Hi kinggee,

Did you use CQM 1.0 or greater :?:

Edit: I get an average of 987Kbps with MovieStacker for a time of 99 minutes :!:

-kwag

kinggee 07-30-2003 08:30 PM

hey kwag,

i used CQMatic Version 1.0 RC-5

i am trying Version 1.02Release now :wink:

kwag 07-30-2003 08:44 PM

Based on my average, yours would give +17424KB over required :!:
Check that you have set Moviestacker to "MPEG Multiplexing: bbMpeg VCD MPEG-1", and "Seq. header alignment" checked
Then, you should see 987Kbps for average bitrate.
So your final size would have been 750MB (~768,000KB - 17,424KB) = 750,576KB. And then 750,576KB / 1.024 = ~732.984MB which would have been damn close to your required 727MB :D

-kwag

kinggee 07-30-2003 08:47 PM

ok now i don't know whats going on :!:

Code:

http://www.kvcd.net
CQMatic Version 1.02 Release.
Copyright Softronex Corporation, 2003.
All rights reserved.
Time: 11:42:20 Date: 07/31/2003
Ready!
Project: C:\DogSoldiers\DogSoldiers.tpr

Creating: CQMatic.tpr

C:\DogSoldiers\DogSoldiers.m1v
Execute.
Movie Time: 99
Average Bitrate: 1009
Prediction Only mode
Executing Prediction Phase...
Process started at 11:42:51
On 07/31/2003
Entering CF phase.
Using CQ of 50.00
FAST source analysis...
Process time: 0.82 minutes.
Encoder end.
Correction Factor = 0.9965
Exit CF phase.
Using CQ of 65.00
Encoder started...
Process time: 0.10 minutes.
Encoder end.
File size difference  = 0.052470
Last CQ = 65.00
Current CQ = 34.21
Using CQ of 34.21
Encoder started...
Process time: 0.08 minutes.
Encoder end.
File size difference  = 0.052470
Last CQ = 34.21
Current CQ = 18.81
Low diff. CQ bumped!
Using CQ of 14.11
Encoder started...
Process time: 0.08 minutes.
Encoder end.
File size difference  = 0.052470
CQ BELOW watermark. CQ set to 1.0
Using CQ of 1.00
CQMatic complete!
Total minutes of process: 1.08
Process ended at 11:43:56
On 07/31/2003

and this is what it said at the bottom of tmpgenc when it started:

CQMatic (MPEG-1 528x480 0.0023976fps CQ 50) 8O

i've stuffed something up good :!:

kinggee 07-30-2003 08:55 PM

ok i checked the Seq. header alignment box and now it gives me an average of 995. Better, but not 987 :roll:

i am using 96kbps sound

bigggt 07-30-2003 09:02 PM

Hey guys, man got home from work today and found three new releases
:D and see that the warning about divx and xvid is gone.

one question Kwag you wrote
Quote:

and "Seq. header alignment" checked
in moviestacker is this just for a certian project or should it be checked all the time because i looked in my settings and mine isin't checked.

Thanx

kwag 07-30-2003 09:09 PM

Quote:

Originally Posted by kinggee

and this is what it said at the bottom of tmpgenc when it started:

CQMatic (MPEG-1 528x480 0.0023976fps CQ 50) 8O

That is correct ;)

-kwag

kinggee 07-30-2003 09:12 PM

Quote:

Originally Posted by kwag
Quote:

Originally Posted by kinggee

and this is what it said at the bottom of tmpgenc when it started:

CQMatic (MPEG-1 528x480 0.0023976fps CQ 50) 8O

That is correct ;)

-kwag

:lol:

i re-installed tmpgenc and everything seems back to normal now :)

but i still can't get movie stacker to give me an average of 987 :!:

kwag 07-30-2003 09:16 PM

Quote:

Originally Posted by bigggt

one question Kwag you wrote
Quote:

and "Seq. header alignment" checked
in moviestacker is this just for a certian project or should it be checked all the time because i looked in my settings and mine isin't checked.

Thanx

SORRY :!: Don't check Align sequence headers. It must be unchecked :oops:

:doh:

-kwag


All times are GMT -5. The time now is 08:49 AM  —  vBulletin Đ Jelsoft Enterprises Ltd

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