[MPlayer-users] jpeg to avi has blank frames and sticks to first frame

Philip Walden pwaldenlinux at pacbell.net
Sat Jun 25 21:44:03 CEST 2005


I am trying to covert jpeg images from my webcam into a movie using the 
following command.

mencoder mf://\*.JPG -mf fps=4:type=jpg -ovc lavc -lavcopts vcodec=mpeg4 
-oac copy -o output.avi

It processes 152 files (IMAGE.00000.JPG - IMAGE.00152.JPG). See mencoder 
output below.

However, there are two problems:

   1. between each frame there is a short "black or blank" frame.
   2. mplayer replays the first image over and over for the duration of
      the movie

I can't seem to spot the problem

==================================================================

MEncoder 1.0pre4-RPM-3.2.2 (C) 2000-2004 MPlayer Team
 
CPU: Advanced Micro Devices Athlon K75 Pluto,Orion 856.3 MHz (Family: 6, 
Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx
 
Reading /home/pwalden/.mplayer/codecs.conf: Can't open 
'/home/pwalden/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 66 audio & 176 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/pwalden/.mplayer/mencoder: No such file or 
directory
font: can't open file: /home/pwalden/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
success: format: 16  data: 0x0 - 0x0
[demuxer] mf support.
[mf] search expr: *.JPG
[mf] number of files: 152 (608)
[V] filefmt:16  fourcc:0x47504A49  size:0x0  fps: 4.00  ftime:=0.2500
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not 
writing vprp header.
VDec: vo config request - 640 x 480 (preferred csp: Planar 422P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8
 
SwScaler: BICUBIC scaler, from Planar 422P to Planar YV12 using MMX2
videocodec: libavcodec (640x480 fourcc=58564944 [DIVX])
Pos:  38.0s    152f ( 0%)   6fps Trem:   0min   0mb  A-V:0.000 [847:0]
Writing AVI index...
Fixing AVI header...
ODML: vprp aspect is 4:3.
 
Video stream:  847.082 kbit/s  (105885 bps)  size: 4023639 bytes  38.000 
secs  152 frames
[




More information about the MPlayer-users mailing list