maxfu
6th September 2006, 14:12
DVDs encoded by TMPGenc and ATI Avivo can be normally played. But DVDs encoded by libavcodec encoders can not be normally played by my Pioneer DV-S737 DVD Player. The disks can be read and part of the disk can be played, but the player will surely stop at some place, just like a computer crashing. I've tried QuEnc FreeEnc and Mencoder. They all have this problem.
Attention: Files encoded by these libavcodec encoders are all open GOP files. And the bitrates of some of the frames are very high. Some of them are over 20000kbps. The bitrate of a normal DVD should be smaller lan 9800kbps if I remember correctly.
Mr_Odwin
6th September 2006, 14:25
Maybe you're encoding is flawed? QuEnc, at least, has a max bitrate function and I struggle to imagine a bitrate spike that high.
maxfu
6th September 2006, 14:29
I used QuEnc and FreeEnc long time ago. I used Mencoder yesterday. And I set the max bitrate to 9800 in the command line. The problem still shows up.
Mr_Odwin
6th September 2006, 14:34
Try something less close to the bone, like 9000 or 8000, and don't forget to factor in the audio bitrate. QuEnc can force closed GOP too.
maxfu
6th September 2006, 14:52
The disks can be read and part of the disk can be played, but the player will surely stop at some place, just like a computer crashing.
manolito
6th September 2006, 15:50
Try to mux / author your encodes with Muxman. IMO this is the ultimate free DVD compliance checker. If Muxman quits then you know that you have VBV buffer problems. (Which means that you should lower your max bitrate). If Muxman does not complain, then I am quite sure that the DVD will play in any standalone player out there. If not, chances are that your standalone is broken...
Cheers
manolito
maxfu
6th September 2006, 17:23
Is there any tool to make the frames which are too big smaller without reencoding the other frames?
maxfu
6th September 2006, 17:33
Can all standalone players play open GOP DVDs?
maxfu
6th September 2006, 17:39
Try to mux / author your encodes with Muxman. IMO this is the ultimate free DVD compliance checker. If Muxman quits then you know that you have VBV buffer problems. (Which means that you should lower your max bitrate). If Muxman does not complain, then I am quite sure that the DVD will play in any standalone player out there. If not, chances are that your standalone is broken...
Cheers
manolito
I've tried Muxman. It really crashed, and a meaasge showed up. It said that the multiplex operation failed, and the failure was probably caused by exessive problem. Is it the VBV buffer problem?
Mug Funky
7th September 2006, 15:19
try quenc (latest build), max BR 8500, 2-pass.
that should work, though pioneer players are known to have problems with almost anything out of the ordinary - the older they are the more probs...
shirohamada
7th September 2006, 20:22
i do get 20000kbps sometimes, when i use high bitrate matrix at q2.
Hellworm
16th September 2006, 12:16
Did you set the buffer size in mencoder?
Sagittaire
4th October 2006, 14:11
I don't remember.
you must use these command for DVD compliance:
vrc_maxrate=9800:vrc_buf_size=1835:me_range=128
Your complete stream multiplexing must be under 10 Mbps. If you choose two DTS files full bitrate at 1500 kbps the max command must be for mencoder:
vrc_maxrate=7000:vrc_buf_size=1835:me_range=128
maxfu
8th October 2006, 15:41
you must use these command for DVD compliance:
vrc_maxrate=9800:vrc_buf_size=1835:me_range=128
Your complete stream multiplexing must be under 10 Mbps. If you choose two DTS files full bitrate at 1500 kbps the max command must be for mencoder:
vrc_maxrate=7000:vrc_buf_size=1835:me_range=128
What does me_range=128 mean?
hank315
8th October 2006, 16:16
me_range means the maximum length of the motion vectors.
For MPEG2 MP@ML max length is 1024 horizontal and 128 vertical.
Because ffmpeg doesn't have separate settings for horizontal/vertical it must be set to 128.
Most players handle longer ME vectors without any problem, Pioneer certainly won't.
maxfu
11th October 2006, 08:06
me_range means the maximum length of the motion vectors.
For MPEG2 MP@ML max length is 1024 horizontal and 128 vertical.
Because ffmpeg doesn't have separate settings for horizontal/vertical it must be set to 128.
Most players handle longer ME vectors without any problem, Pioneer certainly won't.
It still does not work.
Sagittaire
11th October 2006, 11:38
or try that ...
@echo off
@REM -----------------------------------------------------------------------------------------------
@REM
@REM MPEG2 Mencoder Profil
@REM
@REM -----------------------------------------------------------------------------------------------
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >> Output and Input files
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM Input file name
set E_SRC=Encodage-HD.avs
@REM Output file name
set E_VID=MPEG2-2500Kbps.m2v
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >> Rate control settings
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM Set of bitrates
set E_BR=5000
@REM Set of max bitrates (use 9800 max for DVD compliant stream)
set VBV_MBR=25000
@REM Set of max buffer size (use 1835 max for DVD compliant stream)
set VBV_MBS=9781
@REM Set of ratio initial buffer occupency (0.9 is good value)
set VBV_IBO=0.9
@REM Set of first pass quantizer (2 is good value for high bitrate)
set E_IQ=3
@REM Set of min quantizer (1 is good value for high bitrate)
set E_MQ=2
@REM Set of quantizer variability [0.00;1.00] (0.75 is good value)
set E_VQ=0.75
@REM Set of inter quantizer masking [0.00;1.00] (0.00-0.50 is good interval)
set E_PMSK=0.25
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >> GOP structure
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM Set of max interval KFrame (use 15 for DVD PAL and 18 for DVD NTSC)
set E_MIK=15
@REM Set of max BFrames [0;4] (use 2 max for DVD compliant stream)
set E_MBF=2
@REM Set of Adaptative BFrames [0;2] (desactived is 0, fast is 1 and slow is 2)
set E_ABF=2
@REM Set of Slow Adaptative BFrames Refine [0;10] (0 is full search, higher is faster)
set E_SBF=2
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >> Motion estimation settings
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM Set of ME range [0;9999] (use 128 for DVD compliant stream)
set E_RME=128
@REM Set of Rate Distortion Optimisation [0;2] (2 is the best)
set E_RDO=2
@REM Set of diamond size [-99;6] (negatives values are adaptative diamond)
set E_DIA=-6
@REM Set of comparison function for ME [0;2000] (0 is SAD, 1 is SSE, 2 is SADT, +256 for chroma ME)
set E_CMP=2
@REM Set of previous ME [0;2]
set E_PME=2
@REM Set of BFrame refinements [0;4] (Bframe Quality, 4 is best quality)
set E_BFR=4
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >> VUI settings
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM Display Aspect Ratio (4/3 or 16/9 for DVD compliant stream)
set E_DAR=16/9
@REM DC precision [8;10]
set E_DC=8
@REM Framerate (use 25 for PAL and 24000/1001 or 30000/1001 for NTSC)
set E_FPS=24000/1001
@REM Set intra matrix (use coef > 8 for DVD compliant stream with mencoder)
set E_INTRA=8,16,16,16,17,18,21,24,16,16,16,16,17,19,22,25,16,16,17,18,20,22,25,29,16,16,18,21,24,27,31,36,17,17,20,24,30,35,41,47,18,19,22,27,35,44,54,65,21,22,25,31,41,54,70,88,24,25,29,36,47,65,88,115
@REM Set inter matrix (use coef > 8 for DVD compliant stream with mencoder)
set E_INTER=20,20,20,20,21,22,23,24,20,20,20,20,21,22,24,25,20,20,20,21,22,24,26,28,20,20,21,22,24,27,29,32,21,21,22,24,28,31,34,39,22,22,24,27,31,37,42,49,23,24,26,29,34,42,52,60,24,25,28,32,39,49,60,80
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >> Mencoder CLI
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
ECHO.---------------------------------------------------------------
ECHO.First pass ...
ECHO.---------------------------------------------------------------
mencoder.exe -priority idle %E_SRC% -o NUL -ovc lavc -ofps %E_FPS% -lavcopts vcodec=mpeg2video:vpass=1:turbo:sc_factor=1:vqscale=%E_IQ%:keyint=%E_MIK%:vqcomp=%E_VQ%:vmax_b_frames=%E_MBF%:vb_strategy=%E_ABF%:brd_scale=%E_SBF%:vb_qfactor=1.25:vb_qoffset=0.00:vi_qfactor=1.00:vi_qoffset=0.00:me_range=%E_RME%:preme=%E_PME%:dia=1:predia=1:mbd=%E_RDO%:precmp=0:cmp=0:subcmp=0:mv0:last_pred=0:dc=%E_DC%:psnr:aspect=%E_DAR%:inter_matrix=%E_INTER%:intra_matrix=%E_INTRA%:p_mask=%E_PMSK%:vqmin=%E_MQ%:lmin=%E_MQ%:vqblur=0.5 -of rawvideo -ffourcc MPG2
@REM @CLS
ECHO.---------------------------------------------------------------
ECHO.Second pass ...
ECHO.---------------------------------------------------------------
mencoder.exe -priority idle %E_SRC% -o NUL -ovc lavc -ofps %E_FPS% -lavcopts vcodec=mpeg2video:vpass=3:sc_factor=1:vbitrate=%E_BR%:keyint=%E_MIK%:vqcomp=%E_VQ%:vmax_b_frames=%E_MBF%:vb_qfactor=1.25:vb_qoffset=0.00:vi_qfactor=1.00:vi_qoffset=0.00:me_range=%E_RME%:preme=%E_PME%:dia=1:predia=1:mbd=%E_RDO%:precmp=0:cmp=0:subcmp=0:mv0:last_pred=0:dc=%E_DC%:psnr:aspect=%E_DAR%:inter_matrix=%E_INTER%:intra_matrix=%E_INTRA%:p_mask=%E_PMSK%:vqmin=%E_MQ%:lmin=%E_MQ%:vqblur=0.5:vrc_maxrate=%VBV_MBR%:vrc_buf_size=%VBV_MBS%:vrc_strategy=0 -of rawvideo -ffourcc MPG2
@REM @CLS
ECHO.---------------------------------------------------------------
ECHO.Last pass ...
ECHO.---------------------------------------------------------------
mencoder.exe -priority idle %E_SRC% -o %E_VID% -ovc lavc -ofps %E_FPS% -lavcopts vcodec=mpeg2video:vpass=2:sc_factor=1:vbitrate=%E_BR%:keyint=%E_MIK%:vqcomp=%E_VQ%:vmax_b_frames=%E_MBF%:bidir_refine=%E_BFR%:vb_qfactor=1.25:vb_qoffset=0.00:vi_qfactor=1.00:vi_qoffset=0.00:me_range=%E_RME%:preme=%E_PME%:dia=%E_DIA%:predia=%E_DIA%:mbd=%E_RDO%:precmp=%E_CMP%:cmp=%E_CMP%:subcmp=%E_CMP%:mv0:last_pred=3:trell:cbp:dc=%E_DC%:psnr:aspect=%E_DAR%:inter_matrix=%E_INTER%:intra_matrix=%E_INTRA%:p_mask=%E_PMSK%:vqmin=%E_MQ%:lmin=%E_MQ%:vqblur=0.5:vrc_maxrate=%VBV_MBR%:vrc_buf_size=%VBV_MBS%:vrc_strategy=0 -of rawvideo -ffourcc MPG2
@pause
maxfu
24th October 2006, 07:16
Post the command line you are using. This will make it easier for the experts to help you.
REM WinMEnc encoding
mencoder.exe "D:\Sample.avi" -of mpeg -mpegopts format=dvd:telecine -vf-add scale=720:480,harddup -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=5000:turbo:trell:mbd=2:keyint=18:aspect=16/9:vrc_buf_size=1835:vrc_maxrate=9800:dc=10:me_range=128:vpass=1 -nosound -o NUL: 2> 2.txt
mencoder.exe "D:\Sample.avi" -of mpeg -mpegopts format=dvd:telecine -vf-add scale=720:480,harddup -oac copy -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=5000:trell:mbd=2:keyint=18:aspect=16/9:vrc_buf_size=1835:vrc_maxrate=9800:dc=10:me_range=128:vpass=2 -o "D:\Sample.mpeg2.mpg" 2>> 2.txt
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.