Converting mpeg/avi/… to flv flash movie under Ubuntu Linux
1) Install ffmpeg in flvtool2 ( sudo apt-get install ffmpeg flvtool2 )
2) Create file avi2flv.sh with the following content(or download it here avi2flv.sh ):
—
#!/bin/bash tempfile=$(tempfile).flv ffmpeg -y -i "$1" -r 20 -s 360x288 -deinterlace -ar 22050 "$tempfile" cat "$tempfile" | flvtool2 -U stdin "$2" rm -rf "$tempfile"
—
3) Run bash avi2flv.sh input.avi output.flv
4) Upload to web and use some free flv player like http://pyg.keonox.com/tests/flash_flv_player/flvplayer.html to display it.