You are not logged in.

#1 2024-08-14 12:30:11

MAYBL8
Member
Registered: 2022-01-14
Posts: 307

[SOLVED] Capture streaming music to an .mp3 file

Does anyone know of a way to stream a radio station and capture the music to a .mp3 file.
I know I used to be able to do it with some package years ago I think it was called streamripper or something like that.
Streamripper seams to be discontinued. The latest info shows 2008.
Thanks

Last edited by MAYBL8 (2024-08-15 04:14:06)

Online

#2 2024-08-14 14:45:51

seth
Member
Registered: 2012-09-03
Posts: 61,589

Re: [SOLVED] Capture streaming music to an .mp3 file

What kind of "radio station"? UHF?
You can arecord any audio device and feed that into any encoder - but that's in real time (you record what you hear), there're cetainly faster ways to rip some podcast and more efficient ways to dump an mp3 stream.

Offline

#3 2024-08-14 18:09:15

MAYBL8
Member
Registered: 2022-01-14
Posts: 307

Re: [SOLVED] Capture streaming music to an .mp3 file

How about one from like a service called audacy?
https://www.audacy.com/stations

Online

#4 2024-08-14 19:47:45

seth
Member
Registered: 2012-09-03
Posts: 61,589

Re: [SOLVED] Capture streaming music to an .mp3 file

This site isn't currently available in the EU

But https://forums.digitalspy.com/discussio … rl-streams and it's not covered by https://github.com/yt-dlp/yt-dlp/raw/ma … edsites.md

If you've general access, you'll have to record eg. the PCM output (but that includes re-encoding and you'll also record the pinnnggg from your mail program)
If you're using pipewire check

wpctl status

then try

pw-record --target Firefox wwkb9.flac # mp3 doesn't seem to get encoded, you can transcode it afterwards

If audacy tells you to gfy, you'll need a VPN.

Offline

#5 2024-08-14 20:30:31

MAYBL8
Member
Registered: 2022-01-14
Posts: 307

Re: [SOLVED] Capture streaming music to an .mp3 file

OK that was interesting.
I use vivaldi as my browser so I substituted that which worked fine.

It seems however that it is recording from my microphone not from the speaker.

Must be some setting I need to figure out.  But I did get it to capture the sound.

Online

#6 2024-08-14 20:42:49

seth
Member
Registered: 2012-09-03
Posts: 61,589

Offline

#7 2024-08-15 04:13:14

MAYBL8
Member
Registered: 2022-01-14
Posts: 307

Re: [SOLVED] Capture streaming music to an .mp3 file

This worked perfect for what I want to do.
Thanks Seth for helping me
This is the line that worked for me

pw-record -P '{ stream.capture.sink=true }' test.flac

Online

Board footer

Powered by FluxBB