2024-09-27, 08:52 AM
Hi,
My iptv provider uses rotating links for the stream which are fetched from a base url.
E.G ffmpeg connects to "https://someiptvprovider.com/streams/994724824708/" which returns "https://someiptvprovider.com/hls/hfsjfhiouf89f89f7fs8fg/index.m3u8
the issue with this is that the return url changes every 2 hours or so, causing ffmpeg to close and cut off my recordings,
I've tried to use some flags like "-reconnect" and "-reconnect_on_eof" and stuff like that, the issue is that these flags
try to reconnect to the redirected url instead of the one input into ffmpeg. there is a 7 year old bugtracker post about this
on ffmpeg's bugtracker, but it's still open and has no responses at all.
Is it possible to have some sort of xml line that checks if ffmpeg closed and restarts it to continue playing?
E.G
<reconnect>
reconnect=true
</reconnect>
I'm also open to other ideas to get the same result.
My iptv provider uses rotating links for the stream which are fetched from a base url.
E.G ffmpeg connects to "https://someiptvprovider.com/streams/994724824708/" which returns "https://someiptvprovider.com/hls/hfsjfhiouf89f89f7fs8fg/index.m3u8
the issue with this is that the return url changes every 2 hours or so, causing ffmpeg to close and cut off my recordings,
I've tried to use some flags like "-reconnect" and "-reconnect_on_eof" and stuff like that, the issue is that these flags
try to reconnect to the redirected url instead of the one input into ffmpeg. there is a 7 year old bugtracker post about this
on ffmpeg's bugtracker, but it's still open and has no responses at all.
Is it possible to have some sort of xml line that checks if ffmpeg closed and restarts it to continue playing?
E.G
<reconnect>
reconnect=true
</reconnect>
I'm also open to other ideas to get the same result.