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.27k stars 628 forks source link

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

Open MuSe-funky-Developer opened 1 year ago

MuSe-funky-Developer commented 1 year ago

Issue

Short description

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

Environment

AWS Setup

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

I love it/you! Thx for solving! U are wonderful

— Von unterwegs gesendet

Am 27.11.2022 um 20:49 schrieb Selim Emre Toy @.***>:



Hi @MuSe-funky-Developerhttps://github.com/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]https://user-images.githubusercontent.com/9084130/204156416-bcb4359d-89fc-4275-a4b4-260c70805107.png

Best Regards, Selim

— Reply to this email directly, view it on GitHubhttps://github.com/ant-media/Ant-Media-Server/issues/4549#issuecomment-1328325990, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM2TJPP4PNYKSJ7YVY3FYGDWKO3MPANCNFSM6AAAAAAR4QS5OM. You are receiving this because you were mentioned.Message ID: @.***>

avinashtrivedi11 commented 1 year ago

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 commented 1 year ago

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

Mohit-3196 commented 1 year ago

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

Thank you, Mohit Dubey

Mohit-3196 commented 1 year ago

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

avinashtrivedi11 commented 1 year ago

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

Mohit-3196 commented 1 year ago

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