How do I encode a GIF? (Changing pixel format appears to not work + error when encoding GIF) #1189
Unanswered
joeyballentine
asked this question in
1. Help
Replies: 1 comment
-
Use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Overview
Encoding to GIF does not work, as I get an error about yuv420p not being supported for that format. However, PyAV seems to ignore any attempt I make to overwrite the pixel format of the stream.
Expected behavior
I should be able to save a GIF
Actual behavior
I get an error
Traceback:
Investigation
I tried several different ways I hoped would be able to override the pixel format, mainly setting
stream.pix_fmt = "gif"
, assuming that would work based on the numpy example. I also tried setting the attribute elsewhere and in the stream options, to no avail.Research
I have done the following:
[ ] Asked on PyAV Gitter<- this doesn't even work anymore[ ] ... and waited 72 hours for a response.Additional context
Apologies if I've gotten something wrong here. It just seems like the output format does not get overwritten by anything I enter there.
Beta Was this translation helpful? Give feedback.
All reactions