I've got an H264 video (Stored in an MP4 file). Each GOP is approx 10s long. I want to trim the first couple of seconds off the video, which means I need to split the first GOP. Is there a way to do this without re-encoding the entire video?
I've got FFmpeg and x264 available. I'm happy to use either the FFmpeg command line, or my own program linked against ffmpeg of x264 libraries.
Thanks in advance!
I think you realize that some re-encoding is unavoidable. You may be able to avoid re-encoding the entire video using the following approach:
-vcodec copy
)ffprobe
.-vcodec copy
to ensure no re-encoding is performed.I've never had to do this, but the FAQ seems to have a section on joining video files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With