[MPlayer-users] Re: video out on two screens

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Fri Dec 3 22:03:55 CET 2004


Hi,
> > > mkfifo $path/stream.yuv
> >
> > [...]
> >
> > > mplayer -nocache -vo yuv4mpeg $*
> >
> > won't work because yuv4mpeg always writes to the stream.yuv in the
> > current directory.
> 
> You are, of course, right. (Note to self: Don't post untested scripts)
> 
> > I have attached my suggestion. 
> 
> Unfortunately your script still doesn't make it possible to specify a 
> relative path to the media file. I don't see a way to do this as long as 
> mplayer doesn't offer something like -dumpfile for -vo yuv4mpeg. Bummer.
> 
> If you intend to distribute it, I suggest you put in
> PWD=`pwd`
> and
> cd $PWD
> as first and last lines, respectively. It is very bad form for a script to 
> return in a different dir than the on it was called from. Otherwise 
> people might nuke their system by calling something like
> mplmult.sh && cd .. && rm -rf *

Solved all those problems with attached script.
Just don't forget to do cvs up && make && make install before using it
;-)

Greetings,
Reimar Döffinger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplmult.sh
Type: application/x-sh
Size: 581 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20041203/1d8a7a4b/attachment.sh>


More information about the MPlayer-users mailing list