#!/bin/bash

gst-launch-1.0 -v udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! \
rtpjitterbuffer latency=50 ! rtph264depay ! h264parse ! v4l2h264dec ! queue ! v4l2h264enc output-io-mode=5 ! rtph264pay ! udpsink host=$1 port=5100 &

gst-launch-1.0 -v udpsrc port=6000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! \
rtpjitterbuffer latency=50 ! rtph264depay ! h264parse ! v4l2h264dec ! queue ! v4l2h264enc output-io-mode=5 ! rtph264pay ! udpsink host=$1 port=6100




