[Lazarus] Can I use fpc/Lazarus to edit mp4 files?

Bo Berglund bo.berglund at gmail.com
Thu Feb 28 10:12:02 CET 2019


I am looking for a way to edit mp4 video files by cutting away parts
of the file.
So I am not looking for a way to view and edit the video visually,
rather a file cutting tool where I can use times into the video to cut
away parts between two timestamps.

Preferably as a command line utility that can be scripted.

Is such a thing even possible and if so is it already done?

Something like:
videocut -x33.4-41.1 -x134.9-148.6 myvideo.mp4
where the -x parameter specifies a section to remove.

I don't think that it is possible to just open the file as binary and
write some sections of it into an output file since that would have to
be done based on file position in bytes and I have no idea how video
times relate to the actual file position...


-- 
Bo Berglund
Developer in Sweden



More information about the lazarus mailing list