[MEncoder-users] avi seek and keyframe problem

Sebastian Elsner sebastianelsner at freenet.de
Mon Apr 20 16:05:18 CEST 2009


Hello!

I am using menconder to make a motion jpeg avi file out of a sequence of  
jpegs. I'm using a slightly modified syntax, which is in the docs:

mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc copy -ffourcc  
MJPG -noodml -o output.avi

Works fine! But if I want to seek in the resulting avi it takes ages to  
find the index because there are no keyframes in the file (virtual dub  
tells me this) so the player is seeking through the whole frame from the  
beginning.

Any chance to get myself a keyframe at every frame? -idx or -forceidx  
doesn't seem to work. Is this a bug? See the current encoder output below.

Thanks

Sebastian


encoding with mencoder...
MEncoder Sherpya-SVN-r28311-4.2.5 (C) 2000-2009 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU           @ 2.40GHz (Family: 6, Model:
15, Stepping: 7)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 16  data: 0x0 - 0x0
MF file format detected.
[mf] number of files: 841
VIDEO:  [IJPG]  2048x1108  24bpp  24.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16  fourcc:0x47504A49  size:2048x1108  fps:24.000
ftime:=0.0417
videocodec: framecopy (2048x1108 24bpp fourcc=47504a49)
Forcing output FourCC to 47504a4d [MJPG].
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.
Writing index...41f (100%) 16.00fps Trem:   0min 1087mb  A-V:0.000
[260317:0]
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.

Video stream: 260317.647 kbit/s  (32539705 B/s)  size: 1140245528 bytes
35.042secs  841 frames
done encoding


More information about the MEncoder-users mailing list