[英]WARNING: erroneous pipeline: could not link customsrc0 to mpegtsmux0
我無法使用gstreamer創建管道,也不知道如何進一步調試它。
gst-launch-1.0 --gst-debug=GST_CAPS:4 -v -e customsrc num-buffers=1000 ! video/x-h264,width=600,height=600,framerate=1/12,stream-format=byte-stream ! mpegtsmux ! udpsink host=10.92.7.2 port=5000
WARNING: erroneous pipeline: could not link customsrc0 to mpegtsmux0
Customrc和mpegtsmux的功能是匹配的。 但是顯然有些東西丟失了。
customsrc
Pad Templates:
SRC template: 'src'
Availability: Always
Capabilities:
video/x-h264
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 1/2147483647, 2147483647/1 ]
stream-format: avc
alignment: au
mpegtsmux
Pad Templates:
SINK template: 'sink_%d'
Availability: On request
Has request_new_pad() function: 0x76beca8c
Capabilities:
video/x-h264
stream-format: byte-stream
alignment: { au, nal }
我還能采取什么措施找出不匹配的地方?
上限用於過濾和定義管道的運行方式-它們本身不會引起任何轉換。 例如,如果您有兩個元素的源極和漏極焊盤上帶有這些上限:
video/x-h264
stream-format: byte-stream
alignment: { au, nal }
video/x-h264
stream-format: byte-stream
alignment: { au, nal }
然后將這些上限過濾器放置在它們之間:
video/x-h264,alignment=nal
您將使管道在此處使用最終對齊。 如果您的元素在其壓墊上有以下限制:
video/x-h264
stream-format: avc
alignment: { au, nal }
video/x-h264
stream-format: byte-stream
alignment: { au, nal }
您需要添加將video / x-h264,stream-format = avc轉換為video / x-h264,stream-format = byte-stream的元素。 h264parse之所以會這樣做,是因為它在其接收盤上獲取了任何video / x-h264內容,並輸出其下游源所需的任何流格式和對齊方式:
SRC template: 'src'
Availability: Always
Capabilities:
video/x-h264
parsed: true
stream-format: { avc, avc3, byte-stream }
alignment: { au, nal }
SINK template: 'sink'
Availability: Always
Capabilities:
video/x-h264
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.