Bug 278705 - multimedia/ffmpeg: update to 8.0.1 (WIP)
Summary: multimedia/ffmpeg: update to 8.0.1 (WIP)
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: FreeBSD Port Management Team (mail alias)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg...
Keywords:
Depends on: 278857 278914 280829 289026 289027 289029 289030 289032 289033 289034 289035 289036 289038 289040 289041 289042 289043 289044 289048 289049 289055 289056 289057 289059 289060 289061 289062 289064 289065 289067 289068 289069 289070 289073 289074 289481 289505 289506 289507 289703
Blocks:
  Show dependency tree / graph
 
Reported: 2024-05-02 23:39 UTC by Jan Beich
Modified: 2025-12-25 08:58 UTC (History)
17 users (show)

See Also:
bugzilla: maintainer-feedback? (multimedia)
jbeich: exp-run?


Attachments
v1 (apply via "git am") (73.39 KB, patch)
2024-05-02 23:39 UTC, Jan Beich
no flags Details | Diff
v1.1 (ffmpeg 7.0.2) (12.66 KB, patch)
2024-08-13 15:29 UTC, Jan Beich
no flags Details | Diff
Patch for ffmpeg (49.16 KB, patch)
2025-08-17 09:23 UTC, Daniel Engberg
no flags Details | Diff
Patch for ffmpeg v2 (48.93 KB, patch)
2025-08-22 18:10 UTC, Daniel Engberg
no flags Details | Diff
v3 (ffmpeg 8.0) (48.93 KB, patch)
2025-08-23 13:54 UTC, Daniel Engberg
no flags Details | Diff
v4 (ffmpeg 8.0.1) (49.96 KB, patch)
2025-11-22 19:42 UTC, Daniel Engberg
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 2024-05-02 23:39:46 UTC
Created attachment 250337 [details]
v1 (apply via "git am")

Need help unbreaking consumers (or filing bugs upstream), build testing on non-x86 architectures and runtime testing of TORCH option (-vf dnn_processing).

