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

Everett everettraygun at gmail.com
Mon Jul 9 10:14:03 CEST 2007


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






More information about the MEncoder-users mailing list