User Tools

Site Tools


stream_pc_chromecast

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
stream_pc_chromecast [2021/06/16 15:02]
johncoool
stream_pc_chromecast [2021/07/28 14:49]
johncoool
Line 5: Line 5:
 Read the entire guide before starting the process to be sure that it covers all your requirements. Read the entire guide before starting the process to be sure that it covers all your requirements.
  
-The 1st thing you must do before continuing with this guide is to check if your PC supports Miracast mirroring. You can do this by following the tips in the below link. The 2nd method will work on any of the 3 Windows Platforms. If your system supports Miracast devices then you do not this guide and can search for the solution on YouTube.+The 1st thing you must do before continuing with this guide is to check if your PC supports Miracast mirroring. You can do this by following the tips in the below link. The 2nd method "**How to Check if Your PC Supports Miracast Using DirectX Diagnostic Tool**" in the link will work on any of the 3 Windows Platforms. If your system supports Miracast devices then you do not need this guide and can search for the solution on YouTube.
  
 https://www.isumsoft.com/windows-10/2-ways-to-check-if-window-10-supports-miracast.html https://www.isumsoft.com/windows-10/2-ways-to-check-if-window-10-supports-miracast.html
  
-(All the required programs for this solution are free)+//All the required programs for this solution are free. 
 +//
   - Open the following link and complete all the steps until step 10 and then come back here to continue the rest. https://wiki.serviio.org/doku.php?id=stream_pc_vlc3 (The link is for the old version of Serviio and the interface is different but just by using common sense you can configure the latest version with the same tips).   - Open the following link and complete all the steps until step 10 and then come back here to continue the rest. https://wiki.serviio.org/doku.php?id=stream_pc_vlc3 (The link is for the old version of Serviio and the interface is different but just by using common sense you can configure the latest version with the same tips).
-  - Run SerViio and the VLC script. Connect The Miracast device to the network and turn it on.+  - The PC and the Miracast device must both be connected to the same LAN network and the Miracast device needs to be set to network streaming mode. 
 +  - Run Serviio and the VLC script. 
 +  - Connect The Miracast device to the network and turn it on.
   - Open run and use execute this command “DevicePairingWizard.exe”.   - Open run and use execute this command “DevicePairingWizard.exe”.
   - Add the Miracast device and the Serviio device that has the PC name that you are connecting from in it.   - Add the Miracast device and the Serviio device that has the PC name that you are connecting from in it.
-  - Go to “This PC” or “Computer” depending on the Windows platform and open the Serviio and then right click on the displayed content and “Cast to device” or “Play to” (depending on Windows platform) and choose the Miracast device.  +  - Go to “This PC” or “Computer” depending on the Windows platform and open the Serviio and then right click on the displayed content and “Cast to device” or “Play to” (depending on the Windows platform) and choose the Miracast device. 
  
    
-This was tested on Windows 8.1 64-bit and Windows 10 64-bit as well as two Miracast devices. One is version 1 of Anycast and a knock off for Chromecast. It has worked with all these options but did not give the same performance. So the System resources and the Miracast type are important to give faster performance. The best I got on one system was 7 second delay on one and the other was a 2 second delay. You can check this by opening the clock to see the lag. The laptops that I tested on are old so it might perform much better on faster computers / Miracast devices.+This was tested on Windows 8.1 64-bit and Windows 10 64-bit as well as two Miracast devices. One is version 1 of Anycast and a knock off for Chromecast. It has worked with all these options but did not give the same performance. So the System resources and the Miracast type are important to give faster performance. The best I got on one system was 7 second delay on one and the other was a 2 second delay. You can check this by opening the clock to see the lag. The laptops that I tested on are old so it might perform much better on faster computers / Miracast devices. 
 +                   
 +-------------------------------------------------------------------------------------------------------                  
  
-Issues on this solution and how to solve them.+__Issues on this solution and how to solve them.__
  
-I am adding below all the issues that I faced with tips on how to solve them.+I am adding all the issues that I faced with tips on how to solve them.
  
-After rebooting Windows, the Serviio server won’t show anymore because it will be offline So to bring it back online you will need to create and run the below script as Administrator. Then the server will show again. To create a batch file script, just open a text file and paste the below in it and then save and change the extension of the file to “.bat”. The batch file can be reedited by a mouse right click and edit. The batch file is for Windows 64 Bit running Serviio 2.1 (might require editing for 32-bit Windows). After the 2nd script is completed it will close the console, so just reopen the console.+Step 7 may need to be repeated a few times until it works. It might either need to close and open the (Cast to device - [name of device] or Play to - [name of device] depending on the Windows platform a few times until it works. If the content shows with an "X" on it, then just press on pause or stop and then play try to play it again.  
 + 
 +After rebooting Windows, the Serviio server won’t show anymore because it will be offline So to bring it back online you will need to create and run the below script as Administrator. Then the server will show again. To create a batch file script, just open a text file and paste the below in it and then save and change the extension of the file to “.bat”. The batch file can be re-edited by a mouse right click and edit. The batch file is for Windows 64 Bit running Serviio 2.1 (might require editing for 32-bit Windows). After the 2nd script is completed it will close the console, so just reopen the console.
  
 Try the 1st short script 1st and if that does not work then try the 2nd one. Try the 1st short script 1st and if that does not work then try the 2nd one.
  
--------------------------------------------------------------------------------------+------------------------------------------------------------
 __1st method __1st method
 __ __
-@echo Off+''@echo Off
  
 Timeout /T 2 Timeout /T 2
Line 38: Line 44:
 Timeout /T 60 Timeout /T 60
 taskkill /IM "DevicePairingWizard.exe" /F taskkill /IM "DevicePairingWizard.exe" /F
-Exit+Exit''
 ---------------------------------- ----------------------------------
 __2nd method __2nd method
 __ __
-@echo Off+''@echo Off
 Timeout /T 2 Timeout /T 2
 taskkill /IM "ServiioConsole.exe" /F taskkill /IM "ServiioConsole.exe" /F
Line 57: Line 63:
 Timeout /T 60 Timeout /T 60
 taskkill /IM "DevicePairingWizard.exe" /F taskkill /IM "DevicePairingWizard.exe" /F
-Exit +Exit'' 
------------------------------------------------------------------------------------------------------+------------------------------------------------------------
  
 **Console security **Console security
Line 68: Line 74:
 The VLC version and script provided did not work for me. The two versions that worked well for me are 3.0.14 and 3.0.11 Vetinari 64 Bit. The below script that I found on the Serviio forum worked well for me. The VLC version and script provided did not work for me. The two versions that worked well for me are 3.0.14 and 3.0.11 Vetinari 64 Bit. The below script that I found on the Serviio forum worked well for me.
  
-VLC 32 Bit version script +__//VLC 32 Bit version script// 
---------------------------------------------+__ 
 +'' 
 @echo off @echo off
  
 start "" /min /d "C:\Program Files (x86)\VideoLAN\VLC" "vlc.exe" -vvv dshow:// --sout=#transcode{venc=ffmpeg,vcodec=mp2v,vb=8000,fps=24,acodec=mpga,ab=192,channels=2,samplerate=44100}:std{access=http,mux=ts,dst=:8085} --no-sout-rtp-sap --no-sout-standard-sap --ttl=1 --sout-keep :dshow-vdev=screen-capture-recorder :dshow-adev=virtual-audio-capturer :dshow-aspect-ratio=16\:9 :dshow-caching=0 start "" /min /d "C:\Program Files (x86)\VideoLAN\VLC" "vlc.exe" -vvv dshow:// --sout=#transcode{venc=ffmpeg,vcodec=mp2v,vb=8000,fps=24,acodec=mpga,ab=192,channels=2,samplerate=44100}:std{access=http,mux=ts,dst=:8085} --no-sout-rtp-sap --no-sout-standard-sap --ttl=1 --sout-keep :dshow-vdev=screen-capture-recorder :dshow-adev=virtual-audio-capturer :dshow-aspect-ratio=16\:9 :dshow-caching=0
-------------------------+'' 
 + 
 +__//VLC 64 Bit version script// 
 +__
  
-VLC 64 Bit version script +''
------------------------------------------------+
 @echo off @echo off
  
 start "" /min /d "C:\Program Files\VideoLAN\VLC" "vlc.exe" -vvv dshow:// --sout=#transcode{venc=ffmpeg,vcodec=mp2v,vb=8000,fps=24,acodec=mpga,ab=192,channels=2,samplerate=44100}:std{access=http,mux=ts,dst=:8085} --no-sout-rtp-sap --no-sout-standard-sap --ttl=1 --sout-keep :dshow-vdev=screen-capture-recorder :dshow-adev=virtual-audio-capturer :dshow-aspect-ratio=16\:9 :dshow-caching=0 start "" /min /d "C:\Program Files\VideoLAN\VLC" "vlc.exe" -vvv dshow:// --sout=#transcode{venc=ffmpeg,vcodec=mp2v,vb=8000,fps=24,acodec=mpga,ab=192,channels=2,samplerate=44100}:std{access=http,mux=ts,dst=:8085} --no-sout-rtp-sap --no-sout-standard-sap --ttl=1 --sout-keep :dshow-vdev=screen-capture-recorder :dshow-adev=virtual-audio-capturer :dshow-aspect-ratio=16\:9 :dshow-caching=0
 +''
 ------------------------------------------------- -------------------------------------------------
  
Line 86: Line 97:
 Testing can be done from any VLC installation whether it is on Windows or Android platform as long as it is open on the firewall. It can also be tested from the same PC by just removing “Allow only one instance” that is under interface in preferences.  Testing can be done from any VLC installation whether it is on Windows or Android platform as long as it is open on the firewall. It can also be tested from the same PC by just removing “Allow only one instance” that is under interface in preferences. 
  
-//On Windows:// Got to playlist then open Universal plug and play (UPnP) and play the stream from there.+//On Windows:// Go to playlist then open Universal plug and play (UPnP) and play the stream from there.
 //On Android:// Go to Browse. If it does not open then press on one of the other options like Audio then go back to Browse. It will be at the bottom.  //On Android:// Go to Browse. If it does not open then press on one of the other options like Audio then go back to Browse. It will be at the bottom. 
  
Line 93: Line 104:
 **IP addresses **IP addresses
 ** **
-It is important to maintain the same IP address for the PC. If the IP address changes then the added media server will stay offline and will not come back online until the IP address is restored or the Media server is removed and re-added again like in step 34. It might also be possible to keep the server and just add a new one. This would also apply for the added Miracast device(s).+It is important to maintain the same IP address for the PC. If the IP address changes then the added media server will stay offline (It will not show in “This PC” or “Computer” depending on the Windows platform) and will not come back online until the IP address is restored or the Media server is removed and re-added again like in step 56. It might also be possible to keep the server and just add a new one. This would also apply for the added Miracast device(s).
  
-IP address can be reserved from the router. You can do this by logging onto the router. If you are on a small network then you can just assign a static IP for your device. Ping the IP address before choosing one. The 5 should not be in-use which are from 250-254.+IP address can be reserved from the router. This can be done by logging onto the router.  
 +If you are on a small network then you can just assign a static IP for your PC. Ping the IP address before choosing one. The last 5 should not be in use which range from 250-254.
  
 You will need to maintain the same Subnet Mask and Default Gateway when changing the IP address of the PC manually. You will need to maintain the same Subnet Mask and Default Gateway when changing the IP address of the PC manually.
Line 106: Line 118:
 ** **
 If you face any issues while testing then disable the firewall temporarily to be sure that the issue is not related to any blocked ports. If you face any issues while testing then disable the firewall temporarily to be sure that the issue is not related to any blocked ports.
-Depending on what you will be using or testing then following are what need to be enabled on the firewall for the LAN connection. +Depending on what you will be using for testing then enable the following on the firewall for the LAN connection. 
-Serviio  and WMPDMC.exe which is found on this path “C:\Windows\System32\WMPDMC.exe”.  +__Serviio__ and __WMPDMC.exe__ which is found on this path “C:\Windows\System32\WMPDMC.exe”.  
-VLC if you are testing from another device.+__VLC__ if you are testing from another device.
  
-**Smart TV +**//Smart TV// 
-**__Underlined Text__If you have Smart TV or Smart TV box running Android 5 or higher then you don’t need this solution. Just install Spacedesk on both Windows and the Smart TV and connect. It will work as long as both are connected to the same WIFI and there is not lag at all (Check the default setting and change as needed before  you connect to the external screen). Spacedesk also supports touchscreen input. It can either duplicate the screen or extend the desktop just like any external screen connected to the PC.+** If you have Smart TV or Smart TV box running Android 5 or higher then you don’t need this solution. Just install Spacedesk on both Windows and the Smart TV and connect. It will work as long as both are connected to the same WIFI and there is no lag at all (Check the default setting and change as needed before you connect to the external screen). Spacedesk also supports touchscreen input. It can either duplicate the screen or extend the desktop just like any external screen connected to the PC.
 If you don’t have a Miracast device then just buy a Smart TV box as it is not much more expensive than the original Chromecast. If you don’t have a Miracast device then just buy a Smart TV box as it is not much more expensive than the original Chromecast.
-Spacedesk only works on local networks but does not have a security option to control who connectsso anyone who has Spacedesk client app will be able to connect to the Spacedesk server program.+Spacedesk only works on local networks but does not have a security option to control who can connectany Spacedesk client app will be able to connect to the Spacedesk server program.
    
 https://spacedesk.net/ https://spacedesk.net/
  
 Spacedesk can be tested from any smart device. Spacedesk can be tested from any smart device.
 +Unlike Miracast, Spacedesk does not send the Audio to the other screen. So the sound will be from the PC.
  
-__Alternative solution+__//Alternative solution//
 __ __
 The two below links also work for Computers that do not support Miracast connection but this will only work with supported dongles / Smart TVs with most Chromium browsers. The two below links also work for Computers that do not support Miracast connection but this will only work with supported dongles / Smart TVs with most Chromium browsers.
Line 129: Line 142:
 https://www.youtube.com/watch?v=miGe5u-LFYQ https://www.youtube.com/watch?v=miGe5u-LFYQ
  
-Hanna Baggili+Hanna Baggili (John)
  
stream_pc_chromecast.txt · Last modified: 2021/07/28 14:49 by johncoool