[MPlayer-users] Can somebody explain this? (and some trouble with mpeg muxer as well - i guess)

Vijay Gill vijay.s.gill at gmail.com
Wed Mar 8 03:59:36 CET 2006


Hi,
   I use mencoder to encode my mythtv recording into DVD compliant MPEG2
format.

   If I use profiles (mencoder config fille provided at the end), then speed
is half of what I get by not using profiles and passing all those parameters
in command line. Examples of command lines are provided at the end of the
mail.

   The problem with the muxer (which I assume is a problem because and old
version of mencoder (CVS of 2006-01-13 ) does the job without any problem)
is that it starts throwing following messages almost 10-20 seconds down the
line during encoding and the resulting file does not play(freezes) or has
sound problem.

ERROR: SCR: 1853355569, APTS: 1812234240, DELTA=-0.446 secs,
COMPENSATE=7139, BR: 16000, lens: 2020/2020, frames: 5
ERROR: SCR: 1875721296, APTS: 1823293440, DELTA=-0.569 secs,
COMPENSATE=9102, BR: 16000, lens: 2020/2020, frames: 5
ERROR: SCR: 1881307549, APTS: 1834352640, DELTA=-0.509 secs,
COMPENSATE=8151, BR: 16000, lens: 2020/2020, frames: 5
ERROR: SCR: 1886893802, APTS: 1845411840, DELTA=-0.450 secs,
COMPENSATE=7201, BR: 16000, lens: 2020/2020, frames: 6

I have not tried to find which day's CVS version actually started causing
this but definitely after the date mentioned above.

Regards from

Vijay Gill

*******  Using profiles ***********
  mencoder -profile common,mp2,dvd -demuxer rawvideo -audiofile ./audout
-audio-demuxer 20 -rawaudio rate=48000:channels=2 -rawvideo
fps=25:h=576:w=720 ./vidout -o "/myth/tmp/work/The Simpsons-Bart the
Mother.mpg"

*******  Using command line params ***********
 mencoder.working $frames -noskip -skiplimit 0 -mc 0 -sws 2 -hr-edl-seek
-oac lavc -lavcopts acodec=mp2:abitrate=128 -ovc lavc -lavcopts
vcodec=mpeg2video:cbp:umv:last_pred=0:preme=2:mbd=2:vqblur=0:mbqmin=1:vqmin=1:vrc_buf_size=1835:vbitrate=3000:vrc_maxrate=3000:nr=400:dc=11:trell=1:dia=6:aspect=4/3:keyint=25:vmax_b_frames=2:vstrict=-1:scplx_mask=
0.5:lmin=0.3:intra_matrix=8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37,12,14,18,27,29,34,37,38,22,26,27,31,36,37,38,40,26,27,29,36,39,38,40,48,27,29,34,37,38,40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79
:inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26,28,30,32,34,22,24,26,30,32,32,34,36,24,26,28,32,34,34,36,38,26,28,30,32,34,36,38,40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,42,44:vpass=$pass
-of mpeg -mpegopts format=dvd -vf crop=,scale=352:288:0:0:0.00:0.75 -demuxer
rawvideo -audiofile ./audout -audio-demuxer 20 -rawaudio
rate=48000:channels=2 -rawvideo fps=25:h=576:w=720 ./vidout -o
"/myth/tmp/work/The Simpsons-Bart the Mother.mpg"

******* My mencoder conf file from .mplayer directory in my home folder
*******

[common]
profile-desc="Common parameters for all encodings. DO NOT USE!!!"
noskip=1
skiplimit=0
mc=0
sws=2
hr-edl-seek=yes

[mp3]
profile-desc="MP3 encoding - 128kbps"
oac=mp3lame=yes
lameopts=aq=5:cbr=1:vbr=0:mode=1:br=128
af=delay=250:250

[ac3]
profile-desc="AC3 encoding - 6 channels 384 kbps"
oac=lavc=yes
lavcopts=acodec=ac3:abitrate=384
af=channels=6:4:0:0:0:3:1:2:1:4,sub=250:5,center=1
channels=6
af=delay=250:250

[mp2]
profile-desc="MPEG2 audio - 128kbps"
oac=lavc=yes
lavcopts=acodec=mp2:abitrate=128
af=delay=250:250

[xvidc]
profile-desc="XviD encoding - Cartoons"
profile=common
ovc=xvid=yes
xvidencopts=bitrate=900:me_quality=6:max_bframes=2:hq_ac=1:trellis=1:cartoon=1:quant_type=mpeg:vhq=4:bvhq=1:chroma_opt=1:aspe
ct=4.0/3.0
of=avi=1
vf=lavcdeint=1,crop=688:560:16:6,scale=512:384

[xvid]
profile-desc="XviD encoding - Movies"
profile=common
ovc=xvid=yes
xvidencopts=bitrate=1200:me_quality=6:max_bframes=2:hq_ac=1:trellis=1:quant_type=mpeg:vhq=4:bvhq=1:chroma_opt=1:aspect=
4.0/3.
0
vf=hqdn3d=1,lavcdeint=1,scale=512:384
of=avi=1
[dvd]
profile-desc="KDVD profile - Full resolution"
profile=common
ovc=lavc=yes
lavcopts=vcodec=mpeg2video:cbp=1:umv=1:last_pred=0:preme=2:mbd=2:vqblur=0:mbqmin=1:vqmin=1:vrc_buf_size=1835:vbitrate=3000:vr
c_maxrate=3000:nr=400:dc=11:trell=1:dia=6:aspect=4/3:keyint=25:vmax_b_frames=2:vstrict=-1:scplx_mask=
0.5:lmin=0.3:intra_matri
x=8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37,12,14,18,27,29,34,37,38,22,26,27,31,36,37,38,40,26,27,29,36,39,38,40,48,27,29,
34,37,38,40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79:inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,3
2,20,22,24,26,28,30,32,34,22,24,26,30,32,32,34,36,24,26,28,32,34,34,36,38,26,28,30,32,34,36,38,40,28,30,32,34,36,38,42,42,30,
32,34,36,38,40,42,44
of=mpeg=yes
mpegopts=format=dvd

[dvdh]
profile-desc="KDVD profile - Half resolution"
profile=common
ovc=lavc=yes
lavcopts=vcodec=mpeg2video:cbp=1:umv=1:last_pred=0:preme=2:mbd=2:vqblur=0:mbqmin=1:vqmin=1:vrc_buf_size=1835:vbitrate=3000:vr
c_maxrate=3000:nr=400:dc=11:trell=1:dia=6:aspect=4/3:keyint=25:vmax_b_frames=2:vstrict=-1:scplx_mask=
0.5:lmin=0.3:intra_matri
x=8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37,12,14,18,27,29,34,37,38,22,26,27,31,36,37,38,40,26,27,29,36,39,38,40,48,27,29,
34,37,38,40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79:inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,3
2,20,22,24,26,28,30,32,34,22,24,26,30,32,32,34,36,24,26,28,32,34,34,36,38,26,28,30,32,34,36,38,40,28,30,32,34,36,38,42,42,30,
32,34,36,38,40,42,44
vf=crop=688:560:16:6,scale=352:288:0:0:0.00:0.75
of=mpeg=yes
mpegopts=format=dvd

[x264]
profile-desc="x264 encoding - AVI file"
profile=common
ovc=x264=yes
x264encopts=bitrate=1200
of=avi=1

************************



More information about the MPlayer-users mailing list