[MPlayer-users] How to specify libx264 encoder?

James Board jpboard2 at yahoo.com
Sun Dec 15 16:59:13 CET 2013


Hi.  I'm trying to do 2-pass encoding with mencoder using libx264, but it
isn't working.  Here is the first-pass command:

> mencoder IN.avi -vf eq=5:0 -ovc lavc -lavcopts vcodec=libx264:vbitrate=10000000:threads=1:keyint=15:vpass=1 -passlogfile
 LOGFILE -oac copy -o /dev/null
MEncoder SVN-r31628-4.4.5 (C) 2000-2010 MPlayer Team
success: format: 0  data: 0x0 - 0xdc49b02
AVI file format detected.
[aviheader] Video stream found, -vid 0
AVI: No audio stream found -> no sound.
VIDEO:  [FFVH]  1920x1080  16bpp  29.970 fps  453932.7 kbps (55411.7 kbyte/s)
[V] filefmt:3  fourcc:0x48564646  size:1920x1080  fps:29.970  ftime:=0.0334
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [eq brightness=5 contrast=0]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffhuffyuv] vfm: ffmpeg (FFmpeg HuffYUV)
==========================================================================
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x26f91b0] BICUBIC scaler, from yuv422p to yuv420p using MMX2
videocodec: libavcodec (1920x1080 fourcc=34363268 [h264])
[libx264 @ 0x24fa650] broken ffmpeg default settings detected
[libx264 @ 0x24fa650] use an encoding preset (e.g. -vpre medium)
[libx264 @ 0x24fa650] preset usage: -vpre <speed> -vpre <profile>
[libx264 @ 0x24fa650] speed presets are listed in x264 --help
[libx264 @ 0x24fa650] profile is optional; x264 defaults to high
Could not open codec.
FATAL: Cannot initialize video driver.
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (1920x1080 fourcc=34363268 [h264])
[libx264 @ 0x24fa650] broken ffmpeg default settings detected
[libx264 @ 0x24fa650] use an encoding preset (e.g. -vpre medium)
[libx264 @ 0x24fa650] preset usage: -vpre <speed> -vpre <profile>
[libx264 @ 0x24fa650] speed presets are listed in x264 --help
[libx264 @ 0x24fa650] profile is optional; x264 defaults to high
Could not open codec.
FATAL: Cannot initialize video driver.

Exiting...

(For Carl, I tried the same command with the current version of mencoder and the same problem exists.  So
don't complain about the old mencoder).


Here is an ffprobe of the input file:
> ffprobe IN.avi
ffprobe version N-54733-gab5f581 Copyright (c) 2007-2013 the FFmpeg developers
  built on Aug  5 2013 20:24:36 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3)
  configuration: --enable-libfreetype --enable-gpl --enable-libx264
  libavutil      52. 39.100 / 52. 39.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.102 / 55. 12.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 80.101 /  3. 80.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, avi, from 'IN.avi':
  Metadata:
    encoder         : Lavf55.12.102
  Duration: 00:00:04.07, start: 0.000000, bitrate: 453949 kb/s
    Stream #0:0: Video: ffvhuff (FFVH / 0x48564646), yuv422p, 1920x1080, 29.97 tbr, 29.97 tbn, 29.97 tbc





More information about the MPlayer-users mailing list