Discussion:
[MPlayer-users] Including JPG in a playlist
David Hepburn
2017-02-19 08:57:01 UTC
Permalink
After a bit of expertise on this one...

On Windows PC's, I want to create a playlist that has a combination of videos and JPG files.


I found I could run videos through a playlist with this command:-

"C:\Program Files (x86)\Mplayer\mplayer.exe" -noborder -xineramascreen -2 -fs -ao win32 -priority realtime -lavdopts threads=8 -really-quiet -geometry 0:0 -x 1920 -y 1080 -noborder -playlist 1.txt

Contents of the playlist file is:-
C:\Program Files (x86)\Mplayer\media\Video1.mp4
C:\Program Files (x86)\Mplayer\media\Video2.mp4

I also found I could run a JPG for 10 secs by running this line command:-

"C:\Program Files (x86)\Mplayer\mplayer.exe" "mf://test.jpg" -mf fps=1 -loop 425 -noborder -geometry 0:0 -x 1920 -y 1080

Now I need to know how I can play both in a playlist. Any ideas?


TIA.
Dave
2017-02-20 15:06:42 UTC
Permalink
Post by David Hepburn
After a bit of expertise on this one...
On Windows PC's, I want to create a playlist that has a combination of videos and JPG files.
I found I could run videos through a playlist with this command:-
"C:\Program Files (x86)\Mplayer\mplayer.exe" -noborder -xineramascreen -2 -fs -ao win32 -priority realtime -lavdopts threads=8 -really-quiet -geometry 0:0 -x 1920 -y 1080 -noborder -playlist 1.txt
Contents of the playlist file is:-
C:\Program Files (x86)\Mplayer\media\Video1.mp4
C:\Program Files (x86)\Mplayer\media\Video2.mp4
I also found I could run a JPG for 10 secs by running this line command:-
"C:\Program Files (x86)\Mplayer\mplayer.exe" "mf://test.jpg" -mf fps=1 -loop 425 -noborder -geometry 0:0 -x 1920 -y 1080
Now I need to know how I can play both in a playlist. Any ideas?
My first instinct would be to use a script/batch file to read the
playlist and use the relevant command line based on what is read
from the playlist textfile. It should be pretty simple if the number
of expected file extensions is small and you know in advance or you
could simply prepend each line with V or P for video or picture.

This might be the better option anyway as you could also add in
a field for the display time for the images.
Reimar Döffinger
2017-03-07 23:23:18 UTC
Permalink
Post by David Hepburn
After a bit of expertise on this one...
On Windows PC's, I want to create a playlist that has a combination of videos and JPG files.
I found I could run videos through a playlist with this command:-
"C:\Program Files (x86)\Mplayer\mplayer.exe" -noborder -xineramascreen -2 -fs -ao win32 -priority realtime -lavdopts threads=8 -really-quiet -geometry 0:0 -x 1920 -y 1080 -noborder -playlist 1.txt
Contents of the playlist file is:-
C:\Program Files (x86)\Mplayer\media\Video1.mp4
C:\Program Files (x86)\Mplayer\media\Video2.mp4
I also found I could run a JPG for 10 secs by running this line command:-
"C:\Program Files (x86)\Mplayer\mplayer.exe" "mf://test.jpg" -mf fps=1 -loop 425 -noborder -geometry 0:0 -x 1920 -y 1080
Now I need to know how I can play both in a playlist. Any ideas?
Not sure I understand the problem
If you want to display all for 10 seconds, then you can just do "-mf fps=0.1"
and have the mf:// URL completely normally in the playlist?
Or am I missing something?

Loading...