Skip to content

Instantly share code, notes, and snippets.

@worthlesscog
Created June 17, 2013 17:58
Show Gist options
  • Save worthlesscog/5798815 to your computer and use it in GitHub Desktop.
Save worthlesscog/5798815 to your computer and use it in GitHub Desktop.
Quicktime conversion using ffmpeg, mplayer and sox
#!/bin/bash
ffmpeg -probesize 500000000 -i $1.mov -vcodec copy -an video.mov
mplayer $1.mov -dumpaudio -dumpfile $1.raw
sox -e signed-integer -b 24 -L -c 16 -r 48000 $1.raw $1.flac channels 2
ffmpeg -i video.mov -i $1.flac -vcodec libx264 $1.mp4
rm video.mov $1.raw $1.flac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment