Convert TGS to MP4

Turn TGS images into MP4. H.264 video on white at 50 frames per second unless video.fps says otherwise, every frame keeping its timing; the video does not loop by itself.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop TGS files on the dialor turn it to pick what to do

A Telegram sticker as an MP4 video.The animation plays as H.264 video on a white background, with its timing kept.

  1. What you get

    One MP4 file with H.264 video. The animation is drawn by the Lottie web player at its own size, or at most 1280 pixels on its longer side. The video runs at 50 frames per second unless you change it, and every frame keeps its timing.

    The background is white. The video does not loop by itself, so it plays once and stops.

  2. What changes or is dropped

    Expressions are not run, so values they compute keep their keyframes. Fonts that the file links from the web are not loaded, and its text uses an installed font instead. Sound is dropped.

    An animation longer than 60 seconds or 1,200 frames fails with resource_limit.

  3. Options

    Set Frame rate (fps) to a value from 1 to 120. Fewer frames make a smaller file and choppier motion. 24 to 30 looks natural, and 10 to 15 is common for animated pictures.

    Set Speed to play the animation faster or slower, from 0.25 to 4. A value of 2 is twice as fast and 0.5 is half as fast.

TGS and MP4.What each format is, and the options this conversion takes.

  1. 01 · speed

    Speed

    Plays faster or slower. 2 is twice as fast and 0.5 half as fast. Voices keep their pitch.

    0.25 to 4
  2. 02 · video.fps

    Frame rate (fps)

    Frames per second. Fewer frames make a smaller file and choppier motion. 24 to 30 looks natural, and 10 to 15 is common for animated pictures.

    1 to 120 default 50

The formats

From · TGS

Telegram Animated Sticker

A Telegram animated sticker: a gzipped Lottie animation, 512 pixels square at up to 60 frames per second.

Extensions
.tgs
MIME type
application/x-tgsticker
Kind
Images
To · MP4

MP4 Video

The most compatible video container, usually H.264 video with AAC audio.

Extensions
.mp4 .m4v .f4v
MIME type
video/mp4
Kind
Video

In your code.The same TGS to MP4 conversion through the API, for your app or your agent.

terminal
$ cv convert photo.tgs photo.mp4
$ cv convert photo.tgs photo.mp4

Questions.What people ask about TGS to MP4.

01OF 04

No. The video does not loop by itself. It plays once.

50 frames per second, unless you set Frame rate (fps) to another value from 1 to 120.

No. The video is drawn on white.

The animation is longer than 60 seconds or has more than 1,200 frames. The conversion stops with resource_limit in either case.

More conversions.Other ways in and out of TGS and MP4.