2013-10-01 66 views
0

你好,感謝您的閱讀,GStreamer的管道與udpsrc decklinksrc視頻採集卡和udpsink使用RTP

我有麻煩搞清楚我的GStreamer的管道應該是什麼樣子,從一個Ubuntu的送我的Blackmagic decklinksrc視頻機器到另一個使用RTP和UDP的同一網絡上。

要在本地觀看視頻,請使用以下管道: gst-launch-0.10 decklinksrc mode = 11 connection = 0! ffmpegcolorspace! xvimagesink sync = false

這對我的本地設置在兩臺機器上都很好。請注意,模式11是1080i 59.94FPS。

這裏是我的兩個主機和客戶端粗管道:

客戶端(開始前):

gst-launch-0.10 udpsrc port=6100 caps="application/x-rtp, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:2,width=(string)1920, height=(string)1080,colorimetry=(string)BT709-2, depth=(string)8" ! rtpvrawdepay ! xvimagesink 

主持人:

gst-launch-0.10 decklinksrc mode=11 connection=0 ! tee ! queue ! ffmpegcolorspace ! rtpvrawpay ! udpsink host=xx.xx.xxx.xx port=6100 tee0. ! queue ! xvimagesink sync=false 

我已經試過各種參數我已經嘗試了多個端口,但沒有運氣。每次兩臺機器輸出:

Setting pipeline to PAUSED ... 
Pipeline is live and does not need PREROLL .. 
Setting pipeline to PLAYING ... 
New clock: GstSystemClock 

任何信息,以幫助解釋不同的屬性(例如rtpvrawpay)理解。如果你知道我做錯了什麼,甚至更好!

感謝, 蘭迪

回答

3

試試吧, 主持人: GST推出-0.10 decklinksrc模式= 11連接= 0!視頻速率! videoscale! ffmpegcolorspace! 「video/x-raw-yuv,format =(fourcc)I420,width =(int)1920,height =(int)1080,framerate =(fraction)25/1」!發球!隊列! ffmpegcolorspace! rtpvrawpay! udpsink主機= 192.168.40.103端口= 6100 tee0。 !隊列! xvimagesink sync = false -v

client: gst-launch-0.10 udpsrc port = 6100 caps =「application/x-rtp,media =(string)video,clock-rate =(int)90000,encoding-name =(string)RAW,sampling =(string)YCbCr-4:2:0,depth =(string)8,width =(string)1920,height =(string)1080「! rtpvrawdepay! xvimagesink

如果不起作用,您可以在每個管道上添加-v選項,以瞭解每個插件之間使用哪種格式。 我試圖與videotestsrc在我的電腦和udp工程。所以對於decklinksrc我不確定這會起作用。