h264 extracting frames works only on certain operating system / ffmpeg version
问题 I have received parsed h264 data from my phone, and I am trying to extract frames from the data. I used the following ffmpeg command lines: ffmpeg -i temp.h264 -ss 5 -pix_fmt yuv420p -vframes 1 foo.yuv ffmpeg -s 1280:720 -pix_fmt yuv420p -i foo.yuv output.jpg This results in the right output image on Ubuntu (KDE neon User Edition 5.12) with ffmpeg version 2.8.14. However, it does not work on macOS High Sierra (10.13.4) with ffmpeg version 4.0 and instead shows an output message: Output file