I have this command:
ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" -cenc_decryption_key "************" -i "************.mpd" -map 0:v:$(ffprobe -v quiet -select_streams v -show_entries stream=index,width,height -of csv=p=0 -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" "************.mpd" | sort -t"," -k2,2nr -k3,3nr | head -n1 | cut -d"," -f1 || echo 0) -map 0:a? -map 0:s? -c copy -f mpegts -tune zerolatency pipe:1
If I run it manually, it works, but if I try to pipe it in TVH it doesn't.
pipe://ffmpeg...
If I remove the ffprobe part and mapping options, it works.
Does anyone know why it won't work with them?
2024-06-23 21:41:19.250 iptv: stdin pipe 87 unexpectedly closed: No data