[MPlayer-users] Re: RTFM didn't work (about getting movies to play then wait for input)
Martin Collins
martin at mkcollins.org
Thu Mar 13 16:59:16 CET 2003
On Thu, 13 Mar 2003 03:03:26 +0000
Martin Collins <martin at mkcollins.org> wrote:
> Kind of. Output the last frame as a .png, make 10 or so copies and
> turn them into a short AVI. Then loop that instead of the blank AVI.
> You can do this with mplayer/mencoder but the exact recipe will have
> to wait til I get up this afternoon.
Play your clip with
mplayer -ss XX clip1.avi
varying XX until it just plays the last half second or so of the clip.
Then output that last bit to .png:
mplayer -vo png -ss XX clip.avi
You will have a number of .png files, pick the one you want using gqview
or a web browser or something. Rename it frame0.png
Make some copies:
for i in 1 2 3 4 5 6 7 8 9
do
cp frame0.png frame$i.png
done
Then make an AVI out of them:
mencoder frame\*.png -mf on:fps=25 -o clip1-loop.avi -ovc lavc -lavcopts vcodec=mpeg4
Repeat for all your clips. Then (assuming you have < 10 clips) you can
play them with
for i in `ls clip?.avi`
do
mplayer -fs $i `basename $i .avi`-loop.avi -loop 0
done
Martin
More information about the MPlayer-users
mailing list