[MPlayer-users] Mencoderpatch for-mpegopts format=dvd (Attn.:Nico)

Nico Sabbi nsabbi at tiscali.it
Mon Dec 6 15:57:23 CET 2004


VJ wrote:

>Hi Nico,
>    You had asked for log files. I tried encoding only first 300 frames of
>the original file to get these logs. The files are called original-??? which
>are from original mencoder and patched-??? are from patched mencoder. At the
>end of the mail is the script I used and I have removed the double occurance
>of lavcopts. The same script was used for both the cases except mencoder was
>replaced by mencoder2 for testing patched version and addition of "-mpegopts
>format=dvd" for the same.
>
>Regards from
>VJ
>************************************
>for pass in 1 2
>do
>
>frames=" -frames 300 "
>rm -f vidout
>rm -f audout
>nice -n 15 mythtranscode --chanid 1003 --starttime
>2004-12-04-13-00-00 --profile auto --honorcutlist --fifodir . 1>/dev/null &
>sleep 5
> mencoder $frames -noskip -skiplimit 0 -mc 0 -sws 2 -ovc lavc -oac
>lavc -lavcopts
>acodec=mp2:abitrate=192:vcodec=mpeg2video:preme=2:mbd=2:vqblur=0:mbqmin=1:vq
>min=1:vrc_buf_size=1835:vbitrate=1293:vrc_maxrate=1293:aspect=1.3333:keyint=
>25:vstrict=-1:scplx_mask=0.5:lmin=0.3:vrc_buf_size=1835: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,3
>4,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 -vf hqdn3d,scale=352:288 -audiofile
>./audout -audio-demuxer 20 -rawaudio rate=48000:channels=2:on -rawvideo
>fps=25:h=576:w=720:on ./vidout -o "/myth/tmp/work/Charade.mpg" 2>err 1>log
>  killmythtranscode #it kills any running instance of mythtranscode
>done
>****************************************
>  
>
>------------------------------------------------------------------------
>

I don't have time to send a fixed patch now, but this is a quick fix:
in libmpdemux/muxer_mpeg.c change in function parse_mpeg12_video()

if(vsh->format == 0x10000001 || vsh->format == 0x10000002)

in

if(1)

(it has to check mmioFOURCC('m','p','g','2') and 
mmioFOURCC('m','p','g','1') too)

and recompile.

    Nico




More information about the MPlayer-users mailing list