HeyGen creates compelling talking-head videos — but the output is not directly usable as a Telegram video avatar. Here is the mismatch and how to bridge it.
The mismatch
| Property | HeyGen output | Telegram avatar spec |
|---|---|---|
| Aspect | 16:9 or 9:16 | 1:1 exactly |
| Duration | 10-120s | max 10s |
| Codec | H.264 or HEVC | H.264 only |
| Audio | stereo | none |
The ffmpeg bridge
ffmpeg -y -i heygen_output.mp4 -t 10 \
-vf "crop=min(iw\,ih):min(iw\,ih),scale=800:800,fps=30,format=yuv420p" \
-c:v libx264 -preset medium -b:v 900k \
-an -movflags +faststart \
telegram_avatar.mp4
The instant path
Drop the HeyGen export into @liveavabot. The same ffmpeg pipeline runs server-side.
Try it: https://t.me/LiveAvaBot?start=devto_article_20260513
Top comments (0)