ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.23k stars 619 forks source link

When broadcast speed falls below 0.05x, the MP4 recording speeds up playback #4838

Open timantmedia opened 1 year ago

timantmedia commented 1 year ago

The attached MP4 recording shows a blinking light which is set to blink at a constant rate. At the very end of the video recording, (time position 43:10) the video playback is accelerated. You can see that the light is blinking at about double the speed.

Streaming is at 30 fps but the recording is at 45 fps when analysing the video file.

The expected playback rate is normal up until the broadcast speed falls to around 0.05x at which point, the playback of the recording is sped up.

Here are the recording and logs https://drive.google.com/drive/folders/1ynpkh1IM89pvnV1vrQ8Ov3ica8zCNuD5?usp=sharing

mekya commented 1 year ago

Hey @timantmedia , Thank you for the issue. Could you please make the recording the public?

Shall we make the issue clear for the one who does not know anything about this issue? So my questions are

Generally reproduce scenario answers the questions above.

shhhhhh16 commented 1 year ago

Hello @mekya, its actually my issue so ill provide as much information as i can.

How is the video being published to the server? The protocol and the tool. Such RTMP, OBS ,etc RTMP Is there any adaptive bitrate settings on the server side? No This problem happens all the time or is it happened one time? All the time after 30-40min of streaming Is there any network issue at the end of the session? No issues on the network side

The device that im using is TBS 2603au encoder amazon link - it has a possibility to connect a webcam into it and stream it as RTMP. It can simultaneously stream two sources HDMI and Webcam and im using both at the same time however webcam goes to 0.05x and the recording is accelerated as @timantmedia posted but meanwhile HDMI stream seems to be fine all the time. I can provide all the additional logs and everything that i needed.

This issue is really critical for me.

mekya commented 1 year ago

Thank you @shhhhhh16

I've increased its priority to schedule faster.

shhhhhh16 commented 1 year ago

I can add that in live preview the video from the webcam looks allright but recording is messed up.

mekya commented 1 year ago

OK @shhhhhh16, this is in our backlog and we'll schedule it when we have some allocatable resources for this issue.

shhhhhh16 commented 1 year ago

Sure, let me know if i can help.

mekya commented 1 year ago

Thank you. I could reproduce this issue on my end and I think it's easy to proceed for now.