[MEncoder-users] quicktime compatible mp4 using x264encopts?

Rich Felker dalias at aerifal.cx
Fri Jun 30 00:40:30 CEST 2006


On Thu, Jun 29, 2006 at 02:48:20PM -0700, Jon Drukman wrote:
> Has anybody successfully generated an .mp4 with H264 video and AAC audio 
> that will play in Quicktime using mencoder + libx264?  I can't get it to 
> work.  The resulting files just cause the player to either crash or 
> complain about invalid data.  It works fine if I use libavcodec's H264 
> options.
> 
> this works:
> 
> mencoder "$1" -oac faac -faacopts mpeg=4:raw:br=128 -ovc lavc -lavcopts 
> vcodec=h264:vbitrate=1200:mbd=2:cmp=2:subcmp=2:trell=yes:v4mv=yes:aic=2:vglobal=1:aglobal=1 
> -of lavf -lavfopts 
> format=mp4:i_certify_that_my_video_stream_does_not_use_b_frames -o test.mp4 
> -frames 300
> 
> this doesn't:
> 
> $bin $1 -ffourcc h264 -ovc x264 \
> -x264encopts 
> subq=6:4x4mv:8x8dct:me=3:frameref=5:bframes=3:b_pyramid:weight_b:bitrate=$bitrate 
> \
> -of lavf -lavfopts 
> format=mp4:i_certify_that_my_video_stream_does_not_use_b_frames \
> -oac lavc -lavcopts acodec=aac  -ofps 30000/1001 -o test264.mp4 -frames 300

Do you really fail to see the irony of the above command line??
Of course it won't work because you told it a lie.

Rich




More information about the MEncoder-users mailing list