[FFmpeg-devel] [PATCH] FFMPEG: add graph reconfig capability

yangyalei 269032741 at qq.com
Wed Mar 26 05:09:41 EET 2025


Sorry for garbled, reissued as follows.


In the avfiltergraph of FFmpeg, it is required that all filters within the graph can obtain a format and successfully negotiate for data flow.


So, is it allowed for the graph to contain filters that cannot obtain a format? Can these filters be ignored during format negotiation, allowing only the filters that can obtain a format to negotiate successfully?


This patch addresses the problem described in this scenario.


For example:


(abuff_src at Music)(abuff_src at Ring)---amix---abuff_sink


In the graph above, We support three playback scenarios at the same time:


1. Only abuff_src at Music needs to be played, and abuff_src at Ring has no data. abuff_src at Ring is ignored during negotiation, "abuff_src at Music -- amix -- abuff_sink" link negotiation is successful, and playback can be performed;


2. Only abuff_src at Ring needs to be played, and abuff_src at Music has no data. abuff_src at Music is ignored during negotiation, "abuff_src at ring --> amix --> abuff_sink" link negotiation is successful, and playback can be performed;


3. Both abuff_src at Music and abuff_src at Ring need to be played, and all filters are negotiated successfully and mixed playback is performed.






杨亚磊
269032741 at qq.com



 




------------------ Original ------------------
From:                                                                                                                        "FFmpeg development discussions and patches"                                                                                    <george at nsup.org>;
Date: Tue, Mar 25, 2025 07:28 PM
To: "FFmpeg development discussions and patches"<ffmpeg-devel at ffmpeg.org>;
Cc: "yangyalei"<269032741 at qq.com>;
Subject: Re: [FFmpeg-devel] [PATCH] FFMPEG: add graph reconfig capability



yangyalei050 via ffmpeg-devel (HE12025-03-25):
> From: yangyalei <269032741 at qq.com>
> 
> 1. Support reuse the graph to play different audio.
> 2. Support config part of the graph.

Please explain what it means. I see a lot of new code, but I have no
idea what triggers it.

Regards,

-- 
  Nicolas George
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list