簡體   English   中英

Gst parse_launch 語法錯誤,gst-launch-1.0 正常工作

[英]Gst parse_launch syntax error with gst-launch-1.0 working

我正在嘗試在 python 代碼中運行我的 gstreamer 管道,而不是使用 gst-launch-1.0。 這有效:

gst-launch-1.0 v4l2src device=/dev/video2 ! video/x-raw,format=YUY2,width=2560,height=720,framerate=60/1 ! tee name=t ! queue ! xvimagesink sync=0 brightness=50 t. ! queue ! v4l2sink device=/dev/video3 -v

但是當我跑

pipeline = Gst.parse_launch("v4l2src device=/dev/video2 ! video/x-raw,format=YUY2,width=2560,height=720,framerate=60/1 ! tee name=t ! queue ! xvimagesink sync=0 brightness=50 t. ! queue ! v4l2sink device=/dev/video3 -v")

我得到語法錯誤代碼

GLib.Error: gst_parse_error: syntax error (0)

其他管道可以工作,所以我相信我正確設置和導入了所有內容。 不確定這條管道有什么特別之處。

最后的-v是假的,而不是管道的一部分。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM