本文介绍了EE3 SDK指定音频配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我无法为实时编码会话自定义音频配置文件。这是我的代码片段。如何使用WM9编码器枚举视频和音频配置文件?I can't seem to customize the audio profile for a live encoding session. Here's a snippet of my code. How can I enumerate the video and audio profiles like I could with the WM9 encoder? Dim vidProfile As 新 MainVC1VideoProfile vidProfile.Bitrate =Dim vidProfile As New MainVC1VideoProfilevidProfile.Bitrate = 新 ConstantBitrate(100) vidProfile.Complexity = VideoComplexity.BestNew ConstantBitrate(100)vidProfile.Complexity = VideoComplexity.Best vidProfile.Size =vidProfile.Size = 新 System.Drawing.Size(320,240)New System.Drawing.Size(320, 240) Dim audProfile 作为 新 WmaAudioProfile audProfile.Bitrate =Dim audProfile As New WmaAudioProfileaudProfile.Bitrate = 新 ConstantBitrate(20) audProfile.Channels = 2New ConstantBitrate(20)audProfile.Channels = 2 audProfile.Codec = AudioCodec.WmaaudProfile.Codec = AudioCodec.Wma '将输出设置为广播并设置端口 Dim 输出 作为 新 WindowsMediaBroadcastOutputFormat output.BroadcastPort = 8082Dim output As New WindowsMediaBroadcastOutputFormatoutput.BroadcastPort = 8082 output.VideoProfile = vidProfileoutput.VideoProfile = vidProfile output.AudioProfile = audProfileoutput.AudioProfile = audProfile job.OutputFormat = outputjob.OutputFormat = output job.StartEncoding()job.StartEncoding()推荐答案视频配置文件几乎可以使用您选择的任何设置。音频配置文件需要匹配系统中找到的一个。你可以列举代码如下的那些。The video profiles can use pretty much whatever settings you choose. The audio profiles need to match one of the ones found on the system. You can enumerate those with code something like the following.foreach (AudioProfile audioProfile in LocalProfiles.AudioProfiles){ // Code to look at each audioProfile // to decide which one you want. ...} 希望有所帮助。问候院长。Hope that helps.RegardsDean. 这篇关于EE3 SDK指定音频配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-14 01:06