gstreamer udpsrc 重新缩放 window

gstreamer udpsrc rescale window

我正在尝试使用 Gstreamer-1.0 发送我的屏幕思想 udp 并调整它的大小。 (客户端向服务器发送数据)

这是客户:

     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

我想重新缩放输出视频,但没有成功。 我试图在大写字母中添加“,width=...,length=...” 要么 使用“!videoconvert!videoscale!video/x-raw,width=600,height=300,framerate=30/1”,它适用于像

这样的简单流
  gst-launch-1.0 v4l2src \
    ! videoconvert ! videoscale \
    ! video/x-raw ,width=600,height=300, framerate=30/1 \
    ! autovideosink

可能有2种解决方案:

感谢您的帮助, 祝你有美好的一天!

我发现使用“!video/x-raw ,width=600,height=300, framerate=30/1 \”有时会出错。经过一些调查,我发现最近 post :

希望对您有所帮助。