[MEncoder-users] Ipod Video (or missing aac encoding in lavc)

Fredrik Eriksson feffese at yahoo.se
Mon Jul 9 12:06:47 CEST 2007


Everett wrote:
> I was struggling to make ipod compatible vids also; I googled around 
> and found a script called "podencoder."  It works well for using 
> x264 and faac.  It uses MP4Box (part of GPAC) to convert the avi to 
> mp4.  here is the website:
>
> http://diveintomark.org/archives/2007/06/07/howto-batch-encode-video-for-ipod-under-linux-2007-edition
>
> I ended up using my own commands so that I could play around with 
> some -vf options.  I didn't try it with 640x480.  something like 
> this should work for a dvd, and I want to say that most of the 
> x264encopts I pulled out of that very excellent "podencoder" 
> script.
>
> mplayer dvd://1 -dumpstream -dumpfile out.vob
>
> mencoder -oac faac -faacopts br=128:object=2 -channels 2 -srate 
> 48000 -ovc x264 -x264encopts 
> pass=1:turbo=1:bitrate=500:vbv_maxrate=768:vbv_bufsize=244:nocabac:level_idc=13 -vf 
> scale=448:-10,harddup -ofps 24000/1001 in.vob -o out.avi
>
> mencoder -oac faac -faacopts br=128:object=2 -channels 2 -srate 
> 48000 -ovc x264 -x264encopts 
> pass=2:bitrate=500:vbv_maxrate=768:vbv_bufsize=244:nocabac:level_idc=13:qcomp=0.7:me=umh:frameref=5:subq=6:partitions=all:trellis=1:direct_pred=auto:threads=auto -vf 
> scale=448:-10,harddup -ofps 24000/1001 in.vob -o out.avi
>
> MP4Box -aviraw video out.avi
> MP4Box -aviraw audio out.avi
> mv out_audio.raw out.aac
> mv out_video.h264 out.h264
> MP4Box -add out.aac out.mp4
> MP4Box -add out.h264:fps=23.976 out.mp4
>   

This is strange... I tried to use the *exact* same command (with the 
exceptions of using another input file, using -af-adv force=1 for sane 
resampling, and muxing with 24 fps (same as input file) instead of 
23.976), but it won't even play in quicktime (just like all other 
attempts I've done).

I was starting to think that the lavf muxer was broken, since I even got 
segfaults when trying to remux the mplayer output files with MP4Box, but 
if this is supposed to work, then it seems like there is something 
strange with my mencoder... I've tried with revision 23744 (today) as 
well as the latest gentoo ebuild (from 22 june), none of them gave any  
result...

any other ideas?

--
Fredrik Eriksson



More information about the MEncoder-users mailing list