gstreamer中如何设置element的sink pad属性?

2024-02-21

如何在程序中设置水槽垫的属性 例如:

sin_00::outWidth=1280 sin_00::outHeight=720 in this way pipeline was run using gst-launch-0.10 .....

并设置我使用过的这个属性gst_pad_set_property()API 但它不工作 它显示以下错误:

3_video_temp.c: In function 'main':
3_video_temp.c:551: warning: implicit declaration of function 'gst_pad_set_property'
/tmp/cc2zDbzt.o: In function `main':
/home/project/compWorkspace/Edubeam/3_video_temp.c:551: undefined reference to `gst_pad_set_property'
collect2: ld returned 1 exit status
make: *** [all] Error 1

请尽快告知如何设置该值。


如果打击垫具有​​属性(就像 videomixer 中的打击垫一样),您只需像使用任何属性一样使用 g_object_set 即可,例如:

g_object_set (pad, "width", 1280, NULL);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

gstreamer中如何设置element的sink pad属性? 的相关文章

随机推荐