2

I know that we can install many applications to support many new video formats. My question is:

  1. Does Telegram have an internal video player? (Does the software itself come with a player?)
  2. If yes, which formats can be played with that player (audio and video)?

Note: I've seen that sometimes mp4 files can be played in Telegram but sometimes they can't. What's the difference? Is it related to bitrate?

  • Would someone explain in a comment as to why this was flagged as off-topic? – jonsca Jun 12 '18 at 22:07
  • Because it's question about mobile application not web application. From OP's post: (Does the software itself come with a player?) – Kos Jun 14 '18 at 15:29
2

The data provided in this answer is relevant to Telegram web and Android application Telegram X as of 10/06/2018.

Tl;DR - Video: Baseline 3.0 640x360 ~800 kbps VBR single pass Audio aac 128 VBR

While there is an official statement, it is outdated.

As the answer above stated: Telegram indeed uses H.264 and MPEG-4 is a must as a container.
If you upload a video file from computer, in the case the file exceeds 10 MB it will be marked as a file and will not be playable by Web app or Android app. It still will be playable on iPhone however. Bitrate and resolution don't make any difference in that specific case.

When uploading a video file from the phone, unless you specifically choose to upload as uncompressed file, which will disable playback, the Android application will encode your video for you (even if you used better encoding) to the following format:
Video: Baseline 3.0 640x360 ~800 VBR single pass
Audio aac 128 VBR
What can you do?
You can create a file on the pc, send it to yourself as a file, and upload it to telegram using your phone. As an example I can provide a video that was uploaded to Telegram using this method: Original video:
1:04:02, Main 3.1, 1280x720, 700 kbps VBR double pass, AAC 128 VBR total file size - 379 MB
After uploading to Telegram:
1:04:02, Baseline 3.0 640x360 798 kbps VBR (pressumably single pass), AAC 125 VBR, total file size - 424.2 MB

As a result, the video lost some quality and gained 11.87% to its size but is playable using the build in player which is neat, since it supports picture in picture.

2

I have found an article on telegram website about the media requirements. The article is for Blackberry but worked for me for Web browser and Android as well.

Video dimensions must be set to 480x320 (320x480 for vertical videos).
H.264 and MPEG-4 should be used as the codec and container.

After converting my video to 480x270 resolution (.mp4 format) telegram started to show it as a playable video rather than just a file to download (both on web and android).

telegram playable video screenshot

With this resolution my video file size also dropped to 8mb, not sure if telegram takes the file size into account.

I used resolution 480x270 instead of 480x320 to preserve the original 16:9 aspect ratio.

0

H.264 and MPEG-4 should be used as the codec and container.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.