encode VP6 FLVs
using mencoder and Video For Windows codecs
-> http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-video-for-windows.html
you'll need a vp6vfw.dll -> http://www.mplayerhq.hu/MPlayer/releases/codecs/
get all-*.tar.bz and extract to /usr/local/lib/win32/
to compile the vfw2menc tool, you'll need wine-dev:
sudo apt-get install wine-dev
(note: depending on your repos this might also be wine1.2-dev)
there might be better ways to get vfw2menc, but I simply got the mplayer source from SVN:
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd mplayer/TOOLS/
winegcc vfw2menc.c -o vfw2menc -lwinmm -lole32
(note: on a 64bit system: winegcc -m32 vfw2menc.c -o vfw2menc -lwinmm -lole32)
then use the tool to create a settings file for encoding vp6: vfw2menc -f VP62 -d vp6vfw.dll -s onepass.mcf
and finally encode:
mencoder input_movie.avi -o output_movie.flv -of lavf \
-ovc vfw -xvfwopts codec=vp6vfw.dll:compdata=onepass.mcf -vf yadif,scale=320:240,flip \
-oac mp3lame -lameopts cbr:br=64 -af lavcresample=22050
to add metadata to your files:
sudo apt-get install flvtool2
flvtool2 -U output_movie.flv
