On Fri, Oct 26, 2018 at 3:22 PM Ben <[email protected]>
wrote:

> For video codec H.264 there are two parameters:
>
> Framerate (e.g. 25 or 30 or 29,97)
>
>   and
>
> keyframe interval (I guess measured in seconds after the last keyframe
> .e.g 50 or 200):
>
> What are the corresponding cmdline parameters for ffmpeg?
>
> How can I tell ffmpeg to use the same values as the input?
>

FFmpeg will use the same framerate as the input stream, unless the user
overrides it, using `-r` or `fps` or a few other filters

Usually there is no point in mimicking the source keyframe placement. The
encoder will place keyframes as is optimal. But if you insist, add
`-force_key_frames source`. You can also force a fixed keyframe interval
using `-g N` where N is measured in frames (not seconds).

Gyan
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to