[FFmpeg-devel] [PATCH 2/5] fftools/cmdutils: Print filter input/output formats in help output

Soft Works softworkz at hotmail.com
Wed Oct 13 11:48:27 EEST 2021



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
> Paul B Mahol
> Sent: Wednesday, October 13, 2021 10:42 AM
> To: FFmpeg development discussions and patches <ffmpeg-
> devel at ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [PATCH 2/5] fftools/cmdutils: Print
> filter input/output formats in help output
> 
> On Wed, Oct 13, 2021 at 10:24 AM Soft Works <softworkz at hotmail.com>
> wrote:
> 
> >
> >
> > > -----Original Message-----
> > > From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
> > > Paul B Mahol
> > > Sent: Wednesday, October 13, 2021 10:16 AM
> > > To: FFmpeg development discussions and patches <ffmpeg-
> > > devel at ffmpeg.org>
> > > Subject: Re: [FFmpeg-devel] [PATCH 2/5] fftools/cmdutils: Print
> > > filter input/output formats in help output
> > >
> > > On Wed, Oct 13, 2021 at 9:58 AM Soft Works
> <softworkz at hotmail.com>
> > > wrote:
> > >
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On
> Behalf Of
> > > > > Soft Works
> > > > > Sent: Wednesday, October 13, 2021 9:36 AM
> > > > > To: FFmpeg development discussions and patches <ffmpeg-
> > > > > devel at ffmpeg.org>
> > > > > Subject: Re: [FFmpeg-devel] [PATCH 2/5] fftools/cmdutils:
> Print
> > > > > filter input/output formats in help output
> > > > >
> > > > >
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On
> Behalf
> > > Of
> > > > > > Paul B Mahol
> > > > > > Sent: Wednesday, October 13, 2021 9:27 AM
> > > > > > To: FFmpeg development discussions and patches <ffmpeg-
> > > > > > devel at ffmpeg.org>
> > > > > > Subject: Re: [FFmpeg-devel] [PATCH 2/5] fftools/cmdutils:
> Print
> > > > > > filter input/output formats in help output
> > > > > >
> > > > > > scale, extractplanes, alphaextract, waveform, vectorscope.
> > > > >
> > > > > See the results below. Nothing is flawed. Of course there
> can't
> > > be an
> > > > > output in all cases, as you have pointed out correctly.
> > > > >
> > > > > But for the remaining 95% of filters, the formats output is
> very
> > > > > useful.
> > > > > (and correct)
> > > >
> > >
> > > As proved by above, this is big hack and should not be applied,
> its
> > > also
> > > ugly.
> >
> > I'm not sure what you mean. I do not see at which point this would
> > qualify as a hack.
> >
> > Anyway, then - would you have a better suggestion for getting at
> > and printing out this information?
> >
> > Or do you want to say that this information should remain hidden
> > knowledge only available to developers?
> >
> 
> Formats can differ between each  input and output pad.

Yes, and this is shown correctly:

Filter paletteuse
  Use a palette to downsample an input video stream.
    Inputs:
       #0: default (video) [bgra]
       #1: palette (video) [bgra]
    Outputs:
       #0: default (video) [pal8]
...

No hack :-)

softworkz



More information about the ffmpeg-devel mailing list