How can I successfully convert an MP4 to a JSON file for Lottie?

I am trying to convert a video into a JSON file for a Lottie but it for some reason when I convert it the JSON file is blank and doesn’t work. I’m wondering if it’s because it doesn’t recognise the video and needs it done in images but I don’t know how to get every frame. It means a lot if someone can help.

For video to images to “lottie” svg:

https://www.google.com/search?q=lottie+svg+convert+mp4+to+json

https://isotropic.co/tool/video-to-lottie/

Good hunting.

Technical:

Converting a video format directly into a text format is one of those hacky things you shouldn’t think of if you don’t already know the “why” of why that’s something not to do.

A sane json file scheme would normally only contain the url/directory-path to a meda file location such as MP4 or images.

If it’s in the files admin get the cdn url, see the shopify help docs.

https://help.shopify.com/en/manual/shopify-admin/productivity-tools/file-uploads

If its in liquid see the dev docs for the host files filter

https://shopify.dev/api/liquid/filters/hosted_file-filters

Otherwise for images , but not video, convert the images to base64 text encoding.

If starting with video make sure the initial video size is as optimized as possible , then do the same for image sizes , before converting them to base64 text encoding with some tool.