LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ripping streams flac compressed (https://www.linuxquestions.org/questions/linux-software-2/ripping-streams-flac-compressed-790536/)

borgibo 02-21-2010 06:29 AM

ripping streams flac compressed
 
Hello,

This is a peculiar question that I have and I am semi-newbie!

With my debian Lenny based distro AV3.0r1 I use kstreamripper to rip music streamed in mp3 from various radio stations, the best being 320kbps.
Lately I discovered a Czech station http://radio.cesnet.cz:8000/cro-d-dur.flac which streams lossless flac compressed music, classical, at the average rate of 800kbps. It has already been active for 6-7 months I understand.
The sound is excellent, I can listen to it with kstreamripper but I cannot rip (record) the music in my HD.

I was told to try "rip-spotify" which as I have been informed can rip streams while I listen to them but they have to originate from spotify itself. Which does not include the above mentioned Czech radio station of course.

Are there any suggestions of what can be used? Logically since I receive the streams which are converted to audio signals through my sound card I should be able to record them in binary form?

Thank you for your attention,


borgibo:cry:

borgibo 02-21-2010 07:07 AM

I must add that I can access this stream only with vlc.

borgibo

H_TeXMeX_H 02-21-2010 07:33 AM

Try:

Code:

mplayer -dumpstream http://radio.cesnet.cz:8000/cro-d-dur.flac
I just tested it and it works.

borgibo 02-21-2010 11:45 AM

Thank you,

I just replaced vlc and put mplayer in kstreamripper "mplayer<url>" and it works, that is I do get sound but I still cannot rip! And I suspect that vlc gives better quality or I am only imagining it.

borgibo

H_TeXMeX_H 02-21-2010 12:10 PM

Just run that command in a terminal and it will create a file called "stream.dump", which can then be played. I don't know anything about kstreamripper.

borgibo 02-21-2010 01:08 PM

@H TeXMeX H

I did run the command and I got the following:

jv@borgibo:~$ mplayer -dumpstream http://radio.cesnet.cz:8000/cro-d-dur.flac
MPlayer SVN-r30200 (C) 2000-2009 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing http://radio.cesnet.cz:8000/cro-d-dur.flac.
Resolving radio.cesnet.cz for AF_INET6...
Couldn't resolve name for AF_INET6: radio.cesnet.cz
Resolving radio.cesnet.cz for AF_INET...
Connecting to server radio.cesnet.cz[195.113.161.70]: 8000...
Name : Cesky rozhlas D-dur
Genre : classical
Website: http://www.rozhlas.cz
Public : no
Bitrate: 128kbit/s
Cache size set to 320 KBytes
Stream not seekable!
Core dumped ;)

Exiting... (End of file)
jv@borgibo:~$

H_TeXMeX_H 02-21-2010 02:19 PM

and no stream was produced ?

borgibo 02-21-2010 02:35 PM

Thank H TeXMeX H for your help very much. The problems I encountered could have certainly been solved had I been a bit more experienced or learned.

I used another way to enable recording (ripping) http://radio.cesnet.cz:8000/cro-d-dur.flac. vlc.

Since vlc would not work independently in my AV3.0r1 Linux machine for some obscure reason, I tried it in conjunction with kstrearipper by placing the command vlc<url> at the botom left of kstreamripper. Then clicking on the "tune" window after placing the url adress in "Add Stream>Url of Stream>OK" I was connected to the above station and the vlc window showed up.

I then went to view>advanced controls> and a red record button appeared which when clicked once while listening to music starts ripping (recording).

I am using Alsa so I went further to improve the sound quality to Tools> Preferences> Audio> Output> Alsa

I did test the downloaded files and could play them with mplayer only, could not find vlc by right clicking on the files.

So I suppose this has solved my problem.


Thanks again


borgibo

borgibo 02-21-2010 03:01 PM

To H TeXMeX for his last post #7!!!!!

Yes the stream was most probably produced as I tried it again, after reading your post which I missed while writing mine...
and it is being recorded right now sitting in a vlc file in my home. My mistake was that since I heard no sound I presumed it had not worked! I should have checked gkrellm's downloads window. Sorry for that. That is the result of lack of knowledge. Sorry again. Now why it opened a vlc file and not a mplayer file I do not know.

It is very nice since I can use that way when I want to record only. With the vlc way I can record only while I am listening. Closing the vlc window stops both sound and recording/ripping.

You will laugh now but how do I stop the recording? Using some other command like "exit"?


borgibo very happy:D

H_TeXMeX_H 02-21-2010 03:07 PM

Well, you can press 'Ctrl-C' on the keyboard to kill it.

Technically, I prefer streamripper for ripping because it generates separate files for each song, but it may not work in this case as kstreamripper is a frontend for this program, and it seems not to work.


All times are GMT -5. The time now is 10:29 AM.