LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-21-2010, 06:29 AM   #1
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Rep: Reputation: 15
Question 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
 
Old 02-21-2010, 07:07 AM   #2
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Original Poster
Rep: Reputation: 15
I must add that I can access this stream only with vlc.

borgibo
 
Old 02-21-2010, 07:33 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Try:

Code:
mplayer -dumpstream http://radio.cesnet.cz:8000/cro-d-dur.flac
I just tested it and it works.
 
Old 02-21-2010, 11:45 AM   #4
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Original Poster
Rep: Reputation: 15
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
 
Old 02-21-2010, 12:10 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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.
 
Old 02-21-2010, 01:08 PM   #6
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Original Poster
Rep: Reputation: 15
@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:~$
 
Old 02-21-2010, 02:19 PM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
and no stream was produced ?
 
1 members found this post helpful.
Old 02-21-2010, 02:35 PM   #8
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Original Poster
Rep: Reputation: 15
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
 
Old 02-21-2010, 03:01 PM   #9
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Original Poster
Rep: Reputation: 15
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
 
Old 02-21-2010, 03:07 PM   #10
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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.

Last edited by H_TeXMeX_H; 02-21-2010 at 03:09 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while ripping to flac Jeebizz Slackware 16 11-25-2008 11:38 AM
Automatic CD ripping to FLAC with tags Xzi Debian 3 08-25-2007 10:15 PM
ripping to FLAC and vorbis in tandem? bl0tt0 Slackware 3 07-21-2006 06:22 PM
k3b error when ripping CDs to flac in Suse 9.3 smannell SUSE / openSUSE 3 05-10-2005 01:03 PM
K3B + flac + ripping = hang. ShockValue Linux - Software 3 11-12-2003 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration