Log in

View Full Version : Question about Bitrate


WorldWarII
10th March 2013, 02:20
Hi everyone. I'm new when it comes to x264 encoding ,for the last 2 weeks i've been struggling to reduce the size of a bluray size 38 gb to 3,8 gb without the audio. I'm using MeGUI for encoding and bitrate calculator to calculate the output size. So in order to achieve 3.8 gb i set the bitrate to 3,210 kbps. The MeGUI parameters used are:

program --level 4 --preset veryslow --tune film --pass 2 --bitrate 3,210 --stats ".stats" --deblock 1:1 --bframes 16 --qpmin 24 --qpmax 35 --qpstep 13 --pbratio 2.1 --qcomp 0.0 --cplxblur 2 --psy-rd 1.02:0.4 --no-fast-pskip --output "output" "input"

Avs Script:

convertToYv12()
a=last
b=a.DeGrainMedian(limitY=2,limitUV=3,mode=1)
DeGrainMedian(limitY=2,limitUV=3,mode=1)
SeeSaw(a,b, NRlimit=3, NRlimit2=4, Sstr=1.5, Slimit=5, Spower=5, Sdamplo=6, Szp=16)

I tried already 2 times and wasted almost 48 hours but the output file comes up to 6.20 gb,and i'm not sure how accurate bitrate calculator is .The MeGUI is still doing a pretty good job reducing the size and keeping also a very good quality.I'm not sure what i'm doing wrong, and not sure if it has anything to do with parameters. Any suggestion is welcome.Mike

Blue_MiSfit
10th March 2013, 09:01
I'd suggest not using SeeSaw. It's a pretty powerful sharpener, and should only be used if you really need to.

Coming from a BluRay source, you probably don't need to apply any sharpening.

Also, your settings are pretty strange. Don't use settings like qpmin, qpstep, pbratio, qcomp, cplxblur etc unless you know exactly what you're doing. You're not smarter than x264 :)

Just set the preset and tune, plus the rate control mode (2 pass VBR in your case), and be done with it.

If you remove the filters, and use settings that I've suggested, you'll hit your bitrate target - guaranteed. Also, why a ConvertToYV12 in your script? BluRay is 4:2:0 (yv12) so unless your decoder is outputting something else (YUY2 or RGB??) you shouldn't need this. What are you using to decode?

WorldWarII
10th March 2013, 14:22
Thank you for your reply "Blue". I just turn all the settings to default and start encoding again, plus i removed the script . Everytime i encode movies is asking me for convertingtoyv12,otherwise it won't let me do it. Anyway i'll see now what comes up based on what you said above and i will come back with an update. Thank you

x265
12th March 2013, 13:33
Use Avspmod for editing your scripts.

http://forum.doom9.org/showthread.php?t=153248

WorldWarII
14th March 2013, 00:26
Thank you guys i solved the problem i think the quantiser was causing that problem increasing the output file. i just turned :qmax,qmin and qstep to default .now the bitrate calculator gives me exacly the right size. To avoid opening another thread i'd like to ask you if is possbile to modify the media info? I notice all the settings are shown there .I'm not sure how this encoder done this: http://img542.imageshack.us/img542/7017/66523339.png The writing library is modified i don't know what kind of mod could do that. I looked everywhere but i couldn't find anything.Do you guys have any ideea what is using?
Very Best.Mike