我正在尝试使用以下命令从 RTSP 流中每秒捕获一帧
ffmpeg -i rtsp://XXX -q:v 1 -vf fps=fps=1 -strftime 1 ZZZZ\%H_%M_%S.jpg
But some of the frames are smeared ,pixeled and corrupted - this effect is drastically increases if rtsp resolution is increased (if the resolution is decreased for example to 720P most of the frames are OK)
我不得不说,在 VLC 或 FFPLAY 中播放相同的 rtsp 流是不流畅的。
我该如何修复它以获得更好的质量
提前致谢。
解决方案显然是强制使用 FFMPEGTCP协议遵循方式
ffmpeg -rtsp_transport tcp -i rtsp://XXX -q:v 1 -vf fps=fps=1 -strftime 1 ZZZZ\%H_%M_%S.jpg
非常感谢这个问题和解决方案 https://stackoverflow.com/questions/23238295/force-ffmpeg-to-use-tcp-protocol-when-reading-a-rtsp-stream
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)