#!/bin/bash
#rm /storage/dockerCommands/jellyfin/config/data/tv/Caracol-Television/La-Kalle-HD/*
#/storage/dockerCommands/jellyfin/config/data/tv/ffmpeg-master-latest-linux64-gpl/bin/ffmpeg -fflags +genpts+discardcorrupt+nobuffer -i rtp://10.1.1.1:6006 -f hls -hls_time 10 -hls_list_size 3 -hls_flags delete_segments /storage/dockerCommands/jellyfin/config/data/tv/Caracol-Television/La-Kalle-HD/La-Kalle-HD.m3u8


ffmpeg -hwaccel cuda -hwaccel_output_format cuda -noautorotate -err_detect ignore_err -fflags +discardcorrupt \
-i rtp://10.1.1.1:6006 \
-map 0:a:0 -map 0:v:0 \
-c:v h264_nvenc \
-b:v 6000k \
-f hls -hls_time 6 -hls_list_size 4 -hls_flags +delete_segments \
/storage/dockerCommands/jellyfin/config/data/tv/Caracol-Television/La-Kalle-HD/La-Kalle-HD.m3u8 \
2>&1 | stdbuf -oL sed 's/^/[Tv-Caracol-Television-La-Kalle-HD] /'

#ffmpeg -hwaccel cuda -hwaccel_output_format cuda -noautorotate -err_detect ignore_err -fflags +discardcorrupt \
#-i rtp://10.1.1.1:6006 \
#-map 0:a:0 -map 0:v:0 \
#-c:v copy \
#-c:a aac \
#-b:v 6000k \
#-f hls -hls_time 6 -hls_list_size 4 -hls_flags +delete_segments \
#/storage/dockerCommands/jellyfin/config/data/tv/Caracol-Television/La-Kalle-HD/La-Kalle-HD.m3u8

