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 tg_newcalls-0.0.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b14e8b0c2fb204f9d9042068a31a210f153578c6235957dd5e3013c5059f6c9 |
|
MD5 | d9ecec8ee2ab2c0d3e970c8e562d377f |
|
BLAKE2b-256 | 781629235560ed90eceb89d9ee8fded3b4d712c19a8b2fca69a69b53d120f7b6 |
Hashes for tg_newcalls-0.0.2-cp311-cp311-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e28fb5455452128ef2e28539b06830f8246ecb01db3d87acd170500f3367172a |
|
MD5 | 4ca3e0ffb9c7d3f82eaf1f19ab8d6328 |
|
BLAKE2b-256 | bb0a5274130f0d7cdace739de2f425c3a0e7d3a0cbb1a19ba44a71cc9ef5ce57 |
Hashes for tg_newcalls-0.0.2-cp311-cp311-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94929885433f8c8471a8846d6ca36efd3f362dbceeeb3be5bb7e05ab510de418 |
|
MD5 | 7570bf44958806c5f8a082dc11bfbcaf |
|
BLAKE2b-256 | 3b8506f32e217bf22547a3a40e2b9be394e0ae85719f2ea6f9e7aca177d26cff |
Hashes for tg_newcalls-0.0.2-cp311-cp311-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25e86904c131e648d0f2232a93679a8eae1eeae5875a4a978114a72243d6e4b2 |
|
MD5 | a724f0ff80cee0cc9f9f3bcca9582db1 |
|
BLAKE2b-256 | 3d4ba3a2566af8d5dc7b42e87236b68ed49a27c74aa3f6555e1fbfcaeb05dd68 |
Hashes for tg_newcalls-0.0.2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8fd204b966c9da0d337f0dc720e216659912e7f2afbb9c1741dd5b4f800c959 |
|
MD5 | 07813189a2c00914cd9339b09e3b2e50 |
|
BLAKE2b-256 | 0dcf1d6e7a2d419facdc82ec0aea63160c07b73140b4d8169c6433f52f1bed74 |
Hashes for tg_newcalls-0.0.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5df06e1739943f1f37372532256ed03aa16de014257987a0bdb27c9a8778b35b |
|
MD5 | 4c3dd7d71ed5ecaf25901a821ce3ff3d |
|
BLAKE2b-256 | 777df41a17eaba1dc0d704c92a34adb765ec4e81c75279f447a60d17fc678218 |
Hashes for tg_newcalls-0.0.2-cp310-cp310-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a00f72d63b7db047fc952f08e41ee6083372aa7a2c21fc37b06360ce0362019 |
|
MD5 | a0b32e981301c8d2ec5c3bf48d2c4ad8 |
|
BLAKE2b-256 | 56300239f67e07ff0e633316d8768b31e351d102fbba2d37a6623a62f500bfe8 |
Hashes for tg_newcalls-0.0.2-cp310-cp310-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52f1e5b5b9bf029dda7d183eef9c7acda5348e65ed0b5426260c2a1032cfac95 |
|
MD5 | 79e8049d27e25a4ae98150935e14dc5d |
|
BLAKE2b-256 | 7056b61ba7edd243348c6152777b1898d88e2a87b24d64d2f18fbd62fca96b52 |
Hashes for tg_newcalls-0.0.2-cp310-cp310-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 849aef80fd304c6c62cf4f74bb81a51440e8091430977e9e41ddbc5f49b80e7a |
|
MD5 | 1045330646fcd1e4edbd86cd935ee366 |
|
BLAKE2b-256 | 7be37387791d17447e421fe96e2ce6913574fff58507901ad060d372908447fe |
Hashes for tg_newcalls-0.0.2-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4714dabaff529e6b6c76f304ae985f5c965eced14cdd01bf73395e08be5eee32 |
|
MD5 | ad92562d65876bb290d1670f3e1227db |
|
BLAKE2b-256 | fc440253ce62dff5ad49d9f2b922d7ad7b65180fd5f1cb4b3a6451ec5799eae7 |
Hashes for tg_newcalls-0.0.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 897a5566ff7f78fb278069e8074f2e59ba0a4ffaf42e0d6fc2e65001a4134fb0 |
|
MD5 | 853c678006c3e168d8f8a15ddd18f94b |
|
BLAKE2b-256 | b92fa91de99b225f95f8d961ef45e4aae165345fed78af8ce7947c0221b16c41 |
Hashes for tg_newcalls-0.0.2-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eb7c603e362dea7a10b30fe712b6342c0ed4f4334fb02b80db74b896c0e80e5 |
|
MD5 | 02db9bca4932385d22521f915f7559b5 |
|
BLAKE2b-256 | 08f374eacee190c3430f757e4fcbf6506c2a9ffe358c533c4e7fcaa2909dd98f |
Hashes for tg_newcalls-0.0.2-cp39-cp39-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df8be0cc9e9ccf511fea0115c46e046312bb5832ee02af503772f883f326ad1b |
|
MD5 | 76a2cf1b476fe11269545ab7a32482c8 |
|
BLAKE2b-256 | 32b946c7da308b4ec0f9d2a8ad15c71a22cea303e492fdc5c9b47e0562169106 |
Hashes for tg_newcalls-0.0.2-cp39-cp39-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 684b77f8eca61a165bcb30cb4b173cb2137ee9267ec95e536a5a0cc55c8a7ba9 |
|
MD5 | 2b1f6f0105555beb84119350f428e9df |
|
BLAKE2b-256 | dcc074cc9865db984d6ab2bbcfb87cee40514ca4a9feb5510cdd5edf4a777288 |
Hashes for tg_newcalls-0.0.2-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c5d9010fbbe05296d14038eb21063053c74600faeb90b604b8ff841d3b1f4ec |
|
MD5 | 9daab32982033bb8e0cd284e4387e6fc |
|
BLAKE2b-256 | 99c74ce4de50be2a4d3aa91b410a8ae51d09d2eff7993e39867bb15548ea439e |
Hashes for tg_newcalls-0.0.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1169f5c398419a452c570810196a11df19767bdb0d7a5211a934e1ca6168181 |
|
MD5 | 25f87309b7cc0343763c6b9bceaf9012 |
|
BLAKE2b-256 | dcbb0b3f2d99d91f8c2240b5e4e9d67c96285393671def2d2b3810d29d4cb443 |
Hashes for tg_newcalls-0.0.2-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1f0b4768b6bf5c907c39aad428c785d63ebbe2782bb7372904698efa4fa6df4 |
|
MD5 | 52132c6d099a67316a9f91d10c7df2dd |
|
BLAKE2b-256 | 85cfe5b8e4dd0911ec12d87e37a1ced2338faa1828e9326a740398f9a987d3e8 |
Hashes for tg_newcalls-0.0.2-cp38-cp38-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ad6f175d45d875b85fc2503c1c0e0f2c4fed7a1bd30b165e72bb962b4a0d47b |
|
MD5 | 9ceb6498f80af884b68a836bc7aa4de2 |
|
BLAKE2b-256 | 3d42987100195b0fceebe546c025c3433ee786b48617ccd9ab97fedb3999704e |
Hashes for tg_newcalls-0.0.2-cp38-cp38-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9262d5ab528cdc269ab720107e5a3712893e9032b81563321abd2813f65947f6 |
|
MD5 | bf2f21357bc4ed39a7b4dfe4ddf84314 |
|
BLAKE2b-256 | 9865d235a89880f6c41735352f8f76582f6435817e9692136e18a044900f8454 |
Hashes for tg_newcalls-0.0.2-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00a9db75ee10b70aeb4e53f7779fd33a7f88556c1328066db3e98633557ccdca |
|
MD5 | ed427fe3c42937ca910c3c451f959154 |
|
BLAKE2b-256 | 0fbb84646aa4cd42fb7ebec48b5e4d0b27ebc5f3013635478a8cae794a3d22aa |
Hashes for tg_newcalls-0.0.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c147e3d0456d7d806082fb2d7f2eec22f6b2a0cbb94236a83955355bc088bbfa |
|
MD5 | 1f182439e043bbfab6b93ba972b3e442 |
|
BLAKE2b-256 | 3ce26d4b39e41b34a3d1f9197efd258fcaa9cec5fd0b0ec572321d806c0d56b5 |
Hashes for tg_newcalls-0.0.2-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36603988258709ffb360d39c26d04fe618c58cdad1ae0ddc504f821bd7fb0d59 |
|
MD5 | 0e330348245a839cd32a263de93f7e33 |
|
BLAKE2b-256 | 00f3d56bd28f6f761754f749aa215e06dfb911ac371164b76579ede412d1c315 |
Hashes for tg_newcalls-0.0.2-cp37-cp37m-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e59687a630a4efe7300a69de1c44b853aef50c142198bae72c2a343b59e56b8c |
|
MD5 | bc1305f19121a97ef969d2965a24f0b2 |
|
BLAKE2b-256 | 2b0010530fa6f15cbe63313fa23b77ced89242a4db7420a1943f109d9bbdb404 |
Hashes for tg_newcalls-0.0.2-cp37-cp37m-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be6659b73c8498262af85f5db1c176bdce322b945c1c74d7150e88485f9f3b47 |
|
MD5 | 75aeee4c8c97855cceb1ed916a1e8127 |
|
BLAKE2b-256 | 0b95cf0b67785757fb8946d6ab5416e9f87bbdecdc2fd2e2287032d10af5e4db |
Hashes for tg_newcalls-0.0.2-cp37-cp37m-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 249c302b1a10611ea55997a8c5269069d9eb3ee8037e9a3c2ee9fc235f4a0676 |
|
MD5 | 8d2ed3e70bdd28551b4bc7d64f8a27de |
|
BLAKE2b-256 | e6c418d585abfc6b57bb499429f2587ac5dc225892f576068c61b6af8fc0b32c |