FAQ  •  Register  •  Login

streaming desk top to tv

<<

martyn

DLNA master

Posts: 152

Joined: Tue Oct 11, 2011 3:11 am

Post Sat Jan 07, 2012 5:46 am

streaming desk top to tv

i have read you can do this, is there any tutorials any where ? thanks.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sat Jan 07, 2012 5:59 am

Re: streaming desk top to tv

wiki.serviio.org
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

finnstar

Serviio newbie

Posts: 1

Joined: Sat Jan 07, 2012 3:53 pm

Post Sat Jan 07, 2012 4:00 pm

Re: streaming desk top to tv

hi

there appear to be 2 windows related wiki entries for serviio.

theres regular windows and then theres windows home server

do you guys recommend purchasing windows home server to make better use of serviio streaming?

i am particularly interested in streaming desktop video + audio to my tv via xbox360


currently i have great success with playing audio and video files through serviio to my xbox, just wondering about best way to stream pc desktop... :)
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sat Jan 07, 2012 5:18 pm

Re: streaming desk top to tv

window server and windows run exactly the same, its only useful to use WHS is you are running a Custom headless NAS or server.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Jan 07, 2012 5:59 pm

Re: streaming desk top to tv

also note that the WHS will probably be less powerful PC and streaming desktop requires quite some power.
<<

wapman

Serviio newbie

Posts: 17

Joined: Sat Jan 07, 2012 7:36 am

Post Sun Jan 08, 2012 9:24 am

Re: streaming desk top to tv

Please help!

Why does not my PC (192.168.0.12:8081) show up in the online folder?..does stream has to be on from VLC first?..meaning I have done something wrong setting it up on my PC.

Happy for any help.

Cheers
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Jan 08, 2012 12:16 pm

Re: streaming desk top to tv

The stream has to be running when you add it to the library.

