Sending A V4L Camera Device Output Over SSH¶
Capture Video To File¶
$ ffmpeg -an -f video4linux2 -s 640x480 -i /dev/video0 -r 10 -b:v 500k -f matroska out.mks
Option |
Description |
---|---|
|
Disable audio |
|
Force format to |
|
Frame size 640x480 |
|
Input file be |
|
Frame rate 10 Hz |
|
Video bitrate 500k |
|
Force format to |
Play Video From Remote System, Using SSH¶
If
ffmpeg
sees-
(instead ofout.mks
) as output file, then it usesstdout
.Same holds for
mplayer
, it then usesstdin
$ ssh USER@REMOTE 'ffmpeg -an -f video4linux2 -s 640x480 -i /dev/video0 -r 10 -b:v 500k -f matroska -' | mplayer -