[英]gst-launch-1.0 erroneous pipeline: could not link queue2 to videoconvert0
I am trying to send a video source to three outputs: multicast, filesystem, and (resized video) display with gst-launch-1.0
.我正在尝试将视频源发送到三个输出:多播、文件系统和(调整大小的视频)显示gst-launch-1.0
。
This is the command,这是命令,
gst-launch-1.0 videotestsrc ! x264enc ! tee name=t \
t. ! queue ! rtph264pay ! udpsink host=224.1.1.1 port=20000 auto-multicast=true \
t. ! queue ! h264parse ! splitmuxsink location=./vid%02d.mkv max-size-time=10000000000 \
t. ! queue ! videoconvert ! videoscale ! video/x-raw,width=100 ! autovideosink
and this is the error,这是错误,
WARNING: erroneous pipeline: could not link queue2 to videoconvert0
Your problem is that you are sending h264 stream to videconvert that rather expects raw video.您的问题是您正在将 h264 stream 发送到 videconvert 而不是期望原始视频。 So you would just add decoding:所以你只需添加解码:
gst-launch-1.0 -e videotestsrc ! video/x-raw,width=640,height=480,framerate=30/1 ! queue ! x264enc ! tee name=t t. ! queue ! rtph264pay ! udpsink host=224.1.1.1 port=20000 auto-multicast=true t. ! queue ! h264parse ! splitmuxsink location=./vid%02d.mkv max-size-time=10000000000 t. ! queue ! h264parse ! avdec_h264 ! videoconvert ! videoscale ! video/x-raw,width=100 ! autovideosink
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.