• Skip to main content
  • Skip to primary sidebar

Founder at work

Master the skills to create and launch your next SaaS company

  • About Me
  • Reviews
  • Resources
  • Community
  • Contact
  • Lessons
  • Series
  • Search
  • Login

How to Merge Two Videos Together with the Command Line

September 30, 2018 by Rick Hernandez Leave a Comment

Recently I have been working with a list of video files for JSecademy, and I don’t have the luxury of sitting down for hours at a time and editing every single little small part of a video. MP4Box allows you to stitch two or more videos together to have a final output of a file.

First, you have to Install MP4Box on your operating system.

This is important if you want to have a pre-roll and a post-roll for your videos.

You might be able to do a mid-role if you know where exactly you want to split the video.

Now onto the next part actually merging the files together.

In the example above the flag the flag -cat is used along with -new. The cat flag denotes that the files will be concatenated together and the new flag is the new file that will be created based on the two previous files.

You can find a complete list of all the flags that are possible with MP4Box.

That’s all there is to merge two files together. One note the transition between the videos are hard stops, meaning you will jump from one clip to another instantly.

Talk soon,

Rick H.

Rick Hernandez

I always had a passion for the field of STEM (Science, Technology, Engineering, and Math) and I knew I wanted to do something to make a difference in the world. I just didn’t know where to start. I was an immigrant in a new country, grew up in a tough environment, and wasn’t sure how… Read More

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Related

Filed Under: Artificial Intelligence, Computer Science, Programming

Primary Sidebar

Learn How To Take Your Idea And Convert It Into An App From Scratch Even If You Have Never Written A Single Line Of Code.

  • How to Find Your Next Great App Idea
  • The Secret To Getting PAID To Build Your Own App
  • How To Create Your App (SaaS, Mobile, VR, AR, Game)
  • How To Monetize Your Apps
Learn More
4.82 Ratings

Copyright © 2025 · JSecademy Blog Theme on Genesis Framework · WordPress · Log in