Giter VIP home page Giter VIP logo

Comments (16)

hdcola avatar hdcola commented on September 15, 2024 2

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.

hdcola avatar hdcola commented on September 15, 2024 1

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.

hdcola avatar hdcola commented on September 15, 2024 1

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.

MarshalX avatar MarshalX commented on September 15, 2024

What command did you use to transcode the file?

from tgcalls.

hdcola avatar hdcola commented on September 15, 2024

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.

MarshalX avatar MarshalX commented on September 15, 2024

And how did you try to play this file?

from tgcalls.

hdcola avatar hdcola commented on September 15, 2024

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.

MarshalX avatar MarshalX commented on September 15, 2024

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.

hdcola avatar hdcola commented on September 15, 2024

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

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.

MarshalX avatar MarshalX commented on September 15, 2024

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

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.

hdcola avatar hdcola commented on September 15, 2024

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.

MarshalX avatar MarshalX commented on September 15, 2024

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.

hdcola avatar hdcola commented on September 15, 2024

I have now tried two different Macs. This problem occurs with different versions of Python, maybe because of MacOS?

from tgcalls.

MarshalX avatar MarshalX commented on September 15, 2024

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.

hdcola avatar hdcola commented on September 15, 2024

What version of macos do you use?

all is 11.4 (macOS Big Sur)

from tgcalls.

MarshalX avatar MarshalX commented on September 15, 2024

What version of macos do you use?

all is 11.4 (macOS Big Sur)

me too

from tgcalls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.