如何在 Linux 下为 BOSCH AutoDome Junior HD IVA 摄像机播放 RTSP 流?

8 linux streaming video

我有一台 AutoDome Junior HD IVA 摄像机。如何在我的 Linux 发行版中播放 RTSP 流?我试过 VLC 但它失败了。有没有其他可靠的工具?

跟进

尝试 1:失败

$ mplayer rtsp://192.168.1.10:554
MPlayer SVN-r33251-4.6.0 (C) 2000-2011 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing rtsp://192.168.1.10:554.
Connecting to server 192.168.1.10[192.168.1.10]: 554...

rtsp_session: unsupported RTSP server. Server type is 'unknown'.
STREAM_LIVE555, URL: rtsp://192.168.1.10:554
Stream not seekable!
 file format detected.
Initiated "video/H264" RTP subsession on port 43230
demux_rtp: Failed to guess the video frame rate
VIDEO:  [H264]  0x0  0bpp  0.000 fps    0.0 kbps ( 0.0 kbyte/s)
FPS not specified in the header or invalid, use the -fps option.
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Starting playback...
V:   0.0   0/  0 ??% ??% ??,?% 0 0                                    


Exiting... (End of file)
Run Code Online (Sandbox Code Playgroud)

尝试 2:失败

$ mplayer mms://192.168.1.10:554
MPlayer SVN-r33251-4.6.0 (C) 2000-2011 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing mms://192.168.1.10:554.
STREAM_ASF, URL: mms://192.168.1.10:554
Connecting to server 192.168.1.10[192.168.1.10]: 554...

Connected
read error:: Resource temporarily unavailable
pre-header read failed
Connecting to server 192.168.1.10[192.168.1.10]: 554...

unknown ASF streaming type
Failed, exiting.
Connecting to server 192.168.1.10[192.168.1.10]: 554...

Cache size set to 320 KBytes
Cache fill:  0.00% (0 bytes)   nop_streaming_read error : Resource temporarily unavailable
Stream not seekable!
Cache fill:  0.00% (0 bytes)   nop_streaming_read error : Resource temporarily unavailable
Cache fill:  0.00% (0 bytes)   

Cache not filling, consider increasing -cache and/or -cache-min!
nop_streaming_read error : Resource temporarily unavailable
Cache not filling, consider increasing -cache and/or -cache-min!
nop_streaming_read error : Resource temporarily unavailable
Cache not filling, consider increasing -cache and/or -cache-min!
nop_streaming_read error : Resource temporarily unavailable
Cache not filling, consider increasing -cache and/or -cache-min!
nop_streaming_read error : Resource temporarily unavailable
Cache not filling, consider increasing -cache and/or -cache-min!
Invalid seek to negative position!


Exiting... (End of file)
Run Code Online (Sandbox Code Playgroud)

小智 7

我发现ffmpeg公用事业通常更可靠。尝试:

$ ffplay 'rtsp://username:password@ip_address:port/url'

另请注意,IP 摄像机 RTSP 流经常需要用户名和密码

为Foscam兼容相机默认设置:端口88URL或者是videoMainvideoSubaudio

ffmpeg 手册中提供了更多详细信息。有趣的是,ffmpeg 说明似乎不包含有关包含受支持的用户名密码字段的文档。


Gil*_*il' 4

尝试一下 mplayer,它通常是支持最广泛格式的音频和视频播放器。

\n\n

如果您有一个所谓的 RTSP 源,但实际上是一个 HTTP URL,请首先检索该 URL 的内容;这次您将得到一个只包含另一个 URL 的文件rtsp://(有时您会得到另一个需要遵循的 HTTP URL)。rtsp://在命令行上将 URL传递给 mplayer。

\n\n

有一些服务器(据我所知,还有硬件设备)rtsp://通过 HTTP 提供包含 URL 的文件,然后以MMS协议 \xc2\xb9 提供内容。这是为了与一些较旧的微软播放器兼容(我的细节记忆模糊),但它打破了客户认为 RTSP 是 RTSP、MMS 是 MMS 的观点。如果您获得的rtsp://URL 根本不起作用,请尝试将方案替换为mms://.

\n\n

\xc2\xb9与多媒体消息服务(又称视频短信)无关。

\n