[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent programmingDateTime and duration in HLS m3u8 file #6506

Closed
oleul05 opened this issue Jul 18, 2024 · 7 comments
Closed

Inconsistent programmingDateTime and duration in HLS m3u8 file #6506

oleul05 opened this issue Jul 18, 2024 · 7 comments
Assignees

Comments

@oleul05
Copy link
oleul05 commented Jul 18, 2024

Thank you for your continued support.
We are saving programDateTime and duration by parsing m3u8 playlist. For one camera we observed we got some future date and abnormal duration. For few .ts files I observed date is 30th June 2024 which is a future date. The files duration was 72,30 28 seconds which is strange to us.
I have attached a screenshot from MongoDB where we saved the information.
Note: In AMS setting, duration is set to 2 seconds, and most cameras are working fine.

  • Operating system and version: Ubuntu 20.04
  • Java version: 17
  • Ant Media Server version: Enterprise Edition 2.8.2 20240201_1142
  • Browser name and version: all browser

Steps to reproduce

  1. Start RTMP stream from LTE camera into Ant Media RTMP server
  2. Check HLS m3h8 file for that stream.
  3. In m3u8 file the programDateTime is future date and duration is inconsistent.

Expected behavior

programDateTime is current date and duration is 2 seconds.

Actual behavior

programDateTime is future date and duration is inconsistent.

attachment

@oleul05
Copy link
Author
oleul05 commented Jul 18, 2024

@mekya, @burak-58 ,
In the LTE camera settings, setting the Frame Rate (FPS) to 20 and GOP (100ms) to 20 provides the expected results. Also ts file size was not same. Any other Frame Rate and GOP values lead to incorrect duration and program date time in the .m3u8 file.
image

@burak-58
Copy link
Contributor

Hi @oleul05
Could you please do a test with ffmpeg like that:

  • Run this command to convert RTMP ingest to HLS:
    ffmpeg -listen 1 -i rtmp://IP_ADDRESS:1935/live -c copy -hls_flags program_date_time -f hls output.m3u8

  • Then stream your camera to:
    rtmp://IP_ADDRESS:1935/live

Then check HLS files.

@mekya mekya moved this to 📋 Backlog in Ant Media Server Aug 12, 2024
@mekya
Copy link
Contributor
mekya commented Aug 12, 2024

I've encountered the same problem and it causes the server to return wrong internal when asking m3u8 with start and end query parameters. I mean it causes that issue #6308

This issue may be the same with that one mentioned above

@lastpeony
Copy link
Contributor
lastpeony commented Aug 16, 2024

Hello @oleul05,

How long into the streaming do you encounter this issue? Is it reproducible after a few minutes?

Have you tested the problematic camera with non-integer GOP and frame rate values, such as 36/30? What were the GOP and FPS settings when you experienced the problem?

When using integer GOP FPS ratio, like GOP: 30 FPS: 30 or GOP: 60 FPS: 30, do you still encounter this issue?

We suspect that a non-integer GOP/ FPS ratio might be causing this problem. I am attempting to reproduce the issue with ffmpeg but haven't had success so far.

@oleul05
Copy link
Author
oleul05 commented Aug 20, 2024

@lastpeony We get this issue immediately after starting the stream.
When using the GOP FPS ration 20/20 in this case it was working fine. On the all other ration like 30/20 we got unexpected results.

@burak-58 burak-58 moved this from 📋 Backlog to Next Sprint in Ant Media Server Sep 9, 2024
@lastpeony
Copy link
Contributor

We conducted a test with @oleul05 using different GOP and FPS combinations.

We were able to reproduce the issue on version 2.8, but could not replicate it on version 2.11.3.

If you're experiencing this problem, please upgrade to version 2.11.3 (the latest as of today).

@burak-58
Copy link
Contributor

I am closing this because didn't get response from @oleul05 and any further report with this scenario.

@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Ant Media Server Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

4 participants