Last active
February 3, 2022 06:47
-
-
Save jakebrinkmann/86f6a0865d7bf02263ac726cff179184 to your computer and use it in GitHub Desktop.
Stream my webcam from a Windows 10 tablet over to another computer on my LAN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Use `vcodec=mp4v` on Windows 10 (VLC 2.2.8) NOT `vcodec=h264` | |
REM (note: multiple web-cams? can change default for dshow:// inside `Tools>Preferences>Input Codecs`) | |
REM UDP (spray and pray) seems most error-tolerant: | |
CALL "C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy dshow:// --sout "#transcode{vcodec=mp4v,vb=800,scale=0.25}:udp{dst=<IP>:1234}" --live-caching 1000 | |
REM <IP> Here is where to broadcast (e.g. the client IP) | |
REM To connect on a Client: vlc udp://@:1234 --network-caching 0 | |
REM To use HTTP seems stable but slower/high-latency: | |
CALL "C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy dshow:// --sout "#transcode{vcodec=mp4v,vb=800,scale=0.25}:standard{access=http,mux=ts,dst=:8080}" | |
REM To connect on a Client: vlc http://<IP>:8080/ | |
REM To use RTSP (seems a little faster, but... errors out!) | |
CALL "C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy dshow:// --sout "#transcode{vcodec=mp4v,vb=800,scale=0.25}:rtp{sdp=rtsp://:8554/live.sdp}" | |
REM To connect on a Client: vlc rtsp://<IP>:8554/live.sdp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM vlc.exe -vvv dshow:// :dshow-vdev="HP TrueVision HD" :dshow-adev="none" :dshow-size="640x480" :dshow-caching=1000 -V dummy --intf=dummy --dummy-quiet :sout=#transcode{vcodec=h264,vb=800,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://:8554/live.sdp} | |
REM vlc.exe "dshow://" :dshow-vdev="HP TrueVision HD" :dshow-adev="none" :dshow-size="640x480" :dshow-caching=1000 :sout=#transcode{vcodec=h264,vb=800,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://:8554/live.sdp} | |
REM THIS SEEMED TO WORK | |
REM vlc.exe "dshow://:dshow-vdev=HP TrueVision HD:dshow-adev=none:dshow-size=640x480:dshow-caching=1000" --sout "#transcode{vcodec=h264,vb=800,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://:8554/live.sdp}" | |
REM ALSO SEEMED TO WORK JUST MISSING VIDEO | |
REM vlc.exe "dshow://:dshow-vdev=HP TrueVision HD:dshow-adev=none:dshow-size=640x480:dshow-caching=1000" --sout "#rtp{sdp=rtsp://:8554/live.sdp}" | |
REM vlc.exe "dshow://:dshow-vdev=HP TrueVision HD:dshow-adev=none:dshow-size=640x480:dshow-caching=1000" --sout "#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:rtp{sdp=rtsp://0.0.0.0:8554/live.sdp}" | |
REM vlc.exe "dshow://:dshow-vdev=HP TrueVision HD:dshow-adev=none:dshow-size=640x480:dshow-caching=1000" --sout "#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:duplicate{dst=display,dst=rtp{sdp=rtsp://0.0.0.0:8554/live.sdp}}" | |
REM vlc.exe "dshow://:dshow-vdev=HP TrueVision HD:dshow-adev=none:dshow-size=640x480:dshow-caching=1000" --sout "#transcode{vcodec=h264,acodec=mpga,vb=800,ab=128,deinterlace}:duplicate{dst=display,dst=rtp{sdp=rtsp://0.0.0.0:8554/live.sdp}}" | |
REM vlc.exe "dshow://" --sout "#rtp{sdp=rtsp://0.0.0.0:8554/live.sdp}" | |
REM THIS SHOWED MY WEBCAM LOCALLY... | |
REM vlc.exe "dshow://" --sout "#duplicate{dst=display,dst=rtp{sdp=rtsp://:8554/live.sdp}}" | |
REM vlc.exe -V dummy --intf=dummy dshow:// --sout #udp{dst=192.168.1.3:1234} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
think the ip address like 127.0.0.1, 192.168.x.x should be added in ::sout=#transcode{vcodec=h264,vb=800,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:rtp{sdp=rtsp://127.0.0.1:8554/} :no-sout-all :sout-keep