Pushing using wmenc sdk and dcom
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Pushing using wmenc sdk and dcom

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media Server
Author Message
Mark Hankey
Guest





Posted: Mon Oct 24, 2005 8:30 am    Post subject: Pushing using wmenc sdk and dcom Reply with quote

Hi,
I'm posting this in the server group because I believe it's related to
the server side configuration (please let me know if not).

I am trying to push to the server using the windows media encoder sdk.
I can do everything except use the function
IWMEncPushDistribution.GenerateMulticastInfoFile
when I call this function I get the wierd message 'The specified server
could not be found'. I say wierd because I've already authenticated
myself to that very same server using the OnAcquireCredentials event.

If I run the Windows Media Encoder Announce Broadcast wizard I get
exactly the same message (not too surprising really).

The user i am authenticating as has DCOM priviledges set up as
described in this post:
http://groups.google.com.au/group/microsoft.public.windowsmedia.server/browse_thread/thread/e280c1eba2c328a3/34f65bebd127922e?lnk=st&q=push+to+server+dcom&rnum=1&hl=en#34f65bebd127922e

Also I've made changes to the registry as described here:
http://support.microsoft.com/kb/189416


I'm at my wits end with this one... and running out of time.
I can think of workarounds (creating shares I can write to and using
my own announcements) but I would consider this a bit of a hack.
Given that these functions are there I'd like to use them :)

I have also found a few references to this problem apropos the
windows media encoder message... but no indications as to any
solutions. Any help much appreciated.

regards
Mark

ps: Here's a snippet of my Delphi code ... and some afterthoughts


Encoder.Load(s_wme_file);
iPushDist.PublishingPoint := 'Test1234_Live';
iPushDist.Template := 'Template';
iPushDist.PortNumber[WMENC_PROTOCOL_PUSH_DISTRIBUTION] := 8971;

NSCURL := '\\myserver\share\Test1234_Live.nsc';
ASXFile := '\\myserver\share\Test1234_Live.asx';
NSCURL := '\\myserver\share\Test_Live.nsc';

// This triggers the authentication request.
Encoder.PrepareToEncode(true);
try
iPushDist.GenerateMulticastInfoFile(NSCFile);
iPushDist.GenerateAnnouncementFile(NSCURL,ASXFile);
except on e: Exception do
ShowMessage(' FAILED TO CREATE ANNOUNCEMENTS !!'+#$D#$A+
'ServerName = '+iPushDist.ServerName+#$D#$A+
'PublishingPoint =
'+iPushDist.PublishingPoint+#$D#$A+
'Template = '+iPushDist.Template+#$D#$A+
'PortNumber =
'+IntToStr(iPushDist.PortNumber[WMENC_PROTOCOL_PUSH_DISTRIBUTION]));
end;
Encoder.Start;

The sdk doco is a bit stingy for the two functions I'm calling here
(GenerateMulticastInfoFile & GenerateAnnouncementFile) and the exact
requirements of the args (ie: should they point to existing resources?
why does the NSCFile arg contain path info etc), so I'm also a bit
confused by that.

thanks in advance ;)

Back to top
Ravi Raman
Guest





Posted: Thu Oct 27, 2005 8:30 am    Post subject: RE: Pushing using wmenc sdk and dcom Reply with quote

Who are you logged on as on the encoder and does that account have
permissions on the server (i.e., not the one on acquire credentials, but your
actual account you are logged on as)?

I am guessing that when the DCOM connection is made, it may not used the
credentials that you entered in AcquireCredentials but instead try to use the
currently logged on user session.

I presume that if you are not using multicast, everything works?

A quick check is (if you are in a domain setup): If you are logged on as
DOMAIN\ABCD on the encoder, then add Domain\ABCD with appropriate DCOM
permissions (or for testing purposes, add as Admin) on the server and see if
the scenario works.

Just a suggestion...

Thx,
Ravi Raman.

"Mark Hankey" wrote:

Quote:
Hi,
I'm posting this in the server group because I believe it's related to
the server side configuration (please let me know if not).

I am trying to push to the server using the windows media encoder sdk.
I can do everything except use the function
IWMEncPushDistribution.GenerateMulticastInfoFile
when I call this function I get the wierd message 'The specified server
could not be found'. I say wierd because I've already authenticated
myself to that very same server using the OnAcquireCredentials event.

If I run the Windows Media Encoder Announce Broadcast wizard I get
exactly the same message (not too surprising really).

The user i am authenticating as has DCOM priviledges set up as
described in this post:
http://groups.google.com.au/group/microsoft.public.windowsmedia.server/browse_thread/thread/e280c1eba2c328a3/34f65bebd127922e?lnk=st&q=push+to+server+dcom&rnum=1&hl=en#34f65bebd127922e

Also I've made changes to the registry as described here:
http://support.microsoft.com/kb/189416


I'm at my wits end with this one... and running out of time.
I can think of workarounds (creating shares I can write to and using
my own announcements) but I would consider this a bit of a hack.
Given that these functions are there I'd like to use them :)

I have also found a few references to this problem apropos the
windows media encoder message... but no indications as to any
solutions. Any help much appreciated.

regards
Mark

ps: Here's a snippet of my Delphi code ... and some afterthoughts


Encoder.Load(s_wme_file);
iPushDist.PublishingPoint := 'Test1234_Live';
iPushDist.Template := 'Template';
iPushDist.PortNumber[WMENC_PROTOCOL_PUSH_DISTRIBUTION] := 8971;

NSCURL := '\\myserver\share\Test1234_Live.nsc';
ASXFile := '\\myserver\share\Test1234_Live.asx';
NSCURL := '\\myserver\share\Test_Live.nsc';

// This triggers the authentication request.
Encoder.PrepareToEncode(true);
try
iPushDist.GenerateMulticastInfoFile(NSCFile);
iPushDist.GenerateAnnouncementFile(NSCURL,ASXFile);
except on e: Exception do
ShowMessage(' FAILED TO CREATE ANNOUNCEMENTS !!'+#$D#$A+
'ServerName = '+iPushDist.ServerName+#$D#$A+
'PublishingPoint =
'+iPushDist.PublishingPoint+#$D#$A+
'Template = '+iPushDist.Template+#$D#$A+
'PortNumber =
'+IntToStr(iPushDist.PortNumber[WMENC_PROTOCOL_PUSH_DISTRIBUTION]));
end;
Encoder.Start;

The sdk doco is a bit stingy for the two functions I'm calling here
(GenerateMulticastInfoFile & GenerateAnnouncementFile) and the exact
requirements of the args (ie: should they point to existing resources?
why does the NSCFile arg contain path info etc), so I'm also a bit
confused by that.

thanks in advance ;)

Back to top
Mark Hankey
Guest





Posted: Fri Nov 04, 2005 9:30 am    Post subject: Re: Pushing using wmenc sdk and dcom Reply with quote

Yes, thankyou. It must use the credentials from the login not the ones
given in the AcquireCredentials event for DCOM purposes.
Makes sense I suppose.

This brings me to another question:
when I couldn't get the GenerateMulticastInfoFile &
GenerateAnnouncementFile functions
to operate, I did a manual writing of the Announcement
files (and manual copy of the .nsc file also). One advantage
was that this enabled me to set such things as WMContentBitrate
and WMThinning URL modifiers in the announcements, so different
announcements can be created for Hi, Med & Low bwidth streams.

Is this a good approach? Is there a way I can do this Using the
GenerateAnnouncementFile function?

thanks again for your help Ravi :)

regards
Mark

Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB