RTSP Frame Grabbing creates smeared , pixeled and corrupted images

六眼飞鱼酱① 提交于 2019-12-24 14:39:12

问题


I am trying to capture a single frame per second from a RTSP stream with following command 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)

I have to say that playing same rtsp stream in VLC or FFPLAY is flowless.

How I can fix it to grab better quality

Thanks in advance.


回答1:


Solution for that apparently is to force FFMPEG use TCP PROTOCOL following way

ffmpeg -rtsp_transport tcp -i rtsp://XXX -q:v 1 -vf fps=fps=1 -strftime 1 ZZZZ\%H_%M_%S.jpg

thanks a lot to this question and solution



来源:https://stackoverflow.com/questions/49868802/rtsp-frame-grabbing-creates-smeared-pixeled-and-corrupted-images

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!