1
I am trying to download a streaming audio feed, from an online radio station. The station used to operate on a MP3 shoutcast feed, but now has upgraded to an AAC HTTP audio feed.
I used to use "streamripper" in terminal to rip the station for my car rides, but now streamripper fails to rip the new stream. I'm pretty sure the station is utilizing http chunked transfer encoding now for their stream, which streamripper does not support.
I have come up with a new solution, where I isolated the audio feed from the station's web player, and I am utilizing cURL to rip the feed into an audio file I can take with me.
However I am constantly getting "completions" on my cURL, when it should endlessly record. I have even set the max time parameter to 43200s (12 hours), but I just end up with varying file sizes. Usually each resultant file is not longer than 1 hour. Sometimes it can be longer than an hour though. The file sizes and times are different. The file "breaks/completes" after a short period and I have to use a script to restart the cURL recording. I end up with a large folder of fractal recordings, when I should just have 2 recordings per day, (every 12 hours). When I look at the verbose of the cURL transfer, it just ends with "cURL connection left in tact". There is no error in the cURL log, therefore I am not sure how I can force cURL to attempt to "reconnect" and keep parsing the stream into the same file, even though it thinks it's finished.
I have also tried using "wget" and "Jdownloader", They both have the same result, where it finishes after a short amount of time.
I am not sure what I can do to essentially force a reconnect and keep downloading into the same file without overwriting it.
What can I do to make sure my recordings don't "break"? Is there anything I can do to either force a reconnect? Or perhaps there is some way to tell cURL to wait even if the cURL transfer speed drops to 0?
Any thoughts would be highly appreciated.
Thank you
Can you post a link to the main page or main stream URL for this station? Several modern HTTP-based streaming formats, such as HLS and DASH, are automatically posted in chunks rather than a single continuous file containing the whole program. – Spiff – 2019-10-17T19:04:47.357
(http://zas4.ndx.co.za/proxy/bushradio?mp=/stream) is the URL to the direct audio feed. My recording durations vary, sometimes it is 10 minutes sometimes it is 3 hours. But I can never get a 12 hour file. If there is any information you can provide regarding the stream that would be great! I would love it if I can get a continuous feed without breaks.
– gunter – 2019-10-18T07:19:05.587