Ant-Media-Server icon indicating copy to clipboard operation
Ant-Media-Server copied to clipboard

Live stream recording is out of sync with audio

Open farawaysouthwest opened this issue 1 year ago • 3 comments

Short description

Live stream recordings in .mp4 are sometimes out of sync with audio to video.

This only happens sometimes with no noticeable patterns. We have roughly 20 live event recordings, and only 2-3 of those are out of sync.

The live stream (with the default liveapp) are always synced just fine, and we also simulcast to YouTube from AMS; the Youtube stream and recording are always in sync as well.

This appears to be the exact issue as reported here: #5134

I can provide video examples if that would help, but we are using all default settings for rtmp streaming and mp4 recording on Community v2.70

Environment

  • Operating system and version: Ubuntu 22.04.3
  • Java version: openjdk version "11.0.21" 2023-10-17
  • Ant Media Server version: Community Edition 2.7.0 20231031_0625

Logs

No errors in logs when files are out of sync

farawaysouthwest avatar Dec 13 '23 04:12 farawaysouthwest

Thank you @farawaysouthwest for reporting the issue. Could you please provide some details about the RTMP streaming? For example which tool you are using and provide the settings.

burak-58 avatar Jan 02 '24 10:01 burak-58

Thank you @farawaysouthwest for reporting the issue. Could you please provide some details about the RTMP streaming? For example which tool you are using and provide the settings.

Hi, thank you for the reply! We are using Wirecast following the low latency settings mentioned in your docs.

My org will be streaming tonight and I can get exact settings if that would be helpful?

farawaysouthwest avatar Jan 03 '24 16:01 farawaysouthwest

I do want to stress, the audio sync is always perfect on the live stream, and only sporadically an issue on the mp4 recording, which would make me think that it is not an issue with the RTMP client/encoder?

farawaysouthwest avatar Jan 03 '24 16:01 farawaysouthwest

Hi @farawaysouthwest,

I've update for this issue here

Check this out -> https://github.com/ant-media/Ant-Media-Server/issues/5134#issuecomment-1976224921

PS: Faraway is my other nickname that I use time to time :)

mekya avatar Mar 04 '24 10:03 mekya

It is fixed with https://github.com/ant-media/Ant-Media-Server/pull/6150

If you encounter the same issue, please feel free to reopen it.

burak-58 avatar Mar 18 '24 10:03 burak-58