GStreamer error “assertion 'GST_IS_ELEMENT (src)' failed” when linking elements

后端 未结 2 526
时光说笑
时光说笑 2020-12-21 12:01

I\'m working on a GStreamer-based program using Python and the GObject introspection bindings. I\'m trying to build this pipeline:

videomixer name=mix ! auto         


        
相关标签:
2条回答
  • 2020-12-21 12:32

    If the element is not added with the pipeline, then this error will occur. Ensure that the problematic element is added with the pipeline.

    0 讨论(0)
  • 2020-12-21 12:38

    I figured out the problem, I was linking the dynamically-created pad incorrectly:

    src.link(dest)
    

    Should have been:

    pad.link(dest.get_compatible_pad(pad, None))
    
    0 讨论(0)
提交回复
热议问题