FFMPEG Series Part 2: Joining and Splitting files Joining Files
Link: https://trac.ffmpeg.org/wiki/Concatenate
For lossless files of the same codecs ffmpeg -i "concat:input1.ts|input2.ts|input3.ts" -c copy output.ts For mp4 files, using intermediate files ffmpeg -i input1.mp4 -c copy intermediate1.ts ffmpeg -i input2.mp4 -c copy intermediate2.ts ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy output.tsBrief explanation of the options used in the command:
Brief explanation of the options used in the command:
Use additional scripting to get out chapter marker times, then use above
C. Splitting by Size:
ffmpeg -i input.mp4 -map 0 -c copy -segment_size 50M -segment_times 1 output_%03d.mp4Brief explanation of the options used in the command: