This project allow to make Telegram group call with MTProto Api using Pyrogram and WebRTC, this is possible thanks to the power of NodeJS's WebRTC library, socketio-client and @evgeny-nadymov
If do you have problems with pyrogram, reinstall by this command
pip install git+https://github.com/pyrogram/pyrogram -U
Check before if is changing the size of file(Is a method to check if ffmpeg is alive).
If is alive and stream is stopped, report to the issue with including last ultra verbose log and put in to nekobin.
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
pip install py-tgcalls -U
From file to raw format
ffmpeg -i {INPUT_FILE} -f s16le -ac 1 -acodec pcm_s16le -ar {BITRATE} {OUTPUT_FILE}
From stream link to raw format
ffmpeg -y -i {STREAM_LINK} -f s16le -ac 1 -acodec pcm_s16le -ar {BITRATE} {OUTPUT_FILE}
From youtube video/live-stream to raw format
ffmpeg -i "$(youtube-dl -x -g "{YOUTUBE_LINK}")" -f s16le -ac 1 -acodec pcm_s16le -ar {BITRATE} {OUTPUT_FILE}
Big thanks to @evgeny-nadymov for allowing us to use their code from telegram-react
This library is based on tgcallsjs developed @AndrewLaneX and pyservercall by @Laky-64