[FFmpeg-devel] [PATCH] lavfi: add drawgraph filter
Michael Niedermayer
michaelni at gmx.at
Sun Jun 28 19:16:13 CEST 2015
On Sun, Jun 28, 2015 at 03:07:00PM +0000, Paul B Mahol wrote:
> On 6/28/15, Dave Rice <dave at dericed.com> wrote:
> > Hi,
> >
> >> On Jun 27, 2015, at 4:52 PM, Paul B Mahol <onemda at gmail.com> wrote:
> >>
> >> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> >> ---
> >> doc/filters.texi | 76 ++++++++++++
> >> libavfilter/Makefile | 1 +
> >> libavfilter/allfilters.c | 1 +
> >> libavfilter/vf_drawgraph.c | 297
> >> +++++++++++++++++++++++++++++++++++++++++++++
> >> 4 files changed, 375 insertions(+)
> >> create mode 100644 libavfilter/vf_drawgraph.c
> >>
>
> [...]
>
> >
> > With this version using a color name for foreground no longer works:
> >
> > This works:
> > ffplay -f lavfi -i mandelbrot -vf
> > signalstats,drawgraph=metadata=lavfi.signalstats.YAVG:min=0:max=255:slide=scroll:bg=green:fg=0x0000FF
> >
> > This doesn't:
> > ffplay -f lavfi -i mandelbrot -vf
> > signalstats,drawgraph=metadata=lavfi.signalstats.YAVG:min=0:max=255:slide=scroll:bg=green:fg=red
>
> AFAIK The expressions can not work with strings.
>
> >
> > Also here's an example with blend:
> > ffplay -f lavfi -i mandelbrot -vf "signalstats,split=3[a][b][c];\
> > [a]drawgraph=metadata=lavfi.signalstats.YAVG:min=0:max=255:slide=scroll:fg=0xFFFF0000:mode=dot[a1];\
> > [b]drawgraph=metadata=lavfi.signalstats.UAVG:min=0:max=255:slide=scroll:fg=0xFF00FF00:mode=dot[b1];\
> > [c]drawgraph=metadata=lavfi.signalstats.VAVG:min=0:max=255:slide=scroll:fg=0xFFFFFF00:mode=dot[c1];\
> > [a1][b1]blend=and[ab];[ab][c1]blend=and[out]"
> >
>
> The blending kills difference in colors so I may add multiple graphs
maybe something like leaving the background as it was on the input
would allow drawing multiple by simply chaining multiple drawgraph
filters
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Frequently ignored answer#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150628/f4173eac/attachment.asc>
More information about the ffmpeg-devel
mailing list