Comments (16)
I began to suspect that there was a problem with ffmpeg or something in my code, because after I deployed it to heroku, it still appeared intermittent.
from tgcalls.
Thank you very much for your reply. I will continue to observe the performance on different machines. The environment I will eventually run on will be Raspberry Pi. I donβt know what the effect will be.
from tgcalls.
Much better after using linux and replacing a Server with a better CPU. On closer inspection, I think it's a problem of ffmpeg cpu overuse. Maybe consider a real time decoding solution.
Thanks for the previous help
from tgcalls.
What command did you use to transcode the file?
from tgcalls.
What command did you use to transcode the file?
ffmpeg.input(file_path).output(
out,
format='s16le',
acodec='pcm_s16le',
ac=2,
ar='48k',
loglevel='error'
).overwrite_output().run_async()
from tgcalls.
And how did you try to play this file?
from tgcalls.
And how did you try to play this file?
https://github.com/hdcola/chstockbot/blob/main/musicbot/services/callsmusic/callsmusic.py
Here is my service for playing music. Directly call the set_stream function inside
from tgcalls.
And how did you try to play this file?
https://github.com/hdcola/chstockbot/blob/main/musicbot/services/callsmusic/callsmusic.py
Here is my service for playing music. Directly call the set_stream function inside
Do you try to run example from main readme of this lib with your transcoded file? If not, you should try
from tgcalls.
And how did you try to play this file?
https://github.com/hdcola/chstockbot/blob/main/musicbot/services/callsmusic/callsmusic.py
Here is my service for playing music. Directly call the set_stream function insideDo you try to run example from main readme of this lib with your transcoded file? If not, you should try
I used this sample code
https://github.com/MarshalX/tgcalls/blob/main/examples/player_as_smart_plugin.py
Still the same problem reproduced. Could it be the version of Python or some other lib?
from tgcalls.
And how did you try to play this file?
https://github.com/hdcola/chstockbot/blob/main/musicbot/services/callsmusic/callsmusic.py
Here is my service for playing music. Directly call the set_stream function insideDo you try to run example from main readme of this lib with your transcoded file? If not, you should try
I used this sample code
https://github.com/MarshalX/tgcalls/blob/main/examples/player_as_smart_plugin.py
Still the same problem reproduced. Could it be the version of Python or some other lib?
It sounds so strange. Do u have the m1 mac?
from tgcalls.
It sounds so strange. Do u have the m1 mac?
My Mac is an Intel Core i5 CPU, not a new M1 CPU
from tgcalls.
It sounds so strange. Do u have the m1 mac?
My Mac is an Intel Core i5 CPU, not a new M1 CPU
I have no idea how to help you(
from tgcalls.
I have now tried two different Macs. This problem occurs with different versions of Python, maybe because of MacOS?
from tgcalls.
I have now tried two different Macs. This problem occurs with different versions of Python, maybe because of MacOS?
What version of macos do you use?
from tgcalls.
What version of macos do you use?
all is 11.4 (macOS Big Sur)
from tgcalls.
What version of macos do you use?
all is 11.4 (macOS Big Sur)
me too
from tgcalls.
Related Issues (20)
- Expose pyav keyword arguments
- Core Dumped HOT 9
- Add ability to set photo and audio in video chat HOT 3
- Not working installation HOT 1
- [Bug] Error joining group call HOT 1
- Update dev version to new MTProto layer, add Python 3.10 support, drop support of Python 3.6
- what is message_id?
- dpor from livestream
- Private calls HOT 13
- Timeout error HOT 2
- get_raw_group_call fails with incompatible constructor arguments HOT 6
- implement GetGroupParticipants HOT 1
- Can't install pytgcalls[pyrogram] on venv HOT 6
- 400 BOT_METHOD_INVALID HOT 2
- AttributeError: 'Client' object has no attribute 'send' HOT 1
- Groupcall C++
- what's the difference between libtgvoid and tgcalls? HOT 1
- Silent in group call HOT 2
- When you include Python 3.10+ support? HOT 1
- Could not find a version that satisfies the requirement tgcalls (from versions: none) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tgcalls.