Hi Simon, Try the command on following document, using the trim filter; Commands to manipulate a video -> Remove video segments (without audio) https://transang.me/practical-ffmpeg-commands-to-manipulate-a-video/#:~:text=setpts%20%3A%20change%20the%20PTS%20(presentation,timestamp)%20of%20the%20frame%20filter.&text=STARTPTS%20%3A%20The%20PTS%20of%20the%20first%20frame.
It has a very detailed explanation. If it works, please come back sharing your result to others Stephen On Sunday, January 9, 2022, 08:38:32 PM GMT+8, Rob Hallam <ffm...@roberthallam.com> wrote: On Sun, 9 Jan 2022 at 11:34, Michael Koch <astroelectro...@t-online.de> wrote: > Is it possible to re-encode only the beginning and the end, and use > -codec copy for the central part? How apropos! * I've been trying to do essentially this for years- it was the reason I subscribed to and posted to this list initially. It would be great to have a mode which has the frame-exact + sync nature of a re-encode, without the re-encode! The trouble I've run into the few times I've tried it is that when I try and glue the parts back together via concat, things do not work nicely. Perhaps if there were a way to replicate all the codec properties of the original stream when re-encoding, it might work; but it's also possible that something else like PTS would throw it off. Rob * typed and posted while waiting on ffmpeg to visually "losslessly" re-encode so that I can do a frame exact cut, currently at 0.601x realtime _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".