Skip to content

Instantly share code, notes, and snippets.

@zouppen
Created December 28, 2013 20:28
Show Gist options
  • Save zouppen/8163859 to your computer and use it in GitHub Desktop.
Save zouppen/8163859 to your computer and use it in GitHub Desktop.
Extracts MPEG audio from Flash Video files
#!/bin/sh -eu
#
# Unwraps Flash Video container and removes video (if any) from given file and outputs .mp4 file which may be
# played back with almost any device you own. No re-encoding is performed so the quality stays the same as in
# original.
#
# Suggested use with yle-dl, Youtube downloader, etc.
ffmpeg -i "$1" -vn -acodec copy "`basename "$1" .flv`.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment