OUR NETWORK:TouchSmart Community TiVo Community TechLore MediaSmart Home DVRplayground See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 440460.0
July 9, 2008 04:35 PM

Categories: Classic

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

drlove

Member
Joined: 07/09/2008

Hi,

I would like to know if it is possible to open more than one slingplayer at the same time.

Im working for a tv cable company and we need to watch Olympic from different cities on the same PC . It will be on a fast PC with a great video card. We have over 20 slingbox.

There is a way to do this? Slingplayer open once only, so I can't open lots of "TV" at the same time.

thanks for your help.

Discussion:    Add a Comment | Comments 1-20 of 24 | Latest Comment | 1 2 Next »

July 9, 2008 8:48 PM

Search here for "multiple instance". The only way I know of that anyone has done it is with VMWare or other 3rd party programs.

Slinging Tivo Series 2, Tivo HD, and TW cable from a Pro. Slinging Tivo HD from a Solo, Slinging Humax DRT800, and TW cable from a Classic to Sprint Mogul, AT&T SX66, N62, 8525, and Dell Inspiron 8600 with Sprint EVDO over Windstream DSL.

August 12, 2008 8:12 AM updated: August 12, 2008 8:53 AM

SlingPlayer creates a mutex with the name "SlingAppMutex" and checks for this on startup to ensure another copy isn't already running.  If the mutex is present, it gives the warning message and exits.

I can get multiple copies of the player running (although I don't have 2 slingboxes to connect to in order to test fully) by changing the name of that mutex in the executable binary with a hex editor.

 Edit: Or you could write an application to remotely close the handle and therefore destroy the mutex.  You can do this interactively with Process Explorer for example.

August 12, 2008 3:47 PM

pcbbc said: SlingPlayer creates a mutex with the name "SlingAppMutex" and checks for this on startup to ensure another copy isn't already running.  If the mutex is present, it gives the warning message and exits. I can get multiple copies of the player running (although I don't have 2 slingboxes to connect to in order to test fully) by changing the name of that mutex in the executable binary with a hex editor.  Edit: Or you could write an application to remotely close the handle and therefore destroy the mutex.  You can do this interactively with Process Explorer for example.
Interesting.... I don't have 2 slingboxes either, but I'd wonder how the audio situation would work out.

August 12, 2008 4:13 PM

Hi guys!
thanks for the infos!
I try with "sandboxie" it worked..but if I open more then 2 slingbox..it still works but after 2 mins or more, one of the slingbox become crazy and stream 2mbits or more and "freeze"..black picture...I even try 12 at the same times!Im on a 38Mbits link.(very fast..)

After I try virtual PC with 4 windows running..way too slow!..

For now I took 4 PC with each a slingplayer..this way it doesn't freeze. We need to monitor the Olympics..for now I can only monitor our mains cities.

I will try your tips. But I guess it will freeze like with sandboxie.... :((

August 13, 2008 6:05 AM

drlove said: Hi guys! thanks for the infos! I try with "sandboxie" it worked..but if I open more then 2 slingbox..it still works but after 2 mins or more, one of the slingbox become crazy and stream 2mbits or more and "freeze"..black picture...I even try 12 at the same times!Im on a 38Mbits link.(very fast..) After I try virtual PC with 4 windows running..way too slow!.. For now I took 4 PC with each a slingplayer..this way it doesn't freeze. We need to monitor the Olympics..for now I can only monitor our mains cities. I will try your tips. But I guess it will freeze like with sandboxie.... :((
The sound will probably be fine.  Gone are the days when the application has direct access to a single channel on the sound card.  Windows is perfectly capable of providing virtual sound channels to applications and mixing them, either in software or by the sound card itself, in to a single combined stream.

Of course the output would be a little overwhelming with 8 channels at once, but you could mute all but one of the players.  And I guess in this application the sound isn't actually that important.

 
With regard to the sandboxing, I've not used that.  But it's significantly more complicated than running the applications independently.  Although I can perhaps see how multiple players may get confused anyway.

Some things I would try:
  • Turn off the sling optimisation and manually set the stream parameters to a lower bitrate.  Player, Slingplayer options, Encoding.  This will stop all the palyers competing with each other for available bandwidth.
  • Connect via direct connection with IP address and port, rather than slingfinder ID.  It's an outside chance, as after it has discovered the box I expect the connection is just the same, but it may make a difference.

If this does work, it's a simple matter to knock up a "launcher" application which closes the mutex and starts the player.  I could look into this for you if you prove the concept.

 
Instructions for closing mutex with process explorer:
  • Find, File handle or DLL...
  • Type "SlingAppMutex" without quotes, and click Search
  • Double click the result in the search box
  • Right click the found item in the lower PE pane, and select Close Handle
  • OK the resulting dialogue box

August 13, 2008 6:44 AM

Thanks for the infos!! It works perfectly..Im running 9 Slingplayer at the same time..and for now none freeze! bandwidth of 340kbps each... :))thanks again!I don't use sound,I mute all them, except if I need to hear one for monitoring. And yes I can get the sound of the 9 slingbox at the same times..weird to ehar but it works! thanks again!

