Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Thilo Borgmann via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Cc: Thilo Borgmann <thilo.borgmann@mail.de>
Subject: Re: [FFmpeg-devel] [PATCH 2/5] fftools/ffmpeg: move parsing of -stats_* specifiers to lavu/parseutils
Date: Wed, 13 Dec 2023 13:15:27 +0100
Message-ID: <b84ab8a1-f904-43ca-adc4-87937377cd50@mail.de> (raw)
In-Reply-To: <170246928230.8914.12754643765966025844@lain.khirnov.net>

Am 13.12.23 um 13:08 schrieb Anton Khirnov:
> Quoting Thilo Borgmann via ffmpeg-devel (2023-12-13 13:05:35)
>> Am 13.12.23 um 13:00 schrieb Anton Khirnov:
>>> Quoting Thilo Borgmann via ffmpeg-devel (2023-12-11 16:07:22)
>>>> ---
>>>>    fftools/ffmpeg.h          |  31 +------
>>>>    fftools/ffmpeg_enc.c      |   3 +-
>>>>    fftools/ffmpeg_mux_init.c | 152 +++-----------------------------
>>>>    libavutil/parseutils.c    | 176 ++++++++++++++++++++++++++++++++++++++
>>>>    libavutil/parseutils.h    | 102 ++++++++++++++++++++++
>>>>    libavutil/version.h       |   2 +-
>>>>    6 files changed, 296 insertions(+), 170 deletions(-)
>>>
>>> Absolutely not.
>>>
>>> This is application code and does not belong in the libraries.
>>
>> How else do we not have a redundant copy of all that and make sure that -stats_* options and the filter understand the same {..} directives?
> 
> Why does that filter need to understand the same directives? No other
> filter does.

Because it is meant to use the file(s) the -stats_* option writes out. The most convenient and most error resilient way is to use the very same format string for -stats_* option as well as for the filter.

Otherwise it could be a 'usual' scanf-format, but then the user has to translate it from one format into the other - without making mistakes.
But that would also mean to update the filter (if someone realizes it) if the option ever changes.

-Thilo

_______________________________________________
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:[~2023-12-13 12:15 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-11 15:07 [FFmpeg-devel] [PATCH 0/5] avfilter: Add fsync filter Thilo Borgmann via ffmpeg-devel
2023-12-11 15:07 ` [FFmpeg-devel] [PATCH 1/5] fftools/ffmpeg: split loop for parsing and validation of -stats_* specifiers Thilo Borgmann via ffmpeg-devel
2023-12-11 15:07 ` [FFmpeg-devel] [PATCH 2/5] fftools/ffmpeg: move parsing of -stats_* specifiers to lavu/parseutils Thilo Borgmann via ffmpeg-devel
2023-12-13 12:00   ` Anton Khirnov
2023-12-13 12:05     ` Thilo Borgmann via ffmpeg-devel
2023-12-13 12:08       ` Anton Khirnov
2023-12-13 12:15         ` Thilo Borgmann via ffmpeg-devel [this message]
2023-12-13 12:39           ` Anton Khirnov
2023-12-13 12:50             ` Thilo Borgmann via ffmpeg-devel
2023-12-13 16:28               ` Anton Khirnov
2023-12-13 18:17                 ` Thilo Borgmann via ffmpeg-devel
2023-12-14  5:23                   ` Anton Khirnov
2023-12-14 10:34                     ` Thilo Borgmann via ffmpeg-devel
2023-12-14 17:51                       ` Anton Khirnov
2023-12-14 18:42                         ` Thilo Borgmann via ffmpeg-devel
2023-12-13 12:10   ` Nicolas George
2023-12-11 15:07 ` [FFmpeg-devel] [PATCH 3/5] reindent after last commit Thilo Borgmann via ffmpeg-devel
2023-12-11 15:07 ` [FFmpeg-devel] [PATCH 4/5] avfilter: Add fsync filter Thilo Borgmann via ffmpeg-devel
2023-12-11 15:14   ` Thilo Borgmann via ffmpeg-devel
2023-12-11 15:07 ` [FFmpeg-devel] [PATCH 5/5] fate: Add fsync filter tests Thilo Borgmann via ffmpeg-devel

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=b84ab8a1-f904-43ca-adc4-87937377cd50@mail.de \
    --to=ffmpeg-devel@ffmpeg.org \
    --cc=thilo.borgmann@mail.de \
    /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