
RecordStream
Source (link to git-repo or to original if based on someone elses unmodified work):
It supports live streams and streams from web radios. Also supports MP3 and wav files.
Tip: You can record a stream and listen to another one at the same time.
Requirements: The programs streamripper and/or mplayer must be installed.
Bugs:
mms://* streams can not strean as mp3. Use record as wav file instead.
Version 0.9.7
Support for mplayer2 added.
Version 0.9.6
This is a technical release. New features have not been added. It is no longer automatically loaded bash at startup. QT version >= 4.6.3 is required.
Version 0.9.4
- Recording time option was added.
Version 0.9.3
- Add czech translation
Many thanks to Pavel Fric
Version 0.9.2
- Add some configure options.
Version 0.9
- Add a configure dialog.
Version 0.2.1
- Streamripper don't stop recording when amarok 2.2 is closing.
Version 0.2.0
- Now the music path from systemsettings is used.
Version 0.1.9
- Add spanish translation. Thanks to Josí¨ Luis ArangeL
Version 0.1.8
- Anstead /bin/sh /bin/bash now is used to ensure the correct execute of kill %.
Version 0.1.7
- Correction: On errors no Errorbox appears.
Version 0.1.6
- Added polish translation THX to Marek Walczak
Version 0.1.5
- Added german translation
- Added french translation. THX to Frédéric Césart
Ratings & Comments
24 Comments
Radio streams often blend songs, change the splitpoint, or other vagaries so that my captured songs are often truncated or "run together". For this reason whenever I use streamripper I always use the splitpoint offset option (--xs_offset=3000) and also buffer the beginning and ends of songs (--xs_padding=2500:2500) to make sure the entire song is captured. (I later edit the captured songs with Audacity.) My streamripper command therefore is: streamripper --xs_offset=3000 --xs_padding=2500:2500 Would you mind adding the --xs_offset and --xs_padding options to the RecordStream script? I love RecordStream (and use it with Amarok 2.5/KDE 4.8 in Kubuntu 12.04 without other problems).
Hi, I really love this little script, voted up, use it often. Unfortunately after update to Amarok 2.5 almost none of the scripts are working any longer. With the new Amarok release I deleted all seetings and stuff from ~/.kde4/subfolders and pulled in the scripts I like and use but seams non of them really work with Amarok 2.5 any more. Even though in scripts management the ones are marked active but there no entries in Setting or Extra pull down menus so its not even recognised by Amarok anymore. Very sad now...
Hi, which QT version is used? In version 4.8 the qt-script-engine is broken. See: http://forum.kde.org/viewtopic.php?f=115&t=98488
thanks for the hint. nevertheless, I am at openSUSE 12.1 standard installation which uses qt 4.7.4. Was discussed in openSUSE forum as well and it seams that SUSE's KDE updated apps package as well as the Packman package of Amarok 2.5 is built against qt vers. 4.8. I downgraded to Amarok 2.4.3 until this is resolved...
Radiostations from http://1club.fm/ fails to be recorded with the following message: /bin/bash: line 3: kill: (9) - Operation not permitted error -6 [SR_ERROR_CANT_RESOLVE_HOSTNAME] However, that station can be succesfully recorded with streamripper. Though it's possible to start recording, following next steps: 1. playlist have two radiostations from 1club.fm; 2. first radiostation is played; 3. record was started. After the start of the record another entry appears in playlist with the radiostation different from previous stations and playback switched to that station.
Please try to increase the wait time to > 3000 ms or so. This is made by Settings -> Configure RecordStream. I've this testet with http://wms-11.streamsrus.com:9710/listen.pls
No, this has not helped. Only working if any item in playlist (not necessary radiostation) exist after the radio station item. Maybe it's Amarok bug. I'm using version 2.3.1.
I have problem with CUE file. When I open it it looks like this: TRACK 01 AUDIO TITLE "��E" PERFORMER "��I" INDEX 01 00:00:00 TRACK 02 AUDIO TITLE "��M" PERFORMER "��H" INDEX 01 02:33:00 TRACK 03 AUDIO TITLE "��L" PERFORMER "��C" INDEX 01 08:15:00 TRACK 04 AUDIO TITLE "��T" PERFORMER "��P" INDEX 01 12:07:00 How to fix this? Amarok 2.2.2, KDE 4.4 RC1
The CUE data comes from the radio station. Maybe the used charset is another charset than yours.
Hi, Why does Amarok display the correct track information and the queue file does not? Its happening to all stations that I have tested with.
Hi, I have a problem that when I enable the script Amarok takes about one minute to quit with 100% cpu usage. If I disable the script then Amarok closes normally again. This only started happening with the 0.2.0 version (sorry I didn't report it sooner!) and there were no problems with the previous version. Currently using Amarok 2.2 but saw the same issue previous versions. Thanks for your great script!
I don't know the cause. I've tested the script with Amarok 2.2 (Gentoo) and Amarok 2.1 (openSuse). But always amarok ends normal.
Actually today I updated to the new version of the script and also to kde 4.3.2 and the "problem" has disappeared. Very strange, I don't know what cured it, but it's working fine now. Cheers and thanks for your work!
const MUSIC_PATH should default to XDG_MUSIC_DIR or be configurable at install - the creation of ~/Music by the script if not existing is confusing and not proper see http://forum.kde.org/viewtopic.php?f=116&t=79595&p=126767#postform
Oops - thats's true. ;-) I will this correct soon. Many thanks for the info.
thank you for the quick resolution
Config option to set the path manually would be the best solution. In my case it is ~/MyMusic from systemsettings, but I would like to save the streams in a subfolder called "Streams".
Thanks a lot for this plugin. It's practical to be able to start streamripper from within Amarok. A note: I have no idea what the command 'kill %' is supposed to do. What it _doesn't_ do is kill of the streamripper instance. I changed it to 'killall streamripper' (and threw the mplayer option out). Killall is the brutal way, but at least port 8017 is definitely free afterwards. Where did you find out how to use 'callerProc'? Google is most unhelpful. If I knew how to get at the output of the commands the plugin sends to bash, the plugin could be spiced up quite a bit...
Kill % terminates the last job. This assumes, bash version 3.x ist used. But you use a another shell? Infos about QProcess: http://doc.trolltech.com/4.5/qprocess.html Greetings
qprocess: Thanks a lot, will play with it as soon as I have time. kill: $>bash --version GNU bash, version 3.2.48(1)-release (i486-pc-linux-gnu) The problem is this: $> ls -l /bin/sh lrwxrwxrwx 1 root root 4 2009-08-01 21:39 /bin/sh -> dash (Debian switched to dash as standard shell a short while ago.) If you want to use bash specific features, it would be better to change the line in main.js to 'callerProc.start("/bin/bash");'
When recording starts it records only for 4-5 seconds and then stops
After start recording RecordStream adds a relay to the playlist and plays this entry. This wll be done after 8 seonds. Is there such entry in your playlist?
Yes, there is an entry in my playlist... Now I understand how it works. Thanks for this great app!
It is working great! I found that this script adds 4 new menu entries in Tools menu of which 'Record webradio' saves each song to a separate mp3 file - i was a little confused at first which menu command to execute, although its probably obvious enough. Thanks a lot!