Modelling the cart pole (Inverted Pendulum) dynamic system using python.
pip install -r requirements.txt
python app.py
ffmpeg -r 60 -i %d.png -vb 20M ../sample.mpg
ffmpeg -ss 30 -t 15 -i sample.mpg -vf "fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 output.gif