mencoder on linux can merge files if they are all encoded the same way. So, the idea is to re-encode them to be the same. If you do not have lot of motion 1000bits/sec bit rate is fine for a 720p video. If there is lot of motion try 2500 which is what you see usually on Netflix.
mencoder -ovc lavc -lavcopts vocdec=mpeg4:vbitrate=1000 -oac faac file1-in.mp4 file1-out.mp4
mencoder -ovc lavc -lavcopts vocdec=mpeg4:vbitrate=1000 -oac faac file2-in.mp4 file2-out.mp4
mencoder -ovc lavc -lavcopts vocdec=mpeg4:vbitrate=1000 -oac faac file3-in.mp4 file3-out.mp4
mencoder -ovc copy -oac copy file1-out.mp4 file2-out.mp4 file3-out.mp4 -o merged-out.mp4
If you are using Windows platform, try this
http://mplayerwin.sourceforge.net/downloads.html
If you are using Mac platform, try this
http://matt.fragilegeek.com/mencoder
Disclaimer: I did this on Xubuntu 14.04. Just used synaptics package manager to install youtube-dl and mencoder. I am not the right person to tell you how to install mencoder on other platforms. Once you do and have the right codecs, the above command line should work. Good luck.
mencoder -ovc lavc -lavcopts vocdec=mpeg4:vbitrate=1000 -oac faac file1-in.mp4 file1-out.mp4
mencoder -ovc lavc -lavcopts vocdec=mpeg4:vbitrate=1000 -oac faac file2-in.mp4 file2-out.mp4
mencoder -ovc lavc -lavcopts vocdec=mpeg4:vbitrate=1000 -oac faac file3-in.mp4 file3-out.mp4
mencoder -ovc copy -oac copy file1-out.mp4 file2-out.mp4 file3-out.mp4 -o merged-out.mp4
If you are using Windows platform, try this
http://mplayerwin.sourceforge.net/downloads.html
If you are using Mac platform, try this
http://matt.fragilegeek.com/mencoder
Disclaimer: I did this on Xubuntu 14.04. Just used synaptics package manager to install youtube-dl and mencoder. I am not the right person to tell you how to install mencoder on other platforms. Once you do and have the right codecs, the above command line should work. Good luck.
No comments:
Post a Comment