[FFmpeg-user] ffmpeg doesn't reconnect when capturing live connections
arthurpeabody
arthurpeabody at rickstewart.com
Sun Jan 12 17:28:27 EET 2025
I capture live streams. When a stream drops ffmpeg stops capturing, doesn't reconnect, and keeps running after the time limit. For example:
ffmpeg -i https://playerservices.streamtheworld.com/api/livestream-redirect/KUNMFM_32.mp3 -t 180 -reconnect true -reconnect_streamed true -reconnect_on_network_error true -timelimit 180 -loglevel warning kunm_StarDate-20250111-1800.mp3
I used to use streamripper, which keeps on trying to reconnect for the time specified and quits when the time expires, but works only for icecast and shoutcast streams.
More information about the ffmpeg-user
mailing list