[MPlayer-users] Bug Report: jpeg to avi is broken

Philip Walden pwaldenlinux at pacbell.net
Sun Jun 26 20:42:01 CEST 2005


Philip Walden wrote:

> Rich Felker wrote:
>
>> On Sat, Jun 25, 2005 at 08:40:42PM -0700, Philip Walden wrote:
>>  
>>
>>> Philip Walden wrote:
>>>
>>>  
>>>
>>>> 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
>>>>     
>>>
>>>
>>> Somehow I think this is related to a problem with the mf://\*.JPG 
>>> specification.
>>>
>>> I now have nearly a 1000 jpegs.
>>>
>>> The first 100 frames of the rendered movie seem to alternate between 
>>> a the first and a blank frame, then it switches to alternating 
>>> between the first and a frame much further along. As the movie 
>>> progresses, the frames slowly change but always are out of order.
>>>
>>> I had assumed the mf://\*.JPG would select jpegs in sorted order. Is 
>>> this a bad assumption? If so, how does one specify the order?
>>>   
>>
>>
>>
>> It's supposed to select them in order. By the way, what os are you
>> using? Maybe it's broken on some..? If you think there's a bug you
>> should submit all the information needed for a bug report.
>>
>> Rich
>>  
>>
> Linux 2.4.20-31.9 #1 Tue Apr 13 17:38:16 EDT 2004 i686 athlon i386 
> GNU/Linux
>
> I found a report on LinuxQuestions with same problem:
>
> http://www.linuxquestions.org/questions/showthread.php?s=&threadid=322764&highlight=jpg+to+avi 
>
>
> They are using 1.0pre7-3.3.5, so it looks like a current problem.


I downloaded and built MEncoder 1.0pre7-3.2.2.

I still have the same problem, so I I'd like to submit a bug report. 
Attached output from mencoder and mplayer:

Mencoder ===========================================

mencoder mf://\*.jpg -mf fps=10 -ovc lavc -lavcopts vcodec=mpeg4 
-nosound -o output.avi
MEncoder 1.0pre7-3.2.2 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon K75 Pluto,Orion (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
 
File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 16  data: 0x0 - 0x0
[demuxer] mf support.
[demux_mf] file type was not set! trying 'type=jpg'...
[mf] search expr: *.jpg
[mf] number of files: 983 (3932)
VIDEO:  [IJPG]  0x0  24bpp  10.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16  fourcc:0x47504A49  size:0x0  fps:10.00  ftime:=0.1000
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=34504d46 [FMP4])
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
ODML: Aspect information not (yet?) available or unspecified, not 
writing vprp header.
Pos:  98.3s    983f ( 0%)  21fps Trem:   0min   0mb  A-V:0.000 [3147:0]
Flushing video frames
 
Writing AVI index...
Fixing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not 
writing vprp header.
 
Video stream: 3147.584 kbit/s  (393448 bps)  size: 38675943 bytes  
98.300 secs  983 frames

mplayer ==========================================================
mplayer ~/BigDisk/webcam/output.avi
MPlayer 1.0pre7-3.2.2 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon K75 Pluto,Orion (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx
 
 
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system 
startup scripts.
Playing /home/pwalden/BigDisk/webcam/output.avi.
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
AVI: No audio stream found -> no sound.
VIDEO:  [DIVX]  640x480  24bpp  10.000 fps  3147.2 kbps (384.2 kbyte/s)
Clip info:
 Software: MEncoder 1.0pre4-RPM-3.2.2
vo: X11 running at 1280x1024 with depth 16 and 16 bpp (":0.0" => local 
display)
==========================================================================
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 - 640 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 640x480 => 640x480 Planar YV12
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
V:   7.2  73/ 73 17%  3%  0.0% 0 0
Exiting... (Quit)
[pwalden at walden4 MPlayer-1.0pre7]$ pwd
/home/pwalden/downloads/mplayer/MPlayer-1.0pre7
[pwalden at walden4 MPlayer-1.0pre7]$ ./mplayer ~/BigDisk/webcam/output.avi
MPlayer 1.0pre7-3.2.2 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon K75 Pluto,Orion (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx
 
 
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system 
startup scripts.
Playing /home/pwalden/BigDisk/webcam/output.avi.
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
AVI: No audio stream found -> no sound.
VIDEO:  [FMP4]  640x480  24bpp  10.000 fps  3147.6 kbps (384.2 kbyte/s)
Clip info:
 Software: MEncoder 1.0pre7-3.2.2
vo: X11 running at 1280x1024 with depth 16 and 16 bpp (":0.0" => local 
display)
==========================================================================
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 - 640 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 640x480 => 640x480 Planar YV12
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
V:  73.8 739/739 11%  0%  0.0% 0 0
Exiting... (Quit)





More information about the MPlayer-users mailing list