Comments (12)
https://haste.r3valkyrie.com/abujonoqaf.txt
from botamusique.
Hi,
Don't you have any line after "Async download next" ?
Is the bot crash/stop or do nothing ?
from botamusique.
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.
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.
ffmpeg seems to be working properly. I updated the bot and the problem still persists.
from botamusique.
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.
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.
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.
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.
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.
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.
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)
- Flac files not found through !file command but work fine via web interface.
- Songs with japanese file names do not show up in web interface. HOT 4
- Documentation: reverse proxy on subpath HOT 1
- Docker Hub Image Rebuild
- Add option for download by URL to download music to music directory, not temporary directory. HOT 4
- Bot does not start: AttributeError: 'Authenticate' object has no attribute 'client_type' HOT 9
- A question about default radio channels HOT 2
- Sound comes out as garbage HOT 1
- youtube issues with master git HOT 1
- Azuracast radio urls support
- botamusique/media/file.py", line 88, in _get_info_from_tag assert match is not None HOT 4
- Integration with a Large Language Model like LLama HOT 2
- Shortlist empty when querying the next page of a YouTube search HOT 1
- Invalid command suggested with !ytsearch HOT 1
- 403 on youtube downloads with the latest docker
- Bot should parsing HTML entity in reading text chat message as bot command
- I have encountered some problems HOT 5
- fails to start with "Invalid version" error HOT 3
- Stereo not outputting sound HOT 1
- End of a bot HOT 2
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 botamusique.