you are here: codestackercodes [RSS] → tag bash [RSS]

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

popular commands in your shell

my results:

146 svn
91 ./script/server
90 cd
38 ls
19 ssh
18 mate
12 rake
11 sudo
8 ping
8 find

history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn|head -10
Displaying all 2 Code