Extract raw audio stream from video file without re-encoding
First we must determine the type of audio in the video wrapper, so we run:
+-------------------------------------------------------
| ==> ffmpeg -i video.flv
+-------------------------------------------------------
FFMPEG reports this to the console:
+-------------------------------------------------------
| Duration: 00:03:20.20, start: 0.000000, bitrate: 704 kb/s
| Stream #0:0: Video: h264 (Main), yuv420p, 480x360 [SAR 1:1 DAR 4:3], 616 kb/
| s, 25 tbr, 1k tbn, 2k tbc
| Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp, 96 kb/s
| At least one output file must be specified
+-------------------------------------------------------
The audio is aac, so now can we run our extraction command:
+-------------------------------------------------------
| ==> ffmpeg -i video.flv -vn -acodec copy audio.aac
+-------------------------------------------------------
First we must determine the type of audio in the video wrapper, so we run:
+-------------------------------------------------------
| ==> ffmpeg -i video.flv
+-------------------------------------------------------
FFMPEG reports this to the console:
+-------------------------------------------------------
| Duration: 00:03:20.20, start: 0.000000, bitrate: 704 kb/s
| Stream #0:0: Video: h264 (Main), yuv420p, 480x360 [SAR 1:1 DAR 4:3], 616 kb/
| s, 25 tbr, 1k tbn, 2k tbc
| Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp, 96 kb/s
| At least one output file must be specified
+-------------------------------------------------------
The audio is aac, so now can we run our extraction command:
+-------------------------------------------------------
| ==> ffmpeg -i video.flv -vn -acodec copy audio.aac
+-------------------------------------------------------