#!/bin/bash
#rm /storage/dockerCommands/jellyfin/config/data/tv/RCN-Television/RCN-Radio/*.ts
#/storage/dockerCommands/jellyfin/config/data/tv/ffmpeg-master-latest-linux64-gpl/bin/ffmpeg -fflags +discardcorrupt -i rtp://10.1.1.1:6014 -f hls -hls_time 10 -hls_list_size 3 -hls_flags delete_segments /storage/dockerCommands/jellyfin/config/data/tv/RCN-Television/RCN-Radio/RCN-Radio.m3u8

ffmpeg \
-i rtp://10.1.1.1:6014 \
-f hls -c:a aac -hls_time 6 -hls_list_size 4 -hls_flags +delete_segments \
/storage/dockerCommands/jellyfin/config/data/tv/RCN-Television/RCN-Radio/RCN-Radio.m3u8 \
2>&1 | stdbuf -oL sed 's/^/[Tv-RCN-Television-RCN-Radio] /'
