How to extract frames as individual webp/jxl files from a mov file with H.264/265 format?

53 views Asked by At

I have a movie file like example.mov, in H.264 or H.265 (HEVC) format (from iPhone) and I want to extract all frames as individual image files in lossless webp format and jxl format.

I've looked for command lines or a python solution.

ffmpeg does work work for mov -> webp, but it's quite slow.

ffmpeg -i example.mov -codec libwebp -lossless 0 VIDEO-0_%d.webp

I'm wondering if is there a solution using libvips but I only found heif (image) -> webp.

vips heifload test.heic test.webp

And I'm not even sure if it's lossless.

A solution that would use multiprocessing for speed up would be ideal as well.

0

There are 0 answers