Log in

View Full Version : 2 pass encoding problem


vornok
21st December 2012, 12:47
can i ask something? this is my settings of x264 cabac=1 / ref=10 / deblock=1:1:1 / analyse=0x3:0x113 / me=umh / subme=10 / psy=1 / psy_rd=0.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=6 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=425 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=2:0.60

but when i finished encoding some episodes the settings will change,, the bitrate will change into 303 why is this happening?

Asmodian
21st December 2012, 23:45
We will need more information, like: How are you doing the encodes? What do you mean the bitrate will change? How do you know it changes?

:script:

vornok
22nd December 2012, 08:22
We will need more information, like: How are you doing the encodes? What do you mean the bitrate will change? How do you know it changes?

:script:

im using megui for doing my encodes and im doing it 2 pass settings the bitrate=425 will become bitrate=303 sometime even lower sorry im new to this i thought it will not change the bitrate as long as i set my bitrate=425 in megui...:(

can i provide screen shot?

hello_hello
24th December 2012, 02:46
Where are you setting the birate? Do you use the AutoEncode option to add your encodes to the job queue? If so, the file size/bitrate you enter in the AutoEncode window is the over-all file size/bitrate, including the audio (after it's re-encoded, if applicable) and it'll over-ride any bitrate settings in the x264 encoder configuration. I'm pretty sure the One Click encoder works the same way. If you enter a file size/bitrate, the audio bitrate will be included in the calculations.

There's a few ways around it, such as adding the audio and encoding jobs to the queue individually, with the encoder set up for automated 2 pass encoding using your desire bitrate, then use one of MeGUI's muxers from the Tools menu to combine them into a single file when the encoding jobs are done.

If you set up the x264 encoder using automated 2 pass encoding and your desired bitrate, both AutoEncode and the One Click encoder should give you the correct bitrate as long as you don't specify a new one (or a file size). Then you should be able to add the audio to an AutoEncode or One Click encoding job without it effecting the video bitrate.

Alternatively you can just leave the x264 encoder in CRF mode, then use AutoEncode or the One Click encoder while specifying a bitrate, and MeGUI will switch to automated 2 pass encoding for you, but you can't include any audio in the Auto Encode/One Click encoding job or it'll be included in the the over-all bitrate calculations.... unless of course you already know the audio bitrate, in which case you can probably add it to your desired video bitrate, specify that bitrate when setting up an AutoEncode or One Click encoding job while including the audio, and logically the video bitrate should end up being correct.

vornok
25th December 2012, 10:26
Where are you setting the birate? Do you use the AutoEncode option to add your encodes to the job queue? If so, the file size/bitrate you enter in the AutoEncode window is the over-all file size/bitrate, including the audio (after it's re-encoded, if applicable) and it'll over-ride any bitrate settings in the x264 encoder configuration. I'm pretty sure the One Click encoder works the same way. If you enter a file size/bitrate, the audio bitrate will be included in the calculations.

There's a few ways around it, such as adding the audio and encoding jobs to the queue individually, with the encoder set up for automated 2 pass encoding using your desire bitrate, then use one of MeGUI's muxers from the Tools menu to combine them into a single file when the encoding jobs are done.

If you set up the x264 encoder using automated 2 pass encoding and your desired bitrate, both AutoEncode and the One Click encoder should give you the correct bitrate as long as you don't specify a new one (or a file size). Then you should be able to add the audio to an AutoEncode or One Click encoding job without it effecting the video bitrate.

Alternatively you can just leave the x264 encoder in CRF mode, then use AutoEncode or the One Click encoder while specifying a bitrate, and MeGUI will switch to automated 2 pass encoding for you, but you can't include any audio in the Auto Encode/One Click encoding job or it'll be included in the the over-all bitrate calculations.... unless of course you already know the audio bitrate, in which case you can probably add it to your desired video bitrate, specify that bitrate when setting up an AutoEncode or One Click encoding job while including the audio, and logically the video bitrate should end up being correct.

im setting the bitrate in the encoder setting of x264 of megui if you choose the 2 pass encode beside it has the bitrate am i right 1000 for the default, then i change that to 425 or something but when i finished on encoding that 425 bitrate will change to 302 sometimes its lower than that, when i check the mediainfo the bitrate change but i wanna try what your suggestion that leave the encoder to CRF never try that before, but i wanna ask if that is important if the bitrate change once you done on encoding? sorry im just a newbie on encoding i just wanna be good at this coz of my job in editing videos....thanks

vornok
26th December 2012, 06:04
Where are you setting the birate? Do you use the AutoEncode option to add your encodes to the job queue? If so, the file size/bitrate you enter in the AutoEncode window is the over-all file size/bitrate, including the audio (after it's re-encoded, if applicable) and it'll over-ride any bitrate settings in the x264 encoder configuration. I'm pretty sure the One Click encoder works the same way. If you enter a file size/bitrate, the audio bitrate will be included in the calculations.

There's a few ways around it, such as adding the audio and encoding jobs to the queue individually, with the encoder set up for automated 2 pass encoding using your desire bitrate, then use one of MeGUI's muxers from the Tools menu to combine them into a single file when the encoding jobs are done.

If you set up the x264 encoder using automated 2 pass encoding and your desired bitrate, both AutoEncode and the One Click encoder should give you the correct bitrate as long as you don't specify a new one (or a file size). Then you should be able to add the audio to an AutoEncode or One Click encoding job without it effecting the video bitrate.

Alternatively you can just leave the x264 encoder in CRF mode, then use AutoEncode or the One Click encoder while specifying a bitrate, and MeGUI will switch to automated 2 pass encoding for you, but you can't include any audio in the Auto Encode/One Click encoding job or it'll be included in the the over-all bitrate calculations.... unless of course you already know the audio bitrate, in which case you can probably add it to your desired video bitrate, specify that bitrate when setting up an AutoEncode or One Click encoding job while including the audio, and logically the video bitrate should end up being correct.

geez i get it now man thanks for your guide you really save me there thanks :thanks: :thanks: thanks for your time...