Conversation:
Notices
-
@qber Nah, what the command does is take the video4linux2 source /dev/video0, encode it with webm format defaults and output to STDOUT ("-"). Then it pipes that output ("|") to mplayer which reads from STDIN ("-" again). So you don't need an X connection on the remote server, as what you're getting is the raw webm-formatted video data. (-C could be usable though, but I…
-
Also this (or variants thereof, like piping to ffplay instead): $ ssh remotehost.example -- 'ffmpeg -i /dev/video0 -f webm -' | mplayer -
Easy, secure streaming of remote computer's webcam. If you're running a relatively new version of #ffmpeg you might want to add -c:v libvpx (because it otherwise encodes with the currently-awfully-slow vp9 codec).
-
@qber That is, ffmpeg runs on the remote server _encoding_ and mplayer (which I prefer to use) runs on the local machine _decoding_.
-
@qber Remember you can also use '-f x11grab -i :0.0' to cast the screen with ffmpeg, instead of the webcam ;)
Not sure which commands to use for wayland though, but I guess there's something neat available.
-
x11grab works just fine for Wayland too! I just failed in my tests because I didn't check the $DISPLAY environment variable :)