No project description provided
Project description
A simple and elegant client that allows you to make group voice calls quickly and easily.
Examples
•
Documentation
•
PyPi
•
Channel
•
Chat
MetaCalls
This project allows making Telegram group call using MtProto and WebRTC, this is possible thanks to the power of NodeJS's WebRTC library and @evgeny-nadymov
What are the supported clients?
The supported clients for now are Pyrogram and Telethon, but we accept other clients too, you can open a pull request with the edits
How to install?
Here's how to install the MetaCalls lib, the commands are given below:
# With Git
pip install git+https://github.com/pytgcalls/pytgcalls -U
# With PyPi (Recommended)
pip install py-tgcalls -U
Conversion command (Video)
From file to raw video
ffmpeg -i {INPUT_FILE} -f rawvideo -pix_fmt yuv420p -vf scale=640:-1 {OUTPUT_FILE}
From H264/VP8/VP9 to Audio and Video
ffmpeg -i {INPUT_FILE} -f s16le -ac 1 -ar {BITRATE} {OUTPUT_AUDIO_FILE} -f rawvideo -r {FRAMERATE} -pix_fmt yuv420p -vf scale={SCALING}:-1 {OUTPUT_VIDEO_FILE}
From YouTube video/live-stream to Audio and Video
ffmpeg -i "$(youtube-dl -x -g "{YOUTUBE_LINK}")" -f s16le -ac 1 -ar {BITRATE} {OUTPUT_AUDIO_FILE} -f rawvideo -r {FRAMERATE} -pix_fmt yuv420p -vf scale={SCALING}:-1 {OUTPUT_VIDEO_FILE}
From YouTube Live stream to Video
Important!
The max resolution allowed by Telegram is of 720p at 30 fps Here also listed the scaling format
- 360p = 640
- 480p = 854
- 720p = 1280
If you have any problem with green screen or un-synchronized video, it can be one of these problems:
- Invalid FFMPEG command
- The video quality specified to convert is higher than the original video one
- Invalid MetaCalls video parameters
- If you're using fifo, the Fifo max buffer size is too low and this cause the lag problem.
Conversion commands
From file to raw format
ffmpeg -i {INPUT_FILE} -f s16le -ac 1 -ar {BITRATE} {OUTPUT_FILE}
From stream link to raw format
ffmpeg -y -i {STREAM_LINK} -f s16le -ac 1 -ar {BITRATE} {OUTPUT_FILE}
From YouTube video/live-stream to raw format
ffmpeg -i "$(youtube-dl -x -g "{YOUTUBE_LINK}")" -f s16le -ac 1 -ar {BITRATE} {OUTPUT_FILE}
Credits
Big thanks to @evgeny-nadymov for allowing us to use their code from telegram-react, and thanks to alemidev for helping to rebuild this library
This library is based on tgcallsjs developed @AndrewLaneX and pyservercall by @Laky-64
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for MetaCalls-0.0.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e42708ecfc21ecb552f8e5dd03e09865ece320560ca6046ce67f65010b64fd3 |
|
MD5 | 8f3b19b6d51541403b64e1e601b6e34f |
|
BLAKE2b-256 | caab54ed22559232a989b42b0890400df98459ba5423798f90f3c0ac038283b0 |
Hashes for MetaCalls-0.0.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7561ecfbbc077def021b162710d5c937384b1743f65a76c21fc7d192ae76dd72 |
|
MD5 | 733097362e183578cd577011bad82851 |
|
BLAKE2b-256 | f9fedd00183fa3a6d0a3403042496e9eb20194299a48215dddeb5b8233ede516 |
Hashes for MetaCalls-0.0.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cf7a56be8d3ad88b202efa80266bac88defd170bcfad09767ad4261d4cc1ff7 |
|
MD5 | 86f19eec40ec8282a36d590c48e11343 |
|
BLAKE2b-256 | 2cb04764e8aa442a3dc893445a9dfc9c707993d3a88a1e28a7acaaa8a4bdceba |
Hashes for MetaCalls-0.0.1-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 427c64de5596947a9ce68c3ab6a68d203182b45e785da769fb08ae862a0575d0 |
|
MD5 | 5359b5195c9d430658139c704d652640 |
|
BLAKE2b-256 | bfc3f0ee1b711a75386a29743e81f612aad5aa33840ba84e6d7d6e0eb604541a |
Hashes for MetaCalls-0.0.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8c32fd32f417012387447283481a96f91f8740f61a73c01dc3cb665eaaa78bf |
|
MD5 | 081486170a230632f87cf8acfea79e4a |
|
BLAKE2b-256 | a46b5149968557751575401d6fc63be5d277231364813024b0c5f60698581d76 |
Hashes for MetaCalls-0.0.1-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9839aae66277860ce2b6bd4c881dd4ed08eeb6ff0efd00d09be35d32a5e11966 |
|
MD5 | 4474a088e6c1bac23630ee3dbb9188bf |
|
BLAKE2b-256 | 06b015d29e5ff78613375bc317a1bd20e48537b7f1212b4cd216cac575bf4c07 |
Hashes for MetaCalls-0.0.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2151b65bf90db441142b34d104e11ecafeabc2a08f87a7b72250b88eb6e5c14 |
|
MD5 | 0b623968dfc0768322cbbe8ff9c1a7ea |
|
BLAKE2b-256 | bc659928b909a929c72c27c1b95acab30cc98cf2b0dccdcfdd01a3b4ae31bc56 |
Hashes for MetaCalls-0.0.1-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d6acbd3e891c96c1a462b3c73a720984814dffea1a95cfce7882deacc1c9dbc |
|
MD5 | 3f602ff04d679e7ab9c451bd27ae00e9 |
|
BLAKE2b-256 | fe7d69fcd180817f2ebf82e220159888fd58feece6530c7c3a07d745c14a180f |
Hashes for MetaCalls-0.0.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eacd54364f04c4b897a95b4a2930f2e72279fcbbccb2bd1af1dec697a43a893 |
|
MD5 | 0aaf94fe62c706c98610ad7261b4521b |
|
BLAKE2b-256 | 57cd7d1e603ddf048264c8df704b5225044241e1e872fa62e1e735a346eb050a |
Hashes for MetaCalls-0.0.1-cp37-cp37m-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60dfeb2fcc13f3bad3947d552a7050b030d98e3e77d400491d46f00f04e280f3 |
|
MD5 | cf831ea8b2ffb206e7bd94da4c1ab198 |
|
BLAKE2b-256 | 7c43b33faf1d2e64c0c0dbf1b92cb93d5bd8d1e40e4a95df2948bdb4b16bc1af |