Adjusting keyframe rate ffmpeg/v4l2 Logitech C920 to YouTube Live

Adjusting keyframe rate ffmpeg/v4l2 Logitech C920 to YouTube Live 图片 1

I am trying to stream video from a Logitech c920 to YouTube live via ffmpeg. I have a setup that works in Twitch, but YouTube rejects the stream with the message:

Please use a keyframe frequency of four seconds or less. Currently, keyframes are not being sent often enough, which will cause buffering. The current keyframe frequency is 9.9 seconds.

My command looks like this:

And in the logs ffmpeg gives this message:

[video4linux2,v4l2 @ 0x2965ec0] The driver changed the time per frame from 1/60 to 1/30

Does anyone know a way to force the camera, v4l2 or ffmpeg to provide keyframes at a suitable rate?

Thanks.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论