Bug 262368 - multimedia/ffmpeg: enable SVTAV1 on amd64 by default
Summary: multimedia/ffmpeg: enable SVTAV1 on amd64 by default
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jan Beich
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2022-03-05 21:38 UTC by Jan Beich
Modified: 2022-03-19 00:30 UTC (History)
1 user (show)

See Also:


Attachments
v1 (1.06 KB, patch)
2022-03-05 21:38 UTC, Jan Beich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2022-03-05 21:38:43 UTC
Created attachment 232273 [details]
v1

SVT-AV1 is a mature implementation of a fast AV1 encoder. It makes heavy use of threads and SIMD assembly thus better suited for live streaming (realtime encoding).

$ ffmpeg -hide_banner -h encoder=libsvtav1
Encoder libsvtav1 [SVT-AV1(Scalable Video Technology for AV1) encoder]:
    General capabilities: delay threads
    Threading capabilities: other
    Supported pixel formats: yuv420p yuv420p10le
libsvtav1 AVOptions:
  -hielevel          <int>        E..V....... Hierarchical prediction levels setting (from 3 to 4) (default 4level)
     3level          3            E..V.......
     4level          4            E..V.......
  -la_depth          <int>        E..V....... Look ahead distance [0, 120] (from -1 to 120) (default -1)
  -preset            <int>        E..V....... Encoding preset (from -1 to 13) (default -1)
  -tier              <int>        E..V....... Set operating point tier (from 0 to 1) (default main)
     main            0            E..V.......
     high            1            E..V.......
  -crf               <int>        E..V....... Constant Rate Factor value (from 0 to 63) (default 0)
  -qp                <int>        E..V....... Initial Quantizer level value (from 0 to 63) (default 0)
  -sc_detection      <boolean>    E..V....... Scene change detection (default false)
  -tile_columns      <int>        E..V....... Log2 of number of tile columns to use (from 0 to 4) (default 0)
  -tile_rows         <int>        E..V....... Log2 of number of tile rows to use (from 0 to 6) (default 0)
  -svtav1-params     <dictionary> E..V....... Set the SVT-AV1 configuration using a :-separated list of key=value parameters

$ fetch https://media.xiph.org/video/derf/y4m/pedestrian_area_1080p25.y4m

$ ffmpeg -hide_banner -benchmark -i pedestrian_area_1080p25.y4m -c:v libsvtav1 -crf 20 -y test.libsvtav1.mp4
[...]
bench: utime=20.564s stime=0.948s rtime=3.545s
bench: maxrss=1032284kB

$ ffmpeg -hide_banner -benchmark -i pedestrian_area_1080p25.y4m -c:v libaom-av1 -cpu-used 8 -usage realtime -crf 20 -y test.libaom-av1.mp4
[...]
bench: utime=49.713s stime=0.230s rtime=16.220s
bench: maxrss=206744kB
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-03-19 00:27:48 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fa4a783ee414a12331ef365fec5f61b611d1c1ec

commit fa4a783ee414a12331ef365fec5f61b611d1c1ec
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-02-25 23:35:11 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-03-19 00:27:14 +0000

    multimedia/ffmpeg: enable SVTAV1 on amd64 by default

    PR:             262368
    Approved by:    maintainer timeout (2 weeks)

 multimedia/ffmpeg/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)