[MPlayer-users] mplayer 1.0pre5
comes at naic.edu
Thu Sep 2 15:08:22 CEST 2004
On Thu, Sep 02, 2004 at 02:07:09PM +0200, g0tcha wrote:
> What I would like to do is play a bunch of files (jpeg, jpg, mpeg, avi) in a
> directory called /media, I would like to do this using mplayer but the
> problem with running the command
> [root at testbed media]#mplayer *
> is that it only plays the clips and not the jpegs and if I run the command
> [root at testbed media]#mplayer mf://* -fps 0.1
> It plays the pics but not the clips.
> I basically need to play all formats of media in the /media directory,
> but also bare in mind that I will need to remove and add clips on weekly
> basis, and I found if you do a command " mplayer -loop 0 * " on a directory
> and remove any file from that directory and add a new clip, mplayer
> obviously doesn't play the removed clip but it doesn't also play the added
> NEW addition to the directory.
This is because the list of files to play is generated at the time the
command is executed. In order to see later added files, you have to execute
the mplayer command again.
> Scripting something would propably help , as the playlist option doesn't
> allow the playing of jpegs.
> Any help scripts pointing in the right direction would be greatly
> appreciated. :-)
I have not tested this but it should work:
mplayer *.avi *.mpeg mf://*.jpg -fps 0.1 mf://*.jpeg -fps 0.1
(not sure if you must repeat -fps)
Put the media files with the correct extentions before the mf:// command.
This will play first the movie and then the jpegs.
Scripting is also simple. Just be a little bit more specific about
what you need and I can provide you with a simple script.
More information about the MPlayer-users