#!/bin/sh gst-launch v4l2src device=/dev/video$1 ! videoscale! video/x-raw-yuv,width=320,height=240,framerate=30/1 ! ffmpegcolorspace ! jpegenc ! tcpserversink host=$2 port=5000
#!/bin/sh gst-launch tcpclientsrc host=$1 port=5000 ! jpegdec ! autovideosink