Bug 246673

Summary: multimedia/ffmpeg: patch filed with SVTVP9 on
Product: Ports & Packages Reporter: VVD <vvd>
Component: Individual Port(s)Assignee: freebsd-multimedia (Nobody) <multimedia>
Status: Closed FIXED    
Severity: Affects Some People CC: jbeich, pi, rhurlin
Priority: --- Flags: jbeich: maintainer-feedback+
jbeich: merge-quarterly-
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://github.com/OpenVisualCloud/SVT-VP9/issues/108

Description VVD 2020-05-23 05:12:30 UTC
12.1 amd64.
With option SVTVP9 patch apply error:
===>  Applying distribution patches for ffmpeg-4.2.3,1
2 out of 8 hunks failed--saving rejects to libavformat/matroskaenc.c.rej
===>  FAILED Applying distribution patch 0001-Add-ability-for-ffmpeg-to-run-svt-vp9.patch with -p1
*** Error code 1
Comment 1 Jan Beich freebsd_committer 2020-05-23 08:13:59 UTC
Reported upstream (linked in See Also). For now either sandbox existing ffmpeg package or switch to SvtVp9EncApp. Using old ffmpeg is not recommended due to CVE-2019-13312 and CVE-2020-12284.
Comment 2 VVD 2020-05-23 08:26:03 UTC
One more:
https://github.com/OpenVisualCloud/SVT-VP9/blob/master/ffmpeg_plugin/README.md:
Based on SVT-HEVC & SVT-AV1:
    git apply SVT-HEVC/ffmpeg_plugin/0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
    git apply SVT-AV1/ffmpeg_plugin/0001-Add-ability-for-ffmpeg-to-run-svt-av1-with-svt-hevc.patch
    git apply SVT-VP9/ffmpeg_plugin/0001-Add-ability-for-ffmpeg-to-run-svt-vp9-with-svt-hevc-av1.patch
    ./configure --enable-libsvthevc --enable-libsvtav1 --enable-libsvtvp9
Comment 3 commit-hook freebsd_committer 2020-05-27 02:09:21 UTC
A commit references this bug:

Author: jbeich
Date: Wed May 27 02:08:21 UTC 2020
New revision: 536667
URL: https://svnweb.freebsd.org/changeset/ports/536667

Log:
  multimedia/ffmpeg: unbreak SVTVP9 after r536258

  ===>  Applying distribution patches for ffmpeg-4.2.3,1
  2 out of 8 hunks failed--saving rejects to libavformat/matroskaenc.c.rej
  ===>  FAILED Applying distribution patch 0001-Add-ability-for-ffmpeg-to-run-svt-vp9.patch with -p1
  *** Error code 1

  PR:		246673
  Reported by:	VVD <vvd@unislabs.com>

Changes:
  head/multimedia/ffmpeg/Makefile
  head/multimedia/ffmpeg/distinfo