amsDeveloper
amsDeveloper

Reputation: 337

Azure Media Services V3 : Encoded Audio File not able to play in Azure Media Player

My Video file encoding and playing has been working well, but encoded Audio only files are not able to play in Azure Media Player. In Media player, it shows the initial loading circle, but never starts playing the audio.

Below is the Transform creation code;

TransformOutput[] outputs = new TransformOutput[]
{
   new TransformOutput
(
     new StandardEncoderPreset
     (
        codecs: new Codec[]
        {
           new AacAudio
           (
             channels: 2,
             samplingRate: 48000,
             bitrate: 128000,
             profile: AacAudioProfile.AacLc
           ),
 
     new H264Video
     (                                  
        keyFrameInterval:TimeSpan.FromSeconds(2),
        layers:  new H264Layer[]
        {
           new H264Layer
          (
             bitrate: 600000,
             width: "640",
             height: "360",
             label: "SD"
          )
        }
     ),
 }

new TransformOutput(analyzerPreset)
};

Upvotes: 0

Views: 138

Answers (1)

David Bristol
David Bristol

Reputation: 631

As per https://blogs.msdn.microsoft.com/randomnumber/2017/06/21/azure-media-player-support-for-audio-only-and-video-only-streams/ and http://amp.azure.net/libs/amp/latest/docs/features.html, audio only streams are not supported by Azure Media Player. To play audio only you'll need to use a different player.

Upvotes: 0

Related Questions