Why AI-Generated MP4 Mascots Bloat App Bundles Compared to Rigged Rive Files
By the Charmotion team · Updated · How we write guides

An AI-generated MP4 mascot bloats an app bundle because each mood, loop and format is a separate rendered video file that must ship. A rigged Rive file holds the character and its states in one .riv that a small runtime plays, so bundle size grows with the art rather than the number of moods.
Key takeaways
- Each mood, size and transparency format is a separate MP4 or WebM file, so video bundles grow by multiplication.
- MP4 has no alpha channel, so transparent mascots need WebM or HEVC MOV files for browsers and Safari.
- A rigged .riv keeps the character and its state logic in one file, and the app picks a mood with a number.
- The Rive runtime is a fixed cost shared by every animation in the app, while video cost rises with each clip.
- Keep MP4 for sound-led films and opaque placements, and measure the built bundle before you choose.
Why AI generated MP4 mascot videos bloat mobile app bundle size?
An MP4 is a finished movie. Every frame is stored as picture data inside one timeline, and the file has no logic of its own. If your mascot needs an idle loop, a happy reaction, a loading loop and a sad state, each one is a separate movie. The app can only choose between them by loading a different file.
That is the main cause of bloat. A single AI clip can look fine on its own, but the cost multiplies by the number of moods, the number of sizes and the number of formats each platform needs. The growth lands in the app or web bundle because the clips ship alongside the code that uses them.
The frame arithmetic makes the scale concrete. Suppose a generator returns a 4-second clip per state at 60 frames per second. That is 240 frames per state, or 2,640 frames for eleven states, before you add a second or third format.
4 s x 60 fps = 240 frames per state
240 frames x 11 states = 2,640 frames
2,640 frames x 3 formats = 7,920 stored framesThese figures are arithmetic, not a measurement. Real file sizes depend on resolution, bitrate and how much the picture changes between frames. The animation file size benchmark measures real files, and this guide is about the structure that multiplies them.
How many files does one AI mascot need as video?
The count depends on transparency. MP4 with H.264 is a delivery format for opaque footage, so it stores a solid picture with no alpha channel. A mascot on a colored card can be an MP4. A mascot that must sit over a website header or a app screen with no box around it needs an alpha format.
Alpha support is split across formats. WebM files with VP9 alpha display their transparency in Chromium-based browsers and Firefox, and Safari has been reported to ignore it. HEVC with alpha was introduced for Safari on iOS 13 and macOS Catalina, and other browsers generally do not render its alpha layer. A transparent mascot that works everywhere usually needs both, plus an MP4 for opaque placements.
| Delivery | Transparency | Files for an 11-state set | Where it plays |
|---|---|---|---|
| MP4 (H.264) | No, opaque picture | 11 | Most players, on a solid background |
| WebM (VP9 alpha) | Yes | 11 | Chromium-based browsers and Firefox |
| MOV (HEVC alpha) | Yes | 11 | Safari |
| One .riv | Yes | 1 | Any page or app with a Rive runtime |
A transparent set in all three video formats means 33 files for eleven states, and the app still needs to choose the right one per browser. A typical folder looks like this:
mascot/
idle.mp4 idle.webm idle.mov
happy.mp4 happy.webm happy.mov
wave.mp4 wave.webm wave.movThe Rive column is a single file in the same table. That is the difference this guide is about: the video side grows with every state and format, while the rigged side keeps one asset and switches states in code.
Why does a rigged Rive file stay small?
A .riv file bundles the artboards, animations, state machines and data binding settings made in the editor. Rive's editor covers state machines, data binding, layouts and scripting, and data binding can drive any property from live data in an app. So the moods live inside the file as instructions, not as copies of the character.
Switching moods becomes a value change. The app sets an input or a bound number, and the state machine blends from the current pose to the next. The app does not download a new video for each reaction. Rive's web runtime is a WASM module that is loaded once, from the default unpkg CDN or from your own server. Self-hosting and lazy-loading the runtime, as covered in the Rive vs Lottie performance guide, keep that fixed cost off the first screen.
A rig is not free. A .riv built from a large raster texture, many embedded images or a very long timeline can grow beyond what you expect, so check the file itself. On Rive's Free plan, exported files play a Rive splash screen, and paid plans export without it. Read Is Rive free before you test an export you plan to ship.
The comparison is therefore not runtime versus no runtime. It is one runtime plus one file against dozens of video files, and the gap widens with each state you add.
When is an MP4 still the right choice?
MP4 is the better choice in several cases, and it is worth being specific about them:
- A launch film with sound. A narrated clip for a product launch or a press kit needs audio, and video editors handle that well.
- Social ads and short-form posts. Platforms take MP4 uploads directly, and the file is consumed once rather than kept in a bundle.
- Motion the rig cannot express. Camera moves, particles, scene changes and any AI-generated scene that is not a character with states fit video better.
- A clip a video editor needs. If the asset goes into a timeline for editing, a finished MP4 or an exported copy is the practical input.
When you need a video copy of a Rive animation, export Rive animation to MP4 or GIF covers the steps. For the format trade-offs by platform, the GIF, WebM, MP4, Lottie and Rive comparison is the wider reference.
The rule that holds across these cases is simple. Use video where the output is consumed as video, and use a runtime where the output lives inside the product and reacts to it.
How do you get a rigged Rive file without a motion designer?
One route is an automatic rig from a single character image. Charmotion is one such tool. Disclosure: Charmotion is our product. You upload one finished, coloured character facing the viewer with visible eyes and mouth. Sketches, photos, groups and busy scenes are refused before anything is charged. The engine rigs the original drawing so the eyes look around, blink and squint, the mouth changes shape, the body bends with squash and stretch, and ears, tails and antennae follow through.
You pick the animations, and each costs 1 credit from ten: launch, happy, wave, loading, thinking, sad, listening, talking, sleeping and attention. Idle is always included for free, so a character can have up to 11 animations. The output is one Rive (.riv) file with three state machines: CharacterViewModelMachine with a number property called mood, CharacterStateMachine with a number input called mood, and LaunchStateMachine when launch is picked. The mood numbers are fixed:
| Mood | Number | Mood | Number |
|---|---|---|---|
| idle | 0 | listening | 6 |
| happy | 1 | talking | 7 |
| wave | 2 | sleeping | 8 |
| thinking | 3 | attention | 9 |
| sad | 4 | loading | 5 |
Characters have no one-shot triggers, so a success is shown with happy and an error with sad. The output also includes web, React and SwiftUI code, a README and an AI_README for coding assistants. Video copies are exported on demand as MP4 at 1080x1080 and 60 fps, GIF, transparent WebM, transparent MOV and a 9:16 launch MP4, and exports do not use credits. Plan details are on the pricing page.
The practical split is to play the .riv everywhere the app can run a runtime, and to keep an MP4 only for the few placements that need a video file.
How do you measure the video bloat in your own app?
Measure the built output, not the design folder, because the bundler decides what ships. Work through these steps for each mascot:
- List every mascot file that reaches the build, including each size, format and state.
- Multiply states by formats to get the file count, and compare it with the number of moods the product actually uses.
- Read each file size from the built bundle or the deployed asset folder.
- Add the runtime and the .riv files to the Rive side, and count the runtime once.
- Test on a throttled connection, and check that transparent clips show over real page content using the transparent video checker.
To check what is inside a .riv, such as its artboards, state machines and view model properties, use the Rive file inspector. Compare the two totals for the same set of moods, and the answer for your app will be clear. If you are planning the states themselves, the Rive state machine guide explains inputs and how transitions are wired.
Frequently asked questions
Does an MP4 mascot always make an app bigger?
Not always. One short opaque MP4 can be smaller than a Rive runtime plus a .riv file. The gap opens when the same mascot needs many states, several sizes or transparency, because each of those multiplies the number of video files. Measure the built bundle for the states your product actually uses.
Can I turn an MP4 mascot back into a .riv file?
Rive's documentation does not describe importing an MP4 video as a rigged character, as of December 2026. The practical route is to rig the original artwork again, or generate a rigged character from a single still image. Keep the source PNG or SVG, because any rig needs clean artwork as its input.
Is dotLottie a smaller option than MP4?
LottieFiles says a dotLottie file can be up to 10 times smaller than the equivalent Lottie JSON, and the format can carry state machines. It is vector-based, so it suits flat art best. Check the runtime size and playback on your target platforms before choosing it.
Do Charmotion video exports use credits?
No. Video exports, including MP4, GIF, transparent WebM, transparent MOV and the 9:16 launch MP4, are made on demand from the character page or with the export_videos MCP tool, and they do not use credits. Character animations and AI designs use credits.
Sources
- Rive Editor, Rive
- Preloading the Rive WASM runtime, Rive
- dotLottie, LottieFiles
- Using HEVC video with alpha, Apple Developer
- Alpha transparency in Chrome video, Google Chrome Developers
- Exporting H.264 from the After Effects render queue, Adobe