當我使用該命令在一個計算機上有流:gstreamer的錯誤的顏色轉換到H264原始RGB
gst-launch-1.0 -e v4l2src do-timestamp=true ! video264,width=1296,height=730,framerate=30/1 ! h264parse ! rtph264pay config-interval=1 ! gdppay ! udpsink host=192.168.1.116 port=5000
所以輸出在YU12格式H264。我需要在原RGB格式,所以在接收器位置處使用:
gst-launch-1.0 -v udpsrc port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! decodebin ! videoconvert ! video/x-raw,format=\(string\)RGB ! videoconvert ! fpsdisplaysink sync=false text-overlay=true
其中在圖像與正確的顏色效果,你可以在下面看到:
然而,當我管這個輸出到其他程序,並且我嘗試了一種將rgb幀轉換爲紋理的自定義格式,並且還使用參數pix_fmt rgb24進行了顯示,顏色錯誤並且圖片以某種奇怪的方式移動。
什麼是奇怪的是,當我嘗試bgr紅色在第二個輸出正確的fdisplaysink之一沒有改變。
我使用gst-launch-1.0 --version gst-launch-1.0 version 1.4.5 GStreamer 1.4.5
任何幫助表示讚賞。
可以粘貼您使用的是管道ffplay命令? – mpr
@mpr gst-launch-1.0 -v udpsrc port = 5000! gdpdepay! rtph264depay! avdec_h264!解碼器! videoconvert! video/x-raw,height = 730,width = 1296,framerate = 25/1,format = RGB! videoconvert! filesink sync = false location =/dev/stdout | ffplay -pix_fmt RGB24 -s 1296x730 -i - – backman