Opened 7 years ago

Closed 7 years ago

#5894 closed defect (fixed)

Wrong -auto-alt-ref option type

Reported by: kagami Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: libvpx
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

libvpx API allows 0, 1 and 2 values for enable_auto_alt_ref option in case of VP9, see vp9_cx_iface.c. But ffmpeg uses AV_OPT_TYPE_BOOL for it, thus making impossible to enable multi_arf_allowed mode.

% ffmpeg -f lavfi -i testsrc -auto-alt-ref 2 -c:v libvpx-vp9 -frames:v 1 -f null -
ffmpeg version N-82014-gb22b4fb Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (Gentoo 5.4.0 p1.0, pie-0.6.5)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=corei7-avx -O2 -pipe -I/opt/cuda/include -I/opt/cuda/include -I/opt/cuda/include -I/opt/cuda/include' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-cuda --enable-cuvid --enable-nonfree --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-lzma --enable-network --enable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --enable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libschroedinger --disable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-libbs2b --disable-chromaprint --disable-libebur128 --disable-libflite --disable-frei0r --disable-libfribidi --enable-fontconfig --disable-ladspa --enable-libass --enable-libfreetype --disable-librubberband --disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-nvenc --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-avx2 --disable-fma3 --disable-fma4 --disable-xop --cpu=corei7-avx --disable-doc --disable-htmlpages --enable-manpages
  libavutil      55. 32.100 / 55. 32.100
  libavcodec     57. 61.103 / 57. 61.103
  libavformat    57. 52.100 / 57. 52.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 64.100 /  6. 64.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, lavfi, from 'testsrc':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
[libvpx-vp9 encoder @ 0x17237a0] Unable to parse option value "2" as boolean
[libvpx-vp9 encoder @ 0x17237a0] Error setting option auto-alt-ref to value 2.
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> vp9 (libvpx-vp9))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Change History (2)

comment:1 by Carl Eugen Hoyos, 7 years ago

Keywords: vp9 removed
Reproduced by developer: set
Status: newopen

comment:2 by Carl Eugen Hoyos, 7 years ago

Resolution: fixed
Status: openclosed

Fixed in 41da4f8cb3a7ac6888dbe6a6bbe1a573a74062ff - thank you for the report and the fix!

Note: See TracTickets for help on using tickets.