MLT GTK+Consum的Python绑定

2024-04-19 16:41:51 发布

您现在位置:Python中文网/ 问答频道 /正文

我一直在琢磨如何在python中使用MLT的GTK2消费者。 消费者的轮廓是here。在

关于使用这个消费者,Doxygen API中没有任何内容,我能找到的唯一细节是Ccode itself。在

我基于play.py示例尝试了以下代码,但它给出了错误

NotImplementedError: Wrong number or type of arguments for overloaded function 'new_Consumer'.
  Possible C/C++ prototypes are:
    Mlt::Consumer::Consumer()
    Mlt::Consumer::Consumer(Mlt::Profile &)
    Mlt::Consumer::Consumer(Mlt::Profile &,char const *,char const *)
    Mlt::Consumer::Consumer(Mlt::Profile &,char const *)
    Mlt::Consumer::Consumer(Mlt::Service &)
    Mlt::Consumer::Consumer(Mlt::Consumer &)
    Mlt::Consumer::Consumer(mlt_consumer)

代码:

^{pr2}$

你们能告诉我如何使用这个消费者吗,或者给我一些建议如何解决这个问题?另外,关于如何在我的GTK2应用程序中嵌入MLT SDL消费者生成的SDL屏幕的一些建议将是很好的:)

非常感谢!在


Tags: 代码apihereconsumer消费者profile建议gtk2
1条回答
网友
1楼 · 发布于 2024-04-19 16:41:51

因此,经过进一步的调查,GTK+使用者似乎使用了SDL WINDOWID Hack,因此可以使用http://faq.pygtk.org/index.py?file=faq23.042.htp&req=show中概述的代码手动嵌入标准SDL使用者

不幸的是,这不适合我的应用程序,需要多个屏幕,所以我将寻找其他选项。在

相关问题 更多 >