Best strategy to record streaming music

Non release banter
User avatar
francois
Contributor
Contributor
Posts: 4932
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Best strategy to record streaming music

Post#1 by francois » 24 Dec 2015, 21:08

I would like to know what is the best strategy to record streaming music. I would like to record classical music almost 24 hours a day for a few days. Should these files be recorded in segments that could be of one hour each? What format should I use, what quality should be these files? Explanations, suggestions are appreciated, I am no sound specialist.

If you know the following, please just provide your comments:
- media sniffer:
http://sourceforge.net/projects/mediasniffer/
- streamripper:

Code: Select all

usm sbo -b streamripper
- streamtuner2:
http://askubuntu.com/questions/666751/g ... artist-etc
For this one, I have deb2xzm the package from pkgs.org. However, it does not work as expected. Maybe some libraries are missing.
Voltaire: Le mieux est l'ennemi du bien.

aus9

Re: Best strategy to record streaming music

Post#2 by aus9 » 24 Dec 2015, 23:14

HI

edit

altho there may be others I would suggest streamripper.....hmm its old
To see how to use it, try this post
http://techpatterns.com/forums/about187 ... =streaming

it makes separate mp3s as your classical music is not a continuous track but normally a play or stream of some cd/vinyl etc

edit
OOPS its been a long time since I have used this app. One I need to add a router firewall rule but am tempted to use 8000-8100 but need more info from you on what you discover.

can you pm the link url or post here

that is, can you web browser stream it.
If it can we can inspect the elements to find the media url

User avatar
francois
Contributor
Contributor
Posts: 4932
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Best strategy to record streaming music

Post#3 by francois » 25 Dec 2015, 18:05

Thanks for replying aus9.

I am looking for a more automated solution, something running with a gui. Unless I did not caught the functioning of your package.

In fact, I would like to rip songza continuously while it free without audio adds. On january first as it has been bought by google =@ , there will be no way to get it to work without audio as it will be integrated into the google play add.

The mentioned software in the first post do not allow that, at least that I can understand for now.
Voltaire: Le mieux est l'ennemi du bien.

donald
Full of knowledge
Full of knowledge
Posts: 1155
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Best strategy to record streaming music

Post#4 by donald » 25 Dec 2015, 18:11

I've written a Tut, but it is in German...try google translate
viewtopic.php?f=133&t=5143
EDIT
The basics..(in english)
Streamripper is the tool of choice
64 bit
http://packages.slackonly.com/pub/packa ... eamripper/
32 bit
http://packages.slackonly.com/pub/packa ... eamripper/
it's a CLI-tool, 80kb, no dependencies needed
Basic: streamripper + URL
Example:
guest@porteus:~$ streamripper "http://stream.laut.fm/wattwerker"
(without the quotes)
-i = no mp3 tags
-d = path/where/to/store/the/mp3s (-d /mnt/sda2/rip for Example)
-u = changes the user agent (e.g. -u SimplePlayer/1.0)
Streamripper will rip the stream silently in the background untill you stop it
with ctrl+c
Streamripper has a lot of useful options

beny
Full of knowledge
Full of knowledge
Posts: 723
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Best strategy to record streaming music

Post#5 by beny » 25 Dec 2015, 19:01

streamripper http://173.192.176.180:8032 --with-id3v1 --xs-padding=7000:7000, the ip is only indicative you can choose the yours as you wish ,i think is the best for the stream music,but with care.....

aus9

Re: Best strategy to record streaming music

Post#6 by aus9 » 25 Dec 2015, 22:12

there are some front ends (gui) to streamripper.

please mention site by pm or forum post and am sure we can give further guidance.

again....be aware your router firewall may need a filter rule to allow out a certain port. I have seen a 5000 and 8000 range mentioned on the net

User avatar
brokenman
Site Admin
Site Admin
Posts: 5455
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Best strategy to record streaming music

Post#7 by brokenman » 26 Dec 2015, 02:15

