2016-03-14 76 views
0

我正在嘗試使用Gstreamer-1.0來發送我的屏幕想udp並調整它。 (客戶端發送數據到服務器)gstreamer udpsrc rescale窗口

下面是客戶端:

 gst-launch-1.0 ximagesrc use-damage=false xname=/usr/lib/torcs/torcs-bin 
! videoconvert ! videoscale ! video/x-raw,width=800,height=600 ! vp8enc 
! rtpvp8pay ! udpsink host=127.0.0.1 port=5100 

而且服務器:

gst-launch-1.0 udpsrc port=5100 
caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)VP8-DRAFT-IETF-01, payload=(int)96, ssrc=(uint)2990747501, clock-base=(uint)275641083, seqnum-base=(uint)34810" 
! rtpvp8depay ! vp8dec ! autovideosink 

我要重新調整輸出視頻,但我沒有成功。 我試圖用「!videoconvert!videoscale!video/x-raw,width = 600,height = 300,framerate = 30/1」在大寫字母 或 中加上「,width = ...,length = ...」 「這工作了簡單的流狀

gst-launch-1.0 v4l2src \ 
    ! videoconvert ! videoscale \ 
    ! video/x-raw ,width=600,height=300, framerate=30/1 \ 
    ! autovideosink 

可能有2個解決方案:

  • 我使用的是正確的事情,在錯誤的地方。
  • 我走錯了路。

感謝您的幫助, 祝您有美好的一天!

回答

0

我發現使用「!video/x-raw,width = 600,height = 300,framerate = 30/1」有時會給我一個錯誤。一些調查後,我發現最近的文章吧:

cannot change output format in gstreamer

希望能對大家有所幫助。