當前位置:編程學習大全網 - 電腦編程 - gstreamer 中那些gst-launch 命令怎麽轉換成c語言?

gstreamer 中那些gst-launch 命令怎麽轉換成c語言?

gst-launch **

首先妳要建壹個pipeline,然後根據gst-launch後面的插件,建立相應的facotry就行了,類似這樣

source = gst_element_factory_make("filesrc", "filesrc");

return_val_if_fail(source,FALSE);

g_print("Good source Element\n");

GstElement *rtpmp2tdepay = gst_element_factory_make("rtpvp8depay",NULL);

if(!rtpmp2tdepay) {

g_print("rtpmp2tdepay == NULL\n");

}

最後到分流,建立相應的pad,最後設置state

  • 上一篇:通過shell腳本,將壹個文件寫入到另壹個文件的後面?
  • 下一篇:如何使用sysbench測試阿裏雲rds mysql
  • copyright 2024編程學習大全網