ffmpeg CPU 停留在 99%

ffmpeg CPU 停留在 99%

我在使用 ffmpeg 时有时会遇到这种情况

Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> mjpeg)
Press [q] to stop, [?] for help
Input stream #0:0 frame changed from size:559x1425 fmt:yuvj420p to size:429x323 fmt:yuvj420p
Input stream #0:0 frame changed from size:429x323 fmt:yuvj420p to size:800x600 fmt:yuvj420p
Input stream #0:0 frame changed from size:800x600 fmt:yuvj420p to size:260x259 fmt:yuvj420p
Input stream #0:0 frame changed from size:260x259 fmt:yuvj420p to size:240x160 fmt:yuvj444p
Input stream #0:0 frame changed from size:240x160 fmt:yuvj444p to size:648x783 fmt:yuvj420p
Input stream #0:0 frame changed from size:648x783 fmt:yuvj420p to size:340x254 fmt:yuvj420p
Input stream #0:0 frame changed from size:340x254 fmt:yuvj420p to size:260x259 fmt:yuvj420p
Input stream #0:0 frame changed from size:260x259 fmt:yuvj420p to size:500x438 fmt:yuvj444p
Input stream #0:0 frame changed from size:500x438 fmt:yuvj444p to size:391x512 fmt:yuvj444p
Input stream #0:0 frame changed from size:391x512 fmt:yuvj444p to size:300x225 fmt:yuvj422p

ffmpeg 冻结 htop 说处理器处于 99%

我查看问题是否出在 jpg 上,结果不是,而且当我再次执行 ffmpeg 命令时,ffmpegffmpeg -y -f image2 -r 1/5 -i out-%02d.jpg out.avi 就可以正常工作。

在我的循环中,ffmpeg 似乎有时会冻结并使处理器处于 99% 的状态。有什么想法吗

谢谢

我使用最新版本http://ffmpeg.gusari.org/static/

相关内容