Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292495 - Mencoder/x264 fails with "x264encopts: Bad argument b_pyramid=(null)"
Summary: Mencoder/x264 fails with "x264encopts: Bad argument b_pyramid=(null)"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-09 10:42 UTC by Harald Urkan
Modified: 2009-11-09 12:51 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 Harald Urkan 2009-11-09 10:42:02 UTC
This bug affects either mencoder SVN-r29796-4.4.1 (media-video/mplayer-1.0_rc4_p20091026-r1) or media-libs/x264-0.0.20091021, I'm not sure wich one. I cannot test them independently, as they depend on each other these specific versions.

When trying to run mencoder with "-ovc x264" and if the encoding options (-x264encopts) contain "b_pyramid", mencoder will fail with the following error:

"Option x264encopts: Bad argument b_pyramid=(null)"

This can be remedied by simply removing the b_pyramid option. B_pyramid works fine with the currently stable versions of mencoder and x264.

It may be noteworthy that I run an otherwise stable system. The only ~amd64 packages on my installation that may be relevant to this issue are media-video/ffmpeg-0.5_p20373, media-libs/x264-0.0.20091021, media-video/mplayer-1.0_rc4_p20091026-r1.

Reproducible: Always

Steps to Reproduce:
1. emerge media-video/mplayer-1.0_rc4_p20091026-r1
2. run mencoder with -ovc x264 -x264encopts b_pyramid

Actual Results:  
Mencoder fails with the aforementioned error message.

Expected Results:  
Mencoder should successfully encode my video.

The full command that causes this failure:

mencoder filename.vob \
   -aspect 4:3 \
   -ovc x264 \
   -x264encopts subq=3:bframes=3:b_pyramid:weight_b:turbo=1:pass=1:psnr:threads=3:bitrate=900 \
   -ofps 25 \
   -oac copy \
   -of rawvideo \
   -o filename.264

This is the full output:

MEncoder SVN-r29796-4.4.1 (C) 2000-2009 MPlayer Team
Option x264encopts: Bad argument b_pyramid=(null)
success: format: 0  data: 0x0 - 0xdb0fb800
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  9200.0 kbps (1150.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.000  ftime:=0.0400
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 0
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
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.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 B/s=24000 sample-1)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
FATAL: Cannot initialize video driver.
Comment 1 Ben de Groot (RETIRED) gentoo-dev 2009-11-09 12:51:24 UTC
This is not a bug, the code for b_pyramid was changed on 19th October, so it needs an argument now:

--b-pyramid <string>    Keep some B-frames as references [%s]
                        - none: Disabled
                        - strict: Strictly heirarchical pyramid
                        - normal: Non-strict (not Blu-ray compatible)

See http://mailman.videolan.org/pipermail/x264-devel/2009-October/006463.html