Last active
August 29, 2015 14:27
-
-
Save cargabsj175/b635843b3c5fbb09b09c to your computer and use it in GitHub Desktop.
A Remote video via ssh script
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
#! /bin/bash | |
# | |
# View your remote webcam via ssh... | |
# | |
VFILE=dump_$(date +%Y%m%d_%H%M) | |
ssh [email protected] \ | |
ffmpeg -b 100K \ | |
-an \ | |
-f video4linux2 \ | |
-s 320x240 \ | |
-r 10 \ | |
-i /dev/video0 \ | |
-b 100K \ | |
-f ogg - \ | |
| cat - > ${VFILE} | vlc ${VFILE} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment