Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922694 - media-libs/svt-av1-1.8: version bump
Summary: media-libs/svt-av1-1.8: version bump
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: 917591
  Show dependency tree
 
Reported: 2024-01-22 11:21 UTC by Mark
Modified: 2024-08-12 03:29 UTC (History)
5 users (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 Mark 2024-01-22 11:21:10 UTC
Version 1.8 was released in December. Version 1.5 in portage does not work very well, I recompressed a x264 video and it got much bigger, while the current git sources do what I expect instead and create a much smaller video. Also, they heavily optimized speed (50%) and quality in version 1.6, 1.7 and 1.8.
Please update the ebuild.

Reproducible: Always
Comment 1 Ștefan Talpalaru 2024-07-08 23:37:05 UTC
1.8.0 and 2.1.2 are available in my overlay: https://github.com/stefantalpalaru/gentoo-overlay
Comment 2 Libor Bukata 2024-07-30 19:24:41 UTC
(In reply to Ștefan Talpalaru from comment #1)
> 1.8.0 and 2.1.2 are available in my overlay:
> https://github.com/stefantalpalaru/gentoo-overlay

Thank you, I tested it. I suggest to disable PGO and LTO for x86_32 builds since it is very slow. The 32 bit builds are not officially supported based on the warning emitted by CMake during the configuration, the question is whether we can disable `svt-av1` flag for ffmpeg for 32-bit builds only since it makes no sense, but on the other hand, we really want it for 64-bit builds...
Comment 3 Ștefan Talpalaru 2024-07-30 19:31:16 UTC
> I suggest to disable PGO and LTO for x86_32 builds since it is very slow.

Not as slow as it used to be.

Anyway, you can either have a slow build or slow video encoding. If you're desperate enough to encode AV1 on a 32-bit machine - depriving yourself of all ASM optimisations - you might as well squeeze any performance you can out of LTO and PGO.
Comment 4 Libor Bukata 2024-07-30 19:46:44 UTC
(In reply to Ștefan Talpalaru from comment #3)
> > I suggest to disable PGO and LTO for x86_32 builds since it is very slow.
> 
> Not as slow as it used to be.
> 
> Anyway, you can either have a slow build or slow video encoding. If you're
> desperate enough to encode AV1 on a 32-bit machine - depriving yourself of
> all ASM optimisations - you might as well squeeze any performance you can
> out of LTO and PGO.

I do not care about 32 bit build but it is pulled by 32bit ffmpeg (multilib profile + 32bit wine). It seems that AVX512 is not enabled, I just got AVX2 in 64 bit ffmpeg when encoding a video on AMD 7950X.
Comment 5 Ștefan Talpalaru 2024-07-30 19:51:03 UTC
Look into disabling the "svt-av1" ffmpeg USF flag and using the external SVT-AV1 encoder instead: https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/Ffmpeg.md#piping-from-ffmpeg-into-the-standalone-encoder
Comment 6 Libor Bukata 2024-07-31 19:40:37 UTC
(In reply to Ștefan Talpalaru from comment #5)
> Look into disabling the "svt-av1" ffmpeg USF flag and using the external
> SVT-AV1 encoder instead:
> https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/Ffmpeg.md#piping-
> from-ffmpeg-into-the-standalone-encoder

Thank you for a workaround, it works. I noticed that AVX512 is not enabled if PGO is enabled and the resulting performance is as a result slightly worse as it uses only AVX2.
Comment 7 Ștefan Talpalaru 2024-08-01 00:03:55 UTC
> I noticed that AVX512 is not enabled if PGO is enabled

Unrelated. AVX512 has its own USE flag ("cpu_flags_x86_avx512f") and it's one of those CPU-specific flags that you generate with "cpuid2cpuflags".

See also https://wiki.gentoo.org/wiki/CPU_FLAGS_*

(but I put that var in "make.conf", not in its own little file)
Comment 8 Larry the Git Cow gentoo-dev 2024-08-12 03:29:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=138b7cea22f55b10d94888a0c677dafb2ac20d97

commit 138b7cea22f55b10d94888a0c677dafb2ac20d97
Author:     Eli Schwartz <eschwartz@gentoo.org>
AuthorDate: 2024-08-12 03:06:17 +0000
Commit:     Eli Schwartz <eschwartz@gentoo.org>
CommitDate: 2024-08-12 03:29:41 +0000

    media-libs/svt-av1: add 2.1.2
    
    Prerequisite for handbrake update.
    
    Major version bump because they are moving to having soname increment
    when it is supposed to, and tying it to the major version.
    
    https://gitlab.com/AOMediaCodec/SVT-AV1/-/issues/2099
    
    Closes: https://bugs.gentoo.org/922694
    Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>

 media-libs/svt-av1/Manifest             |  1 +
 media-libs/svt-av1/svt-av1-2.1.2.ebuild | 46 +++++++++++++++++++++++++++++++++
 media-libs/svt-av1/svt-av1-9999.ebuild  |  2 +-
 3 files changed, 48 insertions(+), 1 deletion(-)