Priest of the Order of the Butterfly
Posts: 874 from 2007/4/9
From: Kingston upon ...
After much experimenting, I've just about (!) managed to get mplayer running as a streaming client, with my WinXP laptop serving music via VLC.
Having never streamed music before, it was a bit challenging starting off with two different packages, on two different OSes, over a wireless>wired network. Hey ho, life's never easy is it?
Fundamentally I've now got to this stage:
Server (wireless, WinXP, ip=192.168.0.106, VLC media player r1.0.1)
Client (wired, mac-mini (MorphOS 2.7), ip=192.168.0.103, mplayer r1.0 (20/7/10))
Server-side:
Using the GUI, select media>streaming
Add the files to be streamed into the resulting dialog box, press 'stream' (bottom of dialog box)
'Source' tab appears (nothing to change here, just press next)
'Destinations' tab appears. In 'New Destinations' change 'file' to 'http', press 'Add'. The 'address' should be the IP address of your server's network interface (in my case 192.168.0.106, the ip address of my server's wireless adapter)
Press 'next'
The next window is a summary page showing the generated stream output string.
Press 'stream'
Client-side:
Now, on MorphOS open a cli.
type in 'mplayer http://192.168.0.106:8080 -cachenetwork -cache 2048 -quiet -vo cgx_overlay::PLANAR -autosync 30'
Note that the ip address specified is the same on both server and client side.
Playback should begin shortly on the client side
Problems:
- Server side: VLC only streams the files specified when setting up the stream. I want be able to add things to the playlist for streaming.
- Client side: mplayer disconnects from the stream (end of file) once playback is completed. I would like mplayer to continue to listen until told otherwise.
I've read through the documentation, but as my knowledge of streaming is limited it's not too clear what I need to set up to accomplish this.
Basically, I want to be able to direct audio playback from my laptop to the mac-mini om demand, without going back to the mac-mini every 5 minutes to reconnect to a new stream.
Is VLC a poor tool for the job - perhaps there is a better server-side interface?
Am I missing some switch/option on mplayer which would allow it to sit and 'listen' without user intervention?
Thanks
www.hullchimneyservices.co.uk
UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)
Windows free since 2011!