Quantcast Bitrates: CQmatic Problem with TMPGEnc - digitalFAQ.com Forums [Archives]
  #1  
01-12-2005, 07:27 PM
oxycotton420 oxycotton420 is offline
Free Member
 
Join Date: May 2004
Location: Lebanon, Beirut
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
Hello to all i have a little problem its been a while since i havent done this..
i am trying to encode a 196 minute dvd PAL format into a 2 cd kvcd. I got a avg birate in calcu matic of 969.4 i am using the KVCDx2-CQ-704x576-_PAL_-PLUS.mcf templet in tmpgenc on the bottom i see the CQ value is set to 60 in the
settings>rate control mode i set the max birate to 1800 and the average birate 567.72 i set the source aspect ratio to 4:3 625 line (PAL)
my avs script goes as follows:

Code:
LoadPlugin("D:\KVCD\avisynth plugins\MPEG2Dec3.dll") 
LoadPlugin("D:\KVCD\avisynth plugins\GripFit_YV12.dll") 
LoadPlugin("D:\KVCD\avisynth plugins\STMedianFilter.dll") 
LoadPlugin("D:\KVCD\avisynth plugins\asharp.dll") 
LoadPlugin("D:\KVCD\avisynth plugins\unfilter.dll") 
LoadPlugin("D:\KVCD\avisynth plugins\undot.dll") 

Mpeg2Source("D:\DVDr\movie\movie\movie.d2v") 

undot() 
asharp(1, 4) 

BicubicResize(448,400,0,0.6,0,2,720,572) 
STMedianFilter(3, 3, 1, 1 ) 
MergeChroma(blur(1.5)) 
MergeLuma(blur(0.1)) 


ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ") 




