ffmpeg -f concat -safe 0 -i mylist.txt -c copy output_file
Split audio and video tracks
- ffmpeg -i input_file -map 0:v video_output_file -map 0:a audio_output_file
+ ffmpeg -i input_file -map 0:v:0 video_output_file -map 0:a:0 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 streams are desired.
- ffmpeg
- starts the command