Skip to content

Feature: FLAC files#4

Open
staddle wants to merge 1 commit intoBytePhoenixCoding:mainfrom
staddle:main
Open

Feature: FLAC files#4
staddle wants to merge 1 commit intoBytePhoenixCoding:mainfrom
staddle:main

Conversation

@staddle
Copy link

@staddle staddle commented Dec 30, 2025

This PR adds the conversion of FLAC files.

Serato stores metadata in the FLAC tag file's SERATO_BEATGRID and SERATO_MARKERS_V2 fields in addition to the usual fields like artist, title, etc. (see here). Using information and code inspired from https://github.com/Holzhaus/serato-tags, the implemented functions read the field data, decode the base64-encoded data, and parse CUE markers and the beatgrid information.

I had some troubles with base64 padding and/or the base64-encoded string having the wrong length, which I "solved" by cutting off the string until it is the right length again. This might lose some data at the end, but so far in my testing, no CUE markers have been lost. Please test it again with your FLAC files to see if my code works on your examples too.

Disclaimer: I used code from https://github.com/Holzhaus/serato-tags which has an MIT license.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant