Saya memiliki kamera AutoDome Junior HD IVA. Bagaimana cara memainkan streaming RTSP di distro Linux saya? Saya mencoba VLC tetapi gagal. Apakah ada alat lain yang bisa diandalkan?
Tindak lanjut :
Coba 1: gagal
$ 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)
Coba 2: gagal
$ 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)
Saya telah menemukan bahwa
ffmpeg
utilitas seringkali lebih dapat diandalkan. Mencoba:$ ffplay 'rtsp://username:password@ip_address:port/url'
Juga perhatikan bahwa stream RTSP kamera IP sering kali memerlukan nama pengguna dan kata sandi .
Default untuk kamera Foscam-kompatibel: pelabuhan adalah
88
dan url adalah baikvideoMain
,videoSub
atauaudio
.Rincian lebih lanjut tersedia di manual ffmpeg . Menariknya, instruksi ffmpeg tampaknya tidak menyertakan dokumentasi tentang termasuk bidang nama pengguna dan kata sandi , yang didukung.
sumber
Dengan asumsi ini memang aliran RTSP, Anda harus dapat membukanya dengan
vlc
seperti ini:sumber
vlc
memainkan beberapa aliran yangmplayer
tidak mampu.Lihatlah versi terbaru dari firmware AutoDome Junior HD. (Saat ini: 4.54.0024.)
Saya menemukan informasi tentang RTSP di kamera IP Bosch di sini (pfd).
Jika Anda memasukkan kata sandi di kamera, Anda harus mengetikkan nama pengguna dan kata sandi di VLC.
Saya sedang menguji dengan
VIP-X1XF E
encoder. Berfungsi bagus, dengan audio, dalam VLC (pada Windows7).sumber