batch convertion: ffmpeg avi -> mpg

#!/bin/sh
for f in *.flv;
do
echo "Processing $f"
ffmpeg -i "$f" -target ntsc-dvd "${f%.flv}.mpg"
done

[ffmpeg] batch screenshot generator from flv

path = "."
videos = Dir["#{path}/*.flv"]
videos.each do |f|
  puts "converting #{f}"
  newFile = f.gsub(".flv", ".jpg")
  system("ffmpeg -itsoffset -4 -i #{f} -vframes 1 -an -f mjpeg -s 320x240 #{newFile}")
end

ffmpeg on mac os leopard

source: http://www.haykranen.nl/2007/11/21/howto-install-and-use-ffmpeg-on-mac-os-x-leopard/
sudo port install ffmpeg +gpl +lame +x264 +xvid

ffmpeg screenshots

ffmpeg -itsoffset -4  -i video.mpeg -vframes 1 -an -f mjpeg -s 320x240 video.jpeg

ffmpeg -i video.flv -vcodec png -ss 00:00:03 -s 320x240 -vframes 1 -an -f rawvideo video.png
Displaying all 4 Code