Recording an internet radio stream? streamripper troubles

Support & discussion regarding DAWs and MIDI sequencers.

Moderators: MattKingUSA, khz

Post Reply
User avatar
milkii
Established Member
Posts: 477
Joined: Tue Jan 05, 2016 9:08 am
Location: Edinburgh
Has thanked: 92 times
Been thanked: 91 times
Contact:

Recording an internet radio stream? streamripper troubles

Post by milkii »

I'm looking to record the hour long sets on Subtle Radio (direct stream link) for replay at festivals where streaming won't work because a device might need to be moved without moving the music or the mobile signal is not that good (due either to location or contention). They have outsourced their archives to Mixcloud, which re-encodes the audio to a lower quality, so I'd like to direct rip the audio stream.

streamripper - I've used this, well over a decade ago, but I can't for the life of me get it working currently;

Code: Select all

streamripper "https://subtle.out.airtime.pro/subtle_a?_=1" -u "curl/7.83.1" --stderr --debug
Connecting...

error -7 [SR_ERROR_RECV_FAILED]
bye..
shutting down
I have also tried and failed with another stream which also plays in the browser and saves on curl; https://ice6.somafm.com/vaporwaves-128-mp3

Am I missing something obvious or not so?

(I have also seen there is https://github.com/streamripper/streamripper but it's not readily apparent how to get that version to build, not that it might make much difference.)

they/them ta / libreav.org / wiki.thingsandstuff.org/Audio and related pages / gh

User avatar
LAM
Established Member
Posts: 992
Joined: Thu Oct 08, 2020 3:16 pm
Has thanked: 140 times
Been thanked: 348 times

Re: Recording an internet radio stream? streamripper troubles

Post by LAM »

I get this:

Code: Select all

Connecting...

error -5 [Could not connect to the stream. Try checking that the stream is up
and that your proxy settings are correct.]
bye..
shutting down
I tried with different user agents too.

However, connecting with mpv or another player works without problems. :roll:

in mix, nobody can hear your screen

User avatar
milkii
Established Member
Posts: 477
Joined: Tue Jan 05, 2016 9:08 am
Location: Edinburgh
Has thanked: 92 times
Been thanked: 91 times
Contact:

Re: Recording an internet radio stream? streamripper troubles

Post by milkii »

The only other option I know for something that can split streams into shows via the changes of the stream title is RadioDroid, though that'd require a spare phone and some networking/share setup*, something I can bother with before next summer.

*or I guess Anbox

they/them ta / libreav.org / wiki.thingsandstuff.org/Audio and related pages / gh

User avatar
LAM
Established Member
Posts: 992
Joined: Thu Oct 08, 2020 3:16 pm
Has thanked: 140 times
Been thanked: 348 times

Re: Recording an internet radio stream? streamripper troubles

Post by LAM »

I used this one, years ago:

https://github.com/fadecut/fadecut

It worked amazingly well, but it's using streamripper as backend, so not a solution. :?

in mix, nobody can hear your screen

User avatar
bluzee
Established Member
Posts: 338
Joined: Mon Nov 30, 2020 11:43 pm
Has thanked: 18 times
Been thanked: 88 times

Re: Recording an internet radio stream? streamripper troubles

Post by bluzee »

User avatar
LAM
Established Member
Posts: 992
Joined: Thu Oct 08, 2020 3:16 pm
Has thanked: 140 times
Been thanked: 348 times

Re: Recording an internet radio stream? streamripper troubles

Post by LAM »

bluzee wrote: Mon May 16, 2022 10:52 pm yt-dlp "https://subtle.out.airtime.pro/subtle_a?_=1"
Can yt-dlp split tracks automatically?
Last edited by LAM on Mon May 16, 2022 11:28 pm, edited 1 time in total.

in mix, nobody can hear your screen

User avatar
bluzee
Established Member
Posts: 338
Joined: Mon Nov 30, 2020 11:43 pm
Has thanked: 18 times
Been thanked: 88 times

Re: Recording an internet radio stream? streamripper troubles

Post by bluzee »

If the stream ends then it will exit. You would have to script it to restart. If they run different shows but continue in the same stream then no you'll have to manually cut them.

Once upon a time I had an app that would display the waveform and make lossless cuts in an mp3. Could split up a whole days worth of lectures into separate files quickly with no re-encoding. Can't find it ATM.

Edit: Might have been mp3split-gtk. Can split automatically using silence detection.
User avatar
milkii
Established Member
Posts: 477
Joined: Tue Jan 05, 2016 9:08 am
Location: Edinburgh
Has thanked: 92 times
Been thanked: 91 times
Contact:

Re: Recording an internet radio stream? streamripper troubles

Post by milkii »

Splitting on title change (because often there is no silence) and using steam title for filename/metadata is a must I'm afraid. The problem is compounded by the title sometimes being just the name of the slot rather than the particular DJ/hour, so I'm gonna have to dedupe somehow after.

The station info@ hasn't gotten back to me yet, nor for they when I asked something else least year, so might physically mail the CIC soon just in case, cos uuugh to faff.

they/them ta / libreav.org / wiki.thingsandstuff.org/Audio and related pages / gh

Post Reply