Raspberry pi 使用Gstreamer播放RTSP流时出现问题
硬件和软件:Raspberry Pi 4、IP摄像头、Raspbian Buster、Gstreamer 1.14.1(来自存储库)。Raspberry和camera在本地网络上 我正在尝试使用以下管道运行RTSP视频流:Raspberry pi 使用Gstreamer播放RTSP流时出现问题,raspberry-pi,gstreamer,rtsp,ip-camera,Raspberry Pi,Gstreamer,Rtsp,Ip Camera,硬件和软件:Raspberry Pi 4、IP摄像头、Raspbian Buster、Gstreamer 1.14.1(来自存储库)。Raspberry和camera在本地网络上 我正在尝试使用以下管道运行RTSP视频流: gst-launch-1.0 rtspsrc location='rtsp://web_camera_ip' ! rtph264depay ! h264parse ! v4l2h264dec ! autovideosink 一分钟内,播放停止。 日志: 其他信息: 0:00
gst-launch-1.0 rtspsrc location='rtsp://web_camera_ip' ! rtph264depay ! h264parse ! v4l2h264dec ! autovideosink
一分钟内,播放停止。
日志:
其他信息:
0:00:13.102438914 1491 0xb48105b0 WARN v4l2allocator gstv4l2allocator.c:1349:gst_v4l2_allocator_dqbuf:<v4l2h264dec0:pool:src:allocator> V4L2 provided buffer has bytesused 0 which is too small to include data_offset 0
谢谢你的回答 问题出在我的本地网络中。来自任何设备的RTSP流都会在一瞬间周期性中断。当使用VLC播放器时,它不可见,因为它会立即重新启动广播。在这种情况下,Gstreamer中断流并生成错误消息 我已经通过以太网将我的IP摄像头直接连接到Raspberry,一切正常。
互联网上的广播也很稳定。问题出在我的本地网络上。来自任何设备的RTSP流都会在一瞬间周期性中断。当使用VLC播放器时,它不可见,因为它会立即重新启动广播。在这种情况下,Gstreamer中断流并生成错误消息 我已经通过以太网将我的IP摄像头直接连接到Raspberry,一切正常。
互联网上的广播也很稳定。我也有同样的问题。幸运的是,gstreamer 1.16.2似乎修复了该问题。我使用脚本的变体在
使用1.16.2,它只会继续运行,不会挂起。我遇到了完全相同的问题。幸运的是,gstreamer 1.16.2似乎修复了该问题。我使用脚本的变体在 使用1.16.2,它只会继续运行,不会挂起
0:00:13.102438914 1491 0xb48105b0 WARN v4l2allocator gstv4l2allocator.c:1349:gst_v4l2_allocator_dqbuf:<v4l2h264dec0:pool:src:allocator> V4L2 provided buffer has bytesused 0 which is too small to include data_offset 0
gst-launch-1.0 rtspsrc location='rtsp://web_camera_ip' ! rtph264depay ! h264parse ! fakesink