#!/bin/bash
#rm /storage/dockerCommands/jellyfin/config/data/tv/Caracol-Television/Blu-Radio/*.ts
#/storage/dockerCommands/jellyfin/config/data/tv/ffmpeg-master-latest-linux64-gpl/bin/ffmpeg -loglevel quiet -i rtp://10.1.1.1:6004 -f hls -c copy -hls_time 10 -hls_list_size 3 -hls_flags delete_segments /storage/dockerCommands/jellyfin/config/data/tv/Caracol-Television/Blu-Radio/Blu-Radio.m3u8

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