From: "Rémi Denis-Courmont" <remi@remlab.net>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] RFC: opinions on making fftools work like a library
Date: Sun, 19 Mar 2023 11:01:55 +0200
Message-ID: <2126853.oF9KHgkBuv@basile.remlab.net> (raw)
In-Reply-To: <CAEg-Je8RWHQc5Qz++=dACHOUzmdw02Xzc-0Rn-th=5iCwb-NUA@mail.gmail.com>
Le lauantaina 18. maaliskuuta 2023, 13.33.36 EET Neal Gompa a écrit :
> > Maybe you should first clarify what exactly do you mean by "work like a
> > library". Meaning literally turn it into a library with a C API you can
> > call? That would be a massive amount of work, though my current
> > refactorings are moving in that direction.
> > Or provide stronger guarantees for commandline options? Or something
> > else?
>
> I think the idea is to turn fftools (e.g. ffmpeg/ffplay/ffprobe) into
> a generic, simple high level stable API that consumers can use. The
> raw libav* APIs are difficult for most people to use, which leads to a
> ton of wrappers around the fftools instead.
That sounds like a self-contradictory goal, TBH.
There are so many different settings, complex interactions between settings,
and so much variability depending on versions and build parameters.
> Yes, it would be a lot of work, but it would make using ffmpeg way easier.
Or not. You would have to define an API for literally every command line switch
that each of the tools exhibits. This would unavoidably result in some kind of
high-level abstract and rather complex settings API that would be prone to
silent breaks has the names, values and semantics of settings vary with
versions and builds.
There may be value in doing that anyway. In particular, it could improve the
progress and error reporting with callbacks rather than parsing the standard
output. But it probably wouldn't be in "simplifying" the use of the tools.
--
レミ・デニ-クールモン
http://www.remlab.net/
_______________________________________________
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".
next prev parent reply other threads:[~2023-03-19 9:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-03 18:15 Zhao Zhili
2023-03-04 11:10 ` Lynne
2023-03-06 1:55 ` Steven Liu
2023-03-17 18:11 ` Anton Khirnov
2023-03-18 11:33 ` Neal Gompa
2023-03-19 9:01 ` Rémi Denis-Courmont [this message]
2023-03-19 18:38 ` Stefano Sabatini
2023-03-20 11:00 ` Anton Khirnov
2023-03-19 5:04 ` Zhao Zhili
2023-03-20 11:09 ` Anton Khirnov
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=2126853.oF9KHgkBuv@basile.remlab.net \
--to=remi@remlab.net \
--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