[Libav-user] yadif deinterlace how?

Robert Nagy ronag89 at gmail.com
Sat Jun 18 19:02:58 CEST 2011

So I've got a problem where the graph is not properly configured.

I noticed that add_filter was alrdy called by create_filter so I removed
those calls.

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_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);

However, when running my code I get the error "output pad "default for the
filter "src" fo type "buffer" not connected to nay destination".

I assume I get this error since I'm missing avfilter_graph_parse() or
something equivalent.

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20110618/dbece2d0/attachment.html>

More information about the Libav-user mailing list