处理来自rtsp流的输入时发现无效数据

时间:2019-09-02 10:45:41

标签: ffmpeg rtsp

im尝试通过以下命令使用ffplay播放rtsp流:

ffplay -i rtsp://HOST:1235/qc/Ks3Al3nVHPOt5F -fflags nobuffer -flags low_delay -an -framedrop

ffplay -i rtsp://HOST:1235/qc/Ks3Al3nVHPOt5F

但是我遇到了错误

C:\Users\Administrator\Desktop\QuadroCam\ffmpeg>ffplay rtsp://HOST:1235/qc/
Ks3Al3nVHPOt5F
ffplay version 4.1 Copyright (c) 2003-2018 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20181017
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3
 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libas
s --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopenco
re-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enab
le-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libt
wolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --e
nable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --en
able-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable
-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --
enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --e
nable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
rtsp://HOST:1235/qc/Ks3Al3nVHPOt5F: Invalid data found when processing inpu
t
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0

此命令可能需要一些额外的参数。有什么帮助吗?

1 个答案:

答案 0 :(得分:0)

您是否尝试过使用vlc和/或ffprobe打开相同的输入?

ffprobe将检测流并显示更多信息。 vlc也可以确认有效的rtsp流,但是一旦vlc打开流并且没有使用dvr的rtsp ffplay发生,我就碰上了