[FFmpeg-devel] Ffmpeg with own filter

Semen Zaytsev svzj95 at gmail.com
Wed May 25 16:44:38 CEST 2016


Of course i corrected this: and looks that:
AVFilter ff_vf_foobar = {
    .name          = "foobar",
    .description   = NULL_IF_CONFIG_SMALL("Detect and draw edge."),
    .priv_size     = sizeof(EdgeDetectContext),
    .init          = init,
    .uninit        = uninit,
    .query_formats = query_formats,
    .inputs        = edgedetect_inputs,
    .outputs       = edgedetect_outputs,
    .priv_class    = &edgedetect_class,
    .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
};

2016-05-25 17:16 GMT+03:00 Paul B Mahol <onemda at gmail.com>:

> Dana 25. 5. 2016. 15:12 osoba "Semen Zaytsev" <svzj95 at gmail.com> napisala
> je:
> >
> > I defined my filter in those files, and i string about configure this
> > filter in config.mak, I move content of vf_edgedetect.c to vf_foobar.c,
> > defined in makefile and in allfilters.c, when i trying to use "ffmpeg -i
> > http://samples.ffmpeg.org/image-samples/lena.pnm -vf foobar foobar.png".
> > I'm receiving [AVFilterGraph @ 00000000003a8c40] No such filter:
> > 'foobar' Error opening filters!
> >
>
> Look at tail of vf_foobar.c, there must be foobar defined there too.
>
> > 2016-05-25 16:10 GMT+03:00 Semen Zaytsev <svzj95 at gmail.com>:
> >
> > > I defined my filter in those files, and i string about configure this
> > > filter in config.mak, I content of vf_edgedetect.c, defined in makefile
> and
> > > in allfilters.c, when i trying to use "ffmpeg -i
> > > http://samples.ffmpeg.org/image-samples/lena.pnm -vf foobar
> foobar.png".
> > > I'm receiving [AVFilterGraph @ 00000000003a8c40] No such filter:
> > > 'foobar' Error opening filters!
> > >
> > > 2016-05-25 16:03 GMT+03:00 Paul B Mahol <onemda at gmail.com>:
> > >
> > >> On 5/25/16, Semen Zaytsev <svzj95 at gmail.com> wrote:
> > >> > Hi guys, i tried to use information in wirting_filters.txt, but when
> i'm
> > >> > compiling with MSYS2 in MinGWx64 in Windows, the filter is in
> config,
> > >> but
> > >> > i'can not use in ffmpeg by command.
> > >> > How do I resolve this problem?
> > >> > _______________________________________________
> > >> > ffmpeg-devel mailing list
> > >> > ffmpeg-devel at ffmpeg.org
> > >> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> > >> >
> > >>
> > >> Filter must be defined in libavfilter/Makefile and
> > >> libavfilter/allfilters.c
> > >> _______________________________________________
> > >> ffmpeg-devel mailing list
> > >> ffmpeg-devel at ffmpeg.org
> > >> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> > >>
> > >
> > >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list