SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-08-15 20:21:41

lowrider
#! Die Hard
From: Germany
Registered: 2011-09-10
Posts: 749

How To rip your fav Web-Radio Station to mp3 from the commandline

Well this community helped me so often out, so i think it's time to give back a little.

If you sometimes think hm, great radiostation i am listening to. Would be nice if i can record this tunes automagically to my hd.
Nevermind, you can.
There is this little program called streamripper and it just do that. Rip a Webradio Station to fine cutted mp3's to your hd.

you can get it from the repos with:

sudo apt-get install streamripper

to run it type:
streamripper *url_of_stream*
aka

streamripper http://voxsc1.somafm.com:8850

as an example.

By default it creates a directory for any Station in the Folder from where the command is started.
You can change this by setting a output_dir in ~/.config/streamripper/streamripper.ini like so:

[sripper]
version=1.64.5
url=

[stream defaults]
url=
proxy=
output_dir=/home/rolf/music/WebRadio/
output_pattern=
showfile_pattern=
if_name=
rules_file=
pls_file=
relay_ip=
useragent=
ext_cmd=
relay_port=8000
max_port=18000
max_connections=1
maxMB_bytes=0
dropcount=1
over_write_complete=version
auto_reconnect=1
separate_dirs=1
make_relay=0
add_numeric_prefix=0
add_date_stamp=0
check_max_bytes=0
keep_incomplete=0
rip_single_file=0
truncate_incomplete_when_in_complete=0
rip_individual_tracks=1
use_ext_cmd=0
add_id3v1=0
add_id3v2=1
xs=1
xs_offset=0
xs_silence_length=1000
xs_search_window_1=6000
xs_search_window_2=6000
xs_padding_1=0
xs_padding_2=0
codeset_metadata=ISO-8859-1
codeset_relay=ISO-8859-1
codeset_id3=UTF-16
codeset_filesys=UTF-8

The result of it can easy be seen on the screenshot followed.
showing:
- moc playing a web-stream (not needed for recording)
- streamripper doing his job
- thunar showing the output on hd
- geany with a .pls file from which i grabbed the streamurl

2012_06_04_234714_1440x900_scrot.jpg

for a huge amount of radiostations you can look at shoutcast.com.

or try the .pls file i have used (which is from a forum member here, but i forgot who it was. apologies for that)
http://pastebin.com/QNV5yLh6

sorry for typos or bad english. have fun.


came for the distro, stayed for the community
streamripper :: smxi

Offline

Help fund CrunchBang, donate to the project!

#2 2012-08-15 20:26:20

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

nice! is this illegal? smile

Offline

#3 2012-08-15 20:33:00

lowrider
#! Die Hard
From: Germany
Registered: 2011-09-10
Posts: 749

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

no, it's not! you can allways record from radio or am i misinformed?


came for the distro, stayed for the community
streamripper :: smxi

Offline

#4 2012-08-15 20:42:53

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

^ Technically, that's illegal too, but "everybody does it".  And most portable media players with radio tuners and recording capabilities will let you do it, so...

Offline

#5 2012-08-15 20:46:42

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

so, grey area. not that i care much, but just let it be mentioned at least, for those who do care smile

Offline

#6 2012-08-15 20:49:59

lowrider
#! Die Hard
From: Germany
Registered: 2011-09-10
Posts: 749

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

well, i don't steal or copy/dl music from the web. i just record a radiostation as i do since the early days of casette-tapes. these are no highlevel copys like flac or even raw cd-audio...

edit:
<---- junkie from now on big_smile

Last edited by lowrider (2012-08-15 20:50:50)


came for the distro, stayed for the community
streamripper :: smxi

Offline

#7 2012-08-15 20:51:30

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

I've used the "analog hole" to record internet streams before, but this looks more like a bit dump.  I think this may be slightly less illegal; seems to me the more steps you have to take to pull it off, the less legal it is.

Offline

#8 2012-08-15 21:27:26

friTTe
#! CrunchBanger
From: Sweden
Registered: 2010-06-20
Posts: 150
Website

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

Omg...never got time to try this, but looks so simple and easy to use.
Will grab it right away


