Python 2.7/3.5+ powered ffmpeg utilities. You need to have ffmpeg installed separately.
% python mp4_cut.py -e 11:44 -i inputfile.mp4 -o outputfile.mp4
Note that you don't have to use the leading zeros for the hours. The general call is the following:
% python mp4_cut.py -s [hh]:mm:ss -e [hh]:mm:ss -i inputfile.mp4 -o outputfile.mp4
Using your own inputfile
and outputfile
.
% python mp4_cut.py -s 15:00 -e 17:34 -i inputfile.mp4 -o outputfile.mp4
You can also take the complement of the selected slice by using the
--invert
flag
% python mp4_cut.py --invert -s 15:00 -e 17:34 -i inputfile.mp4 -o outputfile.mp4
The two complementary parts are joined to make the output file.