Last active
February 23, 2016 09:28
-
-
Save michaelwills/de3d2296110c40ecb80f to your computer and use it in GitHub Desktop.
Revisions
-
michaelwills revised this gist
Feb 23, 2016 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -7,5 +7,6 @@ sox infile.wav -b 16 -s -c 1 -r 16k -t raw outfile.raw # https://trac.ffmpeg.org/wiki/audio%20types # use ffmpeg to extract RAW! audio from video file ffmpeg -i input -f s16le -acodec pcm_s16le output.raw % ffmpeg -i infile.mp4 -f s16le -acodec pcm_s16le -ac 1 -ar 16000 outfile.raw #doh! so simple! But that `-f s16le` looks like it is needed # http://stackoverflow.com/questions/4854513/can-ffmpeg-convert-audio-to-raw-pcm-if-so-how -
michaelwills revised this gist
Feb 23, 2016 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,3 +3,9 @@ # use sox to convert to raw sox infile.wav -b 16 -s -c 1 -r 16k -t raw outfile.raw # https://trac.ffmpeg.org/wiki/audio%20types # use ffmpeg to extract RAW! audio from video file ffmpeg -i input -f s16le -acodec pcm_s16le output.raw % ffmpeg -i infile.mp4 -acodec pcm_s16le -ac 1 -ar 16000 outfile.raw #doh! so simple! -
michaelwills revised this gist
Dec 12, 2015 . No changes.There are no files selected for viewing
-
michaelwills revised this gist
Dec 12, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,4 +2,4 @@ % ffmpeg -i infile.mp4 -acodec pcm_s16le -ac 1 -ar 16000 outfile.wav # use sox to convert to raw sox infile.wav -b 16 -s -c 1 -r 16k -t raw outfile.raw -
michaelwills created this gist
Dec 12, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ # use ffmpeg to extract audio from video file % ffmpeg -i infile.mp4 -acodec pcm_s16le -ac 1 -ar 16000 outfile.wav # use sox to convert to raw sox infile.wav -b 16 -s -c 1 -r 48k -t raw outfile.raw