FLV Batch file convert with ffmpeg

I just spent some time researching the best way to do a batch convert of flv files to another type. After searching I ended up writing this bash script.

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

This converts all files with extension flv to a ntsc dvd format with file extension mpg. You can tweak it for your needs.

Happy flashing!

I just spent some time

I just spent some time researching the best way to do a batch convert of flv files to another type. After searching I ended up writing this bash script. tinggi badan

FLV Batch file convert with ffmpeg

I can see that you are putting 000-010 a lot of time and effort into your blog and detailed articles! I am deeply in love with every 000-070 single piece of information you post here. Will be back often 000-013 to read more updates in future 000-084 as well.my best wishes for you always so keep it up.regards

Same script for windows

Nice script. But what to do if you are on windows ?

I work a lot with media files and use biterscripting for scripting on windows - I am comfortable with it.

In case someone needs your script for windows, here is a version converted to biterscripting ( http://www.biterscripting.com ) . It will run on windows.

var str list, f
lf -r -n "*.flv" > $list
while ($list <> "")
do
lex "1" $list > $f
echo "Processing " $f
system ffmpeg -i $f -target ntsc-dvd ($f+".mpg")
done

Soj