Skip to content
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

Make gif output conditionally based on the interpolated frames. #883

Open
wants to merge 3 commits into
base: automatic1111-webui
Choose a base branch
from

Conversation

gravitate-dev
Copy link

@gravitate-dev gravitate-dev commented Sep 14, 2023

This is to fix a bug where make_gif is checked and RIFE/FILM is applied. The output gif should be based off of the RIFE/FILM output.

Without this change, the make_gif will generate a gif from the non interpolated frames which defeats the purpose of RIFE/FILM if a user wants a gif output with highquality with gifski.

@gravitate-dev gravitate-dev changed the title Update video_audio_utilities.py Make gif output conditionally based on the interpolated frames. Sep 15, 2023
@gravitate-dev
Copy link
Author

Ready for approval

@andyxr
Copy link
Contributor

andyxr commented Sep 15, 2023

So, if interpolation is on, the GIF will be interpolated. Is there no opportunity for the user to see the non-interpolated GIF? E.g when we interpolate a render, we provide both the normal video and the interpolated one.

@gravitate-dev
Copy link
Author

gravitate-dev commented Sep 15, 2023

Well if interpolation is on, I frankly do not see the value in adding both the non interpolated gif. and interpolated gif.

Reasoning:
I did this because why have a 10fps gif when u can have the 20 or 30fps gif? I do not see the point of generating two gifs especially if the user explicitly setup the interpolation options, they definitely would want the interpolated one

@andyxr
Copy link
Contributor

andyxr commented Sep 15, 2023

Well if interpolation is on, I frankly do not see the value in adding both the non interpolated gif. and interpolated gif.

Reasoning: I did this because why have a 10fps gif when u can have the 20 or 30fps gif? I do not see the point of generating two gifs especially if the user explicitly setup the interpolation options, they definitely would want the interpolated one

My reasoning is that the user is then given the choice of keeping their original art, or using the interpolated version. We keep both the original render video and the interpolated one; why should a GIF be different? Just wanna make sure that we're not taking away a feature and replacing it with something else. Does that make sense? Else the user will have to do two renders if they wanna keep the original to compare it with the interpolated version.

@andyxr andyxr requested a review from rewbs September 15, 2023 16:37
@reallybigname
Copy link
Member

It also doesn't show the RIFE version in "Click here after generation..." area, and there are issues with upscaling and audio or something as I recall. Basically, those are all post-processes to the actual process, which includes GIF output. I suggest that rather than convolute those processes more, we just make a "video to GIF" or "frames to GIF" option. Probably better to just add a GIF option to the already existing "Frames to Video".

As I recall, GIFs are limited to 30fps in the code. And, most people are using RIFE to go above that. So, that would also have to be addressed with errors, or just automatically slowed down to 30fps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants