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 Distributions
Built Distributions
Hashes for MetaCalls-0.0.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 985965f3f334d4d447f295fc0e35c167af4c19e8b97cf5651676df72b15285df |
|
MD5 | ed3a2fb70dae9b4c29499c7201f22057 |
|
BLAKE2b-256 | b35899df27f12cb329e3231f0722a6d3fbd4ffecb7561aa22fa2641aba22a08c |
Hashes for MetaCalls-0.0.2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04f64cccb5f685bfd4ff74cd69b71f631495e6f445df6ea3ca5d1035acbee18d |
|
MD5 | b84c34d972c7944937f1db63b3a9c151 |
|
BLAKE2b-256 | af3a70d93fc166183f1df28fa0b1389eaa2a1e75fb5312d2987e77b13c92d5c3 |
Hashes for MetaCalls-0.0.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd5e5a6acf0df961ef8505102d2194a3006db6f3571ef91473e10b1666b94818 |
|
MD5 | c1698e5e512116de6667c5e91f5adb69 |
|
BLAKE2b-256 | 48b4acccf3c215e9d1c240c39ed2991a78e36bce5c90f620e614c24a80174dd9 |
Hashes for MetaCalls-0.0.2-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6775786ad985c6c8afcbfccf696f291ef9f5ef6da0d35dcb9f805b9ec25a88c |
|
MD5 | a93f6d50e991957b4552dafc991431a8 |
|
BLAKE2b-256 | df06fac086a031e6185c5c211bfb9eeaa74fc646f3d2e9cb5af6496ab4c98682 |
Hashes for MetaCalls-0.0.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8083c5c6d49e88d758f6a1061c860d3490ebdb55d00dfe4aaa9557ca22f4cc90 |
|
MD5 | a0bfcf83348a3297a77e6edec52169af |
|
BLAKE2b-256 | c8dbd1a675d92a6d0aaa575a35d446ccff9f6bc2ee3e8284ae1e4729764040ed |
Hashes for MetaCalls-0.0.2-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 606f669854e20cd97cc47f800807acbbae06cfc69a624a3c147bd487d8974386 |
|
MD5 | f8ed60195548a499a860de312b63896e |
|
BLAKE2b-256 | 16c0b03f2e4f08d371ae4bb0e9374fbc70d2f3441c78496df8ce294e6d68eab2 |
Hashes for MetaCalls-0.0.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38fd652a44e3191e533420798336697e01178c3fa3a144a6dbe14741b687b0da |
|
MD5 | 63419ee1acd2843255bae34611bf2332 |
|
BLAKE2b-256 | de827a695587f1551f2dce3c1b2fc0d34b81713e00fce8722bb25b9131d190ea |
Hashes for MetaCalls-0.0.2-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28f89cc70a2ff6a65422d06b4244ad50b3ce5809a8f8fd23da101968e10f3f39 |
|
MD5 | 4bfd155e8f0fe42a951cb53f752a4745 |
|
BLAKE2b-256 | a7205adfb56a098960c8b339b687794875253f7cb5f160c2792d972448922924 |
Hashes for MetaCalls-0.0.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aab13dbae86ae3cddb9e8962d7d172c4ed60472c0540d87dd799452ce07adb19 |
|
MD5 | 3951308964eae74961e1c611e84f2ae9 |
|
BLAKE2b-256 | 053253512572fc5e13ade5424b33ccbd31d0b737d596773a1f7fdaed66155a26 |
Hashes for MetaCalls-0.0.2-cp37-cp37m-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 136c055f72d0e0c8e2706c6adbe1cdd1178a063ff0859a498d4ed7de06f92082 |
|
MD5 | deab4b09774fa382364ec3847d3f9f78 |
|
BLAKE2b-256 | 44a0b0736f6937a8d38bde81bf2824adf6558a9676f6b55d112d3bfd68ecfd8f |