Batch ripping easy with Bash and FFMPEG

If you just want a quick rip of a directory full of videos all you need is Bash and FFMPEG to do the trick. Try this little Bash script I wrote, of course you can add all kinds of switches to the FFMPEG command line but I kept it simple. This way you can add what switches you prefer for your version.

-------------- code snippet -----------------------

# Convert video for iPod/iPhone

for i in `find $DIR -type f`;
ffmpeg -i $i $i.mp4
ffmpeg -itsoffset -4 -i $i -vcodec mjpeg -vframes 1 -an -f rawvideo -s 200x200 $i.jpg

------------ end snippet ---------------------------

This will batch render all video files in the directory you specify and attempt to make a thumbnail of each movie. This of course renders them to the iPod/iPhone format of *.mp4. Hope this helps somebody...



  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
More information about formatting options