ffmpeg - Merging video files


ffmpeg provide a commands to merge video files together. Below is an example to merge MPEG2-TS files into 1 files

ffmpeg -i concat:"input\\your1.ts|input\\your2.ts" -vcodec copy -acodec copy output\merge.ts

First, the command use a ffmpeg concat function to merge the 2 files. Then, it merge the 2 files into 1 output file by copying the video and audio frames.

See: http://ffmpeg.org/ffmpeg.html#concat

There are other technique to merge video files with FFMPEG. But, personally, I don't like them as they involve too many file container conversion.

http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f

However, both technique is restricted to MPEG-1, MPEG-2 PS, DV format

Comments

Popular posts from this blog

FFMPEG - Creating timelapse with FFMPEG with JPEG

MP4 File Format Part 1

RTSP - RTP over TCP