QUOTE
If it's anything like encoding WAV through the command line, it shouldn't be that hard for me to pick it up.
it is just like that only that you need to feed the encoder with the yv12 data, so intermediate step is necessary, using avisynth;
CODE
avisource("myclip.avi")
converttoyv12()
here is an example of the procedure;
QUOTE
1. - avisynth 2.5x
http://www.doom9.org/index.html?/software2.htmnotepad, input avi is of DV type:
DirectShowsource("film.avi").info
#remove .info before encoding
LanczosResize(512,384)
assumefps(25)
ConvertToYV12
save as film.avs
2. - x264.exe
http://x264.nl/ (x264-xxx-install.exe) or
http://forum.doom9.org/showthread.php?t=89979 x264 -B 500 -o "film.mp4" film.avs
3. -mp4box
http://forum.doom9.org/showthread.php?t=94874mp4box -add film.mp4 film_final.mp4
4. -mplayer
http://www.mplayerhq.hu or
http://oss.netfarm.it/mplayer-win32.phpextract audio from avi:
mplayer -ao pcm -vo null film.avi
5. -faac
http://www.rarewares.org/aac.htmlfaac -b 128 --mpeg-vers 4 audiodump.wav
6. muxing and hinting:
mp4box -add audiodump.aac film_final.mp4 -hint
7. delete some temporary files:
del audiodump.*
del film.mp4