<div dir="ltr">Thank you Stefano,<div><br></div><div>After see filtering_video.c, I'm not sure how to continue with my code. I setup the filter with this function:</div><div><br></div><div>AVFilterGraph *filter_graph;<br></div><div>AVFrame *src_frame;</div><div>AVFrame *deint_frame;</div><div><br></div><div><div>int MyDecoder::setup_filters()</div><div>{</div><div><span style="white-space:pre-wrap">  </span>int ret = 0;</div><div><span style="white-space:pre-wrap">     </span>// Register all built-in filters</div><div><span style="white-space:pre-wrap"> </span>avfilter_register_all();</div><div><br></div><div><span style="white-space:pre-wrap">        </span>AVFilter *yadif = avfilter_get_by_name("yadif");</div><div><br></div><div><span style="white-space:pre-wrap">      </span>filter_graph = avfilter_graph_alloc();</div><div><br></div><div><span style="white-space:pre-wrap">  </span>if (ret = (avfilter_graph_alloc_filter(filter_graph, yadif, "my_yadif_filter")) < 0)</div><div><span style="white-space:pre-wrap">        </span>{</div><div><span style="white-space:pre-wrap">                </span>avfilter_graph_free(&filter_graph);</div><div><span style="white-space:pre-wrap">          </span>return ret;</div><div><span style="white-space:pre-wrap">      </span>}</div><div>       /*Here, how can I deinterlace src_frame?*/</div><div><span style="white-space:pre-wrap">    </span>return ret;</div><div>}</div></div><div><br></div><div>But now, I don't know what can I do with filter_graph and my AVFrame. How to apply the yadif filter to my source frame to obtain a deinterlace frame?</div><div>Any clue?</div><div><br></div><div>Thanks!</div><br><div class="gmail_quote"><div dir="ltr">El vie., 16 oct. 2015 a las 10:34, Stefano Sabatini (<<a href="mailto:stefasab@gmail.com" target="_blank">stefasab@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In data Thursday 2015-10-15 11:17:44 +0000, Fermín Ayuso Márquez ha scritto:<br>
> Hello everybody,<br>
> I need some help.<br>
<br>
> We had a C++ code that use avpicture_deinterlace. For some reason,<br>
> we have needed upgrade ffmpeg to 2.8.1 version.Now, this function is<br>
> not available anymore.<br>
><br>
<br>
> We have tried to use yadif filter using the filtering_video.c<br>
> example as a model, but we could not deinterlace our video frames,<br>
> we always have problems with avfilter_graph_config function (returns<br>
> -22).We searched on Google too, but there is no clear information<br>
> about how to deinterlace a video using "new" libavfilter.<br>
<br>
Basically, with libavfilter you need to setup a filter graph. It's not<br>
possible to use a single function for performing filtering<br>
(e.g. deinterlacing). See the examples video_filtering.c in the<br>
doc/examples directory.<br>
<br>
[...]<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div></div>