<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1444907030600_3282">Hello everybody,</div><div id="yui_3_16_0_1_1444907030600_3282"><br></div><div id="yui_3_16_0_1_1444907030600_3282">I need some help.</div><div id="yui_3_16_0_1_1444907030600_3282"><br></div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr">We had a C++ code that use avpicture_deinterlace. For some reason, we have needed upgrade ffmpeg to 2.8.1 version.</div><div id="yui_3_16_0_1_1444907030600_3282">Now, this function is not available anymore.<br></div><div id="yui_3_16_0_1_1444907030600_3282"><br></div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr">We have tried to use yadif filter using the filtering_video.c example as a model, but we could not deinterlace our video frames, we always have problems with avfilter_graph_config function (returns -22).</div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr">We searched on Google too, but there is no clear information about how to deinterlace a video using "new" libavfilter.</div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr"><br></div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr">In the past, using avpicture_deinterlace we only need this three structs:</div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr" class="">struct AVCodecContext *codecCtx; //codec context</div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr" class=""><span class="" style="white-space:pre-wrap;" id="yui_3_16_0_1_1444907030600_3459">  </span>struct AVFrame *srcFrame;  //input frame</div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr" class=""><span class="" style="white-space:pre-wrap;" id="yui_3_16_0_1_1444907030600_3462">   </span>struct AVFrame *dinFrame; //deinterlaced frame</div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr" class="">Now, we don't know how to do this, using other structs, classes, etc.</div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr" class="">Could anyone post a C++ code example using yadif filter. please?</div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr" class="">Thank you,</div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444907030600_3282" dir="ltr" class="">Best regards.</div></div></body></html>