Out, err = municate(input=bytes_io.read(), timeout=None)įFMPEG report: ffmpeg started on at 18:58:14 Proc = SP.Popen(cmd, stdout=SP.PIPE, stdin=SP.PIPE, stderr=SP.PIPE, bufsize=buf_size, shell=False) So I'm using ffmpeg as a fix.Īs for why I'd like the gif to be read from memory is because I'm going to change this so gifs from urls will be wrapped in Bytesio instead of saving.Īs for why I have the extra Pillow code, I did successfully get it working by passing an actual filename into the ffmpeg command. I know you can extract frames from a gif with Pillow, but sometimes it butchers certain gifs. I'm trying to extract frames from a gif with ffmpeg then use Pillow to resize it. Just wondering if it's possible to pass byte data from io.