This silly script will take two video files, and spit out a new video file with the frames of each interlaces so you can watch two movies at the same time!!! It also puts the audio from each video in one ear.
It'll probably take a ridiculously long time to generate any video file of substance, so I've uploaded a sample video of two movie trailers run through this script: https://my.mixtape.moe/qzddsq.mp4
Some useful stuff:
- Both the videos MUST have identical framerates
- The longer the videos, the longer it takes to generate the combined one (though that's kinda a given)
- Similar resolutions will look the best
- Quality might be low, that can be changed by editing the last command to change the output format for video and audio.
Usage:
- This script requires some version of Linux, with
ffmpegandsoxinstalled. You can install those by runningsudo apt-get install ffmpeg sox. - Put the script in a new folder, because it creates a bunch of files.
- Place the two video files you want to combine in that folder.
cdto the folder, and then runchmod +x splice.sh, then./splice.sh video1.mov video2.mov, wherevideo1.movandvideo2.movare the filenames of your two videos.- Wait (probably for a long time), and then check out combined.mp4!
- I'm sorry (you're welcome).