我有这个gstreamer命令,从一个Ubuntu 16.04盒子中播放流,但另外两个。
据我所知,我在所有盒子上都安装了相同的gstreamer包,因为我运行了sudo apt-get install gstreamer1-0 *以便安装所有gstreamer 1.0软件包。我觉得很奇怪,它不适用于其他
使用以下命令:
gst-launch-1.0 rtspsrc location=rtsp://<user>:<password>@<IP>/axis-media/media.amp user-id=root user-pw=xxxxxxxxxxc latency=150 ! decodebin max-size-time=30000000000 ! videoconvert ! autovideosink
或
gst-launch-1.0 playbin uri=rtsp://<user>:<password>@<IP>/axis-media/media.amp
这将打开带有h264的Axis相机流。我不明白为什么它不能在两个Ubuntu 16.04机箱上工作,而是在一个机箱上工作。所有这些都是相同的Ubuntu 16.04,安装了相同的gstreamer软件包。
除了gstreamer之外,为了让gstreamer能够流式传输rtsp,可能会有另一个包吗?
不播放时出现的错误
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://root:pass@172.26.134.166/axis-media/media.amp
(gst-launch-1.0:4036): GLib-GIO-WARNING **: Ignoring invalid ignore_hosts value '*]'
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing.
Additional debug info:
gstrtspsrc.c(6795): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Failed to connect. (Generic error)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
从此网页找到命令:
答案 0 :(得分:0)
似乎导致问题的是代理。当我禁用代理时,我能够在所有盒子上使用gstreamer进行流式传输。
祝你好运