GStreamer中的UdpSink无法在Windows中工作

问题描述:

我是GSTreamer的新手。 我试图用GStreamer上传视频。在运行以下命令时,GStreamer中的UdpSink无法在Windows中工作

gst-launch-1.0 videotestsrc! udpsink port = 5200

我收到警告如下。

WARNING: from element /GstPipeline:pipeline0/GstUDPSink:udpsink0: Attempting to send a UDP packets larger than maximum size (115200 > 65507) 
Additional debug info: 
gstmultiudpsink.c(715): gst_multiudpsink_send_messages(): /GstPipeline:pipeline0/GstUDPSink:udpsink0: 
Reason: Error sending message: A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself. 
0:00:56.934530706 4912 0000000002F09640 WARN   multiudpsink gstmultiudpsink.c:715:gst_multiudpsink_send_messages:<udpsink0> warning: Attempting to send a UDP packets larger than maximum size (115200 > 65507) 
0:00:56.939093412 4912 0000000002F09640 WARN   multiudpsink gstmultiudpsink.c:715:gst_multiudpsink_send_messages:<udpsink0> warning: Reason: Error sending message: A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself. 

GStreamer参数有什么问题?

有什么缺失吗?

在使用UDP传输视频之前,您需要先付费。

gst-launch-1.0 videotestsrc ! rtpraw4vpay ! udpsink port=5200 

但是通过udp传输原始视频并不是首选。传输视频的更好方法是对其进行编码以缩小尺寸。我更喜欢h264编码的最佳尺寸。

gst-launch-1.0 videotestsrc ! x264enc ! video/x-h264, stream-format=byte-stream ! rtph264pay ! udpsink port=5200 

您将收到该流和

gst-launch-1.0 udpsrc port=5200 ! application/x-rtp, encoding-name=H264, payload=96 ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink 
+0

感谢。我正在使用Windows 7机器。 rtpraw4vpay或x264enc在我的机器上不可用。 –

+0

在Linux中,它很容易下载。有没有类似的方式来下载Windows中的插件? –

+0

x264enc和大多数视频编码器都在gst-libav软件包中。我不知道是否有预编译的软件包,您可能需要自己构建并将dll的位置添加到'%GST_PLUGIN_PATH%'。 –