可能存在时间戳记问题或此计算机速度太慢

时间:2019-12-20 16:32:03

标签: gstreamer gstreamer-1.0

有人用gstreamer获得此输出吗?

我正在从latptop到nvidia xavier尝试使用rtp的gstreamer

我的发送者管道就是这样

gst-launch-1.0 v4l2src ! videoconvert ! 'video/x-raw,format=(string)I420' ! x264enc ! rtph264pay ! udpsink host=127.0.0.1 port=1234

我的客户管道就是这样

gst-launch-1.0 -vvv udpsrc port=1234 ! application/x-rtp,payload=96 ! rtph264depay ! avdec_h264 ! xvimagesink

我得到以下输出,我的流也很慢而且很慢。

WARNING: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2902): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
There may be a timestamping problem, or this computer is too slow.
WARNING: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2902): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
There may be a timestamping problem, or this computer is too slow.
WARNING: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2902): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
There may be a timestamping problem, or this computer is too slow.


任何帮助将不胜感激。谢谢!

1 个答案:

答案 0 :(得分:0)

在这些情况下,CPU使用率如何?我没有使用该平台的经验-它的意图可能是在GPU上运行大多数操作(例如视频解码和显示)。

尝试sync=false处理视频接收器。它可能仍然很落后,但是不会丢掉任何帧。因此,通过观察此管道,也许可以获得更多信息。

使用autovideoconvert ! autovideosink作为接收器而不使用xvimagesink怎么办?

请考虑使用rtpbin元素,而不是手动执行RTP部分。垃圾箱做了很多智能缓冲等工作,在这里可能会有所帮助。

当然,还要仔细检查笔记本电脑编码器端是否不会发生此问题。