Skip to content

Instantly share code, notes, and snippets.

@xyzgentoo
Created August 12, 2012 09:58
Show Gist options
  • Save xyzgentoo/3330983 to your computer and use it in GitHub Desktop.
Save xyzgentoo/3330983 to your computer and use it in GitHub Desktop.
convert flv to mp4 on linux
#! /bin/bash
function convert_all_to_mp4(){
for file in *.flv ; do
local bname=`basename "$file" .flv`
local mp4name="$bname.mp4"
ffmpeg -i "$file" "$mp4name"
done
}
convert_all_to_mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment