How to extract all HEVC i-frame images from a x265 video?

457 Views Asked by At

I need to drop all the B-frames and P-frames, only keeping the I-frames to be saved as images.

1

There are 1 best solutions below

3
Gyan On BEST ANSWER

You can instruct the decoder to skip non-keyframes using -skip_frame.

ffmpeg -skip_frame nokey -i input.mp4 -vsync vfr img%04d.png