nginx rtmp out of sync

  • Posted on February 15, 2022
  • 10b284edd685fee1f21a4d47623f3bAsked by Dace Cole

I am using nginx rtmp on my server. I push iptv m3u8 using ffmpeg to my nginx rtmp server. Video stream plays from my server but after 4-5 minutes, video freezes for 5-10 seconds but audio plays continuously. After 10 seconds when video starts from freezing point then audio goes 10 seconds ahead and video is 10 seconds back. So it becomes out of sync. If I reload the player page then it becomes sync again. And again after 4-5 minutes same freezing and sync issue comes. On starting, video audio stay sync for 4-5 minutes. After freezing of video it becomes out of sync. I use hls video player on my website. If I push same iptv m3u8 to vk or twitch then there is not any issue like this. Video plays continuously without any issue. How can I solve it?

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
October 25, 2022

Hi @omshankar-singh,

I’ve not have such issues in the past when I’ve used ffmpeg. What I can recommend in such situations is check if everything is up to date, both your package and your Droplet. Additionally, see if your Droplet is under load this could be causing the issues as well.

Lastly, did you manage to resolve the issue? If yes, I’m eager to hear what was the reason behind this.