*ripping as i write this...to a folder of my choice thanks to the guide there smile

Last edited by friTTe (2012-08-15 21:36:57)

Offline

#9 2012-08-15 21:48:53

lowrider
#! Die Hard
From: Germany
Registered: 2011-09-10
Posts: 749

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

^mission completed lol


came for the distro, stayed for the community
streamripper :: smxi

Offline

#10 2012-08-16 20:55:46

gensym
#! Junkie
Registered: 2011-10-17
Posts: 447

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

This is gold.


'Multiple exclamation marks,' he went on, shaking his head, 'are a sure sign of a diseased mind.', {Eric}

Offline

#11 2012-08-16 22:50:38

edps
Member
From: Rio de Janeiro, Brazil
Registered: 2012-05-19
Posts: 30
Website

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

lowrider wrote:

^mission completed lol

@lowrider: great work man!

this how-to was adapted to the brazilian language:

http://gnu2all.blogspot.com.br/2012/08/ … minal.html

thanks for sharing!

Offline

#12 2012-08-16 23:39:27

Neil
#! CrunchBanger
From: Paragould AR USA
Registered: 2010-05-01
Posts: 219

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

Awesome!  I've casually wonder if there were a way to record Web-Radio, and here it is.  Thanks!
Now if there is a way to schedule recordings of my favorite live Web-Radio shows.... that would be even awesomer.

Offline

#13 2012-08-16 23:42:16

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

Neil wrote:

Awesome!  I've casually wonder if there were a way to record Web-Radio, and here it is.  Thanks!
Now if there is a way to schedule recordings of my favorite live Web-Radio shows.... that would be even awesomer.

If you want to leave your machine on all the time, it would be easy to set a cron job to start streamripper at a particular time.

Offline

#14 2012-08-16 23:52:15

Neil
#! CrunchBanger
From: Paragould AR USA
Registered: 2010-05-01
Posts: 219

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

Cool...my machine generally runs 24/7 anyway.  Still learning something new every day.

Offline

#15 2012-08-16 23:56:17

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

https://en.wikipedia.org/wiki/Cron
https://help.ubuntu.com/community/CronHowto
"man cron"

Last edited by pidsley (2012-08-16 23:56:36)

Offline

#16 2012-08-17 21:46:11

lowrider
#! Die Hard
From: Germany
Registered: 2011-09-10
Posts: 749

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

thanks guys for the nice comments!
glad you like it smile


came for the distro, stayed for the community
streamripper :: smxi

Offline

#17 2012-10-30 04:06:32

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

^ Nice one lowrider, I missed this somehow when you created it...

I have used streamripper for years and swear by it...

Also in the repos is streamtuner2 which uses streamripper as it's backend ... It is a great resource for finding active streams/urls and then simply right clicking on it to record it with streamripper

It has the following Stream Channels to choose from

SHOUTcast
Xiph.org
InternetRadio
Jamendo
MyOggRadio
Live365
MusicGoal
Modarchive
Google


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#18 2012-12-18 10:25:22

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

it's not illegal to record to hard disk what you are listening to. or to cassette. or wax cylinders.

Offline

#19 2012-12-18 13:59:03

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

Actually, it kinda is.  This actually goes back to a time when consumers of music were actually paying for the physical copy of the recording, not just the music itself.  Consumers were aware that vinyl discs rear and get scratched, so they may need to be replaced with new copies that they would also have to purchase.  A cassette copy reduces the wear on the record, so the record company doesn't sell as many copies.  (Note that I'm not even bringing the idea of artists' residuals into this, as the record companies hardly even give their properties squat. roll )  It's considered a rather petty crime, not even rising to the level of jaywalking, but it's still technically illegal.

Recording a free broadcast is a gray area.  If it's recorded off a commercial radio station, the station conceivably loses ad revenue...

Offline

#20 2012-12-19 17:16:15

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: How To rip your fav Web-Radio Station to mp3 from the commandline

VastOne wrote:

streamtuner2 which uses streamripper as its backend

Well, more as an addon than backend maybe... Anyway streamtuner2 is a useful app to have around!


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
#! forum moderator    BunsenLabs

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo