-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Artifacts when playing a GIF file on a uniform background #631
Comments
It seems like all new pixels of the gif are drawn, but not all of the old ones removes. This might be caused by a double buffer, which you do not have enabled, right? Can you confirm transparency is disabled i? Simply add a print statement in the If you see the print statement in your logs, try a differnt converter or try to disabe transparency in the converter |
I don't use double buffer. If I use
Yes, my gif image use transparency |
I changed service of video to gif conversion, and the artifacts disappeared. But the file size has doubled. I am currently using this service. But transparency is still present in the gif-file |
I've been throught this my selfe last year, but I don't remeber exactily, but I think there is a bug in the transparent implementation of the AnimatedGIF library, thus some converters work, other don't and disabeling transparency in the convter helps. And I am very sure this is not a problem with is library, rather with AnimetedGIF |
@Lukaswnd Apparently so |
I converted a Kinetic video from YouTube into a gif file with my screen size 128 * 64 (I used this service). I display this gif file on the screen as shown in the AnimatedGIFPanel_SPIFFS example. The video plays, but leaves a lot of artifacts. At first I thought the video was too dynamic and reduced the video playback speed. This did not give any result. Reducing fps didn't help either. At the same time, if you shoot a real video with a uniform background on camera and move, for example, your hand or black stick in it, then there will be no such effect. The video will play back without artifacts. As I understand it, these artifacts are caused by the fact that the gif file contains such a parameter as transparency.
I use four 64*32 modules connected according to the CHAIN_TOP_RIGHT_DOWN scheme, so I use VirtualMatrixPanel. If I don't use VirtualMatrixPanel, using only one panel out of four, then the video also plays with artifacts. I set the panel brightness very low - 20 units.
How to fix it?
I use ESP32-HUB75-MatrixPanel-DMA library version 3.0.10
My OS is Windows 10 64 bit
Kinetik gif:
Stick gif:
kinetic.mp4
stick.mp4
My code:
The text was updated successfully, but these errors were encountered: