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

HLS stream recording S3 - "Add Date-Time to Record File names" #4549

Open
MuSe-funky-Developer opened this issue Nov 10, 2022 · 9 comments
Open

Comments

@MuSe-funky-Developer
Copy link

Issue

Short description

the HLS (m3u8 & ts) files does not have date-time in file name

Environment

AWS Setup

  • Operating system and version:
  • Java version:
  • Ant Media Server version:
  • Browser name and version:

Steps to reproduce

  1. activate "Add Date-Time to Record File names" and s3 recording
  2. record a stream to s3
  3. check s3 storage

Expected behavior

files names have a time and date name and are unique

Actual behavior

file names are all the same and overrides after a while

Logs

Place logs on pastebin or elsewhere and put links here

Join community.antmedia.io and be a part of Ant Media Server Community.

@Mohit-3196
Copy link
Contributor

Hi @MuSe-funky-Developer ,
How are you?

Thank you for the issue.
As far as I understand it is an expected behaviour that hls files do not contain the date and time by nature like MP4 recordings do.
For the hls files (.ts and m3u8) overwriting current files, there are some settings that needs to be configured on the application side. If you can tell me about your use case then I can recommend the best method according to that.

Thank you,
Mohit Dubey

@SelimEmre
Copy link
Contributor

Hi @MuSe-funky-Developer,

I'm adding this feature as an attached image. Is it works for you?
Screenshot 2022-11-27 at 22 47 45

Best Regards,
Selim

@MuSe-funky-Developer
Copy link
Author

MuSe-funky-Developer commented Nov 27, 2022 via email

@avinashtrivedi11
Copy link

avinashtrivedi11 commented Jan 23, 2023

Hey @SelimEmre , I am trying to implement this timestamp feature in my antmedia server. I am using community edition 2.5.3. I tried enabling "Add timestamp to filenames", but that doesn't work. Can you tell me how to use this feature?

@mekya mekya added the support label Jan 30, 2023
@mekya mekya assigned Mohit-3196 and unassigned SelimEmre Jan 30, 2023
@mekya
Copy link
Contributor

mekya commented Jan 30, 2023

Hi @avinashtrivedi11 , I've added my colleague to the loop. He'll respond you.

@Mohit-3196
Copy link
Contributor

Hi @avinashtrivedi11 ,
Let me check this for your and confirm.

Thank you,
Mohit Dubey

@Mohit-3196
Copy link
Contributor

Mohit-3196 commented Feb 3, 2023

Hi @avinashtrivedi11 ,
This settings default value is false. In order to enable this settings, you need to edit the application settings and set the property to true.

  1. Please go to the application settings file
    cd /usr/local/antmedia/webapps/LiveApp/WEB-INF
  2. Edit the application settings file
    sudo vim red5-web.properties
    Add the settings
    settings.addDateTimeToHlsFileName=true
    save the file
  3. Restart the ant media server
    sudo service antmedia restart

Now when you check the streams directoryy, the hls files will have the Date and Time added to them.

Please let me know if it works for you, in case it doesn't then we can do it together.

Thank you,
Mohit Dubey

@Mohit-3196 Mohit-3196 reopened this Feb 3, 2023
@avinashtrivedi11
Copy link

Hey @Mohit-3196, It works. I have already implemented it. Thanks for your reply.

@Mohit-3196
Copy link
Contributor

That's great to know @avinashtrivedi11
Let me know if there is anything else you need help with.
Have a great week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

5 participants