question

AmyOlivier-8060 avatar image
0 Votes"
AmyOlivier-8060 asked JohndeuMSFT answered

Azure Media Services open file handling when streaming audio

I am currently working on a structure to stream an audio file using Azure Media Services. Is it possible to stream an audio file from Azure storage such as blob storage while the file is being uploaded and is open? The audio file will most likely be open while we wish to stream it. We want to be able to play the file in "real-time" and be able to replay the file, but the file will be opened for other uses as well. Is this possible?

azure-blob-storageazure-media-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JohndeuMSFT avatar image
1 Vote"
JohndeuMSFT answered AmyOlivier-8060 commented

Sorry, no this is not supported by AMS today. We do not support writing to a VOD file while streaming it.

The only support we have for write while reading is through the LiveEvent API, which requires you to be sending content into us using the RTMP or Smooth Streaming protocol. In that situation, we are actually writing fragments to storage and managing them in a format that our origin streaming servers can understand for delivery while live streaming is coming in.

If you can make your solution work with RTMP or Smooth Ingest protocol format, then you could use the Live event Pass-through mode API to achieve the desired result.

Is your question purely around audio? What is the actual use case scenario you are trying to achieve? Customer experience?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for your answer!

We are trying to identify a certain sound in the audio. The system should give an alarm when this sound has been made and therefore the file will be open, but we want to confirm it through having someone listen to the audio, and therefore have the streaming and replay option. Yes, it's purely audio.

Is the attached architecture only possible with video files?
The architecture that I should be aiming for then should be able to upload the file to archive and directly stream the audio from the source, either through a local or web encoder if the open file will be an issue?

102270-capture.png



0 Votes 0 ·
capture.png (56.6 KiB)
JohndeuMSFT avatar image
1 Vote"
JohndeuMSFT answered

The live Event architecture can support audio only as well. You just have to send in Audio only via RTMP or Smooth ingest protocol.

For your scenario, you may also want to look at just generating HLS static content using FFMPEG directly into storage. That may be all you need. FFMPEG can take an audio stream and write it out as HLS content.
Static HLS content in Azure Storage can still be streamed to any client that supports HLS.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.