Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
AV1 codec support (dav1d, aom, svt-av1) in VLC and FFMpeg
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 260

PostPosted: Wed Jul 03, 2024 5:03 pm    Post subject: AV1 codec support (dav1d, aom, svt-av1) in VLC and FFMpeg Reply with quote

I am wondering what use flags I need to enable to get support for AV1 decoding.

This a list of packages, AV1-related use flags and their default setting:
  • media-video/vlc
    • aom (disabled)
    • dav1d (disabled)
  • media-video/ffmpeg
    • dav1d (enabled)
    • libaom (disabled)
    • svt-av1 (disabled)
Moreover, media-video/vlc supports the use flag ffmpeg, which is enabled by default.

Does this mean that VLC is able to decode AV1 video indirectly via ffmpeg?

What would change, if dav1d is also enabled for media-video/vlc directly? Are there any advantages or disadvantages in terms of efficiency, quality or stability?

What are the advantages/disadvantages of the other AV1-libraries? What library is used if support for more than one is enabled?
Back to top
View user's profile Send private message
stefantalpalaru
n00b
n00b


Joined: 11 Jan 2009
Posts: 65
Location: Italy

PostPosted: Sun Jul 07, 2024 2:00 pm    Post subject: Reply with quote

> I am wondering what use flags I need to enable to get support for AV1 decoding.

"dav1d"
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1721
Location: Germany

PostPosted: Mon Jul 08, 2024 7:22 am    Post subject: Reply with quote

https://packages.gentoo.org does a good job listing those useflags visually.

https://packages.gentoo.org/packages/media-video/ffmpeg does show the dav1d useflag and the mouse over does tell "Enables AV1 decoding via media-libs/dav1d."
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
Cygon
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2006
Posts: 115
Location: Germany

PostPosted: Thu Jul 11, 2024 11:04 am    Post subject: Reply with quote

Some additional details:
  • ffmpeg consists of the command-line front end and a software library called "libav" that enables other applications to directly make use of the codecs and features built into ffmpeg.
  • VLC is able to directly use dav1d (https://github.com/videolan/vlc/blob/master/modules/codec/dav1d.c) or use it through ffmpeg's libav.
  • MPV uses dav1d only via ffmpeg's libav.
  • Both VLC and MPV can use (and I think, prioritize) hardware decoding via vaapi, nvdec or even cuda or vulkan (most recent Intel CPUs, NVidia's RTX30xx and equivalent AMD offerings can decode AV1 in hardware).

Enabling dav1d in VLC might yield a tiny gain in efficiency. That is, if your system actually uses software decoding.

As for libaom, it is the reference encoder and decoder from the AV1 developers. Before dav1d, VLC used it for playback (and there probably is still a way to enable it). It is slower than dav1d and should be visually identical (early versions of dav1d didn't support all features of AV1, like synthetic film grain, but that was long ago).

  • SVT-AV1 is a separate AV1 encoder and decoder first developed by Intel. It has now become the official reference encoder and is being worked on by Google, Netflix and Intel.
  • I don't think any of the popular video players use or support SVT-AV1 for decoding.
  • Enabling SVT-AV1 in ffmpeg likely only helps you when you want to encode video, but in that case, consider installing SVT-AV1 (media-libs/svt-av1) or its SVT-AV1-psy fork directly and encode via SvtAv1EncApp.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum