this post was submitted on 23 Oct 2023
1786 points (97.5% liked)

memes

10435 readers
2453 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

Sister communities

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Undearius@lemmy.ca 3 points 1 year ago* (last edited 1 year ago) (1 children)

I do something very similar. I have all my music on a network share with a playlist folder inside. I run a script that copies all the lines from an .m3u playlist file and copies them to another music folder inside my user folder, converting any FLAC files along the way.

I then user SyncThing to synchronize that folder with my phone. Makes it super easy to get all my music and playlists when I upgrade to a new phone.

a = *lines from playlist file*
new = *destinationFolder*
# If the mp3 version of the flac is older than the flac or doesn't exist in the destination,
# convert it from Flac to variable bitrate mp3
  if [ "$a" -nt "${new[@]/%flac/mp3}" ]; then
    echo Converting $a
    ffmpeg -y -i "$a" -qscale:a 0 "${new[@]/%flac/mp3}"
  fi

There's some cleaning and other steps done but I'm willing to share or provide more details if anyone is interested.

[–] Willer@lemmy.world 1 points 1 year ago (1 children)

Its a shame that you NEED a secondary lossy archive. You can only do true on-the-fly functionality when the syncing and music app are not seperate. Currently i use MusicBee for the transcoding and resilio for the syncing. I should propably switch over to syncthing too tho.

[–] Undearius@lemmy.ca 2 points 1 year ago* (last edited 1 year ago) (1 children)

I have several terabytes of free space on my server so I have no issue sacrificing a few gigs to have the lossy archive be portable and independent of the music software.

It gives me the freedom to drop the lossy archive to whatever device I want (SyncThing to make it automatic and wireless) and use whatever music play I choose.

I could, and have thought about, switching the script to use hardlinks for the MP3s which means the only storage used is for the transcoded MP3s. Plus it would get rid of the requirement to sync any updated MP3s from the original archive to the lossy one, the hardlinks would just update with the original.

[–] Willer@lemmy.world 1 points 1 year ago

I think musicbee had a plugin that could do that, havnt had any quick success with it.