<p align="center">
<a href="https://github.com/pytgcalls/pytgcalls">
<img src="https://user-images.githubusercontent.com/32808683/111091141-62473b00-8508-11eb-9c05-3e0fd4a21af3.png" alt="pytgcalls logo" />
</a>
<br>
<b>A simple and elegant client that allows you to make group voice calls quickly and easily.</b>
<br>
<a href="https://github.com/pytgcalls/pytgcalls/tree/master/example">
Examples
</a>
•
<a href="https://pycover.github.io/">
Documentation
</a>
•
<a href="https://pypi.org/project/py-tgcalls/">
PyPi
</a>
•
<a href="https://t.me/pytgcallsnews">
Channel
</a>
•
<a href="https://t.me/pytgcallschat">
Chat
</a>
</p>
# PyCover
[![pre-commit.ci status][pre-commit.ci-badge]][pre-commit.ci]
[![PyPI](https://img.shields.io/pypi/v/py-tgcalls.svg?style=flat)](https://pypi.org/project/py-tgcalls/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/py-tgcalls)](https://www.python.org/)
[![GitHub](https://img.shields.io/github/license/pytgcalls/pytgcalls)](https://github.com/pytgcalls/pytgcalls/blob/master/LICENSE)
![OS](https://img.shields.io/badge/platform-Linux%20%7C%20WSL2.0%20%7C%20Windows%20%7C%20macOS-lightgrey)
[![Node Version](https://img.shields.io/badge/node-%3E%20%3D%2015.0.0%20-brightgreen)](https://nodejs.org/it/)
![Architectures](https://img.shields.io/badge/architectures-x86__64%20%7C%20arm64v8%20%7C%20win__amd64%20%7C%20darwin__x64-blue)
[![Downloads](https://pepy.tech/badge/py-tgcalls)](https://pepy.tech/project/py-tgcalls)
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 Fipper 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 PyCover lib, the commands are given below:
``` bash
# 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
``` bash
ffmpeg -i {INPUT_FILE} -f rawvideo -pix_fmt yuv420p -vf scale=640:-1 {OUTPUT_FILE}
```
From H264/VP8/VP9 to Audio and Video
``` bash
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
``` bash
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 PyCover 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
``` bash
ffmpeg -i {INPUT_FILE} -f s16le -ac 1 -ar {BITRATE} {OUTPUT_FILE}
```
From stream link to raw format
``` bash
ffmpeg -y -i {STREAM_LINK} -f s16le -ac 1 -ar {BITRATE} {OUTPUT_FILE}
```
From YouTube video/live-stream to raw format
``` bash
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]
[pre-commit.ci-badge]: https://results.pre-commit.ci/badge/github/pytgcalls/pytgcalls/master.svg
[pre-commit.ci]: https://results.pre-commit.ci/latest/github/pytgcalls/pytgcalls/master
[@evgeny-nadymov]: https://github.com/evgeny-nadymov/
[@AndrewLaneX]: https://github.com/AndrewLaneX/
[telegram-react]: https://github.com/evgeny-nadymov/telegram-react/
[tgcallsjs]: https://github.com/tgcallsjs/tgcalls
[pyservercall]: https://github.com/pytgcalls/pyservercall/
[@Laky-64]: https://github.com/Laky-64/
[alemidev]: https://github.com/alemidev/
Raw data
{
"_id": null,
"home_page": "https://github.com/AyiinXd/pycover",
"name": "pycover",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6.1",
"maintainer_email": "",
"keywords": "",
"author": "AyiinXd",
"author_email": "buayadanau4@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/0a/98/9d95d62a47e18b649d10ac4580c54c9ef88a86082c7681fcec1010ab1f23/pycover-0.9.8.tar.gz",
"platform": null,
"description": "<p align=\"center\">\r\n <a href=\"https://github.com/pytgcalls/pytgcalls\">\r\n <img src=\"https://user-images.githubusercontent.com/32808683/111091141-62473b00-8508-11eb-9c05-3e0fd4a21af3.png\" alt=\"pytgcalls logo\" />\r\n </a>\r\n <br>\r\n <b>A simple and elegant client that allows you to make group voice calls quickly and easily.</b>\r\n <br>\r\n <a href=\"https://github.com/pytgcalls/pytgcalls/tree/master/example\">\r\n Examples\r\n </a>\r\n \u2022\r\n <a href=\"https://pycover.github.io/\">\r\n Documentation\r\n </a>\r\n \u2022\r\n <a href=\"https://pypi.org/project/py-tgcalls/\">\r\n PyPi\r\n </a>\r\n \u2022\r\n <a href=\"https://t.me/pytgcallsnews\">\r\n Channel\r\n </a>\r\n \u2022\r\n <a href=\"https://t.me/pytgcallschat\">\r\n Chat\r\n </a>\r\n</p>\r\n\r\n\r\n# PyCover\r\n\r\n[![pre-commit.ci status][pre-commit.ci-badge]][pre-commit.ci]\r\n[![PyPI](https://img.shields.io/pypi/v/py-tgcalls.svg?style=flat)](https://pypi.org/project/py-tgcalls/)\r\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/py-tgcalls)](https://www.python.org/)\r\n[![GitHub](https://img.shields.io/github/license/pytgcalls/pytgcalls)](https://github.com/pytgcalls/pytgcalls/blob/master/LICENSE)\r\n![OS](https://img.shields.io/badge/platform-Linux%20%7C%20WSL2.0%20%7C%20Windows%20%7C%20macOS-lightgrey)\r\n[![Node Version](https://img.shields.io/badge/node-%3E%20%3D%2015.0.0%20-brightgreen)](https://nodejs.org/it/)\r\n![Architectures](https://img.shields.io/badge/architectures-x86__64%20%7C%20arm64v8%20%7C%20win__amd64%20%7C%20darwin__x64-blue)\r\n[![Downloads](https://pepy.tech/badge/py-tgcalls)](https://pepy.tech/project/py-tgcalls)\r\n\r\nThis 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]\r\n\r\n## What are the supported clients?\r\nThe supported clients for now are Fipper and Telethon, but we accept other clients too, you can open a pull request with the edits\r\n\r\n## How to install?\r\nHere's how to install the PyCover lib, the commands are given below:\r\n\r\n``` bash\r\n# With Git\r\npip install git+https://github.com/pytgcalls/pytgcalls -U\r\n\r\n# With PyPi (Recommended)\r\npip install py-tgcalls -U\r\n```\r\n\r\n## Conversion command (Video)\r\nFrom file to raw video\r\n``` bash\r\nffmpeg -i {INPUT_FILE} -f rawvideo -pix_fmt yuv420p -vf scale=640:-1 {OUTPUT_FILE}\r\n```\r\n\r\nFrom H264/VP8/VP9 to Audio and Video\r\n``` bash\r\nffmpeg -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}\r\n```\r\n\r\nFrom YouTube video/live-stream to Audio and Video\r\n``` bash\r\nffmpeg -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}\r\n```\r\n\r\nFrom YouTube Live stream to Video\r\n\r\n> ### Important!\r\n> The max resolution allowed by Telegram is of 720p at 30 fps\r\n> Here also listed the scaling format\r\n> - 360p = 640\r\n> - 480p = 854\r\n> - 720p = 1280\r\n>\r\n> If you have any problem with green screen or un-synchronized video, it can be one of these problems:\r\n> - Invalid FFMPEG command\r\n> - The video quality specified to convert is higher than the original video one\r\n> - Invalid PyCover video parameters\r\n> - If you're using fifo, the Fifo max buffer size is too low and this cause the lag problem.\r\n\r\n## Conversion commands\r\n\r\nFrom file to raw format\r\n``` bash\r\nffmpeg -i {INPUT_FILE} -f s16le -ac 1 -ar {BITRATE} {OUTPUT_FILE}\r\n```\r\n\r\nFrom stream link to raw format\r\n``` bash\r\nffmpeg -y -i {STREAM_LINK} -f s16le -ac 1 -ar {BITRATE} {OUTPUT_FILE}\r\n```\r\n\r\nFrom YouTube video/live-stream to raw format\r\n``` bash\r\nffmpeg -i \"$(youtube-dl -x -g \"{YOUTUBE_LINK}\")\" -f s16le -ac 1 -ar {BITRATE} {OUTPUT_FILE}\r\n```\r\n\r\n## Credits\r\n\r\nBig thanks to [@evgeny-nadymov] for allowing us to use their code from [telegram-react], and thanks\r\nto [alemidev] for helping to rebuild this library\r\n\r\nThis library is based on [tgcallsjs] developed [@AndrewLaneX] and pyservercall by [@Laky-64]\r\n\r\n[pre-commit.ci-badge]: https://results.pre-commit.ci/badge/github/pytgcalls/pytgcalls/master.svg\r\n[pre-commit.ci]: https://results.pre-commit.ci/latest/github/pytgcalls/pytgcalls/master\r\n[@evgeny-nadymov]: https://github.com/evgeny-nadymov/\r\n[@AndrewLaneX]: https://github.com/AndrewLaneX/\r\n[telegram-react]: https://github.com/evgeny-nadymov/telegram-react/\r\n[tgcallsjs]: https://github.com/tgcallsjs/tgcalls\r\n[pyservercall]: https://github.com/pytgcalls/pyservercall/\r\n[@Laky-64]: https://github.com/Laky-64/\r\n[alemidev]: https://github.com/alemidev/\r\n",
"bugtrack_url": null,
"license": "LGPL-3.0",
"summary": "",
"version": "0.9.8",
"project_urls": {
"Homepage": "https://github.com/AyiinXd/pycover"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0a989d95d62a47e18b649d10ac4580c54c9ef88a86082c7681fcec1010ab1f23",
"md5": "75a2502c2a9ad49fdcdb801451e500ba",
"sha256": "646ca481955629fe9f43ba85477a294bcc2844eb9b5228df7fc449d79819cd21"
},
"downloads": -1,
"filename": "pycover-0.9.8.tar.gz",
"has_sig": false,
"md5_digest": "75a2502c2a9ad49fdcdb801451e500ba",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6.1",
"size": 45128,
"upload_time": "2023-05-10T07:37:34",
"upload_time_iso_8601": "2023-05-10T07:37:34.868120Z",
"url": "https://files.pythonhosted.org/packages/0a/98/9d95d62a47e18b649d10ac4580c54c9ef88a86082c7681fcec1010ab1f23/pycover-0.9.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-10 07:37:34",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "AyiinXd",
"github_project": "pycover",
"github_not_found": true,
"lcname": "pycover"
}