freezy / dmd-extensions

A toolbox for virtual pinball dot matrix displays.
GNU General Public License v2.0
128 stars 54 forks source link

Extract Dmdext GIF/PNG #145

Closed jlog06 closed 5 years ago

jlog06 commented 5 years ago

Hello, I'm looking for a way to recover from GIF and PNG files from DMDext. After several tries, the GIF file does not display the color palette. I can only have 4 colors. On the other hand, the extraction of the AVI file is correct.

Trouble also to exit PNG Bitmap. I have trouble with the DMDDevice.ini file.

[video] ; if enabled, writes frames to an .avi file enabled = true ; path to folder or .avi file. if folder, gamename.avi is used. path = 1.avi

[GIF] ; if enabled, writes frames to an .gif file enabled = true ; path to folder or .gif file. if folder, gamename.gif is used. path = 2.gif

The goal is to recover uncompressed images for editing in H265 to improve the output quality. Do you have a solution to tell me. Thanks for your help.

freezy commented 5 years ago

GIF not being colored looks like a bug. However, I'm not sure why you want to export to GIF for improved output quality? What's wrong with the .avi?

jlog06 commented 5 years ago

Hello and a very big thank you for your work that allows us to take full advantage of our DMD displays. I recently discovered the functions of DMDext which allow to recover videos and PNG images. I encountered some difficulties that did not allow me to fulfill my wishes. The use of GIF file allows to have all the images without compression. The AVI fomat uses the H264 codec. On the PIN2D® displays the display requires uncompressed or H265 video for a clear display. I was able to test the extraction of PNG on Pinball FX3. However, the FPS is variable and does not display 25 fps. This is really a shame because the functions were very interesting. Good luck and thank you.

freezy commented 5 years ago

Well I think that GIF can do max ~15fps so that wouldn't be a good choice either if you're aiming for "quality". Also I don't think H265 will give you much of an advantage here, it really shines on high resolutions like 4K and we're talking 128x32 here... Additionally H265 tends to blur more where H264 blocks, so that's not ideal for a DMD either.

IainS1986 commented 5 years ago

I think the reason GIF has become a thing is because at the moment PinupPopper frontend only supports GIFs for hardware DMD in the menu, no video support

kiwiBri commented 5 years ago

You are incorrect. Pin-up Popper has had video support for the past 2 months. I know as I'm using it and was finally able to consider it from pinball x. See the forums or the Facebook group. There's a video on YouTube tube as well. But yes, the GIF support previously was lame in the way it played the framerate

kiwiBri commented 5 years ago

I think the reason GIF has become a thing is because at the moment PinupPopper frontend only supports GIFs for hardware DMD in the menu, no video support

See this link on how to change PuP to use videos in the DMD: https://www.youtube.com/watch?v=Zp4JKavhvR4