Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712268 - media-video/ffmpeg doesn’t have libaom support by default
Summary: media-video/ffmpeg doesn’t have libaom support by default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-12 18:36 UTC by Alarig Le Lay
Modified: 2020-07-02 13:04 UTC (History)
1 user (show)

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 Alarig Le Lay 2020-03-12 18:36:01 UTC
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
Comment 1 Ionen Wolkens gentoo-dev 2020-03-12 23:42:45 UTC
"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).
Comment 2 Alarig Le Lay 2020-03-13 14:05:58 UTC
I agree but dav1d is available from 4.2.1 and the stable version is 4.1.3.
Comment 3 Alarig Le Lay 2020-03-22 22:25:29 UTC
(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 :)
Comment 4 Larry the Git Cow gentoo-dev 2020-07-02 13:04:00 UTC
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(-)