Streaming Desktop to TV?

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
BookStream
Posts: 5
Joined: Wed Feb 26, 2014 4:12 am

Streaming Desktop to TV?

Post by BookStream »

Hello,
Just discovered that UMS is a wonderful program, and as soon as one discovers that, ones imagination start running crazy!

So having issues with streaming internet (news, YouTube etc) on my 3 year old Sammy LED TV,I though perhaps it
could be done by using my PC = UMS and the Samsung AllShare (that works flawlessly other wise). Is this at all possible?

So what I want to do is one of these:

1) Use UMS to stream an internet (webaddress) directly to TV via AllShare?
2) Use UMS to (stream?) a copy of PC desktop to TV?

Is this possible? How?

PS. There are many reasons why I don't want to (and can't) use HDMI etc...
BookStream
Posts: 5
Joined: Wed Feb 26, 2014 4:12 am

Re: Streaming Desktop to TV?

Post by BookStream »

So 4 days without answer. I suppose that means that it is not possible?

So far I've only found solutions using Serviio, but I was hoping to avoid having to use both VLC and Serviio.
In addition the Serviio suffers other issues...

BTW. My setup is: Asus i5 Laptop with Win 8.1 + Latest VLC + Latest UMS + Samsung ES5700.
All other streaming works, except for Desktop. Connection is with Ethernet and not WiFi.

I'm sorry if this is a trivial question to all of you A/V experts, but to me this is all black magic, and
I'm impressed with myself even getting this far. So I would very much appreciate any kind of
constructive answer.

Thanks.
Wolfgan
Posts: 370
Joined: Fri Feb 08, 2013 12:33 am

Re: Streaming Desktop to TV?

Post by Wolfgan »

BookStream wrote:Hello,
Just discovered that UMS is a wonderful program, and as soon as one discovers that, ones imagination start running crazy!

So having issues with streaming internet (news, YouTube etc) on my 3 year old Sammy LED TV,I though perhaps it
could be done by using my PC = UMS and the Samsung AllShare (that works flawlessly other wise). Is this at all possible?

So what I want to do is one of these:

1) Use UMS to stream an internet (webaddress) directly to TV via AllShare?
2) Use UMS to (stream?) a copy of PC desktop to TV?

Is this possible? How?

PS. There are many reasons why I don't want to (and can't) use HDMI etc...
Doing it thru DLNA will require hacks :-) as you mention above (ie with VLC) and performance won't be good. I suggest you explore Miracast dongles or some other solution implementing Mirror functionality.
I don't know if http://www.umediaserver.net/umediaserver/index.html may also allow you to do something similar...
-- UMS serving PS3, WDTV, Samsung H6400 + J5500 and Kalemsoft renderers! (no video transcoding but remuxing accepted :D )
User avatar
DeFlanko
Posts: 724
Joined: Thu Jun 21, 2012 3:43 am
Location: San Pedro, CA
Contact:

Re: Streaming Desktop to TV?

Post by DeFlanko »

This feature is being worked on in Development. I believe @subjunk is calling it screencasting.
Wolfgan
Posts: 370
Joined: Fri Feb 08, 2013 12:33 am

Re: Streaming Desktop to TV?

Post by Wolfgan »

DeFlanko wrote:This feature is being worked on in Development. I believe @subjunk is calling it screencasting.
Nice! Will that feature be based on ffmpeg? (https://trac.ffmpeg.org/wiki/How%20to%2 ... h%20FFmpeg)
-- UMS serving PS3, WDTV, Samsung H6400 + J5500 and Kalemsoft renderers! (no video transcoding but remuxing accepted :D )
User avatar
DeFlanko
Posts: 724
Joined: Thu Jun 21, 2012 3:43 am
Location: San Pedro, CA
Contact:

Re: Streaming Desktop to TV?

Post by DeFlanko »

Wolfgan wrote:
DeFlanko wrote:This feature is being worked on in Development. I believe @subjunk is calling it screencasting.
Nice! Will that feature be based on ffmpeg? (https://trac.ffmpeg.org/wiki/How%20to%2 ... h%20FFmpeg)
Possibly im not 100% sure on it... if you check out the github repo i think you'll see the branch there.
BookStream
Posts: 5
Joined: Wed Feb 26, 2014 4:12 am

Re: Streaming Desktop to TV?

Post by BookStream »

Wolfgan wrote:Doing it thru DLNA will require hacks :-) as you mention above (ie with VLC) and performance won't be good. I suggest you explore Miracast dongles or some other solution implementing Mirror functionality.
I tried streaming Desktop with VLC using a very inefficient H264 and in no way optimized, and I was able to get fine results at 15fps. So I think what you're saying is just propaganda for buying more useless and proprietary hardware. Common sense also tell you that Ethernet should be a magnitude faster than Wifi. Finally, I hate more dongles, and Miracast is not free, AFAIK.

DeFlanko wrote:
Wolfgan wrote:
DeFlanko wrote:This feature is being worked on in Development. I believe @subjunk is calling it screencasting.
Nice! Will that feature be based on ffmpeg? (https://trac.ffmpeg.org/wiki/How%20to%2 ... h%20FFmpeg)
Possibly im not 100% sure on it... if you check out the github repo i think you'll see the branch there.
Thanks for quick reply! Two things.
(1) I'd love to see/test this "Screencast", if there is anything workable. Can you point me in the right direction (URL?). If UMS could accomplish this, that would be really great, as I am not happy to have to install (yet another) media player, such as Serviio, to handle this.
(2) Are you saying this could be done with ffmpeg? If so what do we need to push on our ports in order to trick the TV into thinking this is a AllShare thing?

Thanks again.
BookStream
Posts: 5
Joined: Wed Feb 26, 2014 4:12 am

Re: Streaming Desktop to TV?

Post by BookStream »

Seem like there were some kind of similar success from the "Stream TV Capture Card?" thread and the links therein, here and:
How to grab the desktop (screen) with FFmpeg or theFFmpeg Streaming Guide.

However, I'm rather clueless about all this, so I have no idea how to input this stream into UMS. Create some kind of URL link file? (I tried but didn't show up in AllShare.)

BTW. The content of the screencast.py (from thread above) requires "Jumpy" and is:

Code: Select all

# NOTE: Windows screencast requires installing the
# x86 edition of the UScreenCapture DirectShow filter from
# http://www.umediaserver.net/umediaserver/download.html

import sys, os, jumpy

if len(sys.argv) == 1:
        pms.addAction('/Screencast', [sys.argv[0], 'play'], '#monitor')

elif sys.argv[1] == 'play':
        
        if sys.platform.startswith('win32'):
                cmd = 'ffmpeg -y -f dshow -r 30 -s 1920x1080 -threads 0 -i video="UScreenCapture" -c:v mpeg2video -f mpegts -q:v 3 -threads 0 %s' % os.environ['OUTFILE']
        
        elif sys.platform.startswith('linux'):
                cmd = 'ffmpeg -y -f x11grab -r 30 -s 1920x1080 -threads 0 -i :0.0 -c:v mpeg2video -f mpegts -q:v 3 -threads 0 %s' % os.environ['OUTFILE']
        
        else: # mac
                pms.warn('\nSorry\n\nFFmpeg doesn\'t\nsupport screen capture\nin %s' % sys.platform)
                sys.exit(0)
        
        os.system(cmd)

# http://ffmpeg.org/ffmpeg-devices.html
# http://trac.ffmpeg.org/wiki/StreamingGuide
# http://trac.ffmpeg.org/wiki/DirectShow
# http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20grab%20the%20desktop%20%28screen%29%20with%20FFmpeg
[/size]
ums_user
Posts: 1
Joined: Sun Aug 16, 2015 11:22 pm

Re: Streaming Desktop to TV?

Post by ums_user »

Hi,

is the possibility/option to stream Desktop to TV already available in UMS?
If yes, how I can turn it on?

Best regards
infidel
Developer
Posts: 571
Joined: Thu Jul 12, 2012 5:37 am

Re: Streaming Desktop to TV?

Post by infidel »

ums_user wrote:is the possibility/option to stream Desktop to TV already available in UMS?
If yes, how I can turn it on?
Try the capture.py script with the jumpy plugin. Disclaimer: there's a roughly 10 second delay due to transcoding overhead, so it's not really useful for interacting with your desktop in real time :).
Post Reply