Also try to run this (or replace the URL to whatever you're using, mms/rtsp/http):

  Code:
ffmpeg -i "http://192.168.0.12:8081"


It must return a valid ffmpeg output.
<<

prohna

Serviio newbie

Posts: 2

Joined: Tue Sep 06, 2011 7:08 pm

Post Mon Jan 09, 2012 1:39 am

Re: streaming desk top to tv

Has anyone tried to get it working in a linux environment?
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Mon Jan 09, 2012 3:19 am

Re: streaming desk top to tv

The stream has to be running when you add it to the library.



I've added that to the wiki. Stream Anything to Your TV that your PC can Play http://wiki.serviio.org/doku.php?id=stream_pc

I've also posted this thread as the place for users to post their experiences with getting desktop streaming to work.
<<

wapman

Serviio newbie

Posts: 17

Joined: Sat Jan 07, 2012 7:36 am

Post Mon Jan 09, 2012 8:24 am

Re: streaming desk top to tv

Hi friends,

I am really a happy amateur when it comes to this and I really appreciate your friendly support.

I got the advise to run "ffmpeg -i 192.168.0.12:8081"..I opened the command window and typed that line but it just say "not recognised...."..guess I miss something.

When I run the script from Wiki, VLC opens and it says at the bottom left (status line?) ://dshow, the timer down right is counting. I also get an error message saying VLC can not use unit screen-capture-recorder because it is not a supported type (translated from Swedish..so aprox.)

Any more ideas to get further would be much appreciated.

Cheers
<<

jk50

Serviio lover

Posts: 57

Joined: Mon Jan 09, 2012 9:53 am

Post Mon Jan 09, 2012 10:25 am

Re: streaming desk top to tv

Greetings and thanks to zip for his brilliant work.

Has anyone tried to get it working in a linux environment?


I've got desktop streaming working on Kubuntu 11.10 using vlc 1.3.0 with this vlc command line

  Code:
vlc screen:// :screen-fps=24.000000 :input-slave=alsa://pulse :sout="#transcode{vcodec=mp2v,vb=10000,fps=24,width=1280,acodec=mp3,ab=192,channels=2,samplerate=44100} :http{dst=:8081/desk.ts}" :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep


and this url in Serviio Console/Online Sources/Live Stream

  Code:
http://localhost:8081/desk.ts


I got vlc 1.3.0 from vlc nightly builds here http://nightlies.videolan.org/.
I don't know if this works with the older version of vlc in the ubuntu repositories, maybe someone can chime in on that.
So far I can't figure out how to capture the mouse cursor, maybe someone smarter than me can help with that.
Last edited by jk50 on Mon Jan 09, 2012 10:42 am, edited 1 time in total.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jan 09, 2012 10:37 am

Re: streaming desk top to tv

great, could you add the to the Wiki? A linux section of the article perhaps.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Mon Jan 09, 2012 10:47 am

Re: streaming desk top to tv

i will add it later for you zip.

EDIT: http://wiki.serviio.org/doku.php?id=stream_pc_linux
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

sohail579

Streaming enthusiast

Posts: 43

Joined: Mon Nov 01, 2010 8:54 pm

Post Tue Jan 10, 2012 1:31 am

Re: streaming desk top to tv

does anyone think windows media encoder would work as a all in one solution?
<<

fmustang76

Serviio newbie

Posts: 12

Joined: Wed Jun 16, 2010 5:05 am

Post Tue Jan 10, 2012 1:37 am

Re: streaming desk top to tv

wapman wrote:When I run the script from Wiki, VLC opens and it says at the bottom left (status line?) ://dshow, the timer down right is counting. I also get an error message saying VLC can not use unit screen-capture-recorder because it is not a supported type (translated from Swedish..so aprox.)


I had the same problem on a fresh Windows 7 x86 install. I found that I had to install the "Microsoft Visual C++ 2010 Redistributable Package". Not sure if you have to reinstall "screen-capture-recorder" for everything to be registered correctly but I did.

http://www.microsoft.com/download/en/de ... px?id=5555


To verify that VLC has the "screen-capture-recorder" dshow filter available:

Open VLC. Click "Media" on top bar, click "Streaming", then select "Capture Device".

Across from "Video device name" there should be a drop down box and there should be a listed device "screen-capture-recorder".

Also in order to configure "screen-capture-recorder" you need the Java JRE installed.
<<

wapman

Serviio newbie

Posts: 17

Joined: Sat Jan 07, 2012 7:36 am

Post Tue Jan 10, 2012 7:00 am

Re: streaming desk top to tv

Hi friends,

Thanks to your help I have now been able to "partly" get the streaming of my desk top to work.

I can verify that you need to re install screen-capture-recorder after installing the MVC. I did it the other way around and then the filter was not in the list of devices in VLC.

Now I have the following problems:

I have to set s-c-r to 1280 x 720 to get a picture on my Samsung, otherwise it says "codec not...". Of course this force me to set the PC screen to the same, instead of 1366 x 768.

Serviio will crash after about 20 seconds of watching sluggish "streamed TV" on the Samsung. I have changed the stream to 5000 and cache to 20000, it seems to help but not solve. Will play around a bit more with those settings.

Thanks for your help so far..:)

Cheers.
<<

vince

Serviio newbie

Posts: 2

Joined: Mon Nov 28, 2011 10:41 pm

Post Tue Jan 10, 2012 9:14 pm

Re: streaming desk top to tv

Gents,

I am trying to get desktop streaming to work from an XP Professional SP2 machine via my xbox to my panasonic. Streaming other video files works fine.

Having installed VLC (1.1.11) and VAC (driver 4.10.0.2537, Control Panel 4.10.0.2537 - which comes up as "Virtual Cable 1" rather than "Line 1" as per wiki, so will add that in when I get this going), then run the StreamDestop.bat file:

  Code:
@echo off

:This bat is used to stream the desktop with VLC using HTTP
:A corresponding player must be started using HTTP

@echo off

:This bat is used to stream the desktop with VLC using HTTP
:A corresponding player must be started using HTTP


"C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv dshow:// --sout=#transcode{venc=ffmpeg,vcodec=mp2v,vb=10000,fps=24,scale=0.5,width=1280,acodec=mp3,ab=192,channels=2,samplerate=44100,soverlay}:std{access=http,mux=ts,dst=:8081} --no-sout-rtp-sap --no-sout-standard-sap --ttl=1 --sout-keep   :dshow-vdev=screen-capture-recorder :dshow-adev="Virtual Cable 1" :dshow-caching=2000


