Goldo02 / gif_and_video_art_engine

A GIF and Video art engine that will allow you to generate multi-layer GIFs or Video from single GIFs or Video as layers.
MIT License
63 stars 34 forks source link

Conversion not precise and timings are completely off #8

Closed jozkr8 closed 2 years ago

jozkr8 commented 2 years ago

The combined .mp4 from gifs isn't the same size as the output:

For example - the input gifs have 2.3s and the combined .mp4 file has 2.4s whilst the exported gif has 2.14s. So this is not matching frames during the process. Attaching the screen:

conersion-not-exact
Goldo02 commented 2 years ago

Yeah i know thanks. I'm gonna update the code to use this command i think: ffmpeg -ss 0 -i first.gif -i second.gif -i third.gif -i fourth.gif -filter_complex "[0][1]overlay=format=auto[i1];[i1][2]overlay=format=auto[i2];[i2][3]overlay=format=auto,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" output.gif. I'm gonna do this as soon as possible.

Goldo02 commented 2 years ago

This problem was solved, for conversion of the same type, for example from gif to gif and from mov to mov there are no problems, but from mov to gif seems like there Is some delay, this however is negligible.