You can also use vlc. Just stream it to a file. There are tutorials on the web. The downside is you can't listen to the music as you are recording it.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 4932
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Best strategy to record streaming music

Post#8 by francois » 26 Dec 2015, 09:25

Songza does not permit for the exact URL. Is there a way to record from the sound card with ffmpeg commands the sound that is emitted by the browser.

I have installed jack audio.
Voltaire: Le mieux est l'ennemi du bien.

aus9

Re: Best strategy to record streaming music

Post#9 by aus9 » 26 Dec 2015, 11:51

Songza looks like a pile of junk

I know you like classical but surely we can do better than that?

try this in web browser
http://www.shoutcast.com/
click on classical then I choose Symphony and the top one is called
Abacus.fm Mozart Symphony

see 2 icons one is play in browser and the second one is the download button....choose download

open download called something . m3u gives me
#EXTM3U
#EXTINF:-1,Abacus.fm Mozart Symphony
http://listen.radionomy.com/abacusfm-mozart-symphony
create a dir to hold streams and then watch the action flow

Code: Select all

mkdir streams
streamripper http://listen.radionomy.com/abacusfm-mozart-symphony -d streams
assumes your firewall in router is good to allow out 8000-8100.

EDIT

Just found out that a second download has the same filename so best to rename them in case you try out several

User avatar
francois
Contributor
Contributor
Posts: 4932
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Best strategy to record streaming music

Post#10 by francois » 26 Dec 2015, 14:37

@aus9:

Thanks for shoutcast. I am trying your strategy now.

@donald, beny and brokenman:
I will try your instructions too.

@all:
As anyone tried avcon:
http://meshfields.de/audio-stream-recor ... ux-avconv/
Voltaire: Le mieux est l'ennemi du bien.

beny
Full of knowledge
Full of knowledge
Posts: 723
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Best strategy to record streaming music

Post#11 by beny » 26 Dec 2015, 16:31

hi francois the streamripper line that i have posted make a directory named like the radio stream and make the title of the songs stream and most important thing make the song track with no cut you have a little of the previous song and a little of the next song,nothing that audacity can solve if you wish.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5455
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Best strategy to record streaming music

Post#12 by brokenman » 26 Dec 2015, 17:18

I found streamripper great. Small and versatile.

streamripper http://listen.radionomy.com/Addictive-70s -d sripper -r 8080

This starts ripping the radio station to a folder called sripper (same directory as you give the command). It also opens a relay on port 8080. This means you can open deadbeef and choose add/location and enter 127.0.0.1:8080 so you can listen as it is ripping. Nice. Thanks for the suggestion.
How do i become super user?
Wear your underpants on the outside and put on a cape.

beny
Full of knowledge
Full of knowledge
Posts: 723
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Best strategy to record streaming music

Post#13 by beny » 26 Dec 2015, 17:29

well this is ok but after a while if you stay on too much have to change user agent with another but i don't know how,because the radio stream check the ip list and maybe blacklist it.

fullmoonremix

Re: Best strategy to record streaming music

Post#14 by fullmoonremix » 26 Dec 2015, 18:06

Salutations... :good:

IMHO... :oops: he best format for "lossless" is flac... the best for "lossy" is ogg.
@ least this is what the specifications imply regarding digital artifacts.

Best Regards... :beer:

User avatar
francois
Contributor
Contributor
Posts: 4932
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Best strategy to record streaming music

Post#15 by francois » 26 Dec 2015, 18:08

Trying to get streamripper going on for shoutcast for one of the classical baroque shoutcast station:

Code: Select all

root@porteus:~# streamripper http://www.shoutcast.com -d /mnt/sdb1/shoutcast/baroque/
Connecting...

error -10 [SR_ERROR_NO_RESPONSE_HEADER: Server is not a shoutcast stream]
bye..
shutting down
root@porteus:~#
The problem I have is to set the right url! :(
Voltaire: Le mieux est l'ennemi du bien.

Post Reply