Amarok Shouter

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

0
5.0
Description:

This script was written as a vehicle for learning python, I'm open to suggestions, comments and anything not overly abusive. With disclaimer out of
the way, forward with the details: this script will start a small server from within amaroK and serve music streams on a specified port. Stream sources are configurable: current options are for "live" streams as well as a snapshotted playlist. This works with a bevy of different user agents.

Comments and feedback will be much appreciated.
Last changelog:

14 years ago

Oct 3, 2006
* fixed unsupported operand error on startup
+ added README.

Aug 30, 2005
- fixed executable bits on non-executable files

Aug 28, 2005
- beta2 Bumped to 0.2.0

0.2.0 beta2, 2005
- Added fix from ShadowFiend
- Tweaked static playlist management. Static playlist clients should now *never* be dropped because of buffer underruns.

0.2.0-beta, 2005
August 12th
Added link to 0.2.0-beta. This is somewhat experimental. It works for me, but as I don't currently have access to a machine with Winamp/WMP I'm posting this as a beta to see if any problems come up. This includes fixes for client side buffer-overruns which result in a repeat of the trailing 10% of each song, and some simple burst-on-connect handling. These changes will be committed to amaroK SVN when I get my DSL at home up and running.

*June 23, 2005 update*
- Re-uploaded 0.1.4. It looks like it never made it there the first time.

ATAHUALPA

14 years ago

/.kde/share/apps/amarok/scripts/shouter/Amarok.py:15: DeprecationWarning: Non-ASCII character '\xe9' in file /.kde/share/apps/amarok/scripts/shouter/Globals.py on line 6, but no encoding declared;
see http://www.python.org/peps/pep-0263.html for details
from Globals import *
Traceback (most recent call last):
File "/.kde/share/apps/amarok/scripts/shouter/Shouter.py", line 24, in ?
from StreamController import *
File "/.kde/share/apps/amarok/scripts/shouter/StreamController.py", line 23, in ?
from StreamPublisher import *
File "/.kde/share/apps/amarok/scripts/shouter/StreamPublisher.py", line 23, in ?
from Publisher import *
ImportError: No module named Publisher

Python 2.4.4c0

python-qt3/testing uptodate 3.16-1.2

I remember, this is an old bug, alive throught several python/pyqt update

Report

Magus2501

14 years ago

Read the above posts. I had the same problem on my Debian box.

Try these commands:

cd ~/.kde/share/apps/amarok/scripts/shouter/ ln /usr/share/apps/amarok/scripts/common/Zeroconf.py ln /usr/share/apps/amarok/scripts/common/Publisher.py

This should fix the problem. If you're using a distro other than Debian/Ubuntu, you might need to change the paths a little.

Report

ATAHUALPA

14 years ago

/.kde/share/apps/amarok/scripts/shouter/Amarok.py:15: DeprecationWarning: Non-ASCII character '\xe9' in file /.kde/share/apps/amarok/scripts/shouter/Globals.py on line 6, but no encoding declared;
see http://www.python.org/peps/pep-0263.html for details
from Globals import *
Traceback (most recent call last):
File "/.kde/share/apps/amarok/scripts/shouter/Shouter.py", line 24, in ?
from StreamController import *
File "/.kde/share/apps/amarok/scripts/shouter/StreamController.py", line 23, in ?
from StreamPublisher import *
File "/.kde/share/apps/amarok/scripts/shouter/StreamPublisher.py", line 23, in ?
from Publisher import *
ImportError: No module named Publisher

Python 2.4.4c0

python-qt3/testing uptodate 3.16-1.2

I remember, this is an old bug, alive throught several python/pyqt update

Report

mukiex

14 years ago

Probably most useful for Ubuntu users.

You can either save these three lines as a script and "chmod +x" it, or simply paste them one at a time. You'll only need it once tho.

cd ~/.kde/share/apps/amarok/scripts/shouter/
ln /usr/share/apps/amarok/scripts/common/Zeroconf.py
ln /usr/share/apps/amarok/scripts/common/Publisher.py

