-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
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:
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?
Metadata
Metadata
Assignees
Labels
No labels