function fmin( int f1, int f2) { return ( f1<f2 ) ? f1 : f2}
this is my probelm when i load the project that i made in tmpgenc into cqmatic i get a bunch of flickers ( i don't even think tmpgenc opens up ) it fins the cq value right away without even going through the tests and then finally it opens up tmpgenc says "illegal stream" and starts encoding but cq value on the bottom says 60 still this is my log from cqmatic:

Code:
CQMatic Version 1.4.04
http://www.kvcd.net
Copyright KVCD.Net, 2004.
All rights reserved.
Time: 19:23:39 Date: 01/12/2005
Ready!
Project: D:\DVDr\movie\VIDEO_TS\movie.tpr

Creating: CQMatic.tpr

D:\DVDr\movie\VIDEO_TS\movie.m1v
Project resolution: 704x576
Execute.
Movie Time: 196:35
Average Bitrate: 969.4
Full Encode mode
Executing Prediction Phase...
Process started at 19:24:12
On 01/12/2005
Preparing for calibration phase...
Calibration phase started.
Step 1 of 10.
Step 2 of 10.
Step 3 of 10.
Step 4 of 10.
Step 5 of 10.
Step 6 of 10.
Step 7 of 10.
Step 8 of 10.
Step 9 of 10.
Step 10 of 10.
Calibration phase complete.
CQ set for prediction
Setting up sampling.
Phase 1 of 7, cycle 1
Encoder started...
Process time: 0.03 minutes.
Encoder end.
File size difference  = 28.378109
Low fence: 60.000000
High fence: 90.000000
Last CQ = 60.00
Current CQ = 75.00
CQ difference = 15.000000
Phase 1 of 7, cycle 2
Encoder started...
Process time: 0.05 minutes.
Encoder end.
File size difference  = 28.378109
Low fence: 75.000000
High fence: 90.000000
Last CQ = 75.00
Current CQ = 82.50
CQ difference = 7.500000
Phase 1 of 7, cycle 3
Encoder started...
Process time: 0.03 minutes.
Encoder end.
File size difference  = 28.378109
Low fence: 82.500000
High fence: 90.000000
Last CQ = 82.50
Current CQ = 86.25
CQ difference = 3.750000
Phase 1 of 7, cycle 4
Encoder started...
Process time: 0.05 minutes.
Encoder end.
File size difference  = 28.378109
Low fence: 86.250000
High fence: 90.000000
Last CQ = 86.25
Current CQ = 88.13
CQ difference = 1.875000
Phase 1 of 7, cycle 5
Encoder started...
Process time: 0.03 minutes.
Encoder end.
File size difference  = 28.378109
Low fence: 88.125000
High fence: 90.000000
Last CQ = 88.13
Current CQ = 89.06
CQ difference = 0.937500
Phase 1 of 7, cycle 6
Encoder started...
Process time: 0.03 minutes.
Encoder end.
File size difference  = 28.378109
Low fence: 89.062500
High fence: 90.000000
Last CQ = 89.06
Current CQ = 89.53
CQ difference = 0.468750
Setting up sampling.
Phase 2 of 7, cycle 1
Encoder started...
Process time: 0.07 minutes.
Encoder end.
File size difference  = 28.378109
Low fence: 89.531250
High fence: 90.000000
Last CQ = 89.53
Current CQ = 89.77
CQ difference = 0.234375
Setting up sampling.
Phase 3 of 7, cycle 1
Encoder started...
Process time: 0.07 minutes.
Encoder end.
File size difference  = 28.378109
Low fence: 89.765625
High fence: 90.000000
Last CQ = 89.77
Current CQ = 89.88
CQ difference = 0.117188
Setting up sampling.
Phase 4 of 7, cycle 1
Encoder started...
Process time: 0.03 minutes.
Encoder end.
File size difference  = 28.378109
Low fence: 89.882813
High fence: 90.000000
Last CQ = 89.88
Current CQ = 89.94
CQ difference = 0.058594
Setting up sampling.
Phase 5 of 7, cycle 1
Encoder started...
Process time: 0.05 minutes.
Encoder end.
File size difference  = 28.378109
Low fence: 89.941406
High fence: 90.000000
Last CQ = 89.94
Current CQ = 89.97
CQ difference = 0.029297
Setting up sampling.
Phase 6 of 7, cycle 1
Encoder started...
Process time: 0.03 minutes.
Encoder end.
File size difference  = 28.378109
Low fence: 89.970703
High fence: 90.000000
Last CQ = 89.97
Current CQ = 89.99
CQ difference = 0.014648
Setting up sampling.
Phase 7 of 7, cycle 1
Encoder started...
Process time: 0.05 minutes.
Encoder end.
File size difference  = 28.378109
Low fence: 89.985352
High fence: 90.000000
Last CQ = 89.99
Current CQ = 89.99
CQ difference = 0.007324
Final CQ value is 89.73
Encoding test sample at 89.73
Encoding set to Full encode.
Full encode start...
CQMatic complete!
Total minutes of process: 1.57
Process ended at 19:25:46
On 01/12/2005
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
01-12-2005, 07:50 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Did you reset AND unselect source range ?
If yes, open the tpr and look for the name of your movie (I'm quite sure is it not "movie"). Check if there is no "+" in the line (tmpgnec split lines too long and put a "+" between the two) Check also if there is no strange character (accents for instance are coded in octal code).
Reply With Quote
  #3  
01-12-2005, 07:57 PM
oxycotton420 oxycotton420 is offline
Free Member
 
Join Date: May 2004
Location: Lebanon, Beirut
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
hmm okay this is what i got

when i double click on the unchecked source range it gives me this error
"list index is out of range(0)"
and i click okay and in the source range it only shows me a part of the movie instead of the whole thing...

and no nothing strange in the project file
Video.SourceFileName = 'C:\Documents and Settings\FloCk\Desktop\movie.avs'
Reply With Quote
  #4  
01-12-2005, 08:27 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by oxycotton420
when i double click on the unchecked source range it gives me this error
"list index is out of range(0)"
and i click okay and in the source range it only shows me a part of the movie instead of the whole thing...
There is not so much button on the screen at this time. Why don't you give them all a try to see what happens ? The "default" button...

This is what we call "reset" source range.

And do not forget to uncheck again the sourge range once you go out this screen (because entering into it chek the box automatically).

WAIT A MINUTE
Your script do not have any borders line AND generates a picture that is definitely NOT 704x576. That means that you let TMPGENC to do the resizing. NEVER do that
Where the hell did you find the values for the resize line ?
Reply With Quote
  #5  
01-12-2005, 08:34 PM
oxycotton420 oxycotton420 is offline
Free Member
 
Join Date: May 2004
Location: Lebanon, Beirut
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
BicubicResize(448,400,0,0.6,0,2,720,572)
this phil? well i fit cd gave me this i dunno much about that..can u tell me what i need to do so that tmpenc doesn't do the resizing for me pleasee before i try the "reset" source range
Reply With Quote
  #6  
01-12-2005, 08:44 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by oxycotton420
Quote:
BicubicResize(448,400,0,0.6,0,2,720,572)
this phil? well i fit cd gave me this i dunno much about that..
Don't you see that FitCD also gives a AddBorder line ? Copy it also as last line of the script (just before the "function").

Don't you see either that on the right part of the screen you can select your destination resolution ? Select 704x576 here !

NEVER load the template after the source.
ALWAYS do the opposite !
Reply With Quote
  #7  
01-12-2005, 08:59 PM
oxycotton420 oxycotton420 is offline
Free Member
 
Join Date: May 2004
Location: Lebanon, Beirut
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
k i changed couple of things in my script watch
Code:
LoadPlugin("D:\KVCD\avisynth plugins\MPEG2Dec3.dll") 
LoadPlugin("D:\KVCD\avisynth plugins\GripFit_YV12.dll") 
LoadPlugin("D:\KVCD\avisynth plugins\STMedianFilter.dll") 
LoadPlugin("D:\KVCD\avisynth plugins\asharp.dll") 
LoadPlugin("D:\KVCD\avisynth plugins\unfilter.dll") 
LoadPlugin("D:\KVCD\avisynth plugins\undot.dll") 

Mpeg2Source("D:\DVDr\THE_AVIATOR\VIDEO_TS\aviator.d2v") 

undot() 
asharp(1, 4) 

BicubicResize(672,368,0,0.6,2,0,636,464)
STMedianFilter(3, 3, 1, 1 ) 
MergeChroma(blur(1.5)) 
MergeLuma(blur(0.1)) 


ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ") 




AddBorders(16,56,16,56)
function fmin( int f1, int f2) { return ( f1<f2 ) ? f1 : f2}
now for the cqmatic with the step part of the caliboration it blinks really fast and also with the prediction phase it blinks...i tried to click on default and also loaded the templet first and source last...it gives me illegal stream format and cq value is still 60 on bottom
Reply With Quote
  #8  
01-12-2005, 09:57 PM
oxycotton420 oxycotton420 is offline
Free Member
 
Join Date: May 2004
Location: Lebanon, Beirut
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
hello everyone just wanna say that i chanegd the dir to something simple like d:\movie.avs ect...and it worked fine only one thing though

why does it show CQ on bottom of tmpgenc ?
Reply With Quote
  #9  
01-12-2005, 10:05 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by oxycotton420
why does it show CQ on bottom of tmpgenc ?
What do you mean

-kwag
Reply With Quote
  #10  
01-12-2005, 10:20 PM
oxycotton420 oxycotton420 is offline
Free Member
 
Join Date: May 2004
Location: Lebanon, Beirut
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
sorry kwag i was mistaken it does show cq on bottom although i have reached a problem...
the cq is at 50 and its still predicting its on the 1 of 7 cycle 2 and its on 50 my avg birate is 969.4 it should be so low...i'm aiming for a 2 cd kvcd check my first post for specifics..i want to know why cq is low ? thx
Reply With Quote
  #11  
01-12-2005, 10:44 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by oxycotton420
.
the cq is at 50 and its still predicting its on the 1 of 7 cycle 2 and its on 50 my avg birate is 969.4 it should be so low.
It shouldn't be that low.
What are you getting on the line: Process time: x.xx minutes in CQMatic's log
How many minutes per prediction
I just want to make sure it's actually predicting, and it's not a problem with the .tpr project.

-kwag
Reply With Quote
  #12  
01-12-2005, 11:02 PM
oxycotton420 oxycotton420 is offline
Free Member
 
Join Date: May 2004
Location: Lebanon, Beirut
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
hehe i'm sure its predicting and i'm just want to make sure if its normal for it to be low..

Phase 3 of 7 cycle 1
Encoder started ..
time: 5.88 minutes
enc ended
file size difference: 0.959134
low fence: 2.00000
high fence: 53.534
last cq: 53.53
current cq: 51.35

other times are from 5 to 6 minutes around there
hope this helps
Reply With Quote
  #13  
01-12-2005, 11:39 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Well, after reading your first post again, I see you're trying to fit ~96 minutes on each cd at a resolution of 704x576.
I don't know what kind of movie you are encoding, but it seems that if CQMatic has to drop CQ down to the fifties, your movie is either a high action movie, or your source is not very clean.
That's why you are getting a low CQ value.

-kwag
Reply With Quote
  #14  
01-13-2005, 12:33 AM
fabrice fabrice is offline
Free Member
 
Join Date: Mar 2003
Location: Madrid-Spain
Posts: 515
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
I don't know what kind of movie you are encoding, but it seems that if
Does this answer to your question:

Quote:
Mpeg2Source("D:\DVDr\THE_AVIATOR\VIDEO_TS\aviator. d2v")
As far as I know, this movie is on theaters, so it must be a crappy screener!
Reply With Quote
  #15  
01-13-2005, 12:38 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by fabrice

Quote:
Mpeg2Source("D:\DVDr\THE_AVIATOR\VIDEO_TS\aviator. d2v")
As far as I know, this movie is on theaters, so it must be a crappy screener!
Well, I just found it here: http://www.amazon.com/exec/obidos/tg...v=glance&s=dvd

So I assume oxycotton420 has already bought the DVD, which has been available for almost a month.

-kwag
Reply With Quote
  #16  
01-13-2005, 12:46 AM
oxycotton420 oxycotton420 is offline
Free Member
 
Join Date: May 2004
Location: Lebanon, Beirut
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
yes kwag i did buy the movie sorry for posting names i hate doing that...it is an action movie so thats probably the reason and its too long
Reply With Quote
  #17  
01-13-2005, 01:00 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
I suggest you encode it at 352x576 (Half D-1 PAL resolution).
That will give you a very high CQ for 2 CDs

-kwag
Reply With Quote
  #18  
01-13-2005, 01:03 AM
fabrice fabrice is offline
Free Member
 
Join Date: Mar 2003
Location: Madrid-Spain
Posts: 515
Thanks: 0
Thanked 0 Times in 0 Posts
Sorry

I thought it was this one: http://www.imdb.com/title/tt0338751/ ...
Reply With Quote
  #19  
01-14-2005, 08:24 AM
darkeye darkeye is offline
Free Member
 
Join Date: May 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to darkeye Send a message via MSN to darkeye
Well I followed the advice and finally got CQMatic to finish the preparing phases and start tmpgenc, but when Tmpgenc starts I get the error "Illegal Stream" error. When I click OK on the tmpgenc error, instead of crashing, tmpgenc starts encoding the source normally with the standard template, instead of using the final CQ value that CQMatic just calculated. Has anyone else gotten this "illegal stream" error? Does CQMatic start Tmpgenc with the CQ values it just calculated? or is the user supposed to type in the CQ before encoding and start tmpgenc manually? How long does CQ usually take to calculate CQ, because it seems to calculate it a bit too fast to be right, takes about 1 minute at most for me.
Reply With Quote
  #20  
01-14-2005, 09:17 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Post your CQMatic log

-kwag
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Bitrates: Problem with cqmatic Enerjr Video Encoding and Conversion 3 10-27-2004 07:42 PM
Bitrates: Problem With CQMatic kev23m Video Encoding and Conversion 2 03-03-2004 06:17 AM
Bitrates: CQMatic Problem - Please Help bsbeck Video Encoding and Conversion 3 11-24-2003 12:19 AM
Bitrates: The New OLD CQMatic problem - Final CQ value is 89.77 dongxu Video Encoding and Conversion 6 11-15-2003 10:22 AM
Bitrates: CQMatic Problem. muhali3 Video Encoding and Conversion 2 09-30-2003 03:46 PM

Thread Tools



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