我正在尝试将音频和视频从我的PC直播到托管服务上的发布点.我已经编写了我认为应该拥有的所有代码(目前它只是一个小型控制台应用程序中的测试代码).代码本身不会引发错误,它运行得很好,视频从我的摄像头拉,试图将流发送到publishingpoint我得到系统事件一个DCOM错误日志然而,当"DCOM无法与计算机进行通信streamwebtown.com使用任何配置的协议." 我尝试使用SDK附带的实际Expression Encoder 4客户端应用程序做同样的事情,视频/音频源对同一个发布点工作正常.我已经在互联网上广泛搜索,看看是否有其他人遇到过这个问题,但是空了.询问社区是否有任何想法?
应用代码:
static void Main(string[] args)
{
EncoderDevice video = EncoderDevices.FindDevices(EncoderDeviceType.Video).Count > 0 ? EncoderDevices.FindDevices(EncoderDeviceType.Video)[0] : null;
EncoderDevice audio = EncoderDevices.FindDevices(EncoderDeviceType.Audio).Count > 0 ? EncoderDevices.FindDevices(EncoderDeviceType.Audio)[0] : null;
LiveJob job = new LiveJob();
if (video != null && audio != null)
{
LiveDeviceSource source = job.AddDeviceSource(video, audio);
job.ActivateSource(source);
PushBroadcastPublishFormat publishingPoint = new PushBroadcastPublishFormat();
publishingPoint.PublishingPoint = new Uri("http://streamwebtown.com/abc");
publishingPoint.UserName = "user";
publishingPoint.Password = PullPW("Stream");
job.ApplyPreset(LivePresets.VC1Broadband16x9);
job.PublishFormats.Add(publishingPoint);
job.StartEncoding();
Console.ReadKey();
job.StopEncoding();
}
}
private static SecureString PullPW(string pw)
{
SecureString s = new …Run Code Online (Sandbox Code Playgroud) 我已经使用Microsoft Expression Encoder附加了两个视频,这个东西很好用问题是,当我试图追加"wmv"以外的视频时,它给出了FileNot支持的例外情况
我在谷歌搜索但我无法找到解决方案.
private void button1_Click(object sender, EventArgs e)
{
MediaItem mediaItem1 = null;
Job job = new Job();
job.EncodeProgress += new EventHandler<EncodeProgressEventArgs>(job_EncodeProgress);
int count = 0;
//video url contains all urls of videos
foreach (string x in VideosUrls)
{
if (count == 0)
{
mediaItem1 = new MediaItem(x);
job.MediaItems.Add(mediaItem1);
}
else
{
mediaItem1.Sources.Add(new Source(x));
}
count++;
}
job.OutputDirectory = @"C://videoOutput";
job.Encode();
}
Run Code Online (Sandbox Code Playgroud)
有没有办法使用AForge.NET或Microsoft Expression Encoder,所以我可以编程方式将任何'mp4'视频转换为'wmv', …
我试图在使用Microsoft Expression Encoder 3 SDK时证明一个概念.我正在尝试将SDK部署到我的托管Web服务器,以了解更多关于它是否可行以及需要安装的其他内容.
我无法在服务器上运行任何东西.以下是我理解的4个Dll,我需要将其部署在bin文件夹中:
注意:我没有在使用Windows Server 2008的Web服务器上"安装"Expression Encoder.我只是想把dll放在那里.
只要将文件Microsoft.Expression.Encoder.Utilities.dll复制到服务器bin目录,我就会收到错误"无法找到指定的模块".
有没有人知道如何部署Expression Encoder SDK而不在服务器上安装它?如果这是不可能的,它似乎是一个非常巨大的"功能"从SDK中丢失.
asp.net deployment expression-encoder expression-encoder-sdk