Page 1 of 12

streaming desk top to tv

PostPosted: Sat Jan 07, 2012 5:46 am
by martyn
i have read you can do this, is there any tutorials any where ? thanks.

Re: streaming desk top to tv

PostPosted: Sat Jan 07, 2012 5:59 am
by Cerberus
wiki.serviio.org

Re: streaming desk top to tv

PostPosted: Sat Jan 07, 2012 4:00 pm
by finnstar
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... :)

Re: streaming desk top to tv

PostPosted: Sat Jan 07, 2012 5:18 pm
by Cerberus
window server and windows run exactly the same, its only useful to use WHS is you are running a Custom headless NAS or server.

Re: streaming desk top to tv

PostPosted: Sat Jan 07, 2012 5:59 pm
by zip
also note that the WHS will probably be less powerful PC and streaming desktop requires quite some power.

Re: streaming desk top to tv

PostPosted: Sun Jan 08, 2012 9:24 am
by wapman
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

Re: streaming desk top to tv

PostPosted: Sun Jan 08, 2012 12:16 pm
by zip
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.

Re: streaming desk top to tv

PostPosted: Mon Jan 09, 2012 1:39 am
by prohna
Has anyone tried to get it working in a linux environment?

Re: streaming desk top to tv

PostPosted: Mon Jan 09, 2012 3:19 am
by jhb50
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.

Re: streaming desk top to tv

PostPosted: Mon Jan 09, 2012 8:24 am
by wapman
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

Re: streaming desk top to tv

PostPosted: Mon Jan 09, 2012 10:25 am
by jk50
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.

Re: streaming desk top to tv

PostPosted: Mon Jan 09, 2012 10:37 am
by zip
great, could you add the to the Wiki? A linux section of the article perhaps.

Re: streaming desk top to tv

PostPosted: Mon Jan 09, 2012 10:47 am
by Cerberus
i will add it later for you zip.

EDIT: http://wiki.serviio.org/doku.php?id=stream_pc_linux

Re: streaming desk top to tv

PostPosted: Tue Jan 10, 2012 1:31 am
by sohail579
does anyone think windows media encoder would work as a all in one solution?

Re: streaming desk top to tv

PostPosted: Tue Jan 10, 2012 1:37 am
by fmustang76
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.

Re: streaming desk top to tv

PostPosted: Tue Jan 10, 2012 7:00 am
by wapman
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.

Re: streaming desk top to tv

PostPosted: Tue Jan 10, 2012 9:14 pm
by vince
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.

Re: streaming desk top to tv

PostPosted: Tue Jan 10, 2012 11:40 pm
by jhb50
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.

Re: streaming desk top to tv

PostPosted: Wed Jan 11, 2012 2:08 am
by mchristian
[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?

Re: streaming desk top to tv

PostPosted: Thu Jan 12, 2012 3:22 pm
by hiviking
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).