Skip to content

Instantly share code, notes, and snippets.

@haxwithaxe
Last active March 13, 2016 15:07
Show Gist options
  • Save haxwithaxe/6f1dead256fe19b427c9 to your computer and use it in GitHub Desktop.
Save haxwithaxe/6f1dead256fe19b427c9 to your computer and use it in GitHub Desktop.
stream remote webcam over vpn
  1. forward port to local machine

    ssh -L 8080:localhost:8080 <remote ssh host>
    
  2. run vlc on the remote machine

    cvlc v4l2:///dev/video0 :v4l2-standard= :live-caching=300 :sout="#transcode{vcodec=x264,acodec=none}:http{mux=ts,dst=:8080/stream}"
    
  3. run vlc on the local machine

    vlc http://localhost:8080/stream
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment