Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195699 - >media-video/x264-svn-encoder-20061014 fails to convert video file using mencoder
Summary: >media-video/x264-svn-encoder-20061014 fails to convert video file using menc...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-13 13:33 UTC by Alexey
Modified: 2007-10-13 13:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey 2007-10-13 13:33:12 UTC
The last working version is x264-svn-encoder-20061014

Mencoder output:

MEncoder SVN-r24130 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Xeon(TM) CPU 1.50GHz (Family: 15, Model: 1, Stepping: 2)
MMX2 supported but disabled
CPUflags: Type: 15 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0xe62b000
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
AVI: Generated index table for 86124 chunks!
VIDEO:  [DX50]  640x480  24bpp  25.000 fps  1047.1 kbps (127.8 kbyte/s)
[V] filefmt:3  fourcc:0x30355844  size:640x480  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 64.0 kbit/4.17% (ratio: 8000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
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: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
MP3 audio selected.
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
x264 [error]: no ratecontrol method specified
x264_encoder_open failed.
FATAL: Cannot initialize video driver.


Reproducible: Always

Steps to Reproduce:
Exchange the <any_video_file> with filename you have on board.

mencoder <any_video_file> -forceidx -ovc x264 -x264encopts subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b:threads=2
 -oac mp3lame -lameopts mode=3:vbr=3:q=6 -af volnorm -af-adv force=1 -o out.avi
Comment 1 Alexey 2007-10-13 13:42:11 UTC
My bad.

I'm talking about media-libs/x264-svn !!!

The last working version is x264-svn-20061014-r1
Comment 2 Alexis Ballier gentoo-dev 2007-10-13 13:46:11 UTC
(In reply to comment #0)

> x264 [error]: no ratecontrol method specified


you need to specify it...

from man mplayer:
 qp=<0-51>
          This selects the quantizer to use for P-frames.   I-  and  B-frames
          are  offset from this value by ip_factor and pb_factor, respective-
          ly.  20-40 is a useful range.  Lower values result  in  better  fi-
          delity,  but  higher bitrates.  0 is lossless.  Note that quantiza-
          tion in H.264 works differently from MPEG-1/2/4: H.264's  quantiza-
          tion  parameter (QP) is on a logarithmic scale.  The mapping is ap-
          proximately H264QP = 12 + 6*log2(MPEGQP).   For  example,  MPEG  at
          QP=2 is equivalent to H.264 at QP=18.


x264 used to default to 26 iirc, that's no longer the case


if you wish mplayer to restore the default, please ask that upstream.