1

What is the best way to extract individual yuv frames from a yuv video? Can we use ffmpeg?

I'm able to extract individual jpg frames but am struggling to extract individual yuv frames. I know that I can write my own script in python to extract this as the frames in yuv videos are just stacked against each other in raw format but wondering if there's a command line command I can just use for this.

1 Answers1

1

Using ffmpeg,

ffmpeg -f rawvideo -framerate 25 -s 1280x720 -pixel_format yuv420p -i in.yuv -c copy -f segment -segment_time 0.01 frames%d.yuv

Replace the framerate, size and pixel format with the correct values, of course.

Gyan
  • 38,955