How to use WME in ASP.NET application

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi!

I want to use Windows Media Encoder for webLive Streaming using Webcam
in ASP.NET application. Plz give Ur valuable suggestion.

Operation System : Window 2000 Professional
.NET Framework 1.1

I used Window Media encoder SDK's Broadcast stream example in ASP.NET
applications. It given

Error Details
---------------
"Exception Details: System.Runtime.InteropServices.COMException: Unspecified
error
Source Error:
Line 60:
Line 61: // Start the encoding process.
Line 62: Encoder.PrepareToEncode(true);
Line 63:
Line 64: Encoder.Start();
".

My Source code
-------------------
WMEncoderApp EncoderApp = new WMEncoderApp();
IWMEncoder Encoder = EncoderApp.Encoder;

// Display the predefined Encoder UI.
EncoderApp.Visible = false;

// Specify the source for the input stream.
IWMEncSourceGroupCollection SrcGrpColl = Encoder.SourceGroupCollection;
IWMEncSourceGroup SrcGrp = SrcGrpColl.Add("SG_1");
IWMEncVideoSource2 SrcVid =
(IWMEncVideoSource2)SrcGrp.AddSource(WMENC_SOURCE_TYPE.WMENC_VIDEO);
//SrcVid.SetInput("Default_Video_Device", "Device", "");
SrcVid.SetInput("VideoCAM Trek", "Device", "");


// Specify a profile.
IWMEncProfile Pro;
IWMEncProfileCollection ProColl = Encoder.ProfileCollection;

for (int i = 0; i < ProColl.Count; i++)
{
Pro = ProColl.Item(i);
if (Pro.Name == "Windows Media Video 8 for Local Area Network (384
Kbps)")
{
SrcGrp.set_Profile(Pro);
break;
}
}

// Create a broadcast.
//IWMEncBroadcast BrdCst = Encoder.Broadcast;
//BrdCst.set_PortNumber(WMENC_BROADCAST_PROTOCOL.WMENC_PROTOCOL_HTTP,
2526);

IWMEncFile f = Encoder.File;
f.LocalFileName = Server.MapPath("output.wmv");

// Start the encoding process.
Encoder.PrepareToEncode(true);

Encoder.Start();

Plz Help me.
.



Relevant Pages

  • windows Media Encoder in ASP.NET (WEB live streaming(Webcam) ASP.N
    ... I want to use Windows Media Encoder for webLive Streaming using Webcam ... I used Window Media encoder SDK's Broadcast stream example in ASP.NET ... IWMEncoder Encoder = EncoderApp.Encoder; ...
    (microsoft.public.windowsmedia.encoder)
  • Re: Error: The encoding process was unable to keep up with the amo
    ... You can change the language from en-us to pt-pt in the URL as below: ... I downloaded Windows Media Encoder and got it working in terms of producing ... the audio stream and the video stream may queue ... The following file is available for download from the Microsoft Download ...
    (microsoft.public.windowsmedia.encoder)
  • Re: OT: Webcam / Image capture software
    ... Kevin Stone wrote: ... > I've an old digital camera which I've rooted out. ... > stream, and still pics, which I can then potentially upload to the web. ... Windows Media Encoder. ...
    (uk.rec.motorcycles)
  • Re: Securing Windows Media Encoder streams/broadcasts
    ... Server to stream your content, but i dont remember anyway to do it just ... FREE tool like Windows Media Encoder (which is not intended to stream ...
    (microsoft.public.windowsmedia.encoder)
  • FP2007+WMF11SDK kills Digital Rights Management
    ... DRM prior to upgrading to FP2007. ... the Windows Media Encoder application will not save its settings after ... You can then re-open it and use it to encode a non-DRM stream ... Install capture card and drivers. ...
    (microsoft.public.windowsxp.embedded)