+
+
+
Split audio and video tracks
+
ffmpeg -i [input file] -map 0:0 [video output file] -map 0:1 [audio output file]
+
+
This command splits the original input file into a video and audio stream. The -map command identifies which streams are mapped to which file. To ensure that you’re mapping the right streams to the right file, run ffprobe before writing the script to identify which stream is 0:0, which is 0:1, etc.
+
+
+ - ffmpeg: calls the program
+ - -i: tells ffmpeg to expect input file
+ - [input file]: the file you want to split
+ - -map 0:0: tells ffmpeg to grab one of the streams, and identifies the first stream (stream 0:0) to map
+ - [video output file]: desired filename for the video output file
+ - -map 0:1: tells ffmpeg to grab one of the streams, and identifies the second stream (stream 0:1) to map
+ - [audio output file]: desired filename for the audio output file
+
+
+