Gstreamer - 流媒体任务暂停,原因未协商

Gstreamer - 流媒体任务暂停,原因未协商

我正在尝试使用 gstreamer 在 jetson tx1 和我的电脑之间通过本地网络传输视频。我确保我的相机没有问题,并且我的设备通过本地网络连接。

这是我的终端命令:首先,我使用ssh命令连接到已连接摄像头的 nvidia jetson tx1。然后,在 jetson 上运行以下命令:

sudo gst-launch-1.0 v4l2src device=/dev/video1 ! videorate max-rate=25 ! videoconvert ! omxh265enc qp-range=30,50:30,50:30,50 control-rate=4 bitrate=3000000 ! "video/x-h265, stream-format=(string)byte-stream" ! rtph265pay mtu=1400 ! udpsink host=192.168.1.5 port=5700 sync=false async=false

这是输出:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Framerate set to : 25 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 8 
===== MSENC =====
NvMMLiteBlockCreate : Block : BlockType = 8 
===== NVENC blits (mode: 1) into block linear surfaces =====

然后我就把这个终端窗口挂了。

之后在我的电脑上运行这个:

gst-launch-1.0 udpsrc port=5700 ! application/x-rtp, encoding-name=H265, payload=96 ! rtph265depay ! h265parse ! queue ! avdec_h265 ! fpsdisplaysink sync=false

输出结果如下:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2947): gst_base_src_loop (): /GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.382685021
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

所以我无法预览直播。我该怎么办?谢谢。

相关内容