I have some screencast video files in mp4 container (h.264/mp3 codecs) that I want at times merge (i.e. C.mp4 = A.mp4+B.mp4) or at times cut removing some intervals (e.g. D.mp4 = A.mp4[0,320{seconds}]+A.mp4[325,340]+C.mp4).
I am now using kdenlive, it woks but it re-encode everything and it seems a bit too much for such a task.
Is there a simpler way to do that without re-encoding (even, and perhaps preferred, command line or stable Python/Julia/R/.. library way) ?
I am thinking at something like PDFtk for the pdfs :-))
PS: Following suggestions from a related question I did try ffmpeg -ss 00:00:05 -to 00:00:10 -i test1.mp4 test2.mp4
but I got the error:
Option to (record or transcode stop time) cannot be applied to input url test1.mp4 -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
I would like to be able to specify several start/stop times from a single or perhaps multiple input files.
EDIT: More I look, more I find complicate solutions. My files are exactly the same codec/container/resolution..