[Libav-user] yadif deinterlace how?

Robert Nagy ronag89 at gmail.com
Sat Jun 18 20:03:28 CEST 2011

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.

On Sat, Jun 18, 2011 at 7:02 PM, Robert Nagy <ronag89 at gmail.com> wrote:

> 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_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);
> 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/40b24faf/attachment.html>

More information about the Libav-user mailing list