August 13, 2008 7:05 AM

I did a little screenshot to show you :)) it's on my pc, just for tests.

the first slingbox that you open will always make a black screen..but the other ones can appear in the screenshot (weird!)

http://media3.dropshots.com/photos/392206/20080813/b_075900.jpg

Enjoy!! 9 SLingbox at the same time!

August 13, 2008 7:06 AM

drlove said: Thanks for the infos!! It works perfectly..Im running 9 Slingplayer at the same time..and for now none freeze! bandwidth of 340kbps each... :))thanks again!I don't use sound,I mute all them, except if I need to hear one for monitoring. And yes I can get the sound of the 9 slingbox at the same times..weird to ehar but it works! thanks again!

How are you closing the mutex?  With PE I suppose?

Would you like an application to do it and launch a new SlingPlayer instance?

August 13, 2008 7:22 AM

drlove said: I did a little screenshot to show you :)) it's on my pc, just for tests. the first slingbox that you open will always make a black screen..but the other ones can appear in the screenshot (weird!)

 Cool Laughing

The first player you open gets the hardware acceleration available through the video card.  Basically it has it's own dedicated video memory just for the video, and then the card overlays that with the rest of the Windows screen using dedicated on board hardware.

After that the other instances of the player have to output their video directly to the Windows screen on their own, as the card only supports one application using video acceleration at a time.  When you copy and paste a screen grap, Windows only gives you the Windows screen area - as it doesn't know about the separate video area.  Hence the SlingPlayer using the acceleration appears blank.

This is always the same for most programs that use video, for example software DVD players.  To get a screen grab you need to turn the Hardware Acceleration off in Display Properties, Advanced, Troubleshoot tab.

Glad I was able to help, and the screen grab is great!

August 13, 2008 7:36 AM

pcbbc said:
drlove said: Thanks for the infos!! It works perfectly..Im running 9 Slingplayer at the same time..and for now none freeze! bandwidth of 340kbps each... :))thanks again!I don't use sound,I mute all them, except if I need to hear one for monitoring. And yes I can get the sound of the 9 slingbox at the same times..weird to ehar but it works! thanks again!
How are you closing the mutex?  With PE I suppose? Would you like an application to do it and launch a new SlingPlayer instance?

Hi pcbbc,

Im using PE :))

Thanks for the infos about the screenshot.

Of course I would love it if you can make something more automatic, but I don't want you to work hours of time for me :)

 Now more than 1h..no freeze!

August 13, 2008 7:47 AM

drlove said:Hi pcbbc, Im using PE :)) Thanks for the infos about the screenshot. Of course I would love it if you can make something more automatic, but I don't want you to work hours of time for me :)  Now more than 1h..no freeze!

It's simple, but requires a little research - I will enjoy doing it, and learn from it.  And if it's useful to you and others then it is worth doing anyway.  I shall take a look at the weekend and post back.

I'm wondering what the cause of the freeze was.  A problem with sandboxie, or with the players competing for bandwidth.  Either way it doesn't really matter now, as setting fixed bandwidth has resolved the problem.  It's probably better that way anyway.

August 13, 2008 8:02 PM

Okay, here's a starter for 10 - SlingLauncher.

  • Unzip this EXE to your SlingPlayer directory, usually C:\Program Files\Sling Media\SlingPlayer.
  • You can then create a shortcut to it from your desktop or start menu.
  • Each time you run the application it will close the mutex and start a new instance of the player. Cool

I've noticed that if I save away the SBCore.ini file, it remembers the player Window positions and last connected slingbox.  There's also an option to reconnect automatically to the last box.  If I make a few more changes to restore and save this file to a unique backup, it might be possible to create a really slick launcher that fires up your 9 windows all in the right place and connected to the correct boxes!

That will have to wait for the weekend though.  Hope the launcher is useful to you for the time being.

August 13, 2008 10:27 PM

