#!/bin/bash

gst-launch-1.0 -v videotestsrc ! video/x-raw, width=1920, height=1080, framerate=30/1, format=NV12 ! x264enc ! rtph264pay ! udpsink host=128.247.75.237 port=5000 &
PID1=$!
gst-launch-1.0 -v videotestsrc pattern=ball ! video/x-raw, width=1920, height=1080, framerate=30/1, format=NV12 ! x264enc ! rtph264pay ! udpsink host=128.247.75.237 port=6000 &
PID2=$!

echo "both pipelines are running"
echo "Pipeline 1 snow PID: $PID1"
echo "Pipeline 2 ball PID: $PId2"

echo "Press Ctrl+C to stop the pipelines"

wait
