AmpachePour l'Amour de la Musique |
You are not logged in.
Announcement- Forums Updated -
Updated again, this includes a fix for the page numbers on the topics. Enjoy! The forums have been updated to the newest version of PunBB/MyBestBB This should fix some of the rss issues people were seeing along with some security fixes. Please let me know if you see any weirdness. If your signup e-mail blank send me a note, this is an issue with Yahoo e-mail and some other free e-mail services not handling the utf-8 mail correctly |
Pages: 1
I just recently discovered Ampache -- fascinating piece of software.
I am on a mission that has been surprisingly challenging to fully solve.
I have a home LAN with one "media server" and various clients (desktops and wireless laptops). All of the mp3's are hosted on the media server. The media server is physically connected to a home stereo via its soundcard.
I want clients to be able to remotely control the music playing through the media server. Unlike a lot of these solutions, I do *not* want to stream music from the server to the client. I simply want to remotely control the server, so that it plays music through its own soundcard.
Ideally I'd like the client to display the metadata you'd see if you were sitting at the server -- now playing information with album art (folder.jpg-style), while being able to manage playlists with 9000+ tracks.
I tried several remote-control options for WinAmp -- BrowseAmp, HTTPQ -- and they had theirs pros and cons. HTTPQ would require a lot of PHP coding on my part; BrowseAmp seems to insist on loading the whole playlist into the browser window, which becomes onerous with very large lists and bogs down the browser.
I tried reverse-streaming -- from the clients to the server, but it's impossible to maintain always-on connections like this, such that clients never have to muck with the server when they start a new session.
Ampache might be a good solution. I have it installed and set up on XP with XAMPP. Created a catalog. My problem is getting Ampache to effectively "local play" on the Windows machine.
From what I can tell the only solutions mentioned on these boards are WinAmp commandline clients like clever and clamp. I've tried clamp and it doesn't seem to be working reliably at controlling WinAmp. Very circuitous process, sending messages from Ampache to clamp to WinAmp.
Short of switching to Linux, which I cannot right now on this server for various other reasons -- are there other effective solutions for Ampache local play on a Windows machine? Clearly I don't have to use Winamp -- simply an mp3 player that Ampache can effective control and create useful Now Playing screens with.
Possible? Am I barking up the wrong tree, or what tree should I bark up?
thanks!
Aaron
Offline
I can only think of kludges. I don't know of a Windows player that's directly controllable by an external process.
-How about you just VNC or Remote Desktop into the box and use a browser on the server to stream to yourself?
-You could do shoutcast localplay and have the server winamp constantly streaming the shoutcast stream.
-You need almost no horsepower to actually play the mp3's. You could use a total junker w/ a nic and a soundcard on it as a linux MPD server and do "remote local play" from the XP server to the MPD box. I suggest that 1) because I love MPD and 2) you can keep your XP server doing what it's doing.
Make sure to check out the jinzora and other music player boards/lists. They would basically have the same problem.
Doesn't slim server run on Windows? Maybe you could use it instead. I've never used SoftSqueeze, but it's a free client.
Offline
Hi thebordella,
there is slim pickings for windows users, and i've outlined them in this thread:
http://www.ampache.org/forums/viewtopic.php?t=137
since writting that i have upgraded to XP pro, and can report that it still works fine.
BOB.SMITH
Offline
I too have been having the same problem. clever doesn't seem to work, despite following the directions outlined on bob's link. Is there any windows binary of the linux programs? I'm stuck with Windows on the server I'm installing this too and this is the only problem I have in using Ampache...
Unfortunately I don't have enough of a dev background to solve this problem myself, but I'll post back if I think of anything worthwhile
my error with local play occurs here
Fatal error: Call to a member function on a non-object in PATH:\to\ampache\lib\class\stream.class.php on line 319
Last edited by marbleman (2006-12-22 08:59:20)
Offline
I think the best solution is honestly httpQ. I've had a library for controlling it for a while now. I've got some free time today so I'm writting up the localplay controller for it. I don't actually have WinAMP so I can't really test it... but according to the documentation it should work. Keep your eye on the Change log for an indication of it being added (should be by the end of the day) Then test it out and let me know if it doesn't work.
Offline
This has been added as of r766
Offline
Well, I am a windows ampache (Ampache v.3.3.3 Build (001)) user and i am trying to set this up and HttpQ is returning a NULL value for the play/enqueue commands. All the basic functions work (pause, stop, play, delete, etc), but it wont let me enqueue/add a file.
I am trying to figure out why this is, and noticed a few things.
I have no experience with php stuff so bear with me...
in httpqplayer.class.php:
function add($name, $url) {
$args['name'] = $name;
$args['url'] = str_replace("&","%26",$url);
$results = $this->sendCommand('playurl', $args); <---------- according to the HTTPQ documentation the add function is "PLAYFILE" and not "playurl" see this for more detail http://httpq.sourceforge.net/reference.html
if ($results == '0') { $results = null; }
return $results;
} // add
Ok, so i changed that sendcommand to playfile but it still doesnt work.
I get this error in my ampache debug file:
2007-01-07 04:55:05 { admin } ( httpq_add ) - Error: Unable to add "http://xx.xx.xxx.xxx/play/index.php?song=139&uid=admin&sid=6a9c9c42a3df70aa8b1e84fb1ada1cc8&name=/Christina%20Aguilera%20-%20Don%27t%20Make%20Me%20Love%20You.mp3" to Httpq
So i tried to put that http:// after file = in "http://localhost:4800/playfile?p=XXXXX&file=XXXXXXXX" and i get an error message. I think the equal '=' signs in the URL are messing things up, but i am not sure. It seems when I use the directory inplace of the url...eg...E:\Christina Aguilera\1999 00 - Christina Aguilera\Christina Aguilera - Christina Aguilera - 17 - Don't Make Me Love You.mp3...it works and loads it to the playlist.
Is there anyway to fix this?
Edit: when i go into winamp and say "play->URL... or File...-> then paste that url", it works fine.
Last edited by Hypnotoad (2007-01-08 12:11:41)
Offline
Wups sorry you need to use the specific 'patched' version of httpq (We added playURL functionality) you can find the source and .dll you need at http://ampache.org/downloads/httpq-ampache.zip`
Offline
Ok, i did that. the play feature works but only for certain songs. Heres what I did.
I said Enqueue 500 random songs, i have 663 mp3s on the database as of now. Out of the 500 only 58 songs were added to the playlist on the remote PC. But get this, the songs that were added were only 1 word Long in the TITLE. For example I can add the song SOS by Rihanna from the cd A Girl Like Me but i can't add the song "Kisses Don't Lie" same cd, same artist, just next track. I looked at the other remaining songs that were enqueuned, they were all 1 words:
Is this a problem with the code of HttpQ or with Ampache?
The debug log had this to say:
2007-01-07 04:13:02 { admin } ( httpq_add ) - Error: Unable to add 'http://68.48.242.161/play/index.php?song=815&uid=admin&sid=fb604dead47935e8278481e5e95cf498&name=/Rihanna%20-%20Kisses%20Don%27t%20Lie.mp3' to Httpq
2007-01-07 04:13:03 { admin } ( error ) - [Error] date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-5.0/no DST' instead on line 36 in C:\Program Files\xampp\htdocs\lib\log.lib.php
2007-01-07 04:13:03 { admin } ( error ) - [Error] date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-5.0/no DST' instead on line 37 in C:\Program Files\xampp\htdocs\lib\log.lib.php
2007-01-07 04:13:03 { admin } ( stream ) - Starting stream of E:/Rihanna/2006 04 - A Girl Like Me/Rihanna - A Girl Like Me - 01 - SOS.mp3 with size 5769344
EDIT:
The only pattern i could find is the song title (%t) was only 1 word long, and contained no spaces. The title came out unformatted (no caps). Winamp seems to have trouble parsing the data after it is sent, even the track length is wrong, it would say the song is 1:56-2:12 in length, but when it plays it, it updates. I'm not sure if this has any relationship to the problem at hand.
Last edited by Hypnotoad (2007-01-08 15:39:18)
Offline
Oooh hey! you might have something there... I'll check on that :)
Offline
HttpQ is fixed now! Localplay is functional in windows...weeeee! Thanks. :)
Edit:
bah...should really be addurl and not playurl....it keeps restarting the song thats currently playing everytime a song is clicked. I looked at the HttpQ documentation and they dont have any add function without play. hmm...
Its really weird. Lets say I am not playing anything (but I have a playlist). And I click a song on ampache. It plays the song that just finished instead of the new i just added. Any idea whats going on?
Last edited by Hypnotoad (2007-01-12 21:41:03)
Offline
Hmm weird not really the modified HttpQ wasn't written by me to modify the action performed on add I think we'd need to modify the plugin its self as if I remember correctly there aren't any additional parms to send to it.. I'll check on it :)
Offline
In modules\localplay\httpq.controller.php there are a few functions:
- skip
- volume_up
- volume_down
- next
- prev
- volume
That say "$this->_mpd->" instead of "($this->_httpq->" Switching that will fix (next)
Also there is a function called "Previous()" Which does not exist in modules\httpq\httpqplayer.class.php
It should be renamed Prev()
final line
" if (is_null($this->_httpq->Prev())) { return false; } "
I think the other functions need a little work.
Last edited by Hypnotoad (2007-01-12 22:45:47)
Offline
Yup it was a quick hack I'll go ahead and see about flushing it out now that it's working Hopefully I'll get this in the next nightly
** UPDATE **
This has been done, the only one HttpQ doesn't have that MPD does is Move. This will be in the next nightly :)
Offline
I'm thinking I may want to switch from mpd to httpQ.
I need to get a windows computer running at home, so I am thinking about giving up the mpd machine.
current networked setup
linux server runs ampache with localplay and a remote mpd hostname.
linux machine connected to stereo via spdif runs mpd server and spits out the music
so I am thinking I can switch the mpd server over to windows, and run httpQ , and httpQ can
be spit out the spdif soundcard output. basically replace linux/mpd with windows/httpQ ??
let me know if this is correct and is working with the latest stable ampache.
Offline
so is anyone using httpQ ??
Offline
I am using httpQ. I had an issue where the module was actually not using the settings from my preference but using a hard coded blank pass.
Offline