swingmx / swingmusic

Swing Music is a beautiful, self-hosted music player for your local audio files. Like a cooler Spotify ... but bring your own music.
https://swingmx.com
MIT License
757 stars 41 forks source link

Large files like FLAC not supported? #145

Closed penguinway closed 1 year ago

penguinway commented 1 year ago

Hi, I like your product very much, but I found that when importing some larger files, for example, the playback of my lossless FLAC format music is not supported. What is going on? This is a photo when it going wrong. wrong And it the big of this music file. big Can you tell me why?If it is because it is not supported for the time being, I hope to add support as soon as possible.

Thank you very much! Good luck with your development!

penguinway commented 1 year ago

And the other FLAC files is OK,only the biggest can not play,I will test more bigger file.

penguinway commented 1 year ago

其他FLAC文件都可以,只有最大的不能播放,我会测试更大的文件。

Right,it seems that the FLAC files which bigger than 40Mb cannot play.

cwilvx commented 1 year ago

Hello @penguinway

Thank for this issue. I don't think it's a problem with the size (I have ~140mb FLACs and they're playing fine). I think it might be a problem with the file itself somehow, maybe not encoded properly or something. Can you try opening the said file in the browser directly from your file manager.

Right click on file -> open with -> your browser

If the file file plays there, then we can try to figure out the problem from there. If the file downloads itself, then the browser is not able to open it as audio.

Let me know how it goes.

penguinway commented 1 year ago

OK,I open it with my browser,it plays no problem.This file was not recognized as a download in the browser.

penguinway commented 1 year ago

Oh,I tried running the binary directly in linux and now it's ok :) (I was using docker containers before), maybe it's because of some issues with docker containers (lol, I think you should probably look into what's possible in docker containers problems?) Once again, I wish you smooth development! I love your products!

cwilvx commented 1 year ago

@penguinway

Glad to hear you found a way to make it work. I'm currently winding up on a new release v1.3.0. Lots of new features. I've also modified the Docker image to just use the linux binary instead of building it.

I'll publish the Docker image on Docker hub to make it easier to work with. You can watch the repo to be notified of the release from Github.

If you wanna try out the beta, just hit me ... with your favorite song 😅 and I'll do a build for you 😸.

penguinway commented 1 year ago

@mungai-njoroge I very much hope you can launch your v1.3.0 smoothly, I believe it will be an exciting project. And sure,I would like to share my favorite song with you!My favortie song is George Winston's "Variations On The Canon By Pachelbel". Enjoy it! And hope you have a good day! I can't wait to see your v1.3.0! Thank you!

penguinway commented 1 year ago

I'm looking forward to future improvements and features and maybe will definitely be a supporter.😄

cwilvx commented 1 year ago

@penguinway

Thanks for the music. I'm also excited to hear that you will be a supporter. I'm working on a way to accept donations and it will be available on the revamped website once v1.3.0 lands.

Here's your Docker build. Pull and run it to try out the beta.

docker pull geoffrey45/swingmusic.v1.3.0.beta:penguinway
docker run --name swingmusicv130beta -p 1970:1970 \ 
  -v /path/to/music:/music \
  -v /path/to/config:/config \
  --restart unless-stopped \
  geoffrey45/swingmusic.v1.3.0.beta:penguinway

Replace path/to/music with your music directory and path/to/config to where you want the config folder to be created.

Please let me know if anything seems not to be working correctly. I'd like to hear what you think about it in general.

Enjoy ... and thanks.

penguinway commented 1 year ago

@mungai-njoroge A very stunning version, Love comes from China! Not only did it perfectly solve my previous problem, but I also like the UI of v1.3.0very much! It's so beautiful! Thank you for the Docker image! I hope you can develop better versions in the future, and I will always support your projects!

cwilvx commented 11 months ago

Hello @penguinway

The new release is out. You can pull the latest docker image from Github Packages (see Readme). If you'd like to donate, visit the support us page.

Changelog since previous beta (geoffrey45/swingmusic.v1.3.0.beta:penguinway)

Bug fixes

penguinway commented 11 months ago

@mungai-njoroge OK,I will get it! Thank you very much!