You are browsing as a guest. Sign up (or log in) to start making projects!

2h 11m 6s logged

audio metadata

for this dev log you will see 2 hours for one command spawn and a small refactor. but what you have not seen was 2 hours fighting ffmpeg-next, ffmpeg-sys-next, bindgen, libclang

all that to say i decided to not link against ffmpeg, and i am much happier with the result

audio players get the title, artist, even cover art all from the track’s metadata

unfortunately, youtube music does not attach metadata to the tracks we scrape, so we need to attach metadata

attaching metadata to audio files is actually pretty simple thanks to the lofty crate unless the file is a webm. webm does not have any sort of audio metadata (?) so you will need to transcode webm into another audio format to put metadata into the file. i decided to just pick m4a because everything supports it.

lastly i did a small refactor because main.rs was pushing 600 lines of code, and i plan to:

  • separate the db functions from the Playlist struct
  • make the code truly asynchronous, which involves moving to sqlx
  • pipeline everything

the end result is pretty metadata in Gapless (or any other modern music player)

0
9

Comments 0

No comments yet. Be the first!