since av_picture_deinterlace became deprecated, i have a problem figuring out how exactly I can apply filter to an AVFrame, especially deinterlace filter in ios. Sample code would be really helpfull
Asked
Active
Viewed 313 times
1
-
A good start may be `doc/examples/filtering_video.c`. FFmpeg has several deinterlacing filters such as yadif. – llogan Jun 19 '17 at 21:00
-
I'm trying to init filters, but AVFilter *buffersrc = avfilter_get_by_name("buffer"); AVFilter *buffersink = avfilter_get_by_name("buffersink"); both return NULL. Any ideas why this could happen ? P.S. I'm trying to apply the filter to live stream – NZeem Jun 30 '17 at 15:50
-
avfilter_register_all(); is required before filters can be accessed using avfilter_get_by_name(). Also make sure that you don't have --disable-filters in your build config for ffmpeg. – Ajaxharg Oct 09 '17 at 20:48
-
Possible duplicate of [C++ - applying filter in ffmpeg](https://stackoverflow.com/questions/31163120/c-applying-filter-in-ffmpeg) – Ajaxharg Oct 09 '17 at 20:54
1 Answers
0
See the answer to this question on Stack Overflow. It has everything apart from avfilter_register_all() to make it work.

Ajaxharg
- 2,974
- 2
- 18
- 19