Azure 媒体服务声音

Azure Media Services Sound

我在C#中使用azure media services上传视频,一切正常,但我编码后的视频似乎没有任何声音,这是为什么?

我认为它会是编码的一部分,如下所示?

            // Prepare a job with a single task to transcode the specified asset
            // into a multi-bitrate asset.

            IJob job = _context.Jobs.CreateWithSingleTask(
                "Media Encoder Standard",
                "Adaptive Streaming",
                asset,
                asset.Name + " Adaptive Bitrate MP4",
                AssetCreationOptions.None);

            Console.WriteLine("Submitting transcoding job...");

            // Submit the job and wait until it is completed.
            job.Submit();

            job = job.StartExecutionProgressTask(
                j =>
                {
                    Console.WriteLine("Job state: {0}", j.State);
                    Console.WriteLine("Job progress: {0:0.##}%", j.GetOverallProgress());
                },
                CancellationToken.None).Result;

            Console.WriteLine("Transcoding job finished.");

            IAsset outputAsset = job.OutputMediaAssets[0];

            return outputAsset;

听起来您想要渐进式下载您的视频资产。 'Adaptive Streaming' 编码配置文件主要用于将要流式传输的视频内容。根据 https://docs.microsoft.com/en-us/azure/media-services/previous/media-services-autogen-bitrate-ladder-with-mes,您应该使用 'Content Adaptive Multiple Bitrate MP4' 编码配置文件,以便它在所有 MP4 中包含音频。 'Adaptive Streaming' 配置文件仅在最低比特率视频中包含音频,因为流式传输时不需要在每个 MP4 中包含音频,因为您不直接访问 MP4 文件,而是访问流式传输协议。