Combine video files in linux

To combine mp4/M4V files in linux, we will use MP4Box, so first let’s install it

sudo apt-get install gpac

once installl on terminal let’s type

MP4Box -cat video1.mp4 -cat video2.mp4 -new newVideo.mp4

To combine avi files in linux we will use cat

cat video1.avi video2.avi >newVideo.avi

Now if you play the video, it will show the first video only, now let’s fix it usong mencoder

mencoder -forceidx -oac copy -ovc copy newVideo.avi -o newVideoFixed.avi

One thought on “Combine video files in linux

Leave a Reply

Your email address will not be published. Required fields are marked *