Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#110 Can not convert image files to raw avi or X264 using MEncode

svn
closed-out-of-date
MEncoder (43)
5
4 days ago
2010-11-10
Martin Lee
No

Using MEncoder, I can convert a raw avi(build by AE) to X264.
But when I try to convert image files derectly to X264 by MEncoder, it doesnt work, no imge file can be convert to X264.

And I have tried on a WinXp PC, get a same result.

#Details=========================================================================
1, Environment: win7 X86 Intel Dual Core (Thinkpad 201)
2, MEncoder 1.0RC3 (r32492) P4-mt
3, JPG(800*600) image files sequence
==============================================================================
4, Convert to AVI(raw)
I use the command copy from man page, but get a avi file which only 5k bytes, no image is converted to the avi files.
#Command:
mencoder mf://"D:\work\*.jpeg" -mf w=800:h=600:fps=25:type=jpg -ovc copy -oac copy -o "D:\work\302.avi"

#Screen putput
MEncoder SVN-r32492-4.2.5 (C) 2000-2010 MPlayer Team
159 audio & 355 video codecs
success: format: 16 data: 0x0 - 0x0
MF file format detected.
[mf] search expr: D:\work\*.jpeg
[mf] number of files: 240 (960)
VIDEO: [IJPG] 800x600 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16 fourcc:0x47504A49 size:800x600 fps:25.000 ftime:=0.0400
videocodec: framecopy (800x600 24bpp fourcc=47504a49)
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream: nan kbit/s (-2147483648 B/s) size: 0 bytes 0.000 secs 0 frames

==============================================================================
5, Convert to X264
When I try to convert these image files to X264, I get the 5k files again, still no image is converted.

#Command:
mencoder mf://"D:\work\*.jpeg" -mf w=800:h=600:fps=25:type=jpg -ovc x264 -ffourCC H264 -x264encopts bitrate=5000:threads=auto:pass=1 -oac copy -o "D:\work\303.avi"

#Screen putput
MEncoder SVN-r32492-4.2.5 (C) 2000-2010 MPlayer Team
159 audio & 355 video codecs
success: format: 16 data: 0x0 - 0x0
MF file format detected.
[mf] search expr: D:\work\*.jpeg
[mf] number of files: 240 (960)
VIDEO: [IJPG] 800x600 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16 fourcc:0x47504A49 size:800x600 fps:25.000 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)
==========================================================================
Forcing output FourCC to 34363248 [H264].

Flushing video frames.
Filters have not been configured! Empty file?
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream: nan kbit/s (-2147483648 B/s) size: 0 bytes 0.000 secs 0 frames

Discussion

  • Martin Lee
    Martin Lee
    2010-11-10

    one of my jpg files

     
    Attachments
  • hgkamath
    hgkamath
    2010-11-27

    MEncoder Sherpya-SVN-r30369

    This was extremely trouble some. There are some undocumented quirks that are involved.
    The only clue is that a -v option shows that mencoder gets an EOF at the very beginning.

    1) mf://*.jpeg The glob expression removes any leading directory parts, so must be in current directory of pics
    2) accidentally instead of mf://*.jpeg if you have a typo, ex: mf://*.jpeg your it appears as if mencoder does not understand mf://

    @echo off
    D:
    cd "D:\your\folder\pics"
    "C:\Program Files\SMPlayer\mplayer"\mencoder mf://*.jpeg -mf w=640:h=480:fps=25:type=jpg -o ..\day.avi -ovc lavc -lavcopts vcodec=msmpeg4v2:vbitrate=800

     
  • Ao6UYR <a href="http://vimhxjsdiqlw.com/">vimhxjsdiqlw</a>, [url=http://gjvyrtlyubuw.com/]gjvyrtlyubuw[/url], [link=http://ldoylpdsesxm.com/]ldoylpdsesxm[/link], http://kgogerulapub.com/

     
  • 1OVFRG <a href="http://wdoxjffwiznt.com/">wdoxjffwiznt</a>, [url=http://bejmnlxrbrxx.com/]bejmnlxrbrxx[/url], [link=http://cscnxahkiigy.com/]cscnxahkiigy[/link], http://bstxfwekqtkp.com/

     
  • 8fA1cz <a href="http://ajsatcjqozvf.com/">ajsatcjqozvf</a>, [url=http://fxtcdworrrqy.com/]fxtcdworrrqy[/url], [link=http://fzkjjyawqngz.com/]fzkjjyawqngz[/link], http://lewndjgqbsvt.com/

     
  • Ye5zaf <a href="http://hnmkovyvjite.com/">hnmkovyvjite</a>, [url=http://iybvvfsscqki.com/]iybvvfsscqki[/url], [link=http://mycbjxsqyhqw.com/]mycbjxsqyhqw[/link], http://hqraertuptlu.com/

     
  • 9a134T <a href="http://fuvczmorhceq.com/">fuvczmorhceq</a>, [url=http://dxmjddtfgpdk.com/]dxmjddtfgpdk[/url], [link=http://qcdlhuwxoaql.com/]qcdlhuwxoaql[/link], http://mzbgrwsbfmbm.com/

     
  • Sxj9v6 <a href="http://hizkrixbbopx.com/">hizkrixbbopx</a>, [url=http://frhfttgxnkst.com/]frhfttgxnkst[/url], [link=http://jivpjvnqxpnt.com/]jivpjvnqxpnt[/link], http://slcznuqmjxxa.com/

     
    • Status: open --> closed-out-of-date