GithubHelp home page GithubHelp logo

Comments (12)

tetraphobia avatar tetraphobia commented on May 27, 2024 1

https://haste.r3valkyrie.com/abujonoqaf.txt

from botamusique.

azlux avatar azlux commented on May 27, 2024

Hi,
Don't you have any line after "Async download next" ?
Is the bot crash/stop or do nothing ?

from botamusique.

tetraphobia avatar tetraphobia commented on May 27, 2024

There's no more after "Async download next". I'm going to enable debug logs and update the post.

The bot just stops, no crashes.

EDIT: Debug logs aren't of any help.

from botamusique.

TerryGeng avatar TerryGeng commented on May 27, 2024

I think the bot relies on ffmpeg to play the stream. This is also the case for the radio. Sometimes the bot stops just because it fails on fetching the content from the stream.
You may have a try by typing
ffmpeg -v warning -nostdin -i http://localhost:8090/mpd.mp3 -ac 1 -f s16le -ar 48000 -
in the console and see if you can see some gibbersih coming out. If nothing shows up, you should have a look on your local http stream settings.

from botamusique.

tetraphobia avatar tetraphobia commented on May 27, 2024

ffmpeg seems to be working properly. I updated the bot and the problem still persists.

from botamusique.

tetraphobia avatar tetraphobia commented on May 27, 2024

Turns out it was an oversight in my configuration, not an issue with the bot. always_on and tags need to be set to "yes"

from botamusique.

tetraphobia avatar tetraphobia commented on May 27, 2024

Ah jeez. So turns out, that configuration change did not solve the issue. It starts playing the radio if MPD gets restarted while the bot is loading the radio channel. I'm gonna leave this open for now and post the ffmpeg debug logs.

from botamusique.

TerryGeng avatar TerryGeng commented on May 27, 2024

You can see the problem is actually
[tcp @ 0x55deac911900] Connection attempt to 127.0.0.1 port 8090 failed: Connection refused
[tcp @ 0x55deac911900] Connection to tcp://localhost:8090 failed: Connection refused

What happens to your 8090 port? Did you properly set it up? I'd suggest you look into the logging file of your MPD to see if the http request of ffmpeg gets to your MPD server. Please make sure it is not blocked by your firewall or something.

You can also access http://localhost:8090/mpd.mp3 into your browser to check whether it can be accessed.

from botamusique.

tetraphobia avatar tetraphobia commented on May 27, 2024

I'll double check iptables and make sure there aren't any rules that would be blocking it. Keep in mind, those messages only showed up after I restarted MPD while the bot was connecting. No output is shown otherwise.

from botamusique.

tetraphobia avatar tetraphobia commented on May 27, 2024

Issue still persists. I'm able to access the http stream through my browser, the bot does not play from it, however. There are no iptables rules that would be preventing the bot from streaming from the http stream.

I should also mention that streaming from mpd to icecast to the bot actually does work, but it's a sub-optimal solution due to latency. This is probably just an issue with mpd.

from botamusique.

TerryGeng avatar TerryGeng commented on May 27, 2024

Thanks for trying around. However, since it is not the bot itself who fetches the data from the stream, this is not actually a problem of the bot. The bot just passes the URL of your stream to ffmpeg and let it do the rest. Since ffmpeg would try to connect to 8090 port on your device, and it failed as shown in your log, I suggest you check the log file of your mpd to see whether it can receive the request from ffmpeg properly.

I'm actually curious about your use case. As far as I know, mpd is a music player. However, I think the bot is capable of playing music. Did you set up your mpd server and your bot on different devices?

from botamusique.

tetraphobia avatar tetraphobia commented on May 27, 2024

Same device. It's extremely odd, since this did function perfectly at some point before. Since this isn't an issue with the bot, I'm gonna go ahead and close. I've found a workaround either way.

from botamusique.

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.