Azure Media Services open file handling when streaming audio

Amy Olivier 21 Reputation points
2021-06-03T12:43:14.34+00:00

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 Media Services
Azure Media Services
A group of Azure services that includes encoding, format conversion, on-demand streaming, content protection, and live streaming services.
312 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,552 questions
0 comments No comments
{count} votes

Accepted answer
  1. John Deutscher (MSFT) 2,126 Reputation points
    2021-06-03T16:57:36.663+00:00

    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 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. John Deutscher (MSFT) 2,126 Reputation points
    2021-06-04T18:40:53.75+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments