Skip to content

README Suggestion #11

Description

@LisithaDiz

Reduce GPU resolution

To reduce the GPU resolution during rendering, you can adjust the parameters passed to the AnimatedFunctionRenderer((Parameters(1024, 1024, 30))) eg: 1024 to 512

Render the frames

  1. Install ffmpeg if you haven't already. here

  2. Render to MP4:
    Navigate to the directory where your frames are stored and run
    ffmpeg -framerate 30 -i frame%02d.png -vf "scale=540:540" -c:v libx264 -pix_fmt yuv420p output_video.mp4

  3. Render to GIF:
    Convert the MP4 file
    ffmpeg -t 3 -i output_video.mp4 -vf "fps=30,scale=720:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 output_git.gif

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions