[MEncoder-users] Creating a slideshow from a bunch of jpgs with -mf
Sebastian Korfmann
korfmann at ubilabs.net
Wed Mar 17 18:27:24 CET 2010
Hi,
i am trying to generate a video from a bunch of jpgs, which works fine, as
long i have only a few images. But when I am trying to encode more (>10)
different images, it blows up.
My aim:
Given we have 10 images. Each of them should be able to be displayed for a
different duration (the first for 2 seconds, the second one maybe for 10
seconds, etc).
So i am generating the filelist, in which each jpg-file is repeated x-times
(x is the duration in seconds).
An Example:
When I am calling the following command with the filelist (400 seconds, 40
different files , each of them with dimensions of 400x300)
mencoder mf://@#{image_list_file_path} -mf fps=1:type=jpg -ovc lavc
-lavcopts vcodec=mpeg4:mbd=2:trell -o #{output_file_path}
I get the following output:
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 @ 0x6611f0]SwScaler: BICUBIC scaler, from yuv422p to yuv420p using
MMX2
[swscaler @ 0x6611f0]SwScaler: using 4-tap MMX scaler for horizontal
luminance scaling
[swscaler @ 0x6611f0]SwScaler: using 4-tap MMX scaler for horizontal
chrominance scaling
[swscaler @ 0x6611f0]SwScaler: using 1-tap MMX "scaler" for vertical scaling
(YV12 like)
[swscaler @ 0x6611f0]SwScaler: 400x300 -> 400x300
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
MEncoder 1.0rc2-4.0.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz (Family: 6, Model: 15,
Stepping: 10)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
115 audio & 237 video codecs
success: format: 16 data: 0x0 - 0x0
MF file format detected.
[mf] number of files: 225
VIDEO: [IJPG] 0x0 24bpp 1.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16 fourcc:0x47504A49 size:0x0 fps: 1.00 ftime:=1.0000
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)
==========================================================================
VDec: vo config request - 400 x 300 (preferred colorspace: 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 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (400x300 fourcc=34504d46 [FMP4])
[VE_LAVC] High quality encoding selected (non-realtime)!
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.
VDec: vo config request - 400 x 300 (preferred colorspace: Unknown 0x0000)
I have tried serveral combinations of options, but honestly I have no idea,
with which options i should play around.
Could someone please point me in the right direction?
Thanks
Sebastian Korfmann
--
Ubilabs GmbH
Juliusstr. 25
22769 Hamburg, Germany
korfmann at ubilabs.net
Tel +49 (0) 40 - 41 30 47 85
Fax +49 (0) 40 - 41 30 47 86
Handelsregister Hamburg: HRB 110269
Steuernummer: 29/456/03301
Geschäftsführer: Michael Pletziger, Jens Wille
More information about the MEncoder-users
mailing list