See also
https://github.com/search?q=ffmpeg+7.0&type=issues
https://bugs.gentoo.org/928905
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2024-05-03 13:33:50 UTC
(In reply to Jan Beich from comment #0)
> Need help unbreaking consumers (or filing bugs upstream)
Ok. Waiting exp-run errors.
Comment 2 Antoine Brodin freebsd_committer freebsd_triage 2024-05-05 06:17:38 UTC
Some failure logs:

https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/RetroArch-1.18.0_1.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/alephone-20230119_6.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/aubio-0.4.9_5.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/audiowmark-0.6.2.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/av1an-0.4.2_2.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/blender-3.6.1_11.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/bliss-music-analyzer-1.2.0.209_2.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/cfdg-3.4.1_4.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/citra-qt5-s20220902_2.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/citra-s20220902_3.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/cmus-2.10.0_8.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/cyanrip-0.9.2_1.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/dvbcut-0.7.4_6.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/emu64-5.1.0.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/ffms2-2.40_3.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/fs2open-23.2.1_1.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/glaxnimate-0.5.4.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/gstreamer1-libav-1.22.10.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/kodi-20.5.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/lebiniou-3.66.0_6.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/libndi-g20200630_2.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/libretro-ppsspp-1.16.6.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/libxine-1.2.13_9.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/minidlna-1.3.3_1,1.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/motion-4.6.0_1.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/musikcube-3.0.2_2.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/notcurses-3.0.8_4.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/olive-video-editor-0.1.2.20230320_6.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/openenroth-g20230128_3.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/openmw-0.48.0_3.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/owntone-28.9.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/pcsx2-1.7.5698.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/pianobar-2022.04.01_3.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/ppsspp-1.16.6.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/ppsspp-qt5-1.16.6.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/py39-av-12.0.0.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/py39-libopenshot-0.3.2_3.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/py39-openimageio-2.4.13.0_2.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/qTox-1.17.6_5.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/qt5-webengine-5.15.16.p9_1.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/qt6-webengine-6.6.3_1.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/renpy-7.4.11_2.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/rpcs3-0.0.32.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/simplescreenrecorder-0.4.4.9_3.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/siren-0.10_6.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/squeezelite-1.9.9.1422_3.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/subtitlecomposer-0.8.0_1.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/taiga-s20200907_2.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/tg_owt-0.0.20231221_1.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/vapoursynth-l-smash-works-20230716_1.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/vlc-3.0.20_6,4.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/wf-recorder-0.4.1_1.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/wl-screenrec-0.1.3_2.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/wxsvg-1.5.24_3.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/xpra-5.0.8.log
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/zoneminder-1.36.33_3.log
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2024-05-06 12:08:51 UTC
(In reply to Antoine Brodin from comment #2)
> https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/zoneminder-1.36.33_3.log
Usage of removed deprecated API.
Reported to upstream: https://github.com/ZoneMinder/zoneminder/issues/3983
Comment 5 Vladimir Druzenko freebsd_committer freebsd_triage 2024-05-06 12:47:40 UTC
(In reply to Antoine Brodin from comment #2)
> https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/gstreamer1-libav-1.22.10.log

multimedia/gstreamer1-libav

2 options are possible:
1. Add patch multimedia/gstreamer1-libav/files/patch-ext_libav_gstavprotocol.c:
--- ext/libav/gstavprotocol.c.orig      2024-02-13 14:39:08 UTC
+++ ext/libav/gstavprotocol.c
@@ -102,7 +102,7 @@ gst_ffmpegdata_read (void *priv_data, unsigned char *b
 }

 static int
-gst_ffmpegdata_write (void *priv_data, uint8_t * buf, int size)
+gst_ffmpegdata_write (void *priv_data, const uint8_t * buf, int size)
 {
   GstProtocolInfo *info;
   GstBuffer *outbuf;

2. Add to multimedia/gstreamer1-libav/Makefile:
CFLAGS+=-Wno-error=incompatible-function-pointer-types
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2024-05-06 13:02:33 UTC
(In reply to Antoine Brodin from comment #2)
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/py39-libopenshot-0.3.2_3.log

multimedia/libopenshot

Usage of removed deprecated API.
Reported to upstream: https://github.com/OpenShot/libopenshot/issues/953
Comment 8 Vladimir Druzenko freebsd_committer freebsd_triage 2024-05-06 13:16:42 UTC
(In reply to Vladimir Druzenko from comment #7)
Miss click.

graphics/blender and graphics/py-openimageio update coming soon:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275819
https://reviews.freebsd.org/D45051

graphics/blender - "channels" field again, 4.0.2 is affected too, maybe replace "channels" with "ch_layout.nb_channels" can fix.

graphics/py-openimageio - look like not related and probably fixed after update.
Comment 10 Vladimir Druzenko freebsd_committer freebsd_triage 2024-05-06 13:29:22 UTC
(In reply to Antoine Brodin from comment #2)
https://pkg-status.freebsd.org/beefy22/data/140amd64-default-foo/2024-05-04_07h10m46s/logs/errors/libxine-1.2.13_9.log

multimedia/libxine - "reordered_opaque".
Comment 11 Vladimir Druzenko freebsd_committer freebsd_triage 2024-05-06 14:38:08 UTC
(In reply to Vladimir Druzenko from comment #3)
Probably this patch will fix build with ffmpeg7:
diff --git a/multimedia/zoneminder/Makefile b/multimedia/zoneminder/Makefile
index 69a34e271d9a..6988be6b5fe3 100644
--- a/multimedia/zoneminder/Makefile
+++ b/multimedia/zoneminder/Makefile
@@ -3,6 +3,9 @@ DISTVERSION=    1.36.33
 PORTREVISION=  3
 CATEGORIES=    multimedia

+PATCH_SITES=   https://github.com/ZoneMinder/zoneminder/commit/
+PATCHFILES+=   d7682ba95dbe0a83ba32660e3ed620292208b489.patch:-p1 # ffmpeg5+ support
+
 MAINTAINER=    bsd@abinet.ru
 COMMENT=       Complete security camera solution, fully web based with image analysis
 WWW=           https://www.zoneminder.com/
diff --git a/multimedia/zoneminder/distinfo b/multimedia/zoneminder/distinfo
index 44f06f0f9537..fa3034cd5ff9 100644
--- a/multimedia/zoneminder/distinfo
+++ b/multimedia/zoneminder/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1677226523
+TIMESTAMP = 1715006024
 SHA256 (zoneminder-zoneminder-1.36.33_GH0.tar.gz) = cd0f44c7238bcfd10579d665b271f6af81b61f5cbd8cbbc2ff5d7839232e267e
 SIZE (zoneminder-zoneminder-1.36.33_GH0.tar.gz) = 11501221
 SHA256 (FriendsOfCake-crud-1429237_GH0.tar.gz) = 4dc57f344623d3c0e735b53ed583e5382aa9e43012215f641cbd8ebad381aadc
@@ -7,3 +7,5 @@ SHA256 (ZoneMinder-CakePHP-Enum-Behavior-ea90c0c_GH0.tar.gz) = 3a9006c7c59f2b864
 SIZE (ZoneMinder-CakePHP-Enum-Behavior-ea90c0c_GH0.tar.gz) = 3500
 SHA256 (ZoneMinder-RtspServer-eab3285_GH0.tar.gz) = 8e37a14b4895e2e1d76e323875ae515f4ac4018b50d579842848718de804c142
 SIZE (ZoneMinder-RtspServer-eab3285_GH0.tar.gz) = 1396598
+SHA256 (d7682ba95dbe0a83ba32660e3ed620292208b489.patch) = 7b1c96dbac70d257774945583ce90a4fcaad3c4a5e24f00b628f898f8079fb58
+SIZE (d7682ba95dbe0a83ba32660e3ed620292208b489.patch) = 5007

P.S. Will test as soon as my build servers will be free.
Comment 12 Daniel Engberg freebsd_committer freebsd_triage 2024-05-09 06:13:52 UTC
(In reply to Vladimir Druzenko from comment #11)
PATCHFILES+= should be PATCHFILES=
Comment 13 Daniel Engberg freebsd_committer freebsd_triage 2024-05-11 11:00:20 UTC
Make this a metaport (like in PR 261302), there's no way to keep track otherwise

audio/cyanrip is fixed as of 23e1010a8257ca0393c83435ecfb3b26be498d28
Comment 14 Vladimir Druzenko freebsd_committer freebsd_triage 2024-05-11 11:10:05 UTC
(In reply to Vladimir Druzenko from comment #11)
Only current development branch support ffmpeg 7.
release-1.36 branch requires many patches that cannot be applied cleanly from development branch.
Comment 15 Jan Beich freebsd_committer freebsd_triage 2024-05-11 16:17:34 UTC
- multimedia/av1an is fixed after ports 874d8e4b5d2e
- multimedia/wf-recorder is fixed after ports 28ed4a3f4d2b
- emulators/ppsspp is still *broken* after ports 4bb968bc7ed2 or upstream as of 2024-05-11.
Comment 16 Jan Beich freebsd_committer freebsd_triage 2024-05-11 16:53:03 UTC
(In reply to Vladimir Druzenko from comment #9)
If you haven't found upstream issue/fix and/or don't plan to land (upstream or ports-only fix) under "portmgr blanket" better file bugs in FreeBSD bugzilla in order to offload the work (cotacting upstream, analysis, testing) to the afected port maintainers. poudriere errors logs are often incomplete because builds abort after the first error, so fixes suggested based on such logs alone may be also incomplete. For example, I have the following hack to make the logs a bit more useful:

--- a/Mk/Uses/ninja.mk
+++ b/Mk/Uses/ninja.mk
@@ -67,7 +67,7 @@ MAKEFILE=
 MAKE_CMD=	${NINJA_CMD}
 MAKE_FLAGS=
 # Set a minimal job of 1
-_MAKE_JOBS=	-j${MAKE_JOBS_NUMBER}
+_MAKE_JOBS=	-j${MAKE_JOBS_NUMBER} -k0
 _DESTDIR_VIA_ENV=	yes
 .  endif
Comment 18 Jan Beich freebsd_committer freebsd_triage 2024-08-13 15:29:36 UTC
Created attachment 252736 [details]
v1.1 (ffmpeg 7.0.2)

- Update to 7.0.2
- Rebase after ports 25b37a7bcdcf
Comment 19 Antoine Brodin freebsd_committer freebsd_triage 2024-08-15 07:19:33 UTC
Some failure logs:

https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/alephone-20230119_6.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/aubio-0.4.9_5.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/audiowmark-0.6.2.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/blender-4.2.0.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/bliss-music-analyzer-1.2.0.209_2.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/cfdg-3.4.1_4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/citra-qt5-s20220902_2.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/citra-s20220902_3.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/decord-0.6.0.7.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/dvbcut-0.7.4_6.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/emu64-5.1.0.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/ffms2-2.40_3.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/fs2open-23.2.1_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/gegl-0.4.48_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/glaxnimate-0.5.4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/gstreamer1-libav-1.22.10.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/kodi-21.0_4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/lebiniou-3.66.0_6.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/libndi-g20200630_2.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/libretro-ppsspp-1.17.1_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/libxine-1.2.13_9.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/minidlna-1.3.3_1,1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/motion-4.6.0_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/notcurses-3.0.8_4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/olive-video-editor-0.1.2.20240513.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/openenroth-g20230128_3.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/openmw-0.48.0_3.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/owntone-28.9_2.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/pcsx2-1.7.5698.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/pianobar-2022.04.01_3.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/ppsspp-1.17.1_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/ppsspp-qt5-1.17.1_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/py311-av-12.3.0.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/qTox-1.17.6_6.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/qt5-webengine-5.15.17.p2_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/qt6-webengine-6.7.2.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/renpy-7.4.11_2.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/simplescreenrecorder-0.4.4.9_3.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/siren-0.10_6.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/squeezelite-1.9.9.1422_3.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/subtitlecomposer-0.8.1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/taiga-s20200907_2.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/tg_owt-0.0.20240615_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/vapoursynth-l-smash-works-20230716_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/vlc-3.0.21_3,4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/wxsvg-1.5.24_3.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/zoneminder-php81-1.36.33_4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/zoneminder-php82-1.36.33_4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/zoneminder-php83-1.36.33_4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-13_19h55m58s/logs/errors/zoneminder-php84-1.36.33_4.log
Comment 20 Jr.Champ 2024-10-05 09:25:40 UTC
ffmpeg 7.1 is out.
Comment 21 Christos Margiolis freebsd_committer freebsd_triage 2025-04-06 22:04:04 UTC
Bump.
Comment 22 Daniel Engberg freebsd_committer freebsd_triage 2025-04-06 22:28:38 UTC
It's not forgotten but it's a huge undertaking given the amount of legacy software we have in tree...

See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261302 for reference

First step would be updating the patch to 7.1.1, run a "mini" exp-run to determine failures and go from there.

At this point we probably need to drop the ffmpeg4 ports as this causes pollution between libs that uses both versions.
Comment 23 Daniel Engberg freebsd_committer freebsd_triage 2025-08-17 09:23:55 UTC
Created attachment 263007 [details]
Patch for ffmpeg

This is a reworked Makefile for ffmpeg for easier maintenance
Testing with consumers is needed, I've only tried a few that I personally use
It's WIP and likely needs some additional changes
All patches are dropped, these needs to be re-evaluated and submitted upstream whenever possible. It's much easier now with https://code.ffmpeg.org/ in place.

* Since 8.0 doesn't have a release tarball (yet), use GitHub mirror for now
  Port uses latest commit in the 8.0 branch as time of writing
* Add a non-x11 flavor
* Drop SVT-H264 (dead upstream)
* SVT-VP9 is disabled, port needs updating
* Add and enable DVD support
* Create a list of libraries that aren't ported/added instead of using if statements
* Add VVenC support

Poudriere checks out fine on 14.3-RELEASE (amd64) and 13.5-RELEASE (amd64)
Comment 24 Daniel Engberg freebsd_committer freebsd_triage 2025-08-17 09:55:22 UTC
Things to update:

mbedtls is broken, just remove it and keep the other two backends?
libressl is now a separate option, not sure if its worth adding yet another library...

Poudriere is also fine on 13.5-RELEASE for i386
Comment 25 Daniel Engberg freebsd_committer freebsd_triage 2025-08-22 18:10:51 UTC
Created attachment 263132 [details]
Patch for ffmpeg v2

* Drop Mbed TLS
* Use upstream release archive
Comment 26 Daniel Engberg freebsd_committer freebsd_triage 2025-08-23 13:54:45 UTC
Created attachment 263139 [details]
v3 (ffmpeg 8.0)

Add back PORTEPOCH that was removed by mistake
Comment 27 Daniel Engberg freebsd_committer freebsd_triage 2025-08-23 13:56:14 UTC
...it's also in my overlay repo if you prefer to test it that way, https://github.com/diizzyy/ports-overlay/
Comment 28 Li-Wen Hsu freebsd_committer freebsd_triage 2025-11-03 22:33:17 UTC
So ffmpeg 8 is out and a patch is available, it's beneficial to have that in the ports sooner rather later.

portmgr: can we have an exp-run with the 8.0 patch?

And if the fallout of ffmpeg 8 is acceptable, let's update multimedia/ffmpeg to 8 and keep multimedia/ffmpeg6 for the remaining ports need it. As ffmpeg 6.x still receive official updates it should be safe. Once 6.x got unmaintained from upstream those ports depend on it should be reconsidered to be kept in the tree.
Comment 29 Antoine Brodin freebsd_committer freebsd_triage 2025-11-03 22:39:49 UTC
(In reply to Li-Wen Hsu from comment #28)
I see that there is a dozen of PR that this PR depends on, so I don't think it's worth doing an exp-run at the moment
Comment 30 Li-Wen Hsu freebsd_committer freebsd_triage 2025-11-03 22:52:35 UTC
(In reply to Antoine Brodin from comment #29)
I kind to agree. I was thinking if we need a result from a formal exp-run, and those PRs are filed a while ago. If those PRs can be seen as an acceptable result (fallout report) by portmgr then I'm good.

However we should also work on bringing new software in, either with multimedia/ffmpeg8 or update multimedia/ffmpeg and keep multimedia/ffmpeg6.  I know that we don't always want multiple version of one software but we still need to find a way to fulfill most of the users.  Considering those versions are maintained by the upstream this should be safe.

This PR has been open for more than a year and no trivial solution immediately available, we need portmgr to point an acceptable workaround here.
Comment 31 Baptiste Daroussin freebsd_committer freebsd_triage 2025-11-14 10:14:19 UTC
I think we should upgrade now ffmpeg to ffmpeg8 and rename the old ffmpeg to ffmpeg6 and slow move all dependency from ffmpeg6 to ffmpeg8 like we did for ffmpeg4
Comment 32 Daniel Engberg freebsd_committer freebsd_triage 2025-11-15 14:22:54 UTC
(In reply to Baptiste Daroussin from comment #31)
That will likely cause all kinds of issues with especially desktop apps as libraries and applications will link with different versions left and right but go for it.
Comment 33 Daniel Engberg freebsd_committer freebsd_triage 2025-11-22 19:42:38 UTC
Created attachment 265574 [details]
v4 (ffmpeg 8.0.1)

Update to 8.0.1 and adjust comments in Makefile
Comment 34 Baptiste Daroussin freebsd_committer freebsd_triage 2025-11-24 16:05:00 UTC
I have fixed the main ones, I will fix a couple of other ones and once I am done, you will be able to push your version marking the non-fixed one as broken, people had time to fix it themselves for more than 6 month (since you created the ticket).
Comment 35 Baptiste Daroussin freebsd_committer freebsd_triage 2025-11-25 13:46:09 UTC
Can we get a new exp-run please?

If the outcome is still the same as the current issue, we can commit ffmpeg 8 marking the letovers as broken.

Note for mplayer, we need to turn off the VDPAU because this remain broken with ffmpeg8, no need to do it for the exp-run, but necessary for the commit.
Comment 36 Baptiste Daroussin freebsd_committer freebsd_triage 2025-12-18 09:34:24 UTC
to fix  qt6-webengine or any chromium to use system ffmpeg we need to borrow a patch from chromium which readd a function which has been removed from ffmpeg itself, this patch is small enough so it can be added to ffmpeg port direcly (archlinux does that), I running a mini exp-run loclaly and will push ffmpeg8 after that
Comment 37 commit-hook freebsd_committer freebsd_triage 2025-12-24 08:56:14 UTC
A commit in branch main references this bug:

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

commit c204aaf791628cf4cdc06f5cabd0053100360594
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2025-12-17 15:34:34 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2025-12-24 08:55:20 +0000

    multimedia/ffmpeg: update to 8.0.1

    - fix XCB option [1]
    - add a nox11 flavor [2]
    - detect breakage in symbol versionning detection [3]
    - incorporate a chromium patch to readd av_stream_get_first_dts()
      necessary to unbundle ffmpeg in chromium distributions like
      qt*-webengine. as of today chromium devs has not found a way to
      avoid using this function so they keep readding this function in
      their bundled version of ffmpeg.

    PR:     290246 [1]
    PR:     278705 [2]
    PR:     291868 [3]

 multimedia/ffmpeg/Makefile                         | 521 ++++++++++-----------
 multimedia/ffmpeg/distinfo                         |  12 +-
 ...v_stream_get_first_dts-for-Chromium.patch (new) |  43 ++
 ...v_stream_get_first_dts-for-qt5-webengine (gone) |  35 --
 multimedia/ffmpeg/files/patch-configure (gone)     |  40 --
 multimedia/ffmpeg/files/patch-doc-Makefile (gone)  |  11 -
 .../files/patch-libavcodec_libsvtav1.c (gone)      |  16 -
 .../files/patch-libavfilter_vf__lensfun.c (gone)   |  51 --
 .../ffmpeg/files/patch-libavformat_rtsp.c (gone)   |  44 --
 .../ffmpeg/files/patch-libavutil-common.h (gone)   |  13 -
 .../ffmpeg/files/patch-libavutil-x86-asm.h (gone)  |  11 -
 .../files/patch-libavutil_hwcontext__drm.c (gone)  |  24 -
 .../patch-libswscale_ppc_yuv2rgb__altivec.c (gone) |  15 -
 multimedia/ffmpeg/pkg-plist                        | 121 +++--
 14 files changed, 374 insertions(+), 583 deletions(-)
Comment 38 Vladimir Druzenko freebsd_committer freebsd_triage 2025-12-24 12:52:04 UTC
Build fails:
====> Compressing man pages (compress-man)
/bin/sh /usr/ports/Mk/Scripts/check_have_symbols.sh /ssd/obj/usr/ports/multimedia/ffmpeg/work-default/stage /usr/local/lib/libavcodec.so  /usr/local/lib/libavdevice.so  /usr/local/lib/libavfilter.so  /usr/local/lib/libavformat.so  /usr/local/lib/libavutil.so  /usr/local/lib/libswresample.so  /usr/local/lib/libswscale.so
the following libraries are supposed to have symbols versioning but they don't
- /usr/local/lib/libavcodec.so
- /usr/local/lib/libavdevice.so
- /usr/local/lib/libavfilter.so
- /usr/local/lib/libavformat.so
- /usr/local/lib/libavutil.so
- /usr/local/lib/libswresample.so
- /usr/local/lib/libswscale.so
*** Error code 1
Comment 39 Dima Panov freebsd_committer freebsd_triage 2025-12-24 14:10:21 UTC
BTW, ffmpeg8 is broken with LENSFUN

====
libavfilter/vf_lensfun.c:220:63: error: too many arguments to function call, expected 5, have 7
  216 |             lensfun->modifier = lf_modifier_create(lensfun->lens,
      |                                 ~~~~~~~~~~~~~~~~
  217 |                                                    lensfun->focal_length,
  218 |                                                    lensfun->camera->CropFactor,
  219 |                                                    inlink->w,
  220 |                                                    inlink->h, LF_PF_U8, lensfun->reverse);
      |                                                               ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/lensfun/lensfun.h:3075:23: note: 'lf_modifier_create' declared here
 3075 | LF_EXPORT lfModifier *lf_modifier_create (
      |                       ^
 3076 |     float imgcrop, int imgwidth, int imgheight, lfPixelFormat pixel_format, bool reverse);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavfilter/vf_lensfun.c:222:119: error: too few arguments to function call, expected 5, have 3
  222 |                 lf_modifier_enable_vignetting_correction(lensfun->modifier, lensfun->aperture, lensfun->focus_distance);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                              ^
/usr/local/include/lensfun/lensfun.h:3097:15: note: 'lf_modifier_enable_vignetting_correction' declared here
 3097 | LF_EXPORT int lf_modifier_enable_vignetting_correction (
      |               ^
 3098 |     lfModifier *modifier, const lfLens* lens, float focal, float aperture, float distance);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavfilter/vf_lensfun.c:224:75: error: too few arguments to function call, expected 3, have 1
  224 |                 lf_modifier_enable_distortion_correction(lensfun->modifier);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                  ^
/usr/local/include/lensfun/lensfun.h:3091:15: note: 'lf_modifier_enable_distortion_correction' declared here
 3091 | LF_EXPORT int lf_modifier_enable_distortion_correction (lfModifier *modifier, const lfLens* lens, float focal);
      |               ^                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavfilter/vf_lensfun.c:225:100: error: too few arguments to function call, expected 4, have 2
  225 |                 lf_modifier_enable_projection_transform(lensfun->modifier, lensfun->target_geometry);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                            ^
/usr/local/include/lensfun/lensfun.h:3101:17: note: 'lf_modifier_enable_projection_transform' declared here
 3101 | LF_EXPORT cbool lf_modifier_enable_projection_transform (
      |                 ^
 3102 |     lfModifier *modifier, const lfLens* lens, float focal, lfLensType target_projection);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavfilter/vf_lensfun.c:229:68: error: too few arguments to function call, expected 3, have 1
  229 |                 lf_modifier_enable_tca_correction(lensfun->modifier);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                  ^
/usr/local/include/lensfun/lensfun.h:3094:15: note: 'lf_modifier_enable_tca_correction' declared here
 3094 | LF_EXPORT int lf_modifier_enable_tca_correction (lfModifier *modifier, const lfLens* lens, float focal);
      |               ^                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 warnings and 5 errors generated.
gmake: *** [ffbuild/common.mak:81: libavfilter/vf_lensfun.o] Error 1
====
Comment 40 Tatsuki Makino 2025-12-24 16:23:41 UTC
I am forcing the build to succeed using .undef HAS_SYMBOL_VERSION comment #38 and continuing with the updates.

It seems that www/qt5-webengine fails to build.
It seems that was the part related to webrtc, but it was lost from the terminal :)
Comment 41 Tatsuki Makino 2025-12-24 21:34:44 UTC
for memorandum :)

multimedia/mplayer

libmpcodecs/vd_ffmpeg.c:287:43: error: incompatible integer to pointer conversio
n assigning to 'AVVDPAUContext *' (aka 'struct AVVDPAUContext *') from 'int' [-W
int-conversion]                                                                 
  287 |             avctx->hwaccel_context = vdpc = av_alloc_vdpaucontext();    
      |                                           ^ ~~~~~~~~~~~~~~~~~~~~~~~

Is this environment-dependent? (14.3-STABLE amd64)
Or, am I somehow failing to install ffmpeg-8?
Comment 42 Tatsuki Makino 2025-12-25 04:28:37 UTC
(In reply to Tatsuki Makino from comment #41)

The workaround for this is to reset the options.
The optional VDPAU is broken, but since it is not enabled by default, it's not a problem.

www/qt5-webengine is still unko :)

FAILED: [code=1] obj/third_party/webrtc/modules/video_coding/webrtc_h264/h264_de
coder_impl.o
/usr/bin/c++ ... -c ../
../../../kde-qtwebengine-5.15.19p0/src/3rdparty/chromium/third_party/webrtc/modu
les/video_coding/codecs/h264/h264_decoder_impl.cc -o obj/third_party/webrtc/modu
les/video_coding/webrtc_h264/h264_decoder_impl.o
../../../../kde-qtwebengine-5.15.19p0/src/3rdparty/chromium/third_party/webrtc/m
odules/video_coding/codecs/h264/h264_decoder_impl.cc:117:13: error: no member na
med 'reordered_opaque' in 'AVFrame'                                             
  117 |   av_frame->reordered_opaque = context->reordered_opaque;               
      |   ~~~~~~~~  ^
../../../../kde-qtwebengine-5.15.19p0/src/3rdparty/chromium/third_party/webrtc/m
odules/video_coding/codecs/h264/h264_decoder_impl.cc:117:41: error: no member na
med 'reordered_opaque' in 'AVCodecContext'
  ︙
1 warning and 4 errors generated.
Comment 43 Tatsuki Makino 2025-12-25 07:39:35 UTC
for memorandum :)

www/qt5-webengine

It seems that if use_system_ffmpeg condition in ${WRKSRC}/src/3rdparty/chromium/third_party/ffmpeg/BUILD.gn is true, ${WRKDIR}/.build/src/core/release/gen/third_party/ffmpeg/libavcodec/avcodec.h will be used.
It has #include <libavcodec/avcodec.h>.

According to the results of diff -u {${WRKSRC of qt5-webengine},${WRKSRC of qt6-webengine}}/src/3rdparty/chromium/third_party/webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.cc, the 4 reordered_opaque errors are simply removed, and it seems that no new code has been added.

So, I tried continuing by excluding those 3 lines with #if 0 ... #endif.
At the very least, that error has been overcome.
The following error is in ${WRKSRC}/src/3rdparty/chromium/media/ffmpeg/ffmpeg_common.cc :)
It is an FF_PROFILE_* error.
Comment 44 Tatsuki Makino 2025-12-25 08:58:06 UTC
Some files produce errors related to issues like audio channel layout, but by porting the code added for LIBAVCODEC_VERSION_MAJOR > 60 of qt6-webengine, we can get past that.

However, there is code that uses reordered_opaque in ${WRKSRC}/src/3rdparty/chromium/media/filters/ffmpeg_video_decoder.cc, and it's unclear whether it will work if simply ported as-is.

So, it might be better to switch qt5-webengine to use the bundled ffmpeg rather than forcefully applying patches for using system ffmpeg-8, probably :)