[GH-ISSUE #306] Convert and Store FLAC files for Playback #225

Open
opened 2026-02-26 02:32:30 +03:00 by kerem · 4 comments
Owner

Originally created by @BernardGoldberger on GitHub (Apr 17, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/306

Currently FLAC files are being converted and streamed on the fly but of course that are still the following unsupported items to think about.

  1. No seeking.
  2. needs to be converted every time played.
  3. wont automatically play next song.

I had some ideas and I hope that I don't come off as over simplifying anything.

Here is what I'm envisioning.

In the env file users will specify the following.
SaveConverted=true or false
Path=directory to save files in if "Save" set to true

If a user sets "SaveConverted" to true Koel will then convert and save the output to the users specified directory and Koel will then stream the converted file which will be .mp3, for me all the files can be dumped in one location and the files can be named by their Koel ID

It would be even more awesome if there can be a command koel:convert which will be able to simply go through all the FLAC files and convert them.

Originally created by @BernardGoldberger on GitHub (Apr 17, 2016). Original GitHub issue: https://github.com/koel/koel/issues/306 Currently `FLAC` files are being converted and streamed on the fly but of course that are still the following unsupported items to think about. 1. No seeking. 2. needs to be converted every time played. 3. wont automatically play next song. I had some ideas and I hope that I don't come off as over simplifying anything. Here is what I'm envisioning. In the env file users will specify the following. SaveConverted=true or false Path=directory to save files in if "Save" set to true If a user sets "SaveConverted" to true Koel will then convert and save the output to the users specified directory and Koel will then stream the converted file which will be `.mp3`, for me all the files can be dumped in one location and the files can be named by their Koel ID It would be even more awesome if there can be a command `koel:convert` which will be able to simply go through all the `FLAC` files and convert them.
Author
Owner

@phanan commented on GitHub (Apr 18, 2016):

This is a nice idea. I'll be thinking more about it.

<!-- gh-comment-id:211149725 --> @phanan commented on GitHub (Apr 18, 2016): This is a nice idea. I'll be thinking more about it.
Author
Owner

@My1 commented on GitHub (May 28, 2016):

also you could make a hash of each FLAC and store the converted file with the hash as name which makes it obvious whether a file should be converted again because something changed or not (I do it that way with my PHP-based SVG->PNG converter)

<!-- gh-comment-id:222332353 --> @My1 commented on GitHub (May 28, 2016): also you could make a hash of each FLAC and store the converted file with the hash as name which makes it obvious whether a file should be converted again because something changed or not (I do it that way with my PHP-based SVG->PNG converter)
Author
Owner

@ghost commented on GitHub (Dec 2, 2016):

I'm not sure that saving the converted files would really be within the scope of Koel as its purpose is to play media, not manage it. Regardless, the FLAC user experience could certainly be improved.

<!-- gh-comment-id:264355118 --> @ghost commented on GitHub (Dec 2, 2016): I'm not sure that saving the converted files would really be within the scope of Koel as its purpose is to play media, not manage it. Regardless, the FLAC user experience could certainly be improved.
Author
Owner

@My1 commented on GitHub (Dec 2, 2016):

but well storing the converted files in some kind of cache should also help lower the overall CPU usage and stuff because it doesnt need to convert all the time, also op says that playing flacs directly has several disadvantages.

<!-- gh-comment-id:264415737 --> @My1 commented on GitHub (Dec 2, 2016): but well storing the converted files in some kind of cache should also help lower the overall CPU usage and stuff because it doesnt need to convert all the time, also op says that playing flacs directly has several disadvantages.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#225
No description provided.