ffmpg and memcoder


hardy2@hardy2-laptop:~$ cat .bin/video-flv_png
#!/bin/bash
filename="$@"
filename=${filename%.*}
ffmpeg -sameq -i "$@" -s 640x480 -ar 44100 -r 25 $filename.flv -pass 2
ffmpeg -itsoffset -0 -i "$@" -vcodec png -vframes 1 -an -f rawvideo
-s 640x480 $filename.1.png
ffmpeg -itsoffset -0.5 -i "$@" -vcodec png -vframes 1 -an -f
rawvideo -s 640x480 $filename.2.png
ffmpeg -itsoffset -1 -i "$@" -vcodec png -vframes 1 -an -f rawvideo
-s 640x480 $filename.3.png

by dotanchoen.com