Hi, This prevent mpv from reading AV1 encoded videos, for example: alarig@pikachu ~ % mpv DNA\ Replication\ \(Updated\)-Qqe4thU-os8.mkv (+) Video --vid=1 (*) (av1 1920x1080 30.000fps) (+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz) Failed to initialize a decoder for codec 'av1'. Video: no video Exiting... (Errors when loading file) zsh: exit 2 mpv DNA\ Replication\ \(Updated\)-Qqe4thU-os8.mkv After a recompilation of ffmpeg with the libaom flag enabled, it works: alarig@pikachu ~ % mpv DNA\ Replication\ \(Updated\)-Qqe4thU-os8.mkv (+) Video --vid=1 (*) (av1 1920x1080 30.000fps) (+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz) AO: [pulse] 48000Hz stereo 2ch float VO: [gpu] 1920x1080 yuv420p AV: 00:00:16 / 00:08:11 (3%) A-V: 0.021 Dropped: 49 AV1 are more and more common, especially on YouTube. Is it possible to enable this use flag by default? Regards, -- Alarig Le Lay
"If" this gets considered, for playback, I feel enabling dav1d by default makes more sense than libaom. libaom is a reference but slow for playback and very very very slow for encoding (svt-av1 and rav1e make more sense for encoding). It may be fine with 1080p@30fps playback but can easily become an issue if going beyond or 10/12bit encoding, even on modern systems (dav1d also recently received some good optimizations for 10bit playback).
I agree but dav1d is available from 4.2.1 and the stable version is 4.1.3.
(In reply to Ionen Wolkens from comment #1) > "If" this gets considered, for playback, I feel enabling dav1d by default > makes more sense than libaom. > > libaom is a reference but slow for playback and very very very slow for > encoding (svt-av1 and rav1e make more sense for encoding). It may be fine > with 1080p@30fps playback but can easily become an issue if going beyond or > 10/12bit encoding, even on modern systems (dav1d also recently received some > good optimizations for 10bit playback). Now that media-video/ffmpeg-4.2.2 has been stabilised, we can use dav1d instead of libaom :)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6cd414f0ef894bdb7f518c3b9935c11cdc5011e commit f6cd414f0ef894bdb7f518c3b9935c11cdc5011e Author: Alexis Ballier <aballier@gentoo.org> AuthorDate: 2020-07-02 13:03:07 +0000 Commit: Alexis Ballier <aballier@gentoo.org> CommitDate: 2020-07-02 13:03:54 +0000 media-video/ffmpeg: enable dav1d by default AV1 is going to be the new standard and FFmpeg does not have an internal decoder but relies on dav1d. Enable it by default to ensure playback of standard formats works out of the box. Closes: https://bugs.gentoo.org/712268 Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Alexis Ballier <aballier@gentoo.org> media-video/ffmpeg/ffmpeg-4.3.ebuild | 2 +- media-video/ffmpeg/ffmpeg-9999.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)