RE: [Otto-users] local playback with mplayer?
Status: Beta
Brought to you by:
ferguson
|
From: Jon F. <jo...@me...> - 2003-06-17 12:57:21
|
sorry for the late reply (see your original message below). you probably
have fixed this already, but if not...
i took a quick look at the code in Mpg123.pm (the module which calles
mpg123), and you *won't* be able to just put
"mplayer -af resample=48000:0:1" in the Mpg123 config parameter in
otto.conf.
the problem is this line in Mpg123.pm:
exec($mpg123exe, $p{file});
this line would fail because of the extra arguments to mplayer. it would
literally try to execute them as part of the name of the executable
instead of passing them along as command line arguments.
you could either hack that line in Mpg123.pm, or you could write a small
shell script which calls mplayer with the correct arguments and point
the Mpg123 otto.conf directive at that script.
something like this:
#!/bin/sh
exec /usr/bin/mplayer -af resample=48000:0:1 "$1"
call that script something like /usr/local/otto/bin/mplayerrunner (and
don't forget to chmod +x mplayerrunner), and put the following line into
your otto.conf:
Mpg123 /usr/local/otto/bin/mplayerrunner
i hope that helps. good luck, and thank you for using otto!
cheers,
jon ferguson
-----Original Message-----
From: ott...@li...
[mailto:ott...@li...] On Behalf Of Darrell
Berry
Sent: Saturday, March 08, 2003 6:28 PM
To: ott...@li...
Subject: [Otto-users] local playback with mplayer?
Hi
I'm just setting up Otto 2.0 on an Epia box. To get decent digital audio
out, I need to use something a bit more sophisticated than mpg123 -- in
fact mplayer seems the best, but I need to append extra options to it,
e.g.
mplayer -af resample=48000:0:1
-- what's the best way to specifiy this to otto? Can I just replace the
path to the 'mpg123' executable with the above string, or do i need to
hack the libs?
thx
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The
debugger
for complex code. Debugging C/C++ programs can leave you feeling lost
and
disoriented. TotalView can help you find your way. Available on major
UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Otto-users mailing list
Ott...@li...
https://lists.sourceforge.net/lists/listinfo/otto-users
|