CasparCG / server

CasparCG Server is a Windows and Linux software used to play out professional graphics, audio and video to multiple outputs. It has been in 24/7 broadcast production since 2006. Ready-to-use downloads are available under the Releases tab https://casparcg.com.
GNU General Public License v3.0
915 stars 269 forks source link

Bug: 2.4.1 and ffmpeg7.1 need issue #1586

Open Pro-pra opened 1 week ago

Pro-pra commented 1 week ago

Observed Behavior

On build stage this error:

decklink_producer.cpp:641:52: error: 'AVFilterLink' {aka 'struct AVFilterLink'} has no member named 'min_samples'
  641 |                     audio_filter_.sink->inputs[0]->min_samples = audio_cadence_[0];

Expected behaviour

In ffmpeg7 min_samples i see in libavfilter/filters.h but it is not installed by default https://github.com/FFmpeg/FFmpeg/blob/a5f0daf8433899d7d644523156ad1078301543f8/libavfilter/filters.h#L153

Ok, i patch ffmpeg7 and install libavfilter/filters.h

Also patch casparcg-server:

--- a/modules/decklink/producer/decklink_producer.cpp   2024-10-08 23:45:44.000000000 +0900
+++ b/modules/decklink/producer/decklink_producer.cpp   2024-11-16 10:57:32.174492429 +0900
@@ -51,7 +51,7 @@
 #endif
 extern "C" {
 #include <libavcodec/avcodec.h>
-#include <libavfilter/avfilter.h>
+#include <libavfilter/filters.h>
 #include <libavfilter/buffersink.h>
 #include <libavfilter/buffersrc.h>
 #include <libavformat/avformat.h>

And this not help me :(( AVFilterLink not have min_samples https://github.com/FFmpeg/FFmpeg/blob/a5f0daf8433899d7d644523156ad1078301543f8/libavfilter/avfilter.h#L578

Steps to reproduce

build with ffmpeg7

Environment

gcc-14 ffmpeg-7.1