-
In pyav version v13, we used the following code: frame.to_image(width=100, height=100, interpolation=av.video.reformatter.Interpolation.BICUBIC) and after the update to v14, this code is failing with the following error:
However, below code works as a fix: >>> frame.to_image(width=100, height=100, interpolation="BICUBIC")
<PIL.Image.Image image mode=RGB size=100x100 at 0x7F16445B1C00> |
Beta Was this translation helpful? Give feedback.
Answered by
WyattBlue
Dec 6, 2024
Replies: 2 comments 1 reply
-
reformat() also does not work due to similar error. import av
from av.video.reformatter import ColorRange, Colorspace
from PIL import Image
image = Image.new("RGB", (128, 128))
frame = av.video.frame.VideoFrame.from_image(image).reformat(
format="yuv420p", src_color_range=ColorRange.JPEG, dst_color_range=ColorRange.MPEG)
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Fixed in 14.0.1 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
WyattBlue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed in 14.0.1