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
PyTgCalls
This project allows to make 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 PyTgCalls 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 PyTgCalls 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
Release history Release notifications | RSS feed
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 py_tgcalls-0.8.6-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fd18b1afb9b5031af016136579ad6961bc513c6f9cf045bcfe7523da66fd0bc |
|
MD5 | 658a21d2d52625822943c1c89fab2f1f |
|
BLAKE2b-256 | 76563cc00546363acd15e548033a4d9460e8d89e7b90c3f19985e55f530d8ae4 |
Hashes for py_tgcalls-0.8.6-cp310-cp310-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf724e6283e3dc78d4a6a68e7422788b223551f3959418eed5cb008439342cfa |
|
MD5 | cbee0101aaf87a78079af1587c405ddd |
|
BLAKE2b-256 | e244e472440601bee5fefcdfbef10baf7d0445be7c7632473fc8ad5d22a82963 |
Hashes for py_tgcalls-0.8.6-cp310-cp310-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f880146520502f720af4e9d9a1382a9883cb956b5655289b46040544721cc75d |
|
MD5 | be1dead9af6f43f243767fcff9037604 |
|
BLAKE2b-256 | 72ac78b60ec200081ae075ef095268c235bd80ea1d09737e9720256217ea0aa9 |
Hashes for py_tgcalls-0.8.6-cp310-cp310-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d18fe2323eff12955f02bf17c093267b65fc3e1a98b80d46bdc0de363e8e8e9c |
|
MD5 | 9bacd876050cbb9af3b028e15c111c88 |
|
BLAKE2b-256 | cc03e6a1d13723b920b47eee30bc91d5df03693c351e36dcd2edbcddab53e19c |
Hashes for py_tgcalls-0.8.6-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbc6ebfe8775195ff7f536bdb8a2e1151ce2ebdffe886b9469f3f863951bf279 |
|
MD5 | 4665eec86910a8e8fad9e44bffb5b59e |
|
BLAKE2b-256 | 8f81ce5acdfd679679868ffec9b09d925dfd74afb6d9c3ddd69cd00ded556a1e |
Hashes for py_tgcalls-0.8.6-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63de824ebdb345b220b128e2793f480e30052d054bb2dd070acf978b56f6d690 |
|
MD5 | 95de1985e182475414c5c48f10e7c684 |
|
BLAKE2b-256 | 84f20c2b602862692ddcfdd87635e617ab37d3ccfb6a167ccdf4236628bbea47 |
Hashes for py_tgcalls-0.8.6-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e74c687c8576838a1414992a13fae966636dc11fdc96b97f06cd876d474da1f |
|
MD5 | 8ec33b47daa03337c2e37610d268b90c |
|
BLAKE2b-256 | 25b43e78e3a9b9574fba1d7cb4d01d1ec9cc044bcbcad0ef25ae83673f919743 |
Hashes for py_tgcalls-0.8.6-cp39-cp39-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89b1e8da33b6cb407f57b5991ad309f093089c6064b478a2313fa11681b14b0b |
|
MD5 | a0d63f189db891671049867ba346058d |
|
BLAKE2b-256 | 5e8a941ab55ebe1efa1e6727c628a69a7be1282f92d41ac70d63f322bc86a66e |
Hashes for py_tgcalls-0.8.6-cp39-cp39-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b17e47e8d7e4bbcf3d2a69697bd97953eb087d864d0bed25a975f75bcb20bb7 |
|
MD5 | 321770f9a6a9121186fa60d3d12a3b43 |
|
BLAKE2b-256 | 3ade6867bed67e3d648a2e760e13852005edacde843c162218f7155750ce07ca |
Hashes for py_tgcalls-0.8.6-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 530c07fb346be026a77fe6303981078df91c6a974d1a84618eec30203b7ef9f1 |
|
MD5 | 2a838f6ae984513b93a87fdcef2342a4 |
|
BLAKE2b-256 | 2d1a816a577c903f7f334f8be3cf56e3a0c8ea4f59aede21832ebedc9e8744b9 |
Hashes for py_tgcalls-0.8.6-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02a4999017b4d0087244d236cfd523043b3da0dc0d1e5f6d33b2654188c1d45c |
|
MD5 | 195ef4ccaa8eabdfdd6171d1dfcda0c6 |
|
BLAKE2b-256 | b723360d0bf52ebc5bed43d2220471eb5b3d7668251ea7be43b13f09104dab95 |
Hashes for py_tgcalls-0.8.6-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c697bfdaa9f85c8c8e64a6c2856354708f7bddee05b49df707253f316cc20cea |
|
MD5 | d6bb9f3e60d49e3de95a690b6cdd1b98 |
|
BLAKE2b-256 | 9acb49f8ba0e2581f969500ee66bb27162edeecfc0675a31f1171260680aa10d |
Hashes for py_tgcalls-0.8.6-cp38-cp38-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97d678de4cbf2650695edb43ecc6668363a693bc1cb5591f5f36d0b4812edc4d |
|
MD5 | e8164f9c4f0f27d6fe9d06bdfbd67178 |
|
BLAKE2b-256 | de5abe1b93ba865bcf10ecdfbaf4709137fc4564682926cdf54747a00f6d29b1 |
Hashes for py_tgcalls-0.8.6-cp38-cp38-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6644e169b7cb00c61b30fa79267ec5450f22b8ab8582f29c083e227145ca39f3 |
|
MD5 | bd0b01ce5ebbcdaee2149e1e412dba36 |
|
BLAKE2b-256 | 2e6cb29cb4c293ece16f95fb9977e4dd15222fb9173d002b98678b6c66be59b2 |
Hashes for py_tgcalls-0.8.6-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbf73850e593046882e93ed4d74eab4639e61b92c1262be3da1b30f3a250db8a |
|
MD5 | 35e4cc9825853f49b30fcfcbcb6f7c86 |
|
BLAKE2b-256 | 1b27af72f1e2f18ff3417389b0c7afdf1c4dd1ad9c0fd28fbfef327ec72c6fbd |
Hashes for py_tgcalls-0.8.6-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cace75f245fc657e22494cc970b9cb9bc8bc34ea366ae606f1e26066eab82863 |
|
MD5 | 9a6242685ec043de2abb84fe1c7f3848 |
|
BLAKE2b-256 | 436b8ae44c8e6fd4c86bf3b5be81bc4fbbef378550b4500664a5c8aac3272410 |
Hashes for py_tgcalls-0.8.6-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d1bbdb8bce2667a4e3cc6a25ac10dfcd4bef4739e702cd637f5969d08ddbcc1 |
|
MD5 | eccebefeae28e6950ce303d12d8833eb |
|
BLAKE2b-256 | 4bf7224cb0ceb82be232ac67f6a15595a115cbb491b5107ca4aa707a5c2d6c8a |
Hashes for py_tgcalls-0.8.6-cp37-cp37m-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82ddb11039c476dad4a4b90033e3ad6c7f32f6dec562fa4b811c73023774436a |
|
MD5 | d1fa054eb7dacd590e21cdbc2578fce4 |
|
BLAKE2b-256 | fdcc7df830368ac0d81bd202c0ea2a494289a50511ae1359b4514187aab78bca |
Hashes for py_tgcalls-0.8.6-cp37-cp37m-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a91df8de8a652f65017c51abb99d6a0b35a58bf6df1347602c54003cc6371b6 |
|
MD5 | 2486fc61b3ac0731c569d672f8a092e1 |
|
BLAKE2b-256 | 528461219f5166c4045b956e9944d2c5ca390ef0a346c6cf474ef5a9d40fac41 |
Hashes for py_tgcalls-0.8.6-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20e64cf0d9164413c92cde65ad0a3ecb77e28b5d4d44b94ee9b87c3008491b39 |
|
MD5 | 60f62b90b9ced0f78b410b383ea610d9 |
|
BLAKE2b-256 | d3f4c7cb4528196b8082cf0690f10f922befecb8d4cb39d115f39718bebe5316 |
Hashes for py_tgcalls-0.8.6-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c9006877977e2328bb23daa23609e574c43cd9924ddbc77d5b2b3768688f042 |
|
MD5 | 7bf6974d9ee41e195bd0d61badd57c74 |
|
BLAKE2b-256 | 0e888b980c5d1cad3dbe5597144c88c7a0b653f24ce09a6678cf7029be66a60b |
Hashes for py_tgcalls-0.8.6-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0772a40d814553a30181857c6ef46f3759299ddb6b00058f85e073c63060729e |
|
MD5 | 0c7eaea2ccc06d32ed0b21e78fddcad8 |
|
BLAKE2b-256 | ec6f73616b262686b5cc0e98fc8aa63bee69da14d84633ba6849aa9897ba8131 |
Hashes for py_tgcalls-0.8.6-cp36-cp36m-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a02b2ba195b9fbce0031f47507d2a6bf50b98dd553dbd16ad72100f62735454 |
|
MD5 | 1f79f9413fd3e3d918b493cc2b585fad |
|
BLAKE2b-256 | 247cacfee94567bfcf01fb11208f5e9d1153065d59ca32f8c9d6ca3682adafb6 |
Hashes for py_tgcalls-0.8.6-cp36-cp36m-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c913362fd48c16cf4b4dce18e1cad238bd795125bc70283f9562589a1dbf831a |
|
MD5 | c7bf301f317fa6dd75efd4f712906f2b |
|
BLAKE2b-256 | 1a383e1b25a4d0189c27c9fa3dbabab762ec0a0755b75b4f9e56a3e5108ceb6f |
Hashes for py_tgcalls-0.8.6-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c9f230973c4eacb133611554731efe5a3a84464ab72e8f605353f503eab6611 |
|
MD5 | 6b7e9f006987d9bb9d30aaf7c03e39fe |
|
BLAKE2b-256 | 511c46774e188aa0cc2f746de9eb630a5587e09dc0cb73c9088d12a80111f075 |