[MPlayer-users] RE : Re: Creating animated gif thumbnails of movies

info at danielerossi.net info at danielerossi.net
Wed Oct 24 02:01:41 CEST 2007


> So, if your video is 30 fps and you use -vo gif89a:fps=1.0, then every
> 30th frame will be output into the GIF.  AFAIK, framestep should not
> be needed.
>   
> --Joey
on my system the command
mplayer file.ext -vo gif89a:fps=1.0:output=file.gif
works and produce a 1framepersecond-gif.
Only problem the color depth!
is there a way to play around with color depth and frame duration?

For example in my file the color depth is supposed to be rgb24 but the 
quality in no more than a 8bit color depth.
As a proof, if I ask a description from mplayer (snipped):
VIDEO:  [.RGB]  480x640  8bpp  5.000 fps    0.0 kbps ( 0.0 kbyte/s)

and a description from ffmpeg (snipped):
Stream #0.0: Video: gif, pal8, 480x640, 25.00 fps(r)

Playing around with "-vf format=..." like
 -vf format=yv12,scale
 -vf format=rgb24
do not help.
Daniele

Full output of command:

D:\cd 27>mplayer MVI_5703.avi.xvd.avi  -nosound -vo gif89a:fps=1.0:ou
tput=test.gif
MPlayer Sherpya-SVN-r23404-4.2.0 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1.73GHz (Family: 6, Model: 13, 
Stepping: 8)

SSE2 supported but disabled
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Playing MVI_5703.avi.xvd.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  480x640  12bpp  30.000 fps  1566.1 kbps (191.2 kbyte/s)
Clip info:
 Software: MEncoder Sherpya-SVN-r23404-4.2.0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 480 x 640 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 0.75:1 - prescaling to correct movie aspect.
[swscaler @ 00CD71E0]No accelerated colorspace conversion found
[swscaler @ 00CD71E0]SwScaler: using unscaled yuv420p -> rgb24 special 
converter

VO: [gif89a] 480x640 => 480x640 RGB 24-bit

Exiting... (End of file)




More information about the MPlayer-users mailing list