Skip to content

Instantly share code, notes, and snippets.

@cldotdev
Last active January 3, 2016 02:49
Show Gist options
  • Select an option

  • Save cldotdev/8398268 to your computer and use it in GitHub Desktop.

Select an option

Save cldotdev/8398268 to your computer and use it in GitHub Desktop.
wmv to flv with ffmpeg
#!/bin/bash
# Usage: ./wmv2flv.sh <intput.wmv> <output.flv>
if [ $# -eq 0 ]; then
echo "Usage: ./wmv2flv.sh <intput.wmv> <output.flv>"
exit 1
fi
ffmpeg -i $1 -acodec libmp3lame -ar 22050 -ab 96000 -deinterlace \
-nr 500 -aspect 4:3 -r 20 -g 500 -me_range 20 -b 270k -deinterlace \
-f flv -y $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment