Video encoder for Lens Studio

I’m not sure how long this has been a feature, but I just discovered that we can use mp4s as assets in lens studio! There are some specific rules for encoding the video files, which can be a pain to remember. You can find them in the docs here:

https://lensstudio.snapchat.com/guides/2d/video/

  • File format - MP4
  • Codec - H.264 / AVC
  • Resolution - Your video resolution needs to be greater than 16 x 16 and smaller than 1280 x 1280. In both dimensions resolution needs to be multiples of 16
  • Size - Less than 10 MB

This script takes care of most of these specs (except for the file size limit, just use your eyeballs :eyes: )

1 Like