0

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)
};
amsDeveloper
  • 177
  • 4
  • 14

1 Answers1

0

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.

David Bristol
  • 621
  • 3
  • 6
  • Well, Audio only files which I had encoded couple of months back are still playing well in same Azure Media Player even today! Only those audio files which I am encoding today are not able to play. And, I can see the difference in size of the same encoded file in these 2 months. Also, link you shared are from 2017, so not sure if this is still not supported today in 2019. – amsDeveloper Nov 16 '19 at 00:11
  • What I found is, the Audio plays as it is supposed to in AMP, only when it is encoded with "EncoderNamedPreset.AdaptiveStreaming". Not e.g. with "StandardEncoderPreset". Looks like a bug to me. – amsDeveloper Nov 18 '19 at 06:06