Created
June 17, 2013 17:58
-
-
Save worthlesscog/5798815 to your computer and use it in GitHub Desktop.
Quicktime conversion using ffmpeg, mplayer and sox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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