[FFmpeg-user] force_key_frames

Anatol anatol2002 at gmail.com
Mon Feb 2 08:04:39 CET 2015


Your cmd-line forces only one kf at "00:00:02.333".
You should either explicitly write down ALL kf's that u want -
"2,4,6,8,...3600",
or use an equation - 'expr:gte(t,n_forced*2)', this one for 2 sec gop

On Mon, Feb 2, 2015 at 8:14 AM, Jean-Georges Fritsch <
jgfritsch-at-yahoo.com at ffmpeg.org> wrote:

> Hello I have been trying to use ffmpeg (version 2.5.3) to insert key frame
> in am H.264/mpeg transport stream. But no key frame gets inserted.
> Here is the command line:ffmpeg  -i input.ts -force_key_frames:v 70
> -acodec copy -vcodec copy -async 1 -y output.tsor
> ffmpeg  -i input.ts -force_key_frames:v 00:00:02.333 -acodec copy -vcodec
> copy -async 1 -y output.ts
> Let me know what I am doing wrong. BTW I see the output stream contains
> PAT/PMT before every frame. Is is the expected behavior?
> Thx,
> JGF
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list