Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 854972

Summary: media-video/ffmpeg: add media-libs/svt-av1 patches for v4.4.2
Product: Gentoo Linux Reporter: Andrew Saunders <saunders>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/AOMediaCodec/SVT-AV1/blob/master/ffmpeg_plugin/README.md
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrew Saunders 2022-06-29 02:22:20 UTC
Wanted to give svt-av1 a try in ffpmeg v4 but found out that it's a crippled implementation. There are patches that apply cleanly and appear to work (at least with my testing).

Reproducible: Always

Steps to Reproduce:
1. Not a bug.
2.
3.



Quick dirty way to test, the patches have to be applied in order.

mkdir -p /etc/portage/patches/media-video/ffmpeg
cd /etc/portage/patches/media-video/ffmpeg
x=1
for i in 04b89e8ae3 64e2fb3f9d 0463f5d6d5 c5f3143090 c33b404885 1dddb930aa \
  50bc872635 51c0b9e829 e3c4442b24 ded0334d21 70887d44ff fe100bc556 6fd1533057; do
  wget "https://gitlab.com/1480c1/FFmpeg/-/commit/${i}.patch" -O "$(echo "0$x" | rev | cut -c-2 | rev)-$i.patch"
  x=$(($x + 1))
done

and to test encoding
ffmpeg -i somefile.mp4 -c:v av1 -crf 28 -b:v 1000k -c:a copy output.mkv