Shane W wrote:
Hello,

I forgot to mention, I did attempt this using
video_pre_play and video_post_play, basically put the amp
into video mode during a movie, audio for everything else
but video_post_play doesn't seem to execute if you
interrupt the video prematurely via the remote IE by
pressing stop.

S
On Sun, Aug 03, 2008 at 01:46:31PM -0700, Shane W wrote:
Hey all,

I am wondering if it is possible to run a script before
mplayer with either the media type about to be played or
the filename or stream about to get passed to mplayer.  I
could just replace mplayer with a script but then it'd have
to parse the options in order to find the file.

I have a serial interface to my amplifier so would like to
put it in the appropriate DSP mode for different content. For example, when playing an audio file, I would go to
Prologic II-music or 6-channel stereo and when playing a
movie, would go to prologic ii-movie.  If the movie
contains ac3 well that gets overridden in any case.

You need to write a plug-in to do this.

Attached is a very simply plug-in that goes into the src/plugins directory. It catches and prints out all events. There are two handlers in this code, the old freevo handler and a kaa handler. Only one is needed. You simply need to add some code to catch the events your interested in.

HTH
Duncan

Attachment: processevent.py
Description: application/python

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to