User Tools

Site Tools


stream_pc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
stream_pc [2012/01/12 18:48]
jhb50
stream_pc [2012/01/13 22:32]
jhb50
Line 1: Line 1:
-** ====== Stream Your Windows Desktop ====== ** +** ====== How to Stream Your Windows PC Desktop ====== ** 
  
 <note warning> <note warning>
Line 10: Line 10:
 This means that you can now browse and display all those videos on news sites, tv network shows, movie sites, social sites or music sites etc, that are not available as rss feeds, or unencripted rtmp live streams. You can now also access and display the text info that usually accompanys many of those videos, or the subtitles that overlay videos such as hulu, or the music title/artist/album information which are not available directly to Servio online streams.  This means that you can now browse and display all those videos on news sites, tv network shows, movie sites, social sites or music sites etc, that are not available as rss feeds, or unencripted rtmp live streams. You can now also access and display the text info that usually accompanys many of those videos, or the subtitles that overlay videos such as hulu, or the music title/artist/album information which are not available directly to Servio online streams. 
  
-To stream your desktop you need to install VLC to do the streaming, a directshow video input filter to capture the desktop area, **and** a directshow audio input filter to capture the sound output from the application. +To stream your desktop you need to install VLC to do the streaming, a directshow video input filter to capture the desktop area, and a directshow audio input filter to capture the sound output from the application. 
  
-This process has been tested and works correctly with VLC 1.1.10. It may break with other versions or nightlys so be warned. Since VLC is registry independent, you can maintain a VLC 1.1.10 version for desktop streaming, while installing updated versions for normal purposes. +This process has been tested and works correctly with VLC 1.1.10. It may break with other versions or nightlys so be warned. Since VLC is registry independent, you can maintain a VLC 1.1.10 version for desktop streaming, while installing updated versions for normal purposes. This Wiki entry does not address the installation of VLC.
  
-For the video input filter, I used screen-capture-recorder because its free, it works, is configurable and is under active maintenance (download from http://sourceforge.net/projects/screencapturer/files/). Read the README for instructions on how it works and how to use the "Screen Capturer Recorder\configuration_setup_utilities" to set it up for your system.+For the video input filter, I used screen-capture-recorder (SCR)because its free, it works, is configurable and is under active maintenance (download from http://sourceforge.net/projects/screencapturer/files/). Read the README for instructions on how it works and how to use the "Screen Capturer Recorder\configuration_setup_utilities" to set it up for your system. (Note that the author has confirmed the need to install "Microsoft Visual C++" first and that you need the Java JRE installed to run some of the utilities. See http://forum.serviio.org/viewtopic.php?f=4&t=4660&start=10.) 
  
 By default, it is supposed to capture the whole screen. For some reason however on initial install I got a lot of static. If this happens to you, run the "configuration_setup_utility\edit_config.bat" and set the height and width to your screen's maximum dimensions, or edit the registry keys as I did. You must however use the exact maximum dimensions recognized by your screen driver, In my case 1366 x 768 regardless of the resolution my screen was set to display which is 1280x720. (Right click your Desktop and click "Screen resolution" to see your current and maximum setable resolutions). Other users have reported the need to set the dimensions that their screen is set to display. By default, it is supposed to capture the whole screen. For some reason however on initial install I got a lot of static. If this happens to you, run the "configuration_setup_utility\edit_config.bat" and set the height and width to your screen's maximum dimensions, or edit the registry keys as I did. You must however use the exact maximum dimensions recognized by your screen driver, In my case 1366 x 768 regardless of the resolution my screen was set to display which is 1280x720. (Right click your Desktop and click "Screen resolution" to see your current and maximum setable resolutions). Other users have reported the need to set the dimensions that their screen is set to display.
  
-To get Serviio to play the video stream you also **must** include an audio track, even if you do not want to hear the audio of any video you are playing on the pc.+To get Serviio to play the video stream this process requires the inclusion of an audio track, even if you do not want to hear the audio of any video you are playing on the pc. It may be possible to stream the video only, however this process does not addres that option.
  
 For the audio input filter, you should try the free virtual audio capture grabber device  (VACGD) (download from https://github.com/rdp/virtual-audio-capture-grabber-device/downloads) however it did not work correctly for me on W7-64 and I had to use virtual-audio-cable(VAC) which while not free works flawlessly (available at http://software.muzychenko.net/eng/vac.htm). (Note that I am still working with the author of VACGD to correct my problems with VACGD..Others should try it because my problem may be with my sound card driver and not with VACGD)   For the audio input filter, you should try the free virtual audio capture grabber device  (VACGD) (download from https://github.com/rdp/virtual-audio-capture-grabber-device/downloads) however it did not work correctly for me on W7-64 and I had to use virtual-audio-cable(VAC) which while not free works flawlessly (available at http://software.muzychenko.net/eng/vac.htm). (Note that I am still working with the author of VACGD to correct my problems with VACGD..Others should try it because my problem may be with my sound card driver and not with VACGD)  
Line 24: Line 24:
 To setup VAC for streaming, in the Sound Control panel for both Recording and Playback,(accessable by right clicking the Speaker icon in the System tray) right click the Vac "Line 1" and select "Set as Default Device". This causes the audio from all applications to be connected to the input of the VAC cable and enables the VAC cable output to be available for VLC to stream the application audio. This also disconnects the PC mic and speakers while you are streaming. For VACGD no setup is required as it will stream the default sound card output at full volume even if the speaker volume is turned off or muted. To setup VAC for streaming, in the Sound Control panel for both Recording and Playback,(accessable by right clicking the Speaker icon in the System tray) right click the Vac "Line 1" and select "Set as Default Device". This causes the audio from all applications to be connected to the input of the VAC cable and enables the VAC cable output to be available for VLC to stream the application audio. This also disconnects the PC mic and speakers while you are streaming. For VACGD no setup is required as it will stream the default sound card output at full volume even if the speaker volume is turned off or muted.
  
-Once these filters are installed, open VLC, click "Media/Open Capture Device" and check under "Default" that it shows "screen-capture-recorder" and "Line 1 (Virtual Audio Cable)" or "virtual-audio-capturer" options as available video and audio device names. Other users have reported that VAC displays a different name. If so change the bat to reflect that, enclosing any name that includes blanks within quotes. Also if you use VACGD, replace :dshow-adev="Line 1 (Virtual Audio Cable)"  with  :dshow-adev=virtual-audio-capturer +Once these filters are installed, open VLC, click "Media/Open Capture Device" and check under "Default" that it shows "screen-capture-recorder" and "Line 1 (Virtual Audio Cable)" or "virtual-audio-capturer" options as available video and audio device names. Other users have reported that VAC displays a different name ("Virtual Cable 1"). If so change the bat to reflect that, enclosing any name that includes blanks within quotes. Also if you use VACGD, replace :dshow-adev="Line 1 (Virtual Audio Cable)"  with  :dshow-adev=virtual-audio-capturer 
  
 After editing the bat to point at your installed VLC.exe and any changes above, run the .bat file to start the stream. This is best done by creating a shortcut to the bat on your desktop, and simply click it each time you want to stream your desktop. After editing the bat to point at your installed VLC.exe and any changes above, run the .bat file to start the stream. This is best done by creating a shortcut to the bat on your desktop, and simply click it each time you want to stream your desktop.
Line 40: Line 40:
 :A corresponding player must be started using HTTP :A corresponding player must be started using HTTP
  
-"C:\Programs\VLC TEST 1.1.10\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="Line 1 (Virtual Audio Cable)"  :dshow-caching=2000</code>+"C:\Programs\VLC TEST 1.1.10\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="Line 1 (Virtual Audio Cable)"  :dshow-caching=2000 
 + 
 +:Exit 
 +</code>
  
 You can test it on your PC using mplayer. Here is my .bat for that, but you will want to get and install the latest mplayer.exe: You can test it on your PC using mplayer. Here is my .bat for that, but you will want to get and install the latest mplayer.exe:
stream_pc.txt · Last modified: 2013/01/28 17:29 by rogerdpack