[MEncoder-users] error converting mp4(h264 + aac) to mpg

Nico Sabbi nicola_sabbi at fastwebnet.it
Thu Aug 16 22:32:16 CEST 2007


Lucas Linard wrote:
> HI I use this command to convert some files to mpg (pal dvd):
> mencoder "$1" -o "/dev/null" -oac lavc -ovc lavc -of mpeg -mpegopts
> format=dvd:tsaf -vf crop=704:400:0:0,scale=710:556,expand=720:576 -srate
> 48000 -af lavcresample=48000 -lavcopts
> vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=18:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9:cgop:sc_threshold=1000000000:vpass=1:turbo
> -ofps 24000/1001

vstrict had better set to 1. BTW, why did you set such a strange 
sc_threshold value? they had better be negative instead

> 
> mencoder "$1" -o "$2" -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf
> -vf crop=704:400:0:0,scale=710:556,expand=720:576 -srate 48000 -af
> lavcresample=48000 -lavcopts
> vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=18:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9:cgop:sc_threshold=1000000000:vpass=2
> -ofps 24000/1001
> 
> It works well, but when I use mp4 (h264 + aac) i keep getting this error:
> "Pos: 551.4s  13779f ( 0%) 60.90fps Trem:   0min   0mb  A-V:0.085 [1872:192]
> Skipping frame!
> [h264 @ 0xe27b00]no frame!60.90fps Trem:   0min   0mb  A-V:0.047 [1872:192]
> Error while decoding frame!
> Pos: 552.1s  13799f ( 0%) 60.91fps Trem:   0min   0mb  A-V:0.085 [1871:192]
> Skipping frame!
> [h264 @ 0xe27b00]no frame!60.92fps Trem:   0min   0mb  A-V:0.047 [1871:192]
> Error while decoding frame!
> "
> 

the nominal framerate of teh original file must be wrong.
If you know the right value add -fps 25 (or the correct value)



More information about the MEncoder-users mailing list