Author Topic: Syncing: Setting which file formats are accepted by a device (e.g., microsd)  (Read 839 times)

theta_wave

  • Sr. Member
  • ****
  • Posts: 682
Hi,

It has been awhile and I wonder if there is a way to set which file formats are accepted by a device for syncing. For example, on my portable setup (3.4.7893 P), I thought there was a setting in the past where I can highlight the device and configure file formats that it accepts so that I can do the file conversion on-the-fly for unsupported formats.

For example, I desire to select flac, mp3, m4a, aac, ogg, and opus as acceptable formats for any device I wish to sync, including a microsd card that will go into an Android tablet. In this example, a .mod file will get converted on-the-fly to whatever format I set for conversion.

EDIT: Yes, I understand my version of MB is a few years old, but it does everything I want except for properly syncing m3u8's onto my new S25 Ultra phone (timeout issues, whereas syncing audio files is fine). I'm trying to do an end around by copying m3u8s sync'd to my microsd card for my tablet to my phone via google drive. This m3u8 syncing issue is likely between Android and Win10 because copying m3u8 files from my desktop straight to my phone also encounters timeout issues. God how I hate dealing with Android's file system now that my phone doesn't have a microsd slot.
Last Edit: February 25, 2025, 04:49:45 PM by theta_wave

hiccup

  • Hero Member
  • *****
  • Posts: 9130
It has been awhile and I wonder if there is a way to set which file formats are accepted by a device for syncing.
No, there are no such advanced options.

And I'm pretty sure nothing has changed regarding these settings with newer versions than the one you are using..
If you want to check yourself, you could easily do a portable install of MB 3.6 to see what's what.

Zak

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2553
I thought there was a setting in the past where I can highlight the device and configure file formats that it accepts so that I can do the file conversion on-the-fly for unsupported formats.

For example, I desire to select flac, mp3, m4a, aac, ogg, and opus as acceptable formats for any device I wish to sync, including a microsd card that will go into an Android tablet.
No, there was never an option to specify which formats to keep, only these ones with a focus more on reducing the amount of storage space required on mobile devices.



In this example, a .mod file will get converted on-the-fly to whatever format I set for conversion.

Sounds like .mod files are the only ones not already catered for by the current settings, which isn't surprising, given they're not an audio stream in the same way the other codecs are.
Is it even possible to transcode those in MusicBee? Can you use the Format Converter in MusicBee to convert them at all, even when not as part of a syncing operation?
Bee excellent to each other...

theta_wave

  • Sr. Member
  • ****
  • Posts: 682
As for the m3u8 timeout issue. It appears to be a longstanding bug in Android's media library: https://github.com/androidx/media/issues/81

Essentially, when copying m3u8 files to android, android tries to parse the incomplete file during copy, causing the system to hang or stall. Specifically, androidx.media library (used by mediaplayers for monitoring folders) reads the m3u8 while it is still being written on the device, which hits bad/incomplete paths or malformed structure, and locks the file or triggers internal errors that delay transfer completion.

So far, my workaround is zipping the playlists on my desktop, copying the zip file to android (no lag), and unzipping it in the appropriate folder on my S25 Ultra. The lag is still present, as seen by the lag in deleting the zip file after the m3u8's are in the directory on my phone. To add further context, I'm syncing about 65 m3u8's to Android, a few >1MB each, which translates to 10k tracks per m3u8 playlist, some around 600KB [EDIT: 78819 tracks across 65 m3u8s according to: find . -type f -name '*.m3u8' -exec cat {} + | wc -l]. Android's filesystem essentially chokes on this. It is kind of sad that my 286 from the late 80's is more performant than Android 15 when it comes to copying m3u8 from one folder to another.

According to ChatGPT when looking over the github bug:
Quote
You've got this incredible beast of a device in your hands—an S25 Ultra with enough horsepower to simulate a moon landing—but when it comes to transferring a few kilobytes of plaintext, it’s like:

“Hang on, I need to alert the media scanner, wake up the indexing service, trigger two broadcast intents, re-verify all file paths, and maybe spin the CPU fans for dramatic effect…”

Meanwhile your 286 is sitting in a closet somewhere like:

“I could’ve done that in BASIC, kid.”

...

Who would've thought a humble 600KB .m3u8 playlist file—just a plain text list of paths—could humble a $1,300+ flagship running Android 15. It’s the digital equivalent of a paperclip jamming a Ferrari.

Will test to see if turning off folder monitoring in poweramp and usb audioplayer will solve this issue.

Also, I think the per device music format setting for syncing is from my days with Mediamonkey.

TLDR, copying m3u8's to android directly or via bluetooth causes a filesystem lag/lock due to a bug in android's media library utilized by some apps.

EDIT: I just realized that someone can generate several huge .m3u8 filled with over a hundred thousand random directories of Rick Ashley's "Never Gonna Give You Up" to cause what amounts to an local RickRoll DDOS on an Android 15 system in certain conditions, say RickRoll-as-a-Service? [sorry, just tired of dealing with Android BS]
Last Edit: April 24, 2025, 11:41:13 AM by theta_wave