如何使用 ffmpeg 从 MP4 视频中提取所有关键帧?

Kon*_*tin 5 mp4 ffmpeg extract keyframe mkv

我想从 BMP 格式的视频中提取所有关键帧以进行进一步处理。我设法调查了这个命令:

ffmpeg -skip_frame nokey -i videofile.mp4 -vf select='eq(pict_type\,I),setpts=N/(25*TB)' -q 1  ./%09d.bmp
Run Code Online (Sandbox Code Playgroud)

它适用于除 MP4 和 MKV 文件之外的所有视频文件。相反,它从 MP4 文件中提取所有帧,此外我还收到了很多错误消息:

[h264 @ 0x90d80a0] concealing 1200 DC, 1200 AC, 1200 MV errors in P frame
[h264 @ 0x90c4ce0] concealing 1200 DC, 1200 AC, 1200 MV errors in B frame
[h264 @ 0x90d80a0] concealing 1200 DC, 1200 AC, 1200 MV errors in B frame
[h264 @ 0x90d7500] Cannot use next picture in error concealment
[h264 @ 0x90d7500] concealing 1200 DC, 1200 AC, 1200 MV errors in P frame
Run Code Online (Sandbox Code Playgroud)

我该怎么做才能使它也适用于 MP4 文件,或者我应该使用什么其他实用程序/方法 (mencoder / vlc) 来实现我的目标?