Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Nicolas George <george@nsup.org>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Cc: zhanquan cen <cenzhanquan2@gmail.com>
Subject: Re: [FFmpeg-devel] [PATCH 1/1] avfilter/abufsrc: add audio buffer source filter with dynamic routing.
Date: Mon, 21 Jul 2025 13:48:17 +0200
Message-ID: <aH4pAV5npoz_5N-4@phare.normalesup.org> (raw)
In-Reply-To: <20250721112752.2105845-1-cenzhanquan2@gmail.com>

cenzhanquan2@gmail.com (HE12025-07-21):
> From: zhanquan cen <cenzhanquan2@gmail.com>

Hi. Thanks for the patch, but it seems to be suffering from some design
flaws.

> This commit introduces a new audio buffer source filter `abufsrc`
> designed for scenarios requiring dynamic audio routing and real-time
> processing control. Key features include:
> 1. **Multi-Output Routing**: Supports configurable mapping of input to
> multiple outputs via `map` option, enabling selective audio stream
> distribution[4,6](@ref).

What does that mean? There is no documentation. This “[4,6](@ref)” might
be a pointer towards documentation, but where is it?

> 2. **Fade Effects**: Implements sample-accurate fade-in/fade-out
> transitions during playback start/stop, handling edge cases like
> pause/resume and buffer underruns[8](@ref).

We already have this in other filters. Duplicating the feature in the
input buffer filter is a big no. Duplicating the code is an even bigger
no.

> 3. **Volume Control**: Integrates with volume scaling system, allowing
> runtime adjustment through `player_volume` and `volume` parameters.

Same as above, we already have a volume filter.

> 4. **Event Callbacks**: Uses `on_event_cb` for asynchronous frame
> request mechanism, decoupling filter activation from external data
> sources.

Again, documentation missing to even guess if that is relevant or not.

> 5. **Command API**: Exposes control via `link/unlink/map/pause/resume`
> commands for dynamic pipeline reconfiguration.

If an application wants to pause the input of its filter graph, it just
needs to stop feeding it frames.

Regards,

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

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

  reply	other threads:[~2025-07-21 11:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-21 11:27 cenzhanquan2
2025-07-21 11:48 ` Nicolas George [this message]
2025-07-21 12:04 ` [FFmpeg-devel] [PATCH v2 0/3] lavfi: Add volume scaling, dynamic routing, and abufsrc filter cenzhanquan2
2025-07-21 12:04   ` [FFmpeg-devel] [PATCH v2 1/3] avfilter/volume: add volume scaling utilities cenzhanquan2
2025-07-21 13:48     ` Steven Liu
2025-07-21 12:04   ` [FFmpeg-devel] [PATCH v2 2/3] avfilter/mapping: implement dynamic routing logic cenzhanquan2
2025-07-21 12:04   ` [FFmpeg-devel] [PATCH v2 3/3] avfilter/abufsrc: integrate volume and mapping modules cenzhanquan2
2025-07-21 15:23   ` [FFmpeg-devel] [PATCH v2 0/3] lavfi: Add volume scaling, dynamic routing, and abufsrc filter Nicolas George

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aH4pAV5npoz_5N-4@phare.normalesup.org \
    --to=george@nsup.org \
    --cc=cenzhanquan2@gmail.com \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git