AV1のエンコーダ librav1e
について調べたのでメモを残す。
AV1のエンコーダのrav1e はどうなっているかなと見たら、つい数日前に v0.2.0 がリリースされていた。https://t.co/3V6JTQ2cng
— koba (@tetsu_koba) December 23, 2019
ffmpeg のmaster リポジトリでは --enable-librav1e のパッチがマージされていた。https://t.co/2xJERZxG1t
— koba (@tetsu_koba) December 23, 2019
ffmpegで librav1e を試す方法がここに書いてある。https://t.co/rncYXcnCh7
— koba (@tetsu_koba) December 23, 2019
ffmpegのgitリポジトリのmasterブランチで rav1e
を検索
$ git grep rav1e origin/master
origin/master:Changelog:- AV1 encoding support via librav1e
origin/master:configure: --enable-librav1e enable AV1 encoding via rav1e [no]
origin/master:configure: librav1e
origin/master:configure:librav1e_encoder_deps="librav1e"
origin/master:configure:librav1e_encoder_select="extract_extradata_bsf"
origin/master:configure:enabled librav1e && require_pkg_config librav1e "rav1e >= 0.1.0" rav1e.h rav1e_context_new
origin/master:doc/encoders.texi:@section librav1e
origin/master:doc/encoders.texi:rav1e AV1 encoder wrapper.
origin/master:doc/encoders.texi:Requires the presence of the rav1e headers and library during configuration.
origin/master:doc/encoders.texi:You need to explicitly configure the build with @code{--enable-librav1e}.
origin/master:doc/encoders.texi:@item rav1e-params
origin/master:doc/encoders.texi:Set rav1e options using a list of @var{key}=@var{value} pairs separated
origin/master:doc/encoders.texi:by ":". See @command{rav1e --help} for a list of options.
origin/master:doc/encoders.texi:For example to specify librav1e encoding options with @option{-rav1e-params}:
origin/master:doc/encoders.texi:ffmpeg -i input -c:v librav1e -b:v 500K -rav1e-params speed=5:low_latency=true output.mp4
Rav1e Achieves Another ~20% Speed-Up For Rust-Based AV1 Video Encoding
https://www.phoronix.com/scan.php?page=news_item&px=Rav1e-20-Percent-Faster
おまけ
Intel のAV1エンコーダ SVT-AV1 をffmpegで使えるようにするパッチ。
https://github.com/OpenVisualCloud/SVT-AV1/tree/master/ffmpeg_plugin