digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KVCD: Uncompressable movies?? (http://www.digitalfaq.com/archives/encode/4583-kvcd-uncompressable-movies.html)

AgNa 07-17-2003 10:17 PM

Uncompressable movies??
 
Well I made quite a few KVCDS for a while and I never noticed what happened to me with my last to movies (AVI sources) Both movies are ~90mins so they usually fit`s wonderfull in 704x480 or better in 480x480 when to much action. Now this 2 movies I made are not to much action and for the first 1 I used AVS 2.07 and the 2nd 2.5.2. And The last one I can only get 62,8 CQ?? with 2200Max 150Min bitrate. For the previous one was even worst since I have to move to 352x480 to get 69CQ. What can be wrong? this are the 2 scripts I used

Code:

viSource("D:\Movies-videos\test\evildead3.avi")
LegalClip()
GripCrop( 480, 480, overscan=2 )
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0, 8, 32)
# SpaceDust() # Optional - for some "not so clean" DVDs.
unfilter(30,30)
Blockbuster(method="noise", variance=.5, seed=1)
temporalsmoother(1,2)
##mergechroma(blur(1.50))
##mergeluma(blur(0.2))
# Convolution3d or DCTFilter for extreme worse cases.
GripBorders()
TextSub("D:\Movies-videos\hero480.ssa")
##AssumeFPS(23.976)
LegalClip()
Sampler(length=24)

Code:

## DLL Section ##
#
LoadPlugin("D:\Movies-videos\Codecs2.5\MPEG2Dec3.dll")
LoadPlugin("D:\Movies-videos\Codecs2.5\GripFit_YV12.dll")
LoadPlugin("D:\Movies-videos\Codecs2.5\STMedianFilter.dll")
LoadPlugin("D:\Movies-videos\Codecs2.5\asharp.dll")
LoadPlugin("D:\Movies-videos\Codecs2.5\unfilter.dll")
LoadPlugin("D:\Movies-videos\Codecs2.5\undot.dll")
LoadPlugin("D:\Movies-videos\codecs2.5\Sampler-2.5.dll")
LoadPlugin("D:\Movies-videos\codecs2.5\VSFilter.dll")
#
####

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

## Main section and static filters ###
#
AviSource("D:\Movies-videos\test\spun.avi")
#
undot()
Limiter()
asharp(1, 4)
##BilinearResize(448,352,22,0,596,352)
##AddBorders(16,64,16,64)
GripCrop(480, 480, overscan=2)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.1))
#
#

## 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:

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \
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) ")

#
#
#

GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
##AssumeFPS(23.976)
TextSub("D:\Movies-videos\test\Spun.ssa")
Limiter()
Sampler(length=24)
#
#
## Functions ###

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

#
####

Any tips?

kinggee 07-17-2003 11:07 PM

i have had similar problems with movies that will not compress :)

it is basically because some movies just don't because of a lot of things like brightness, amount of action and how clean the source is.

i wouldn't worry about it, i don't think anything is wrong :idea:

kwag 07-17-2003 11:13 PM

Guys,

Tale a look at my post #7 here: http://www.kvcd.net/forum/viewtopic.php?t=4964&start=32

Try to calculate your CQ again, and see if you get a different number ;)

-kwag

kinggee 07-17-2003 11:21 PM

wow this looks promising :D

off to test now :!:

kinggee 07-17-2003 11:35 PM

sorry to be an idiot, but where in movie stacker do i find the average bit rate :?: :oops:

kwag 07-17-2003 11:39 PM

Quote:

Originally Posted by kinggee
but where in movie stacker do i find the average bit rate :?:

Under the "Video Stream" frame, on the "Resize & Video Stream" tab :)

-kwag

kinggee 07-17-2003 11:41 PM

ahh i see it - 873, that sounds about right :)

many thanks

jorel 07-17-2003 11:43 PM

Quote:

Originally Posted by kinggee
sorry to be an idiot, but where in movie stacker do i find the average bit rate :?: :oops:

it's not an idiot question my friend

is in the bottom of the "resize and video stream" tab
in the "video stream" (in dark blue color)

:wink:

editing:
:P
oops, i answer in slow motion,
the "faster double click" came faster!
:lol:

kwag 07-17-2003 11:43 PM

Quote:

Originally Posted by kinggee
ahh i see it - 873, that sounds about right :)

many thanks

873 - 43% = 497.61
So set your MIN to that ( or 498 in ToK, because ToK doesn't allow decimals )


-kwag

AgNa 07-18-2003 12:17 AM

Well thanx for the tip I`m gonna try it tomorrow after all I`m just 1,5 hs away of finishing the encoding, so I`m gonna compare betterif I let it finish.
But isn`t 2000Kbs to low? I mean what about action movies?
My problem wasn`t about acurate in the prediction ony low CQ, but I will cheq further tomorrow it`s to late now and I need some sleep :oops:

kwag 07-18-2003 12:29 AM

Quote:

Originally Posted by AgNa
But isn`t 2000Kbs to low? I mean what about action movies?

Play it :mrgreen: http://www.kvcd.net/boon-action.mpg

-kwag

AgNa 07-18-2003 03:32 PM

Well I gave it a try this morning and it truned down my CQ by 1,5 points :roll: I wasn`t totally happy with the result so I went for another full encode at 352x480 (200min, 2200Max) and I got 9 more points in CQ. So I think It`s gonna look better. Maybe I`m gonna do some test using your method Kwang but I don`t like the results when lowering the bitrate so much, your sample looks good but not so good as others KVCDs I saw. So for now, and until another better method arrives, I`m gonna keep lowering to 352x480 in this kind of movies, or just going for 2 cd`s when the movie deserves it :D

kwag 07-18-2003 04:30 PM

Of course you had more points :!: That's because you increased the distance from the MIN to the MAX, and the encoder has to compensate for the loss of dynamic range :!: It now has a larger bitrate swing to take care of.
The CQ is only a reference, and you can't rely on the value. That's why you got a lower CQ with a MAX of 2,000. But quality wise, it will be better than with the higher CQ and larger MIN, MAX :!:
That is, referenced to a same file size on both encodes.

-kwag

AgNa 07-18-2003 04:38 PM

well maybe I didn`t explain my self to clear or I didn`t understand you totally

A) 480x480 - 2200max - 150 min = 62.7 CQ
B) 480x480 - 2000max - 422.69min = 61 CQ
C) 352x480 2200max -200 min = 71 CQ
D) 352x480 2000max - 422.69min = 69CQ

That`s why I decided to go for C :D

kwag 07-18-2003 04:48 PM

Take a look at your D sample. It should be better than your C sample ;)
Also, B will be better than A.

-kwag


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