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 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 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.9.7-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60db5b9ca027405ff08ababf2a5d3de9cea9de4b33815a747979db18b232238a |
|
MD5 | b4e72d3a4d5fe641643ed334bde72b62 |
|
BLAKE2b-256 | 93d57fecc46f9bcde1f497d4074348f72915b726d4fed31a80b169a6b25b109e |
Hashes for py_tgcalls-0.9.7-cp311-cp311-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6ef5a3971cd672988a0876d4f10a69f16164f4ab20f9ee63c4b5c426b80d553 |
|
MD5 | 6a7bea5bf17358cc919d2144301d4e6e |
|
BLAKE2b-256 | 132db6c556e815f185075eeb747b1f89e8c6198b442010eeecc7e99ccc9d17d3 |
Hashes for py_tgcalls-0.9.7-cp311-cp311-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0844d8a59689cf03b2284bff73530feb498292e2828a3793861ff2efb6f10e9d |
|
MD5 | 0dd043178225e3c60ef208951a422e7c |
|
BLAKE2b-256 | 15eb17bf963dc21cc349bfa3a3014327afc2adf00ffd742a707e273ce52a86aa |
Hashes for py_tgcalls-0.9.7-cp311-cp311-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 951dfbebdfa3724454073a9232b1d2f2dba2d1b0e0a51dc661918d997e674f22 |
|
MD5 | 89d82b3ec28de36ae5b9101539ec2e87 |
|
BLAKE2b-256 | 2e33b9eb969df9c01507698497acb21f42916ac000c0b9f3e5bc66c50b0d0483 |
Hashes for py_tgcalls-0.9.7-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b340cdca70badc7a0cd348f0542a438d0de9c85c51e7b5f759b882d9b790249 |
|
MD5 | 8f17ed33caf10853bd83f0722114e5c9 |
|
BLAKE2b-256 | f3e3fa7de6897f125b4521dc1ff402b3c7aa0f82c8de0e006127df8e5637ddac |
Hashes for py_tgcalls-0.9.7-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 778e1a3dbff4cfcdee764237dfef3d425496f9b67f076bfecae68c4a44d1ab13 |
|
MD5 | e00db208c2459869c43061db51bafa82 |
|
BLAKE2b-256 | daf1f77d11b1d0d1291b9e1d43d31bbaf3cc7463583fc9e8f40cbf03d2279815 |
Hashes for py_tgcalls-0.9.7-cp310-cp310-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a92102f83520bf0806f93289c1cb9a0b78555c701c32afcd21f548bf19472411 |
|
MD5 | d321f111a2c210189e1895e9a42de846 |
|
BLAKE2b-256 | 0dfe38a2d60f4c876c315052e2cd1922898cae5334e012f70e1d1de7edf5262e |
Hashes for py_tgcalls-0.9.7-cp310-cp310-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ee3ef134c712d9191e2e9091b3d5e96d9e2f198104a2b9ac710db9b594cdddc |
|
MD5 | 301228fd30f810787f0fe22f5c884ee4 |
|
BLAKE2b-256 | c332c16f6e6946b85a2fa63583e2cb0cb473bffe0ec09d7976532eb8bcaee68a |
Hashes for py_tgcalls-0.9.7-cp310-cp310-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff89b01eaa4f54b198966831c962b67e847461e2104c90f27455043448584400 |
|
MD5 | 38afa2048419907b599e95488a6977cd |
|
BLAKE2b-256 | 5217684708ff6360bb44233a0ecc6de68bf79d073182c32b106ba1bc1e994993 |
Hashes for py_tgcalls-0.9.7-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fa7f7cf4cb5e666a388e6af7162888afe4dea815875e50731acf9b289af8a51 |
|
MD5 | 20d087d6216bcd14e53dd966678f28ae |
|
BLAKE2b-256 | a98d087748f2b074f0c501738ce05f428b18951d90c2e9e59125b8a26fad1a26 |
Hashes for py_tgcalls-0.9.7-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66e13bdbfec2ad796e8c0702be32c384174630874323e5b990da57de8a5ca280 |
|
MD5 | efcfcd84b4740a990aa4b0197d454fe4 |
|
BLAKE2b-256 | 472ff5b6ac9974029f28d593a36175fc893e5e639e7072785bd11d30eb02fa26 |
Hashes for py_tgcalls-0.9.7-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df9ac96254852a4b9f31e42265c13e1ebfc7fa626e86fecec4a279c8aa2cd4ec |
|
MD5 | 0565f701ab7d5f3916d18d86d0cb55ce |
|
BLAKE2b-256 | cf576dc256ddce0bf783d7eb051bf3621db9a8d34faa943a1cb594fa4e7445ee |
Hashes for py_tgcalls-0.9.7-cp39-cp39-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad50f10528482e94b0966bf3b9f92c9932c15ccff4bbd3dcc97f7f9ff836fdb7 |
|
MD5 | 38cc4f500a905733b2c0b59581b9b5f7 |
|
BLAKE2b-256 | f4e6690673f2833d72a1ec77b3ae237a6dd384dc14d4d70d71d1cba7578d8de4 |
Hashes for py_tgcalls-0.9.7-cp39-cp39-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed2a986db04bbbcb169f546947a2c4b2312a4e1f952f8fac73438b5deac60355 |
|
MD5 | 88ddfcf2d42b61b2f05a956ee0bc49c6 |
|
BLAKE2b-256 | cc890c4b4f8f7d777571ce148b3f658278b6c1065cad81445aa276d053aea6a7 |
Hashes for py_tgcalls-0.9.7-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25718984d112222ceb1b3678be573feafd93fd3edd934165e99fccd895e0c2dc |
|
MD5 | f8fc35f46551fffa69e7e5b312adb48e |
|
BLAKE2b-256 | 55a3fd54a9d72a68dc34f25a54585be05f420698a931e135044b47f639d299ea |
Hashes for py_tgcalls-0.9.7-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 923e64e8a6bf305b7b6041bd22e6cf568d10e35b04ccb575c50191683dd57840 |
|
MD5 | a43f06077b689566542747e3765558a6 |
|
BLAKE2b-256 | b9af468ddd6a63e6b131744d680d7844fa670fd50f51486e326b5c269a786220 |
Hashes for py_tgcalls-0.9.7-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d6b582175533d7c58db3cc1293eaeefdf194ef805c3a5a276faaf2e4c35d09b |
|
MD5 | d9315dff762fb8792fd9062ee5e8b01c |
|
BLAKE2b-256 | edaef0192b5864cd0ee11f8f5150a824dc639f0167b0c71bb75f25c51b84c37b |
Hashes for py_tgcalls-0.9.7-cp38-cp38-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c4dd71d2fe199aaee6bd5d54eab3c1368be4b9df32e42c91d110544ddce9489 |
|
MD5 | 91793b5bd5e081d2eeb974cb8d409050 |
|
BLAKE2b-256 | 7349944a6469856cad577968184a5377c3d45eb98983756e2f6391a1e3a3a739 |
Hashes for py_tgcalls-0.9.7-cp38-cp38-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9999059125f62ad1f4e71e7496a8ac96ea06a9d7355389927a03b99def90df9 |
|
MD5 | 32e7e4fd47a40a81f81ee59edeca421d |
|
BLAKE2b-256 | 99ec5aa110a17cc1464291b752322ee2fdedd0ae208fd3cf064500c41187e1f5 |
Hashes for py_tgcalls-0.9.7-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea2c687c13d484e87b5ff966172fdb65b34e40b2c923ab8586c246c88869a587 |
|
MD5 | ca5948f089adc1a1aca7ba2328b367e0 |
|
BLAKE2b-256 | 99345f35145a22911dbc98d88ca3fcd034f59a92e7841d197792d2033a06177f |
Hashes for py_tgcalls-0.9.7-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d84f1cbc8811c03ff5fa86f4a4af9259790ee0535f34f9921362c993268d3423 |
|
MD5 | 9932ff12b1ff77eeeeabe9e13f2c4eae |
|
BLAKE2b-256 | c9aa3f1b936763c1ca9782bf6616fd8e9ee149cbbcadae258091b0a7dcb3566a |
Hashes for py_tgcalls-0.9.7-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d24de8c58b6fa481964f9e6b478432ce0546b7df7f578e03540f03f983674b09 |
|
MD5 | 83ec97afee295d5bb1d6abb67bedd5d4 |
|
BLAKE2b-256 | fd3a447f3a1c51e3b64074d17391c146165cac605075518458d3af9a379f471d |
Hashes for py_tgcalls-0.9.7-cp37-cp37m-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2a03e5e1ed53a133ce845cd7c8fb7610358c13e026b80fbf06699d71a5d09b3 |
|
MD5 | c6df98a5a90b5ebde8893c9b0b31eaf7 |
|
BLAKE2b-256 | 7e99e6b92e7958bc35c15fda65f99d3669f17d9af6af9e92b267ecfa969f92d3 |
Hashes for py_tgcalls-0.9.7-cp37-cp37m-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3137cfc43c32e3b5d05c731ce5a27ca9ee0fbf9bcabb37c660a784000f82654 |
|
MD5 | a00d6beac1e86c52dffc4db3e0319696 |
|
BLAKE2b-256 | 22a4131b7042ef051bb4371ff06c12c5852588b569b6024bf0475966377918bc |
Hashes for py_tgcalls-0.9.7-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4047453fb9f3d37fb49e147951d82b06a353a27c8882a4e7a7be9846235694cd |
|
MD5 | c32ed0667ec4746bc12f98664af22401 |
|
BLAKE2b-256 | a51e9bb555a3fadae4cba3924c85585f351fbce11e420e434e6e2be07c03996d |