473,756 Members | 5,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PrepareToEncode Encoder SDK (push server) failed???

Hi

I m working on WEBRADIO Software. im using Windows media encoder 9 SDK
on Windows 2003 server using VB.NET.
My current scenario is my soundcard . My application will push my
server the live audio on specific port.

I am using Windows media encoder sdk sample (entire code), currently i
am facing problem in "PrepareToEncod e" (Number Error: 0XC00D2F0C),
entire code is given below:
'============== =============== =======

Imports WMEncoderLib
Public Class Form1
' Declare variables.
Dim WithEvents Encoder As WMEncoder
Dim SrcGrpColl As IWMEncSourceGro upCollection
Dim SrcGrp As IWMEncSourceGro up2
Dim SrcAud As IWMEncAudioSour ce
Dim SrcVid As IWMEncVideoSour ce
Dim ProColl As IWMEncProfileCo llection
Dim Pro As IWMEncProfile
Dim PushDist As IWMEncPushDistr ibution
Dim strServerName As String
Dim strPubPoint As String
Dim strPubTemplate As String
Dim MyNSCFile As String
Dim MyNSCURL As String
Dim MyASXFile As String
Private Function Encoder_OnAcqui reCredentials(B yVal strRealm As
String, ByVal strSite As String, ByVal varUser As Object, ByVal
varPassword As Object, ByVal lngFlags As Long) As Boolean
'strRealm = ""
'strSite = "media.site.com .br"
varUser = "admin"
varPassword = "statesecre t"
lngFlags = 2
'MsgBox("Creden ciais")
End Function

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
' Generate the announcement file.
PushDist.Genera teMulticastInfo File(MyNSCFile)
PushDist.Genera teAnnouncementF ile(MyNSCURL, MyASXFile)

' Start encoding.
Encoder.Start()
MsgBox("Click OK to stop broadcasting.")
Encoder.Stop()
End Sub

Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
' Create a WMEncoder object.
Encoder = New WMEncoder

' Retrieve the source group collection and add sources.
' Use the default devices for the audio and video sources.
SrcGrpColl = Encoder.SourceG roupCollection
SrcGrp = SrcGrpColl.Add( "SG_1")
SrcAud = SrcGrp.AddSourc e(WMENC_SOURCE_ TYPE.WMENC_AUDI O)
SrcVid = SrcGrp.AddSourc e(WMENC_SOURCE_ TYPE.WMENC_VIDE O)

SrcAud.SetInput ("device://default_audio_d evice")
SrcVid.SetInput ("device://default_video_d evice")

' Retrieve the profile collection. This example uses the 3rd
profile.
ProColl = Encoder.Profile Collection
Pro = ProColl.Item(2)
SrcGrp.Profile = Pro

' Set up the push broadcast.
PushDist = Encoder.Broadca st

' Specify the push distribution variables, including the
Windows Media
' server name, publishing point, and announcement files.
' Provide real values for the following placeholders.
strServerName = "media.site.com .br"
strPubPoint = "webradio"
strPubTemplate = "tmp_online "
MyNSCFile = ""
MyNSCURL = ""
MyASXFile = ""

' Remove the publishing point when the broadcast is over.
PushDist.AutoRe movePublishingP oint = True

' Set the push distribution variables.
PushDist.Server Name = strServerName
PushDist.Publis hingPoint = strPubPoint
PushDist.Templa te = strPubTemplate
Encoder.Prepare ToEncode(True)
End Sub
End Class
'============== =============== =======

Could anybody please help me out.
Any hints/ ideas will be highly appreciated.
Thnx
Crisco

Oct 4 '06 #1
0 2811

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
6712
by: Michele | last post by:
Hi all, I have developed a PHP-based website where a "planner" user can make up schedules of activities to be performed, storing them into MySQL tables. Afterwards, other "watcher" users can connect to the website and retrieve closest task due time, and keep retrieving next task after each one has been performed. The problem arises if the planner asynchronously changes the schedule, e.g. deleting the task "watcher" users consider to be...
3
7136
by: Paul Home | last post by:
Hi How come I always encountered this error after executing the following command ? C:\Inetpub\wwwroot\ASP>screnc admin.asp eadmin.asp Scripting encoder object ("Scripting.Encoder") failed on C:\Inetpub\wwwroot\ASP\ admin.asp
5
3143
by: Vilmar Brazão de Oliveira | last post by:
HI there, Does anybody know why Microsoft Script Encoder can not encript(encode) all the page including html, js, vbs and asp parts? - In asp case only encoded the asp part. Page.asp - In html case only encoded script part(js and vbs). Page.htm It follows the page.htm: <html> <head> <title>Entretenimento</title>
0
501
by: rockstar1971 | last post by:
Hello. I’m working with the Windows Media Encoder SDK to create an online jukebox for myself, but I’m having problems getting it to work. Here’s what I want to do: I’ve got a large collection of mp3 files that I listen to at work from my home server. I simply share them out from IIS and then open playlist files in WMP to play lists of songs. This works well fairly well. However, most of my mp3s are encoded at 192kbps or higher,...
3
11584
by: Matt | last post by:
I'm trying to simply convert a .avi file recorded by our program to a wmv file, of course compressed as possible. I've looked at the examples provided by microsoft @ http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmencode/htm/completecodeexamples.asp in both CSharp and VB6. I can't get them to compile. Some of the objects listed (namely the IWMEncVideoSource2 object in CSharp and IWMEncAudioSource and...
14
2831
by: Nick K. | last post by:
I am looking for architecture to push information from a server to a client browser. This information would be in the form of an alert. What I do not want to do is have the browser be on a timer and update every few seconds. What options do I have to put into place such a feature?
1
1664
by: Eric | last post by:
Our .Net installation project includes a custom action that is launched post install. When the msi is run from a desktop, all is fine. We tested an install doing an Active Directory push to client machines and it failed. The application installed but the custom action would not launch and the install hung. The only error message we could find in the Event Viewer was 'Fatal Error', nothing else. A customer of ours was able to...
30
4659
by: mistral | last post by:
Neeed good javascript unescape encoder, to protect javascript code. Some advices? Online tool, or ready javascript only. Any opinions about the Javascript Obfuscator: http://www.javascript-source.com/
0
2841
by: sunny152 | last post by:
Hello Friends, I'm very interested to broadcast our church worship service live on internet.My web server having streaming feature and i have windows media encoder program.I usually use Filezilla FTP program to upload audio/video files to my FTP server.I have recieved only FTP user name,password from the hosting server.Now when i feed live audio/video signal ,the windows encoder is unable to connect to the remote server.I have...
0
9487
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9297
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10069
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9884
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9735
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5324
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2697
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.