[MEncoder-users] Newbie question

Ender wyvern wyvernender at gmail.com
Tue Dec 29 22:51:42 CET 2009


I'm trying to use mencoder to create a video slideshow with no audio using a
set of jpeg images. My mencoder script (see below) works as long as all the
images are in landscape orientation (4000x3000 instead of 3000x4000). If any
of the images are portrait-oriented, the script fails. I don't control the
orientation of the jpegs provided by the end user; they may be portrait or
landscape. Therefore, I use imagemagick to resize and letterbox the
portrait-oriented photos to 4000x3000. The script still fails if it contains
these letterboxed images. Furthermore, even if I simply resize (and distort)
the images to 4000x3000, the script *still* fails. Can anyone tell me what
I'm doing wrong here? Thanks!

C:\Documents and Settings\kleib\Desktop\New Folder>mencoder -oac lavc -ovc
lavc -of rawvideo -mpegopts format=dvd:tsaf -vf scale=720:480,harddup -srate
48000 -af lavcresample=48000 -lavcopts
vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=8000:keyint=18:vstrict=0:aspect=16/9
-ofps 30000/1001 -o
convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image14.avi
"mf://convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image1.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image2.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image3.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image4.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image5.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image6.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image7.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image8.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image9.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image10.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image11.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image12.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image13.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image14.JPG"
-mf fps=1/3 -nosound
MEncoder Sherpya-SVN-r29355-4.5.0 (C) 2000-2009 MPlayer Team
success: format: 16  data: 0x0 - 0x0
MF file format detected.
[mf] filelist:
convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image1.JPG,convert
edFirstFloor_FamilyRoom_UndefinedRoomId_Image2.JPG,convertedFirstFloor_FamilyRoo
m_UndefinedRoomId_Image3.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Imag
e4.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image5.JPG,convertedFirstF
loor_FamilyRoom_UndefinedRoomId_Image6.JPG,convertedFirstFloor_FamilyRoom_Undefi
nedRoomId_Image7.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image8.JPG,c
onvertedFirstFloor_FamilyRoom_UndefinedRoomId_Image9.JPG,convertedFirstFloor_Fam
ilyRoom_UndefinedRoomId_Image10.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoom
Id_Image11.JPG,convertedFirstFloor_FamilyRoom_UndefinedRoomId_Image12.JPG,conver
tedFirstFloor_FamilyRoom_UndefinedRoomId_Image13.JPG,convertedFirstFloor_FamilyR
oom_UndefinedRoomId_Image14.JPG
[mf] number of files: 14
[demux_mf] file type was not set! trying 'type=JPG'...
VIDEO:  [IJPG]  0x0  24bpp  0.333 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16  fourcc:0x47504A49  size:0x0  fps:0.333  ftime:=3.0000
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [scale w=720 h=480]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
Unsupported PixelFormat 34
Unsupported PixelFormat 34
VDec: vo config request - 4000 x 3000 (preferred colorspace: Unknown 0x0000)
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.


More information about the MEncoder-users mailing list