ffmpeg - LIVE555 RTSP H.264 原始视频文件流 - ffplay 错误

标签 ffmpeg streaming rtsp live555

我正在使用 LIVE555 通过 RTSP 流式传输原始 .h264 视频文件。

要接收我正在使用 ffplay 的流。但是,在观看视频时,我注意到 ffplay-console 中的视频质量不佳和一堆错误:

Input #0, rtsp, from 'rtsp://xx.xx.xxx.x/stream': sq=    0B f=0/0
  Metadata:
    title           : stream
    comment         : stream
Duration: N/A, start: 0.099989, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p(tv, smpte170m/smpte170m/bt470m), 16
80x1050 [SAR 1:1 DAR 8:5], 60 fps, 60 tbr, 90k tbn, 120 tbc
[h264 @ 03f92100] RTP: missed 46 packetsq=   28KB sq=    0B f=1/1
[h264 @ 03f92100] RTP: missed 74 packetsq=   23KB sq=    0B f=1/1
[h264 @ 03f92100] RTP: missed 43 packets
[h264 @ 03f92100] RTP: missed 35 packetsq=  179KB sq=    0B f=1/1
[h264 @ 05710640] left block unavailable for requested intra4x4 mode -1 at 0 38
[h264 @ 05710640] error while decoding MB 0 38, bytestream 48108
[h264 @ 05710640] Cannot use next picture in error concealment
[h264 @ 05710640] concealing 2989 DC, 2989 AC, 2989 MV errors in P frame
[h264 @ 051043c0] left block unavailable for requested intra4x4 mode -1 at 0 26
[h264 @ 051043c0] error while decoding MB 0 26, bytestream 5894
[h264 @ 051043c0] concealing 4249 DC, 4249 AC, 4249 MV errors in I frame
[h264 @ 03f92100] RTP: missed 68 packetsq=   28KB sq=    0B f=1/1
[h264 @ 03f92100] RTP: missed 31 packetsq=  153KB sq=    0B f=1/1
[h264 @ 052a0020] concealing 3292 DC, 3292 AC, 3292 MV errors in I frame
[h264 @ 052a0020] Cannot use next picture in error concealment1/1
[h264 @ 052a0020] concealing 2190 DC, 2190 AC, 2190 MV errors in P frame
[h264 @ 03f92100] RTP: missed 69 packetsq=   27KB sq=    0B f=1/1
[h264 @ 052a0020] concealing 3732 DC, 3732 AC, 3732 MV errors in I frame
[h264 @ 03f92100] RTP: missed 26 packetsq=   30KB sq=    0B f=1/1
...

我如何确定这里出了什么问题?使用流还是文件?

最佳答案

RTP: missed <N> packets
LIVE555 Media Server使用 RTP超过 UDP默认情况下,除非 RTSP 客户端需要 TCP溪流。
UDP被认为是不可靠的协议(protocol),因为无法保证交付,数据包可以以不同的顺序到达目的地和/或重复。

如果底层网络连接不可靠,您可能会遇到很多数据包丢失,就像您的情况一样,并且流将播放很多错误。

关于ffmpeg - LIVE555 RTSP H.264 原始视频文件流 - ffplay 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32302531/

相关文章:

ffmpeg - 如何使用静态图像将音频/音乐转换为视频(命令行)

c# - "An attempt was made to load a program with an incorrect format"

FFMPEG - 你能用几张图片覆盖视频的一部分吗?

android - 使用 Android Exoplayer 调整 Dash 流音量

algorithm - 流式 pi 十进制数字生成器算法

FFmpeg - 从 rtsp 服务器流式传输到 rtmp 服务器 - 丢失包

ios - RTSP 给出 401(未授权)错误

php - FFMPEG视频转换时间过长

javascript - Angular 超过 https : websocket request not working

linux - 如何从 linux 命令行将 rtsp 视频流录制到文件中?