Interesting stuff.
You could make the SBCore.ini fie read only and that would make it so any changes to the settings can't be written to it.

Have a Sansa device or MP3 player, then check out The latest!
Follow Me on Twitter

August 14, 2008 5:20 AM

Hi guys!!
Thanks for all your help!
pcbbc I downloaded your .exe and tried it..for me it doesn't work, maybe I do it wrong? I start 1 slingplayer, start your .exe and try to open a second slingplayer, still the warning message..

August 14, 2008 5:46 AM updated: August 14, 2008 6:00 AM

drlove said: Hi guys!! Thanks for all your help! pcbbc I downloaded your .exe and tried it..for me it doesn't work, maybe I do it wrong? I start 1 slingplayer, start your .exe and try to open a second slingplayer, still the warning message..

Sorry - You need to put my SlingLauncher.exe in the same directory as SlingPlayer.exe

That's "C:\Program Files\Sling Media\SlingPlayer" on my system.

You do NOT need to launch SlingPlayer separately.  When you start my application it will automatically start the player for you, assuming it is in the right directory.  Although that shouldn't stop it closing the Mutex?

Perhaps it started the second copy of the player over the top of the first?  Or perhaps there is something wrong in my code like you say.

Edit: One question if I may.  When you cfind the Mutex file handle in Process Explorer, what is its full name?

I am looking for the full name of "\BaseNamedObjects\SlingAppMutex" which I suppose might be different on your system?

Also what OS are you running please?

August 15, 2008 2:34 PM updated: August 15, 2008 4:08 PM

Cool works on new V2.0 BETA ( XP and Vista 32 ).. will write a service to do this ..


Note: follow instruction as directed ..download Process explorer from URL specified earlier. (this is not task manager)

Find the Mutex Handle

Double click and close the handle ( will be in bottom pane)

Now: You can connected to a second Slingbox

repeat process to create a third session .. etc


thanks
Richard

August 17, 2008 4:38 AM

rsaulnie said: Note: follow instruction as directed ..download Process explorer from URL specified earlier. (this is not task manager) Find the Mutex Handle Double click and close the handle ( will be in bottom pane) Now: You can connected to a second Slingbox repeat process to create a third session .. etc thanks Richard

Sorry - I'm not quite sure why you're clarifying this as a reply to my post?  Especially as I wrote them and drlove has already successfully followed them? Undecided

In my post of August 14, 2008 1:02 AM you'll see I've already written an application that should launch a new player instance by first closing the mutex handle of any already open player.

This works perfectly for me on XP Pro SP 3.  However drlove seems to be having problems getting it to work for him.  So I was wondering if the mutex name (\BaseNamedObjects\SlingAppMutex) is exactly the same on his system, as that is what I am looking for in order to identify the handle to close.

August 17, 2008 8:44 AM

Hi

Doesn't seem to work for me using Vista Home Premium. I start SlingLauncher and after about 20 seconds the first instance of Slingplayer starts. Run SlingLauncher again and nothing happens.

Checking in PE I can see both instances of SlingLauncher but only the first one has an 'attached' Slingplayer.

And I can confirm that the mutex name is \BaseNamedObjects\SlingAppMutex

But if I try and manually close that by right clicking and selecting 'Close Process' I get the error message 'Handle Invalid'. I guess SlingLauncher is having the same problem.

Al

August 17, 2008 10:18 AM

Alan Richey said: Hi Doesn't seem to work for me using Vista Home Premium. I start SlingLauncher and after about 20 seconds the first instance of Slingplayer starts. Run SlingLauncher again and nothing happens. Checking in PE I can see both instances of SlingLauncher but only the first one has an 'attached' Slingplayer. And I can confirm that the mutex name is \BaseNamedObjects\SlingAppMutex But if I try and manually close that by right clicking and selecting 'Close Process' I get the error message 'Handle Invalid'. I guess SlingLauncher is having the same problem. Al

Are you connecting the second player instance to a second sling box? Only one client can be connected at any one time.

"Handle Invalid" not sure on this, are you running as Administrator or debug? Maybe an issue?

Richard 

August 17, 2008 10:20 AM

pcbbc said:  I was wondering if the mutex name (\BaseNamedObjects\SlingAppMutex) is exactly the same on his system, as that is what I am looking for in order to identify the handle to close.
It would be highly unlikely that the mutex name would change even across releases.

Discussion:    Add a Comment | Back to Top | Comments 1-20 of 24 | Latest Comment | 1 2 Next »

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window