sentriz / gonic

music streaming server / free-software subsonic server API implementation
ircs://irc.libera.chat/#gonic
GNU General Public License v3.0
1.5k stars 105 forks source link

Support indexing of additional filetypes #379

Open ToxicFrog opened 9 months ago

ToxicFrog commented 9 months ago

gonic version: 0.15.2

The indexer requires files to pass two checks to be indexed:

The former means that files not in that set -- including all VGM and tracker formats, MIDI, and less popular PCM formats -- will be skipped entirely. The latter means that even if you try to include them by giving them fake extensions, it'll drop them from the scan when it tries to read metadata.

In principle, gonic should be able to play anything it can transcode, and it can transcode anything ffmpeg supports, which is a lot of formats even before you start getting into workarounds to let it use other commands for transcoding.

I think the most general way to support this would be:

For extra credit, support a file extension to probe command mapping in configuration, but even without that the admin can replace ffprobe with a compatible wrapper for formats it doesn't support.