#!/bin/bash # DEV=/dev/video DEV=$1 [ -z "$DEV" ] && DEV=/dev/video ffmpeg -an -r 1 -s 320x240 -vd $DEV -b 20 pipe:.avi | netcat -l -p 10001