You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know how I can transfer PIL images to FFMPY to save it as video, or gif, since the PIL library's quantization method has strong quality losses in certain cases.
I did not find any information on the topic online, beside one post with PIL to FFMPEG that I wasn't able to apply to my case.
What is the right way to code to do this?
If I have for example this setup to begin with:
import ffmpy
import PIL
from PIL import Image as Img
images = [Img.open('frame 1.png'),Img.open('frame 2.png')]
ff = ffmpy.FFmpeg(
inputs={images ?: None},#How do I insert PIL images here?
outputs={'output.gif': None},
executable='ffmpeg\\bin\\ffmpeg.exe')
ff.run()
How would I proceed to convert and save the images as a video using FFMPY?
The text was updated successfully, but these errors were encountered:
Hello there!
I would like to know how I can transfer PIL images to FFMPY to save it as video, or gif, since the PIL library's quantization method has strong quality losses in certain cases.
I did not find any information on the topic online, beside one post with PIL to FFMPEG that I wasn't able to apply to my case.
What is the right way to code to do this?
If I have for example this setup to begin with:
How would I proceed to convert and save the images as a video using FFMPY?
The text was updated successfully, but these errors were encountered: