in reply to Sharing Sound card / Remote Media PC.

Run mplayer with -v option, so it tells what sound output (if any) it uses. Mplayer has a nasty habit of silently not playing the video/audio/subtitles/whatever it cannot access.

Also, note that mplayer shouldn't be really running from under cgi script, as 1) apache will terminate it sooner or later 2) other web users might want to stop it and run another track (not a problem if you have only one terminal though :) A controlling daemon that runs mplayer and accepts commands from cgi would be the proper solution, but that's probably too heavyweight for your situation.

  • Comment on Re: Sharing Sound card / Remote Media PC.

Replies are listed 'Best First'.
Re^2: Sharing Sound card / Remote Media PC.
by SkipHuffman (Monk) on Nov 19, 2007 at 13:50 UTC

    Thanks. I got it working acceptably well. Though a daemon would improve things.

    Something I discovered. Don't try to use -quiet or -really-quiet both make it more complex to control the system. Without those, the listener can just close the browser window to turn off the sound. Also with those switches, mplayer fails to move from one cut to another if given a wildcard on the command line.

    Skip