Jump to content
  • 0

Youtube saying "Please use a keyframe frequency of four seconds or less."


al7861
 Share

Question

Hello

OK so I watched a popular YouTube video of how to create a 24/7 YouTube Livestream (link below) where he used Linode to connect to Ant Media Server.

https://www.youtube.com/watch?v=0scjy6Zxzwcwed

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!

Al

 

 

Link to comment
Share on other sites

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0

Hi @al7861
I hope you are doing well.
As I checked the support ticket, my colleague has already suggested a solution to you for encoding the file with a specific key frame.

For users who are facing the same issue.

You can use ffmpeg to change the key frame interval. Below command will encode the file with key frame interval of 2.
 
ffmpeg -i input.mp4 -qscale 0 -g 2 outputFile.mp4

 

Link to comment
Share on other sites

  • 0
Thanks @Yash - I have another issue.
 
Youtube is now saying "The stream's current bit rate (7571.03 Kbps) is higher than the recommended bit rate. We recommend that you use a stream bit rate of 4500 Kbps."
 
Now I did some research and found a command using ffmpeg to set the video to 4500Kbps:
 
ffmpeg -i myvideo.mp4 -b:v 4500K outputFile.mp4
 
When I upload the newly configured video to Ant Media Server and then broadcast it live on Youtube it still says that my bit rate is high - so is there a setting within Ant Media Server to ensure that the video is set to 4500 Kbps because it looks like it just ignores the video's bitrate.  The keyframe frequency was sorted but the bitrate isn't.
 
Please let me know if you know how to fix this issue.
Edited by al7861
Link to comment
Share on other sites

 Share

×
×
  • Create New...