[MEncoder-users] 5s video from one picture (jpg)

Corey Hickey bugfood-ml at fatooh.org
Sat Mar 11 03:41:07 CET 2006


GeBu wrote:
>>Also on window you should use mf://temp/uvod*.jpg
> 
> Did you tried it? It does not work for me.
> 
>>That is: '/' and no quoting of the '*'
> 
> Try this:
> mkdir temp
> FOR /L %%G IN (1,1,124) DO copy uvod.jpg temp\uvod%%G.jpg
> mencoder mf://temp/uvod*.jpg -ovc lavc -lavcopts
> vcodec=mpeg4:mbd=2:trell -oac copy -o uvoda.avi

'-oac copy' does nothing for you here unless you use -audiofile.

> rmdir /S /Q temp
> 
> mplayer crashes:
> C:\Programs\mplayer>mencoder mf://temp/uvod*.jpg -ovc lavc -lavcopts
> vcodec=mpeg
> 4 -oac copy -o vyst1/uvoda.avi
> MEncoder dev-CVS-050928-16:38-3.4.2 (C) 2000-2005 MPlayer Team

That's a pretty old version.

> CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (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 with runtime CPU detection - WARNING - this is not optimal!
> To get best performance, recompile MPlayer with
> --disable-runtime-cpudetection.
> success: format: 16  data: 0x0 - 0x0
> [demux_mf] file type was not set! trying 'type=jpg'...
> [mf] search expr: temp/uvod*.jpg
> [mf] number of files: 124 (496)
> VIDEO:  [IJPG]  0x0  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
> [V] filefmt:16  fourcc:0x47504A49  size:0x0  fps:25.00  ftime:=0.0400
> Opening video filter: [expand osd=1]
> Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 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 h
> eader.
> 
> Flushing video frames
> [NULL @ 009849F8]picture size invalid (0x0)

Try upgrading to more recent CVS. If that doesn't work, try '-mf
w=xxx:h=yyy', where xxx and yyy are the width and height, in pixels, of
your jpeg files.

> And the output file is locked :(.

You mean you can't delete it or overwrite it? Usually that just means
there's still a program running with that file open. Windows is very
very annoying that way. Check your task manager for any hung mencoder
processes.

-Corey




More information about the MEncoder-users mailing list