imageio / imageio-ffmpeg

FFMPEG wrapper for Python
BSD 2-Clause "Simplified" License
221 stars 50 forks source link

Custom number of bytes per pixel in read_frames #24

Closed mastak closed 4 years ago

mastak commented 4 years ago

Y′UV format can have a different number of bytes per pixel: https://en.wikipedia.org/wiki/YUV#Converting_between_Y%E2%80%B2UV_and_RGB

And some variants such as:

YUV420p   6 bytes per 4 pixels

can't be set as bpp for read_frames. As a result, there is broken framesize and we have RuntimeError with End of file reached before full frame could be read

almarklein commented 4 years ago

Closed by #25