Bug 493973

Summary: kpipewire 6.1.5 fails to build with the recently released ffmpeg 7.1
Product: [Frameworks and Libraries] KPipeWire Reporter: Timo Gurr <timo.gurr>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, nate, taurnil.oronar
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Exherbo   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.2.0
Sentry Crash Report:
Attachments: kpipewire-6.1.5-build.log

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.