2474101468
2474101468

Reputation: 402

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

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

Upvotes: 0

Views: 776

Answers (1)

Gyan
Gyan

Reputation: 92928

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

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

Upvotes: 1

Related Questions