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.
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.
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.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.
- 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 - 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
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
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.
$ cv convert photo.tgs photo.mp4$ cv convert photo.tgs photo.mp4Questions.What people ask about TGS to MP4.
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.