我有一台 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)
尝试一下 mplayer,它通常是支持最广泛格式的音频和视频播放器。
\n\n如果您有一个所谓的 RTSP 源,但实际上是一个 HTTP URL,请首先检索该 URL 的内容;这次您将得到一个只包含另一个 URL 的文件rtsp://(有时您会得到另一个需要遵循的 HTTP URL)。rtsp://在命令行上将 URL传递给 mplayer。
有一些服务器(据我所知,还有硬件设备)rtsp://通过 HTTP 提供包含 URL 的文件,然后以MMS协议 \xc2\xb9 提供内容。这是为了与一些较旧的微软播放器兼容(我的细节记忆模糊),但它打破了客户认为 RTSP 是 RTSP、MMS 是 MMS 的观点。如果您获得的rtsp://URL 根本不起作用,请尝试将方案替换为mms://.
\xc2\xb9与多媒体消息服务(又称视频短信)无关。
\n| 归档时间: |
|
| 查看次数: |
60447 次 |
| 最近记录: |