Seriously, please stop. Please (explicative) ffs stop. Nothing makes me less impressed thana 45mb gif loading on some npm project readme.
Just... use the video file for a video. Amazingly it will work better.
GIFs are huge. Leave it as a video.
Yes, that’s the regular way of using palettegen and paletteuse. Not very useful though, since tools and social networks use video formats. Converting a video to a GIF which will be converted back to a video seems… inefficient.