Tutorial example of wirelessly mirroring Android YouTube audio & video & the filesystem anonymously & sans ads to the desktop over Wi-Fi using only FOSS general purpose tools such as scrcpy, sndcpy, adb, newpipe, webdav, etc.
All FOSS tools described work independently and together as desired.
Here are some representative screenshots I made to show how it worked:
Here is an example of mounting the entire Android fileystem as a Windows drive:
As always, this tutorial is written and documented out of the kindness of my heart as free general purpose cross platform functionality is always what I strive for, and particularly, in this example, where I strive for the privacy and utility of a completely ad free FOSS YouTube client cast.
It's general purpose because everyone can do this right now, on any PC.
Note: The _example_ I documented is just one use model, but it's an important use model since YouTube FOSS clients do not exist on the PC (as far as I'm aware).
That means all Android apps should work the same - however - and this is important - there is no other app out there that I know of which performs this FOSS YouTube functionality on the desktop (and no, a web browser is not even close to the same functionality by any means as far as I can tell).
The only other method I know of is emulation (which is the topic of other tutorials as I've written a tutorial in the past for ever free Android emulator on Windows).
As always, since the whole intent is to kind heartedly teach others and to then learn back from what they know that I don't yet know, if you know more than I do about this topic, please do add on-topic technical value.
Here are the minimum tools required to cast the screen & audio to the PC.
Install scrcpy & sndcpy on Windows/Linux as per the instructions at Github.
will simply be cursory copy & paste commands that have worked for me.
Here's what I did to mirror NewPipe audio/video youtube to Windows.
(Again, YouTube is just one of many possible examples; YouTube sans ads was
chosen because that functionality does NOT exist on any desktop platform!)
Install scrcpy.apk on Android & put the app icon in a convenient location.
Install any FOSS Android YouTube client to watch YouTube sans advertisements.
Now you are ready to mirror Newpipe audio & video over to your desktop PC.
You can use USB cable & then switch to Wi-Fi using this rather old method:
But as of about Android 10, you can directly connect adb over a Wi-Fi
network.
Once you're connected to adb, mirror the screen,mouse,keyboard & clipboard.
Once you've mirrored the Android onto the desktop, share the audio.
Here are some screenshots showing the sharing of YouTube audio/video with Android in your pocket or in another room in the house, without ever seeing an ad using any available FOSS YouTube client.
Note: The instructions say you need VLC but I didn't use it but I do have VLC on both Android & Windows but I don't see where it applies.
Note: Obviously your IP address will differ as will your serial number.
As always, let me know if you enjoy these tutorials, and please add value and like and bookmark (for eventual updates).
--
Posted out of the goodness of my heart to disseminate useful information which, in this case, is to show others how to mirror Android audio & video.
All FOSS tools described work independently and together as desired.
- adb = connect Android 100% wirelessly to the desktop PC (no cables)
- scrcpy = mirror display (video) from Android onto any desktop PC
- sndcpy = cast (forward) audio from Android onto any desktop PC
- newpipe = (optional) an anonymous youtube client that never shows ads (plus it downloads/rips/converts audio & video streams)
- webdav = (optional) mount Android over Wi-Fi onto Windows as a drive letter (The root partition is mounted read only if you're unrooted)
- You will be able to mirror any Android application to your desktop
- You will be able to interact fully with that app on your desktop
- (using the shared desktop PC mouse, keyboard, monitor & clipboard)
- You will be able to forward (cast) the sound from Android to the PC
- (the controls are independent so that you can reduce echo if needed)
- All this will be done 100% over Wi-Fi (there are no cables involved)
- All tools are FOSS tools so there will _never_ be any costs involved
- And you will _never_ see ads ever (even in YouTube) with my tutorials.
Here are some representative screenshots I made to show how it worked:
- Mirror both video & audio
- Even mirror ad-free YouTube
- Resolution is same as devices
- Resizing to full monitor size
- Mirroring using IP address
Here is an example of mounting the entire Android fileystem as a Windows drive:
- Free Android WebDAV servers
- Mount sdcards read & write
- As Windows drive letters
- Over Wi-Fi on your home LAN
- Using any number of free Android WebDAV servers
As always, this tutorial is written and documented out of the kindness of my heart as free general purpose cross platform functionality is always what I strive for, and particularly, in this example, where I strive for the privacy and utility of a completely ad free FOSS YouTube client cast.
It's general purpose because everyone can do this right now, on any PC.
Note: The _example_ I documented is just one use model, but it's an important use model since YouTube FOSS clients do not exist on the PC (as far as I'm aware).
That means all Android apps should work the same - however - and this is important - there is no other app out there that I know of which performs this FOSS YouTube functionality on the desktop (and no, a web browser is not even close to the same functionality by any means as far as I can tell).
The only other method I know of is emulation (which is the topic of other tutorials as I've written a tutorial in the past for ever free Android emulator on Windows).
As always, since the whole intent is to kind heartedly teach others and to then learn back from what they know that I don't yet know, if you know more than I do about this topic, please do add on-topic technical value.
Here are the minimum tools required to cast the screen & audio to the PC.
Install scrcpy & sndcpy on Windows/Linux as per the instructions at Github.
- sndcpy (comes with adb):
- scrcpy (comes with adb):
- platform-tools (comes with adb):
will simply be cursory copy & paste commands that have worked for me.
- Tutorial to use scrcpy and sndcpy at same time
- Share your Android screen and audio on macOS
Here's what I did to mirror NewPipe audio/video youtube to Windows.
(Again, YouTube is just one of many possible examples; YouTube sans ads was
chosen because that functionality does NOT exist on any desktop platform!)
Install scrcpy.apk on Android & put the app icon in a convenient location.
- C:\>net use T: \\[email protected]\DavWWWRoot /USER:foo bar
- C:\> copy scrcpy.apk Z:\scrcpy.apk
Install any FOSS Android YouTube client to watch YouTube sans advertisements.
Now you are ready to mirror Newpipe audio & video over to your desktop PC.
You can use USB cable & then switch to Wi-Fi using this rather old method:
- Turn on Android USB debugging
- Note it's helpful to turn on the new Android 12 Wireless debugging tile
- Connect Android to the desktop temporarily over USB
- C:\> adb devices
- List of devices attached
- adb-SERIAL._adb-tls-connect._tcp. device
- C:\> adb tcpip 5555
- Manually disconnect the USB cable connection
- adb connect 192.168.1.4:5555
But as of about Android 10, you can directly connect adb over a Wi-Fi
network.
- Turn on Android USB debugging & Wireless debugging
- Connect Android to the Wi-Fi network access point
- C:\> ping 192.168.1.4
- C:\> adb devices
- List of devices attached
- adb-SERIAL._adb-tls-connect._tcp. device
- C:\> adb -s adb-SERIAL._adb-tls-connect._tcp.
- adb connect 192.168.1.4:43210 (this port is shown on Android)
Once you're connected to adb, mirror the screen,mouse,keyboard & clipboard.
- C:\> scrcpy -s adb-SERIAL._adb-tls-connect._tcp.
Once you've mirrored the Android onto the desktop, share the audio.
- C:\> sndcpy adb-SERIAL._adb-tls-connect._tcp.
Here are some screenshots showing the sharing of YouTube audio/video with Android in your pocket or in another room in the house, without ever seeing an ad using any available FOSS YouTube client.
- Mirror both video & audio
- Even mirror ad-free YouTube
- Resolution is same as devices
- Resizing to full monitor size
Note: The instructions say you need VLC but I didn't use it but I do have VLC on both Android & Windows but I don't see where it applies.
Note: Obviously your IP address will differ as will your serial number.
As always, let me know if you enjoy these tutorials, and please add value and like and bookmark (for eventual updates).
--
Posted out of the goodness of my heart to disseminate useful information which, in this case, is to show others how to mirror Android audio & video.
Attachments
-
webdav09.jpg93.8 KB · Views: 9
-
webdav16.jpg122.8 KB · Views: 9
-
sndcpy02.jpg146.6 KB · Views: 7
-
sndcpy03.jpg111.7 KB · Views: 7
-
sndcpy04.jpg121.6 KB · Views: 7
-
sndcpy01.jpg165.7 KB · Views: 7
-
webdav10.jpg167.5 KB · Views: 7
-
webdav11.jpg129.1 KB · Views: 6
-
webdav12.jpg181.8 KB · Views: 6
-
webdav13.jpg219.9 KB · Views: 6
-
webdav14.jpg664.1 KB · Views: 6
-
scrcpy01.jpg734.5 KB · Views: 6
-
scrcpy02.jpg979.1 KB · Views: 6
-
adb16.jpg93.9 KB · Views: 6
-
scrcpy03.jpg2.1 MB · Views: 6
-
scrcpy05.jpg527.7 KB · Views: 7
-
scrcpy07.jpg536.5 KB · Views: 7
-
scrcpy16.jpg1.4 MB · Views: 7
-
vysor36.jpg170.2 KB · Views: 7
-
vysor34.jpg127 KB · Views: 9
Last edited: