是否有媒体服务器只接收任何rtsp流并为其提供服务?

时间:2015-05-07 02:05:11

标签: ffmpeg gstreamer rtsp

我在nginx-rtmp-module上提供了一些rtmp流,它们的数量将动态改变。

但是对于客户端的限制,我必须在rtsp协议中提供服务。显然,nginx-rtmp-module不支持它。所以我打算在同一台设备上运行一个rtsp服务器,然后用rtp流将rtmp流转换成rtsp流,然后将rtsp流发送到rtsp服务器。这样客户端就可以从rtsp服务器播放流。

麻烦的是我找不到一个稳定的服务器,它只接收任何rtsp流并为它们提供服务。

There是一个符合我所有需求的例子,但它有点不稳定。

我以详细模式运行它并使用以下命令发送流:

ffmpeg -i rtmp://localhost/<name> -codec copy -ar 44100 -ac 1 -f rtsp rtsp://localhost:5545/<name>

并播放:

gst-launch-0.10 playbin2 uri=rtsp://<server>/<name>

视频没有出现,并且有一些反复警告:

WARNING: from element /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstRtpVorbisDepay:rtpvorbisdepay0: Could not decode stream.
Additional debug info:
gstrtpvorbisdepay.c(633): gst_rtp_vorbis_depay_process (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstRtpVorbisDepay:rtpvorbisdepay0:

当我尝试:

gst-launch-1.0 playbin uri=rtsp://<server>/<name>

它被卡住了,没有视频出现:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://211.68.127.12/box
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request

当我玩的时候:

ffplay rtsp://<server>/<name>

视频出现但质量让我感到压抑。

这是输出:

```ffplay version 2.6.2 Copyright (c) 2003-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC) 20150304 (prerelease)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets 0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
    Last message repeated 2 times
[h264 @ 0x7f97f4000cc0] ref 7 overflow
[h264 @ 0x7f97f4000cc0] error while decoding MB 19 23
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 615 DC, 615 AC, 615 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 370 DC, 370 AC, 370 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] ref 4 overflow
[h264 @ 0x7f97f4000cc0] error while decoding MB 37 23
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 597 DC, 597 AC, 597 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 3 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq=    0B f=0/0   
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets  0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 473 DC, 473 AC, 473 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 564 DC, 564 AC, 564 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 605 DC, 605 AC, 605 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq=    0B f=0/0   
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets  0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 17 packets0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] ref 4 overflow
[h264 @ 0x7f97f4000cc0] error while decoding MB 27 20
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 742 DC, 742 AC, 742 MV errors in P frame
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 23 packets0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] out of range intra chroma pred mode at 9 4
[h264 @ 0x7f97f4000cc0] error while decoding MB 9 4
[h264 @ 0x7f97f4000cc0] concealing 1480 DC, 1480 AC, 1480 MV errors in I frame
[h264 @ 0x7f97f4000cc0] RTP: missed 7 packets 0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 278 DC, 278 AC, 278 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq=    0B f=0/0   
    Last message repeated 2 times
[mp3 @ 0x7f97f4009280] RTP: missed 2 packets  0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
    Last message repeated 1 times
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets 0KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 5 packets
Input #0, rtsp, from 'rtsp://211.68.127.12/box':B sq=    0B f=0/0   
  Metadata:
    title           : 
  Duration: N/A, start: 0.000033, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuv420p(tv), 720x576 [SAR 1:1 DAR 5:4], 24 fps, 24 tbr, 90k tbn, 48 tbc
    Stream #0:1: Audio: mp3, 44100 Hz, mono, s16p, 56 kb/s
[h264 @ 0x7f97f4263d40] ref 7 overflow vq=  226KB sq=    0B f=0/0   
[h264 @ 0x7f97f4263d40] error while decoding MB 19 23
[h264 @ 0x7f97f4263d40] Cannot use next picture in error concealment
[h264 @ 0x7f97f4263d40] concealing 615 DC, 615 AC, 615 MV errors in P frame
[h264 @ 0x7f97f4264580] Cannot use next picture in error concealment
[h264 @ 0x7f97f4264580] concealing 370 DC, 370 AC, 370 MV errors in P frame
[h264 @ 0x7f97f41699a0] ref 4 overflow
[h264 @ 0x7f97f41699a0] error while decoding MB 37 23
[h264 @ 0x7f97f41699a0] Cannot use next picture in error concealment
[h264 @ 0x7f97f41699a0] concealing 597 DC, 597 AC, 597 MV errors in P frame
[h264 @ 0x7f97f4264580] Cannot use next picture in error concealment
[h264 @ 0x7f97f4264580] concealing 473 DC, 473 AC, 473 MV errors in P frame
[h264 @ 0x7f97f4264580] Cannot use next picture in error concealment
[h264 @ 0x7f97f4264580] concealing 564 DC, 564 AC, 564 MV errors in P frame
[h264 @ 0x7f97f41699a0] Cannot use next picture in error concealment
[h264 @ 0x7f97f41699a0] concealing 605 DC, 605 AC, 605 MV errors in P frame
[h264 @ 0x7f97f4264580] out of range intra chroma pred mode at 9 4  
[h264 @ 0x7f97f4264580] error while decoding MB 9 4
[h264 @ 0x7f97f4264580] concealing 1480 DC, 1480 AC, 1480 MV errors in I frame
[h264 @ 0x7f97f416a200] ref 4 overflow
[h264 @ 0x7f97f416a200] error while decoding MB 27 20
[h264 @ 0x7f97f416a200] Cannot use next picture in error concealment
[h264 @ 0x7f97f416a200] concealing 742 DC, 742 AC, 742 MV errors in P frame
[h264 @ 0x7f97f416a200] Cannot use next picture in error concealment
[h264 @ 0x7f97f416a200] concealing 278 DC, 278 AC, 278 MV errors in P frame
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets53KB sq=    0B f=0/0   
    Last message repeated 1 times
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets 60KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 10 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
    Last message repeated 2 times
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -4 -4
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -1 -1
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -1 -1
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
    Last message repeated 3 times
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -5 -5
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -4 -4
    Last message repeated 1 times
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -7 -7
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -5 -5
[mp3 @ 0x7f97f4009280] overread, skip -10 enddists: -6 -6
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
    Last message repeated 2 times
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -7 -7
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -6 -6
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -3 -3
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[h264 @ 0x7f97f416a200] Cannot use next picture in error concealment
[h264 @ 0x7f97f42630e0] Cannot use next picture in error concealment
[h264 @ 0x7f97f416a200] concealing 327 DC, 327 AC, 327 MV errors in P frame
[h264 @ 0x7f97f42630e0] concealing 327 DC, 327 AC, 327 MV errors in P frame
[h264 @ 0x7f97f4263d40] Cannot use next picture in error concealment
[h264 @ 0x7f97f4263d40] concealing 325 DC, 325 AC, 325 MV errors in P frame
[h264 @ 0x7f97f41699a0] Cannot use next picture in error concealment
[h264 @ 0x7f97f41699a0] concealing 371 DC, 371 AC, 371 MV errors in P frame
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -4 -4 0B f=0/0   
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -2 -2
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -7 -7 0B f=0/0   
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -2 -2
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets08KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets05KB sq=    0B f=0/0   
[h264 @ 0x7f97f4263d40] ref 3 overflow vq=  207KB sq=    0B f=0/0   
[h264 @ 0x7f97f4263d40] error while decoding MB 20 34
[h264 @ 0x7f97f4263d40] Cannot use next picture in error concealment
[h264 @ 0x7f97f4263d40] concealing 119 DC, 119 AC, 119 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
    Last message repeated 1 times
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -2 -2 0B f=0/0   
[h264 @ 0x7f97f4263d40] out of range intra chroma pred mode at 37 23
[h264 @ 0x7f97f4263d40] error while decoding MB 37 23
[h264 @ 0x7f97f4263d40] Cannot use next picture in error concealment
[h264 @ 0x7f97f4263d40] concealing 597 DC, 597 AC, 597 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -2 -2 0B f=0/0   
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -3 -3
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -4 -4
[h264 @ 0x7f97f4000cc0] RTP: missed 16 packets
[h264 @ 0x7f97f41699a0] Cannot use next picture in error concealment
[h264 @ 0x7f97f41699a0] concealing 435 DC, 435 AC, 435 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
    Last message repeated 1 times
[mp3 @ 0x7f97f4009280] RTP: missed 2 packets211KB sq=    0B f=0/0   
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -2 -2
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -2 -2
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -6 -6
[h264 @ 0x7f97f42630e0] Cannot use next picture in error concealment
[h264 @ 0x7f97f42630e0] concealing 519 DC, 519 AC, 519 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
    Last message repeated 1 times
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets158KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 8 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets58KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets55KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets55KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets56KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets66KB sq=    0B f=0/0   
[h264 @ 0x7f97f416a200] ref 11 overflowvq=  158KB sq=    0B f=0/0   
[h264 @ 0x7f97f416a200] error while decoding MB 13 29
[h264 @ 0x7f97f416a200] Cannot use next picture in error concealment
[h264 @ 0x7f97f416a200] concealing 351 DC, 351 AC, 351 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets54KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets61KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 6 packets57KB sq=    0B f=0/0   
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -2 -2 0B f=0/0   
[mp3 @ 0x7f97f4009280] overread, skip -8 enddists: -5 -5
[h264 @ 0x7f97f416a200] out of range intra chroma pred mode at 34 8 
[h264 @ 0x7f97f416a200] error while decoding MB 34 8
[h264 @ 0x7f97f416a200] concealing 1275 DC, 1275 AC, 1275 MV errors in I frame
[h264 @ 0x7f97f4264580] Cannot use next picture in error concealment
[h264 @ 0x7f97f4264580] concealing 327 DC, 327 AC, 327 MV errors in P frame
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets152KB sq=    0B f=0/0   
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -5 -5 0B f=0/0   
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -5 -5 0B f=0/0   
[h264 @ 0x7f97f42630e0] P sub_mb_type 12 out of range at 9 26=0/0   
[h264 @ 0x7f97f42630e0] error while decoding MB 9 26
[h264 @ 0x7f97f42630e0] Cannot use next picture in error concealment
[h264 @ 0x7f97f42630e0] concealing 490 DC, 490 AC, 490 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 3 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 10 packets3KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets29KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets16KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets21KB sq=    0B f=0/0   
[h264 @ 0x7f97f42630e0] Cannot use next picture in error concealment
[h264 @ 0x7f97f42630e0] concealing 513 DC, 513 AC, 513 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets19KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets27KB sq=    0B f=0/0   
    Last message repeated 1 times
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets32KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 3 packets
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets135KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -2 -2
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -4 -4 0B f=0/0   
[h264 @ 0x7f97f4264580] Cannot use next picture in error concealment
[h264 @ 0x7f97f4264580] concealing 230 DC, 230 AC, 230 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 4 packets21KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 3 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets05KB sq=    0B f=0/0   
    Last message repeated 3 times
[h264 @ 0x7f97f4000cc0] RTP: missed 7 packets16KB sq=    0B f=0/0   
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets
[h264 @ 0x7f97f4263d40] ref 13 overflowvq=  110KB sq=    0B f=0/0   
[h264 @ 0x7f97f4263d40] error while decoding MB 12 33
[h264 @ 0x7f97f4263d40] Cannot use next picture in error concealment
[h264 @ 0x7f97f4263d40] concealing 172 DC, 172 AC, 172 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets12KB sq=    0B f=0/0   
    Last message repeated 2 times
[h264 @ 0x7f97f416a200] Cannot use next picture in error concealment
[h264 @ 0x7f97f416a200] concealing 414 DC, 414 AC, 414 MV errors in P frame
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets116KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
    Last message repeated 1 times
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets12KB sq=    0B f=0/0   
[h264 @ 0x7f97f4000cc0] RTP: missed 6 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets126KB sq=    0B f=0/0   
[h264 @ 0x7f97f4263d40] Cannot use next picture in error concealment
[h264 @ 0x7f97f4263d40] concealing 327 DC, 327 AC, 327 MV errors in P frame
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -1 -1 0B f=0/0   
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -4 -4
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -6 -6
^C[h264 @ 0x7f97f4263d40] ref 7 overflowq=  107KB sq=    0B f=0/0   
[h264 @ 0x7f97f4263d40] error while decoding MB 8 24
[h264 @ 0x7f97f4263d40] Cannot use next picture in error concealment
[h264 @ 0x7f97f4263d40] concealing 581 DC, 581 AC, 581 MV errors in P frame

我不确定ffmpeg或rtsp-server是否有问题,是否有人有想法?

非常感谢。

1 个答案:

答案 0 :(得分:1)

FFmpeg documentation提及Darwin Streaming ServerMischa Spiegelmock’s RTSP server(您已尝试过)。

关于您的输出,您有很多 UDP数据包丢失RTP: missed 6 packets

如果您尝试在服务器所在的同一本地网络上播放RTSP流,那么这绝对不正常。尝试DSS或检查网络配置/端口。

如果您正在尝试通过Internet上的客户端,那么UDP数据包丢失确实会发生,并且您无能为力。如果您设法找到支持它的服务器和播放器,您可以尝试使用前向纠错(FEC)机制。大多数设备和软件播放器都没有。