Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Soft Works <softworkz@hotmail.com>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [RFC] User-defined default enc/dec/mux/dem/etc
Date: Wed, 8 Jun 2022 04:34:34 +0000
Message-ID: <DM8P223MB0365EE9CFB6749FB93F4D441BAA49@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <84557813-39af-2393-ccb1-6479318e50ab@mail.de>



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of Thilo
> Borgmann
> Sent: Tuesday, June 7, 2022 3:26 PM
> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
> Subject: [FFmpeg-devel] [RFC] User-defined default enc/dec/mux/dem/etc
> 
> Hi,
> 
> currently, if -c:{a,v} is not given, the list of all codecs is successively
> searched until the first enc/dec is found.
> 
> If I have two or more enc/dec's for the same codec ID (like by having
> libx264, libfdk-aac, etc..) it will still be the first in the list that is
> found that is used if no -c:{v,a} is given. Having a list of user-defined
> default enc/dec's avoids having the user to always specify their favorite via
> -c:{v,a}.
> 
> This patch creates a (redundant) list of default codecs user-defined via
> configure options. This list is then searched before the complete list of
> codecs is searched so that all user defaults will be found first. An
> alternative would be messing with the order of codecs during configure and
> creation of lavc/codec_list.c to have the defaults found first - which I
> think is not a good idea. Maybe do something else entirely instead...?


> For the case you have hwaccel's for the codec ID in question, a default
> specified currently uses the hwaccel-enc/-dec even if no "-hwaccel something"
> is given on the command line. What would we want to happen? Stick to use only
> if given like auto hwaccel decoding?


I don't have much opinion on making codec priorities configurable, maybe it's
useful for somebody..
But with regards to automatic use of hw acceleration, I'm very clear on
that I don't think it makes any sense to do something like this.
There exist literally hundreds of reasons why a certain hw acceleration doesn't
work in a certain situation, environment, hw, sw, permissions, drivers, middle
ware, OS type, OS version, OS configuration, kernel version, firmware, kernel
params, virtualization, patches, updates, etc - and that's just the top level.
Besides all these things, the hw capabilities are most important to know and
consider. ffmpeg having an hevc_vaapi encoder, doesn't mean that it can be used
with the available hardware, just to give an example.

Configuring something like auto-hwaccel usage at build-time is rather a way 
to ensure frequent failure than doing any good IMO.

Even assuming it would be done and a hwaccel would be auto-selected - how would
you "unselect" it?
(for decoder, for filter graph, for encoder)


What _might_ make some sense for some and what I could imagine a little bit
better would be a kind of "defaults" configuration file which users can configure
to reduce the length of commands when typing - but that would be a runtime
configuration rather compile time.
I don't mind either way, though. Only "auto hwaccel" is something I find a bit
questionable.

softworkz




















_______________________________________________
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:[~2022-06-08  4:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-07 13:25 Thilo Borgmann
2022-06-08  4:34 ` Soft Works [this message]
2022-06-08  6:51 ` 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=DM8P223MB0365EE9CFB6749FB93F4D441BAA49@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM \
    --to=softworkz@hotmail.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