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 Version 0.9.7
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
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
File details
Details for the file tgcall-0.0.1-cp312-cp312-manylinux2014_x86_64.whl
.
File metadata
- Download URL: tgcall-0.0.1-cp312-cp312-manylinux2014_x86_64.whl
- Upload date:
- Size: 19.8 MB
- Tags: CPython 3.12
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2901c187d6fdd0e3916c40663e0d43e6e85528f8fe70a458dbb15f7228d1d0f |
|
MD5 | fa0c5d7363e2d000f2f9f08c5523c4d2 |
|
BLAKE2b-256 | 4c1aaf9084eeecb8432c7e906b94d2372d88474b9b5f2596eea9c1611fae4ae7 |
File details
Details for the file tgcall-0.0.1-cp311-cp311-manylinux2014_x86_64.whl
.
File metadata
- Download URL: tgcall-0.0.1-cp311-cp311-manylinux2014_x86_64.whl
- Upload date:
- Size: 19.8 MB
- Tags: CPython 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 712ecc54e968ef0c191711bfa3db600c4b0dbea3c03d1f0b8742e642ceb86df3 |
|
MD5 | b250db6b5f59bc1851d3ab3c64316fea |
|
BLAKE2b-256 | 422fd76d28c70e67087142fe2f700f0a23b36099c7989c4758bbb0f3af6f4f5d |
File details
Details for the file tgcall-0.0.1-cp310-cp310-manylinux2014_x86_64.whl
.
File metadata
- Download URL: tgcall-0.0.1-cp310-cp310-manylinux2014_x86_64.whl
- Upload date:
- Size: 19.8 MB
- Tags: CPython 3.10
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6031ef54f5082a849d3aff76dbe7b5fca2e87b60cd61bdc77c413b4c9da7ce42 |
|
MD5 | 8502e709eb47a2da3fe50db52010e53d |
|
BLAKE2b-256 | 5c2fa3872c47e428f675d5fda99af13356546a25b7439da29df0cc059a6061e2 |
File details
Details for the file tgcall-0.0.1-cp39-cp39-manylinux2014_x86_64.whl
.
File metadata
- Download URL: tgcall-0.0.1-cp39-cp39-manylinux2014_x86_64.whl
- Upload date:
- Size: 19.8 MB
- Tags: CPython 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8aee45aa15ee0423d57e3a2a7bfe8c816cb7b6f2cd67e924a0fe1dffe524df6 |
|
MD5 | 03e91eb417d06f0f4410dd53f18615f2 |
|
BLAKE2b-256 | 6a9ae053dacebb06616382a84194c5210bf2bf21f400f07be7ee8f420b55be8e |
File details
Details for the file tgcall-0.0.1-cp38-cp38-manylinux2014_x86_64.whl
.
File metadata
- Download URL: tgcall-0.0.1-cp38-cp38-manylinux2014_x86_64.whl
- Upload date:
- Size: 19.8 MB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38d034cb72ebea70b4869518a62882f8425613a78f55051301c0806862539d8d |
|
MD5 | bd11540e1de3b6a7784fc2cb49b6d1c4 |
|
BLAKE2b-256 | 6392bb1a9cbcda505b582feba3df97ff7bc5c1ddd08164a522bd7c047d7a12a3 |
File details
Details for the file tgcall-0.0.1-cp37-cp37m-manylinux2014_x86_64.whl
.
File metadata
- Download URL: tgcall-0.0.1-cp37-cp37m-manylinux2014_x86_64.whl
- Upload date:
- Size: 19.8 MB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c7fd0cd01bfac0504f8547ef72ae7e3e6b754ff9bad8e131974243efad36fbe |
|
MD5 | 039a925a19c009d3ac3b6e436b2e7f91 |
|
BLAKE2b-256 | 8424b418eee4c716998aeec9b37ca8c4cd7e5de7876659d7183e793c1c80a303 |