digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KVCD: Can only encode with CQ of 40? (http://www.digitalfaq.com/archives/encode/4172-kvcd-encode-cq.html)

kinggee 06-25-2003 04:04 AM

KVCD: Can only encode with CQ of 40?
 
hey guys hope you can help!

i'm trying to encode a 100 minute pal dvd rip onto one 80min cd
but when i use tok it encodes at CQ of 39.1!!! :roll:

why am i getting such a low CQ :?

Maximum bitrate is set to 2500 and minimum is set to 300, the audio is 128kb .mp2

here is my script, i am new to using avisynth and filters, i usually just load the templates into tmpgenc :oops:

## DLL Section ##
#
LoadPlugin("C:\Documents and Settings\Ben King\Desktop\kvcd encoding tools\filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Documents and Settings\Ben King\Desktop\kvcd encoding tools\filters25\GripFit_YV12.dll")
LoadPlugin("C:\Documents and Settings\Ben King\Desktop\kvcd encoding tools\filters25\STMedianFilter.dll")
LoadPlugin("C:\Documents and Settings\Ben King\Desktop\kvcd encoding tools\filters25\asharp.dll")
LoadPlugin("C:\Documents and Settings\Ben King\Desktop\kvcd encoding tools\filters25\undot.dll")
#
####

## Defined Variables and Constants ##
#
MaxTreshold = 1.50
nf = 0 # Current frame.
#
####

## Main section and static filters ###
#
Mpeg2Source("c:\movies\robin_hood.d2v")
#
undot()
Limiter()
asharp(2, 4)
GripCrop(528,576)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.2))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual ) - This will apply temporalsoften to
# very static scenes, and apply variable blur on moving scenes.
# We also assign a variable - and this is why a line break is inserted:

ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? asharp( -(fmin((nf/30), 1)), 0 ) : \
TemporalSoften(2,7,7,3,2) ")

#
#
#

GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

function fmin(float f1, float f2) {
return (f1<f2) ? f1 : f2
}

#
####

Boulder 06-25-2003 04:16 AM

With the motion adaptive script, it's not a bad thing to get such a low CQ value. It's not an absolute value for quality, CQ50 with a higher resolution may look better than CQ70 with a lower resolution. Examine the sample clip and you'll see if you like it or not.

However, you can try lowering the resolution to 480x576 or 352x576 and see how that comes out.

kinggee 06-25-2003 06:11 AM

i watched the sample clip and the encode was very blurry and blocky, much worse quality than most vcd's. I've heard of people getting very good encodes with 100 minute movies on one cd and am wandering what they do! :roll:

any pointers guys??

thanks

Boulder 06-25-2003 06:30 AM

Looks to me that you'll just have to lower the resolution or use two discs. You could also post the ToK log file so we'll see if there's anything wrong with it.

Dialhot 06-25-2003 08:15 AM

Quote:

Originally Posted by kinggee
i watched the sample clip and the encode was very blurry and blocky, much worse quality than most vcd's. I've heard of people getting very good encodes with 100 minute movies on one cd and am wandering what they do! :roll:

any pointers guys??

thanks

Can you give us the length of the sample and the length of the audio file ? And if possible, copy the log of Tok.

kinggee 06-26-2003 01:19 AM

hey guys, sorry for the late response!

the audio size is 91.4mg encoded with headache
the sample video size is 1.04mg

this is the Tok log file:

================================================== ===========
ToK Log: C:\Documents and Settings\Ben King\Desktop\kvcd encoding tools\robin_hood.avs
================================================== ===========

Resolution (fps):528x576 (25.000 fps)
Total Frames: 149831
Total Time : 01:39:53
-------------------------------------------------------------

Audio Size: 95,893,632
Required Video Size: 716,073,304

Factor: 60.000
Desired Sample Size: 11,934,556

-------------------------------------------------------------
New Faster Prediction
-------------------------------------------------------------

Full Sample
Next CQ: 70.000. Sample Size: 20,655,006
Small Sample
Next CQ: 70.000. Sample Size: 1,900,901
Predicting...
Next CQ: 40.446. Sample Size: 12,583,378
Next CQ: 29.568. Sample Size: 10,391,269
Next CQ: 36.117. Sample Size: 11,962,598

Exit Condition: 1.000 % reached ! yahoo !
Tries : 4


Final CQ: 36.117
Total Time For Predicition: 00:21:16

Total Time (all operations): 00:21:16

Finished

thanks for your help! :lol:

Dialhot 06-26-2003 04:32 AM

Okay...

It seems that you find the perfect example where Tok + PAL + New adaptative script leads to a complete disaster :-(

See http://www.kvcd.net/forum/viewtopic.php?t=4614 and you will understand...


All times are GMT -5. The time now is 07:40 PM  —  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.