Skip to content

Instantly share code, notes, and snippets.

@cargabsj175
Last active August 29, 2015 14:27
Show Gist options
  • Save cargabsj175/b635843b3c5fbb09b09c to your computer and use it in GitHub Desktop.
Save cargabsj175/b635843b3c5fbb09b09c to your computer and use it in GitHub Desktop.
A Remote video via ssh script
#! /bin/bash
#
# View your remote webcam via ssh...
#
VFILE=dump_$(date +%Y%m%d_%H%M)
ssh root@192.168.0.101 \
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