RecordStream

Amarok 2.x Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

7
Score 62.5%
Description:

This script helps you to store radio streams from the web to the local disk.
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.
Last changelog:

8 years ago

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

perspectoff

7 years ago

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).

Report

9

OsZ

7 years ago

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...

Report

C

Knoellchen

7 years ago

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

Report

9

OsZ

7 years ago

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...

Report

krnekit

9 years ago

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.

Report

C

Knoellchen

9 years ago

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

Report

krnekit

9 years ago

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.

Report

LenardKoen

9 years ago

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

Report

C

Knoellchen

9 years ago

The CUE data comes from the radio station. Maybe the used charset is another charset than yours.

Report

fireball500

9 years ago

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.

Report

steveke

10 years ago

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!

Report

C

Knoellchen

10 years ago

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.

Report

steveke

10 years ago

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!

Report

google01103

10 years ago

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

Report

C

Knoellchen

10 years ago

Oops - thats's true. ;-)
I will this correct soon.

Many thanks for the info.

Report

google01103

10 years ago

thank you for the quick resolution

Report

bitcrazy

10 years ago

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".

Report

martingerdes

10 years ago

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...

Report

C

Knoellchen

10 years ago

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

Report

martingerdes

10 years ago

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");'

Report

Lole

10 years ago

When recording starts it records only for 4-5 seconds and then stops

Report

C

Knoellchen

10 years ago

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?

Report

Lole

10 years ago

Yes, there is an entry in my playlist... Now I understand how it works.

Thanks for this great app!

Report

veeall

10 years ago

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!

Report

8 years ago

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

12345678910
13
product-maker OsZ Jan 21 2012 9 excellent
product-maker strangersong Jul 05 2011 9 excellent
product-maker hfj Dec 03 2010 9 excellent
product-maker WarpCoil Oct 16 2010 3 bad
product-maker Base: 4 x 5.0 Ratings
WarpCoil
Oct 16 2010
colibri
Oct 01 2010
cjann
Feb 14 2010
LenardKoen
Jan 17 2010
DaiVied
Dec 30 2009
nemesis78
Dec 01 2009
usrkl
Jun 18 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.9.7
updated Oct 05 2011
added Jun 17 2009
downloads 24h
0
pageviews 24h 2
System Tags addon