Skip to content
Discussion options

You must be logged in to vote

Hi 👋

This is a very common and subtle FFmpeg issue when using -ss with -c copy.
That usually works — but only if the seek point falls exactly on a keyframe. If it doesn’t, FFmpeg can’t start decoding from a partial frame

If you need to trim exactly 0.3 seconds from your video i would recommend decode and re-encode the video.
ffmpeg -i \{\{in_1\}\} -ss 3 -c:v libx264 -c:a aac \{\{out_1\}\}

This one will decode from the beginning, ensuring the cut starts exactly at 3.0s and no corrupted frames are created — though it’s slower and re-encodes the video.

You can also check out Rendi’s FFmpeg Cheat Sheet and specifically trim by time section.

— Yuval, Rendi Team 💜

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jernhenrik0809
Comment options

@yuyuvvall
Comment options

Answer selected by peternaf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants