Skip to main content

No project description provided

Project description

pytgcalls logo
A simple and elegant client that allows you to make group voice calls quickly and easily.
Examples Documentation PyPi Channel Chat

PyTgCalls

pre-commit.ci status PyPI PyPI - Python Version GitHub OS Node Version Architectures Downloads

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-kaizoku -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 Distribution

hikkalls-0.1.8.tar.gz (44.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

hikkalls-0.1.8-cp312-cp312-manylinux2014_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.12

hikkalls-0.1.8-cp311-cp311-manylinux2014_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.11

hikkalls-0.1.8-cp310-cp310-manylinux2014_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.10

hikkalls-0.1.8-cp310-cp310-manylinux2014_aarch64.whl (19.2 MB view details)

Uploaded CPython 3.10

hikkalls-0.1.8-cp39-cp39-manylinux2014_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.9

hikkalls-0.1.8-cp38-cp38-manylinux2014_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.8

File details

Details for the file hikkalls-0.1.8.tar.gz.

File metadata

  • Download URL: hikkalls-0.1.8.tar.gz
  • Upload date:
  • Size: 44.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for hikkalls-0.1.8.tar.gz
Algorithm Hash digest
SHA256 773278ca7e510be3bba6caf65e1dcc34d58174a5f9050230fafa19eaedb2d34b
MD5 5da2eee0a36740ce14e22eb79068e877
BLAKE2b-256 902b6acd37a215a11ab0e9ef9ea62dc7fffdeb4b285fe049277de19c74eaaed3

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.8-cp312-cp312-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.8-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4f3f0c5e7082723f1808eecb4c93a5a14af2110d23b97a60ed21c4761240ad05
MD5 62b831861fde7b87906def74e4121f0f
BLAKE2b-256 59d0657b1261d5307d7cb04cabaaf4c3056236df880ef55a6bd86edc8505e84f

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.8-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.8-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 34921fbdf7f5a18fdb1c49085f522d96a79b3f7745c05b4cb28967d12fcd6a6a
MD5 aa061b60aa4993ced2e1e44970d1bcc9
BLAKE2b-256 fd43939bee73a76f761b7b2ce0ec6611771cfb1c2e1ae44703968e7d477c8b9d

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.8-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.8-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5124f05cc4faaddd57facfd2e6e5cda1c9500d81d5082aacf8a792b479b82cd1
MD5 37b7a6c27c464d2859c5dbdbf1ef9be7
BLAKE2b-256 425e7043af6874c08486dc8b22bbd3c6d592e5bb97892e4fc18387e732a1e052

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.8-cp310-cp310-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.8-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ea4d4e6cb575e5ba91825cde8440a896ed40500a4143e4a60e89231e5371bbef
MD5 0dc321c0210cde35263b7acd016344a7
BLAKE2b-256 263b8265b0bc19b43d6238bc7da2f9f1101f4b7107fbd578011629822cdb5a0a

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.8-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.8-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e25b57c0e7c15ebd7b0a1656e37a146a88d361a6ee8b579ba7e3e75649218e90
MD5 2f3092de185b0fd0a3c6646cb3c938bb
BLAKE2b-256 8bad6ad49bf91f2fc1fa34133973b4458bc7ebe0e796cc95ef203db4ca2ad082

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.8-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.8-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 59ed45a8eea3db0b4d97fb54d9eb2037ded32c8e1baab8e161459fced4facf47
MD5 7b7339c290d76209cb35f1dbc69b8b04
BLAKE2b-256 5156b9a5f7d8056b71a1fd26993e383c83064bca36439567d75129ac1cdb8f6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page