Report

semicolon

14 years ago

THANK YOU.

I was banging my head for a week trying to figure out why I was missing a module.

This tip needs to be more visible for other users.

Thank you!

Report

mukiex

14 years ago

BTW, jbell, just to make sure, 'cause the last post on the subject was a while ago...

Shouter doesn't encode the raw audio stream on-the-fly to shoutcast-friendly mp3?

Also, any luck on catching UTF characters (Japanese and the such) so it doesn't stop the server?

Report

hiperlink

14 years ago

Traceback (most recent call last):
File "/home/bot/.kde/share/apps/amarok/scripts/shouter/Shouter.py", line 24, in ?
from StreamController import *
File "/home/bot/.kde/share/apps/amarok/scripts/shouter/StreamController.py", line 23, in ?
from StreamPublisher import *
File "/home/bot/.kde/share/apps/amarok/scripts/shouter/StreamPublisher.py", line 23, in ?
from Publisher import *
ImportError: No module named Publisher

What can I do about it?

Report

eniac

14 years ago

I have this error to, but my "PyQt" package is installed.

Report

eniac

14 years ago

Possibly, there is incorect writed module for the variable

Report

jetpeach

14 years ago

any further thoughts on this? i have this error as well.
also, does anybody know when/if the DAAP server for amarok that I heard was a google SoC project will be available for amarok?
this script might work, but it would be great if i could have one that allowed streaming and syncronization between two computers. my goal is to be able to play music on multiple computers in the house and have it in sync, and all controllable through one client.

Report

robob4him

14 years ago

These are the details. Do I need to install something in addition?

Traceback (most recent call last):
File "/home/robob4him/.kde/share/apps/amarok/scripts/shouter/Shouter.py", line 23, in ?
from ShouterConfig import *
File "/home/robob4him/.kde/share/apps/amarok/scripts/shouter/ShouterConfig.py", line 15, in ?
from qt import *
ImportError: No module named qt

Report

C

jbell

14 years ago

You need to install the qt bindings for python. The specific package name varies slightly across distributions. For gentoo, it's PyQt. Other distributions may call it something else.

Report

eike

15 years ago

Hello,

Thanks a lot for writing Shouter, it's just the add-on that amarok needed.

There is but a single problem that I'm having with it. I've got a fair amount of German and Japanese music which (obviously) comes with non-ASCII ID3 tags. When Shouter comes across such a file the stream terminates and will not resume unless the playlist is erased and refilled with ASCII-only files. However, there are a few files that alright despite having such tags.

Moreover, the script prints out errors like:
"QDom: saving invalid character & # x d e e 4;, the document will not be well-formed." (I stretched the special charcter a little :-)

Would it be possible to catch such errors and send corrected or no ide3 information at all? I don't have any experience with Python so I can't really see what's going on inside the script.

If you find the time it would be great if we could work that out. Thank you very much in advance,
eike

Report

gronslet

15 years ago

Hi and thanks for this nice plugin!


I am trying to use it for broadcasting what I play on my laptop over my LAN to my KiSS DP 558, which can read shoutcast radio streams from port 80 only. I tried to change the broadcast port to 80, but then the script locks up, and I was not able to start it again in order to reconfigure.

I had to manually change the port (which seemed to be set to 1000 instead of 80) in the file ~/.kde/share/apps/amarok/scripts-data/shouterrc.
Changing it to 8000 let's me start the script as normal.

Is this a script spesific issue, or are ports below 8000 blocked for security reasons in amarok?

Thanks,
M

Report

C

jbell

14 years ago

Opening ports below 1024 are restricted to the root user. If you're comfortable doing such things, you might try running with amarok as root and see what happens.

Report

jetpeach

15 years ago

does Amarok Shouter work with v1.4?

Report

cjh

15 years ago

Hey Jbell,

Shouter is a beautiful piece of software.

However, I'm running it on amaroK 1.4 beta3 (xine engine and alsasink) now, and the script seems to have stopped working.

