我无法使用 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 的功能是匹配的。但显然缺少了一些东西。
海关rc
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 }
我还能做些什么来找出不匹配?