Then add the stream into Serviio online sources and try to play it through the xbox, I get a "Unplayable Content, the connection to your computer was lost" error (where other avi's are streamed fine.


Testing the output via mplayer (after setting the resolution to 1280*1024 via the config utilities) I see a playback of my screen that gradually "grows" and gets marginally longer and wider and distorts.

Any help greatly appreciated, with the promise of adding the knowledge back onto the wiki!!

Regards.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Tue Jan 10, 2012 11:40 pm

Re: streaming desk top to tv

The documentation/read-me with screen capture recorder addresses the reinstall of MVC and the Startmenu entries provide utilities to set this and screen sizes correctly.

It also provides a performance utility that may indicate your cpus are not sufficient to capture and transcode to MPEG-2. I have an 8 way processor that only uses about 10% cpu to doi the job, but if I only use 2 cores the utilization increases to 90%. As a rule of thumb, I would say that if your system is not in the $500+ range, it probably won't have the power it needs. Others may want to post their experiences wrt this. If the system cannot provide the screen in real time then it will drop the feed to Serviioo and Serviio will give an unsupported file format error (On Samsunng D).

Strange that your VAC comes up with "Virtual Cable 1" in "Virtual Cable 1" in VLC. I'm using the same release and VLC shows as per the bat. My Playback Devices also shows "Line 1" as per the Wiki. Maybe something in the config.

Try reducing your screen resolution to 640x360 and the bitrate to 2000 to see if it works. If it does then a 1280x720 screen is too much load for your system.
<<

mchristian

Streaming enthusiast

Posts: 23

Joined: Fri Nov 12, 2010 5:46 pm

Post Wed Jan 11, 2012 2:08 am

Re: streaming desk top to tv

[quote="jk50"]Greetings and thanks to zip for his brilliant work.

[quote]
  Code:
vlc screen:// :screen-fps=24.000000 :input-slave=alsa://pulse :sout="#transcode{vcodec=mp2v,vb=10000,fps=24,width=1280,acodec=mp3,ab=192,channels=2,samplerate=44100} :http{dst=:8081/desk.ts}" :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep


quote]



When I try to run the code for VLC I get the following errors:

y increased to 181 ms)
[0x815aa40] main input error: ES_OUT_RESET_PCR called
[0x815aa40] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 622 ms)
[0x815aa40] main input error: ES_OUT_RESET_PCR called
[0x815aa40] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 3627 ms)
[0x815aa40] main input error: ES_OUT_RESET_PCR called
[0x815aa40] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (jitter of 6268 ms ignored)
[0x815aa40] main input error: ES_OUT_RESET_PCR called
[0x815aa40] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (jitter of 9732 ms ignored)
[0x815aa40] main input error: ES_OUT_RESET_PCR called
[0x815aa40] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (jitter of 12839 ms ignored)
[0x815aa40] main input error: ES_OUT_RESET_PCR called
[0x815aa40] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (jitter of 15973 ms ignored)
[0x815aa40] main input error: ES_OUT_RESET_PCR called
[0x815aa40] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (jitter of 16225 ms ignored)
[0x815aa40] main input error: ES_OUT_RESET_PCR called

Any ideas what I am doing wrong?
Last edited by mchristian on Thu Jan 12, 2012 4:47 pm, edited 1 time in total.
Sony S570 BDP
Ubuntu 10.10
<<

hiviking

Serviio newbie

Posts: 18

Joined: Wed Jan 04, 2012 6:22 pm

Post Thu Jan 12, 2012 3:22 pm

Re: streaming desk top to tv

Hi jhb50,
I have tried your method as described in the Wiki and it works, but the screen-capture-recorder is too slow, so I get jerky video. A more efficient screen capture driver is VHScrCap (which I have used for a long time to capture Google Earth animations with VirtualDub at 30 fps) but I cannot get it to work with VLC. It captures OK when you are in "Play" mode, but in "Stream" mode I just get a blank screen. The log contains a stream of errors like this:

avcodec warning: almost fed libavcodec with a frame in the past (current: 7477251179, last: 14886365001)
stream_out_transcode debug: drift is too high, resetting master sync

Any ideas anyone?

By the way, for most users it will be easier to use the VLC GUI to set up the stream instead of using the command line. There is a guide at http://betterlogic.com/roger/2010/07/ho ... playon-tv/ and another at http://grok.lsu.edu/article.aspx?articleid=14625 (fullscreen only).
Next

Return to General discussion

Who is online

Users browsing this forum: No registered users and 14 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.