Youtube saying "Please use a keyframe frequency of four seconds or less." #5952
-
Hello OK so I watched a popular YouTube video of how to create a 24/7 YouTube Livestream where he used Linode to connect to Ant Media Server. The issue I'm having is that YouTube says I have poor stream health - see message below: "Please use a keyframe frequency of four seconds or less. Currently, keyframes are not being sent often enough, which can cause buffering. The current keyframe frequency is 6.8 seconds. Note that ingestion errors can cause incorrect GOP (group of pictures) sizes." How can I configure this in Ant Media whilst connected to Linode? Please let me know. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The keyframe frequency and other parameters depend on the VOD file that you are using to create a playlist. The recommended upload encoding settings for YouTube streaming can be found at this link. So in this case, you need to reencode your video with the required parameters. You can use FFMPEG to change the key frame interval. The below command will re-encode the file with a key frame interval of 2. You can also use the HANDBRAKE tool to re-encode the video. Please check out this article. I hope it helps. |
Beta Was this translation helpful? Give feedback.
The keyframe frequency and other parameters depend on the VOD file that you are using to create a playlist.
The recommended upload encoding settings for YouTube streaming can be found at this link.
So in this case, you need to reencode your video with the required parameters.
You can use FFMPEG to change the key frame interval. The below command will re-encode the file with a key frame interval of 2.
ffmpeg -i input.mp4 -qscale 0 -g 2 outputFile.mp4
You can also use the HANDBRAKE tool to re-encode the video. Please check out this article.
I hope it helps.