Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: MPlayer <-> VDR, the second one



On 27 Oct 2001 "Johannes Feigl" <jaf.corporation@gmx.at> wrote:

> i've think about it ...
> it is not necessary if we edit the codec.conf -file ...

I don't like this idea much. I would prefer to differ the file
types inside mplayer.sh without changing the mplayer setup.

I have made a sample mplayer.sh:

#!/bin/bash

# where to find mplayer
MPLAYER="mplayer"
# mplayer options, -vc will be added below
# add "-lircconf <lircrc>" to enable LIRC support
OPTS="-vo mpegpes"

#####################

FILE=$1
type=`file "$FILE"`

case "$type" in
*AVI*)
  VC="ffdivx"
  ;;
*MPEG*)
  VC="mpegpes"
  ;;
*)
  echo "Unknown video file format $type"
  echo "Edit mplayer.sh to support this file type"
  exit 1
  ;;
esac

$MPLAYER $OPTS -vc $VC "$FILE"

What do you think?

> some minutes ago i've tried the latest mplayer-patch ... nice work ...
> but it would be better when you end mplayer with the "blue - d" - key on the
> remote control then mplayer recieve a sigint (killall mplayer) ...

I'm sending a 'kill -TERM' to the mplayer.sh process ...
Isn't mplayer killed by this?

> and ... what about giving the keys (like +, -, p+, p-) with to mplayer like
> when you are pressing it on the console?
> do you understand ?

No I don't. :-(

But anyway, if you wants remote control for mplayer, you have to
configure LIRC for this. I'm not going to pass remote keys to
mplayer in any way.

-- 
Stefan Huelswitt
huels@iname.com  | http://home.pages.de/~nathan



Home | Main Index | Thread Index