It does start a server on port 8000, but clients (especially Winamp) DO NOT recieve any audio. http://localhost:8000 gives index.pls which opens in winamp but does not play.

The error in winamp says 'error syncing To mpeg'

Could you please help me?

Report

dasbooter

15 years ago

Yes I have same error error syncing to mpeg??

Report

fassan

15 years ago

umm- I like the idea of this script, but how exactly do I get it working? It installed fine, and i can open the dialogs and whatnot, but I can't get my music in other clients.

I probably need a streaming server, which I don't have at the moment. Can I use any or only specific ones, and then how do I inform the script which one I have?

If I missed a howto page somewhere, I appologize. Never done my own streaming before, so I appologize if these are lame questions.

Report

nsteeves

15 years ago

Shouter-2.0, amaroK-1.3.9, python-2.4.2

I remember when it used to work, and absolutely *love* your script. I imagine that either the amaroK, or python upgrade broke it.

/home/sten/.kde/share/apps/amarok/scripts/shouter/Amarok.py:15: DeprecationWarning: Non-ASCII character '\xe9' in file /home/sten/.kde/share/apps/amarok/scripts/shouter/Globals.py on line 6, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
from Globals import *
Traceback (most recent call last):
File "/home/sten/.kde/share/apps/amarok/scripts/shouter/Shouter.py", line 24, in ?
from StreamController import *
File "/home/sten/.kde/share/apps/amarok/scripts/shouter/StreamController.py", line 23, in ?
from StreamPublisher import *
File "/home/sten/.kde/share/apps/amarok/scripts/shouter/StreamPublisher.py", line 23, in ?
from Publisher import *
ImportError: No module named Publisher

Report

talmage

15 years ago

I got Shouter running tonight. It's great. It's exactly what I've been looking for for months.

My only complaint is that when I stream to my MacSense HomePod over the wireless network, there are occasional dropouts.

I tried increasing buf_size to 32768 in shouterrc. I don't think it helped. Any suggestions?

Report

talmage

15 years ago

I get the dropouts on the wired network, too.

Report

lordmaxxon

15 years ago

I downloaded the archive and used amaroK's Add Script to add it, but when I tried to run it, it said Shouter.py exited with "Error Code 1" and complained that there was no module named Publisher

Report

semicolon

14 years ago

I also get this error.

Running Kubuntu 6.06

Report

talmage

15 years ago

It's looking for a script that is distributed with Amarok. On my system it's


/usr/pkg/share/kde/apps/amarok/scripts/common/Publisher.py

I made a symlink to it in

~/.kde/share/kde/apps/amarok/scripts/shouter/

where Amarok installed Shouter

Report

14 years ago

Oct 3, 2006
* fixed unsupported operand error on startup
+ added README.

Aug 30, 2005
- fixed executable bits on non-executable files

Aug 28, 2005
- beta2 Bumped to 0.2.0

0.2.0 beta2, 2005
- Added fix from ShadowFiend
- Tweaked static playlist management. Static playlist clients should now *never* be dropped because of buffer underruns.

0.2.0-beta, 2005
August 12th
Added link to 0.2.0-beta. This is somewhat experimental. It works for me, but as I don't currently have access to a machine with Winamp/WMP I'm posting this as a beta to see if any problems come up. This includes fixes for client side buffer-overruns which result in a repeat of the trailing 10% of each song, and some simple burst-on-connect handling. These changes will be committed to amaroK SVN when I get my DSL at home up and running.

*June 23, 2005 update*
- Re-uploaded 0.1.4. It looks like it never made it there the first time.

12345678910
Be the first to comment
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.2.1
updated Oct 03 2006
added Mar 24 2005
downloads 24h
0
mediaviews 24h 0
pageviews 24h 1
System Tags addon

Appimages

To install any downloaded Appimage via GUI, use this tool AppImagelauncher.

To install Appimages from Appimagehub via CLI use appimage-cli-tool.
This allows you to e.g. search appimages with "app search xyz" and install any appimage via command "app install #id".

If you are a developer who is interested to easily build appimages from your code repo, read the guide here.