#!/bin/bash

pkill tsplay
sleep 1

#tsplay -maxnowait 16 RED-Multi\(120mbs\)-sound.ts 233.69.69.101:29101 -i 10.32.10.1 -loop &> /dev/null &
#tsplay -maxnowait 16 NoiseRed-25fps-SlowMotion-120mbs-sound.ts 233.69.69.102:29102 -i 10.32.10.1 -loop &> /dev/null &
#tsplay fashion_uhd_big.ts 233.69.69.101:29101 -i 10.32.10.1 -loop &> /dev/null &

#ffmpeg -stream_loop 1 -re -i fashion_uhd_big.ts  -c:v copy -c:a copy -f mpegts "udp://233.69.69.101:29101?overrun_nonfatal=1&fifo_size=286720&localaddr=10.32.10.1&ttl=16&pkt_size=1316"
#ffmpeg -stream_loop 1 -re -i fashion_uhd_big.ts  -c:v libx264 -b:v 100000k -maxrate 100000k -g 25 -keyint_min 1 -sc_threshold 0 -c:a copy -f mpegts "udp://233.69.69.101:29101?overrun_nonfatal=1&fifo_size=286720&localaddr=10.32.10.1&ttl=16&pkt_size=1316"
#ffmpeg -stream_loop 1 -re -i fashion_uhd.ts  -c:v libx264 -b:v 100000k -maxrate 100000k -g 25 -keyint_min 1 -sc_threshold 0 -c:a copy -f mpegts fashion_uhd_big.ts

#ffmpeg -stream_loop 1 -re -i Sintel.2010.4k.mkv  -c:v copy -c:a copy -f mpegts "udp://233.69.69.101:29101?overrun_nonfatal=1&fifo_size=286720&localaddr=10.32.10.1&ttl=16&pkt_size=1316"
#ffmpeg -stream_loop 1 -re -analyzeduration 500000000 -probesize 500000000 -i timer_1gbps_mpts_3.ts -c:v copy -c:a copy -f mpegts "udp://233.69.69.101:29101?overrun_nonfatal=1&fifo_size=286720&localaddr=188.169.108.38&ttl=16&pkt_size=1316"

ffmpeg -stream_loop 1 -re -analyzeduration 5000000000 -probesize 5000000000 -i 1hour_1500mbps.ts -c:v copy -c:a copy -f mpegts "udp://233.69.69.101:29101?overrun_nonfatal=1&fifo_size=286720&localaddr=10.33.10.1&ttl=16&pkt_size=1316"


