Never mind. I solved it. I don't create the yadif implicitly, instead I use graph_parse to create everything for me just as in the sample.<div><br></div><div><div class="gmail_quote">On Sat, Jun 18, 2011 at 7:02 PM, Robert Nagy <span dir="ltr"><<a href="mailto:ronag89@gmail.com">ronag89@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>So I've got a problem where the graph is not properly configured.</div><div><br></div><div>I noticed that add_filter was alrdy called by create_filter so I removed those calls.</div>
<div><br></div><div><div><font face="arial, sans-serif"><span style="border-collapse:collapse;white-space:pre-wrap">snprintf(buffer_args, sizeof(buffer_args), "%d:%d:%d:%d:%d:%d:%d", 720, 576, PIX_FMT_YUV410P, 0, 0, 0, 0); // I don't need correct pts and aspect_ratio for resulting frames
snprintf(yadif_args, sizeof(yadif_args), "%d:%d", 1, 1);
avfilter_graph_create_filter(&video_in_filter, avfilter_get_by_name("buffer"), "src", buffer_args, NULL, graph_.get());
avfilter_graph_create_filter(&video_yadif_filter, avfilter_get_by_name("yadif"), "deinterlace", yadif_args, NULL, graph_.get());
avfilter_graph_create_filter(&video_out_filter, avfilter_get_by_name("nullsink"), "out", NULL, NULL, graph_.get());
avfilter_graph_config(graph_.get(), NULL);</span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse;white-space:pre-wrap"><br></span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse;white-space:pre-wrap">However, when running my code I get the error "output pad "default for the filter "src" fo type "buffer" not connected to nay destination".</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse;white-space:pre-wrap"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse;white-space:pre-wrap">I assume I get this error since I'm missing avfilter_graph_parse() or something equivalent. </span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse;white-space:pre-wrap"><br></span></font></div><div><span style="border-collapse:collapse;font-family:arial, sans-serif;white-space:pre-wrap">avfilter_graph_parse is a bit unintuitive for me. Would you mind explaining how it works or at least how I should use it for my scenario? I'm mostly confused in regards to what the argument "filters" should contain.</span></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse;white-space:pre-wrap"><br></span></font></div></div>
</blockquote></div><br></div>