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.31k stars 637 forks source link

Wrong duration of VOD files after applying filter without ABR #4348

Open yashtandon113 opened 2 years ago

yashtandon113 commented 2 years ago

Short description

The duration of recorded files are wrong after applying filter on the stream without ABR. The issue scenarios are different for RTSP stream source & WebRTC/RTMP.

Environment

Steps to reproduce

Reproduce scenario for RTSP stream source

  1. Configure stream source
  2. Apply any filter
  3. Enable recording of both original stream & filtered stream
  4. Stop the recording
  5. Check the VOD files

Reproduce scenario for RTMP/WebRTC stream

  1. Publish RTMP or WebRTC stream
  2. Apply any filter
  3. Enable recording of both original stream & filtered stream
  4. Stop the recording
  5. Check the VOD files

Expected behavior

Duration of VOD files should be fine in both the cases for all streams.

Actual behavior

For RTSP --> Duration of both VOD files are wrong. For RTMP/WebRTC --> Duration of original stream VOD is fine but filtered stream is wrong.

JCFontoura commented 2 years ago

@yashtandon113 Expected behaviour is inverted with Actual behavior.

This should be the Expected behavior: Duration of VOD files should be fine in both the cases for all streams.

yashtandon113 commented 2 years ago

@JCFontoura Thanks for reminding. I have corrected it.

JCFontoura commented 2 years ago

Hi. Any updates or insights on this issue? @burak-58 Thanks in advance.