Bug 493973 - kpipewire 6.1.5 fails to build with the recently released ffmpeg 7.1
Summary: kpipewire 6.1.5 fails to build with the recently released ffmpeg 7.1
Status: RESOLVED FIXED
Alias: None
Product: KPipeWire
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Exherbo Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-02 15:44 UTC by Timo Gurr
Modified: 2024-10-03 18:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.2.0
Sentry Crash Report:


Attachments
kpipewire-6.1.5-build.log (567.47 KB, text/x-log)
2024-10-02 15:44 UTC, Timo Gurr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Gurr 2024-10-02 15:44:26 UTC
Created attachment 174320 [details]
kpipewire-6.1.5-build.log

SUMMARY

kpipewire 6.1.5 fails to build with the recently released ffmpeg 7.1 while it builds fine against 7.0.2

STEPS TO REPRODUCE
1. install ffmpeg 7.1
2. try to build kpipewire 6.1.5

OBSERVED RESULT

Build failure:

/var/tmp/paludis/build/media-libs-kpipewire-6.1.5/work/kpipewire-6.1.5/src/h264vaapiencoder.cpp: In member function 'virtual bool H264VAAPIEncoder::initialize(const QSize&)':
/var/tmp/paludis/build/media-libs-kpipewire-6.1.5/work/kpipewire-6.1.5/src/h264vaapiencoder.cpp:147:80: error: 'AVFilterLink' {aka 'struct AVFilterLink'} has no member named 'hw_frames_ctx'
  147 |     m_avCodecContext->hw_frames_ctx = av_buffer_ref(m_outputFilter->inputs[0]->hw_frames_ctx);
      |                                                                                ^~~~~~~~~~~~~


EXPECTED RESULT

No build failure


SOFTWARE/OS VERSIONS
Operating System: Exherbo 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.11.1 (64-bit)
Graphics Platform: X11
Processors: 12 × 12th Gen Intel® Core™ i5-12500
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 770
Manufacturer: ITMediaConsult AG
Product Name: Pentino_H-Series A_MT_Q670
System Version: 1.0

ADDITIONAL INFORMATION
Complete build log is attached.
Comment 1 Taurnil 2024-10-02 23:17:56 UTC
I have the same problem, same errors.
Comment 2 Nate Graham 2024-10-03 18:13:57 UTC
Fixed by Arjen Hiemstra in Plasma 6.2.0 with https://invent.kde.org/plasma/kpipewire/-/commit/5ff964b62d0112f27b52b742f4e6a054ba9e4732.

The patch is probably backportable if you need it, but we don't have any more Plasma 6.1.x releases planned right now.