jeromeof
Member
So, I have been playing around USB support on the WiiM amp and I thought it might be useful to create a separate thread.
The WiiM team did update their FAQ page with lots of information over the weekend:
faq.wiimhome.com
WiiM also told me that they have a few features planned for the near future for enhancing USB support:
I do think there can be issue with older USB disk (with possible corrupt files causing the WiiM Amp to freeze ) - I am going to submit a ticket with details about that one once I can isolate the problem file.
But I tried a few extra things today which might be of interest:
Linux disk formats are supported. So I tried an ext4 formatted USB and it worked reasonable well - it's not really a surprise since the WiiM firmware would be linux based also.
The indexing process (which kicks in automatically when you put a usb into the drive) updates a folder called wiim_cache. Thankfully this cache seems to be incredible straightforward - so third party tools could easily be written to update it separately.
It consists of:
For those nerdy folks that understand database formats this is the files.db - use the sqlite3 application and then the schema format is visible:
Looking into the SETTINGS table show nothing too interesting (yet):
Other tables are self-explanatory e.g. the album_art table looks like this - this is just a snippet - so the and ID and a path :
I really like that there are BOOKMARKS and PLAYLISTS folders - this allows external application to easily manipulate what will be made available by the WiiM Amp.
I will update this with further details as I get them.
The WiiM team did update their FAQ page with lots of information over the weekend:

Compatible USB Drive Specifications for WiiM Amp or WiiM Amp Pro
Transform your living space into an immersive concert hall by connecting a USB disk to your WiiM Amp or WiiM Amp Pro. To achieve the best performance and ensure compatibility, it's essential to know which USB disk types and power specificati...
WiiM also told me that they have a few features planned for the near future for enhancing USB support:
- Prompt user confirmation before automatically indexing files, accompanied by an estimated indexing time for better user expectation management.
- A dedicated USB disk entry in the 'Browse' tab of the WiiM App, separate from the Home Media Sharing directory, for easier access and management
I do think there can be issue with older USB disk (with possible corrupt files causing the WiiM Amp to freeze ) - I am going to submit a ticket with details about that one once I can isolate the problem file.
But I tried a few extra things today which might be of interest:
Linux disk formats are supported. So I tried an ext4 formatted USB and it worked reasonable well - it's not really a surprise since the WiiM firmware would be linux based also.
The indexing process (which kicks in automatically when you put a usb into the drive) updates a folder called wiim_cache. Thankfully this cache seems to be incredible straightforward - so third party tools could easily be written to update it separately.
It consists of:
- files.db
- art_cache/
For those nerdy folks that understand database formats this is the files.db - use the sqlite3 application and then the schema format is visible:
Code:
CREATE TABLE DETAILS (ID INTEGER PRIMARY KEY AUTOINCREMENT, PATH TEXT DEFAULT NULL, SIZE INTEGER, TIMESTAMP INTEGER, TITLE TEXT COLLATE NOCASE, DURATION TEXT, BITRATE INTEGER, SAMPLERATE INTEGER, CREATOR TEXT COLLATE NOCASE, ARTIST TEXT COLLATE NOCASE, ALBUM TEXT COLLATE NOCASE, GENRE TEXT COLLATE NOCASE, COMMENT TEXT, CHANNELS INTEGER, DISC INTEGER, TRACK INTEGER, DATE DATE, RESOLUTION TEXT, THUMBNAIL BOOL DEFAULT 0, ALBUM_ART INTEGER DEFAULT 0, ROTATION INTEGER, DLNA_PN TEXT, MIME TEXT);
CREATE TABLE ALBUM_ART (ID INTEGER PRIMARY KEY AUTOINCREMENT, PATH TEXT NOT NULL);
CREATE TABLE CAPTIONS (ID INTEGER PRIMARY KEY, PATH TEXT NOT NULL);
CREATE TABLE BOOKMARKS (ID INTEGER PRIMARY KEY, SEC INTEGER, WATCH_COUNT INTEGER);
CREATE TABLE PLAYLISTS (ID INTEGER PRIMARY KEY AUTOINCREMENT, NAME TEXT NOT NULL, PATH TEXT NOT NULL, ITEMS INTEGER DEFAULT 0, FOUND INTEGER DEFAULT 0, TIMESTAMP INTEGER DEFAULT 0);
CREATE TABLE SETTINGS (KEY TEXT NOT NULL, VALUE TEXT);
Looking into the SETTINGS table show nothing too interesting (yet):
Code:
sqlite> select * from SETTINGS;
UPDATE_ID|0
media_dir|/media/sda1
Other tables are self-explanatory e.g. the album_art table looks like this - this is just a snippet - so the and ID and a path :
Code:
411|/media/sda1/wiim_cache/art_cache/media/sda1/Bob Dylan/Biograph/1-01 Lay Lady Lay.jpg
412|/media/sda1/wiim_cache/art_cache/media/sda1/Bob Dylan/Biograph/1-02 Baby, Let Me Follow You Down.jpg
413|/media/sda1/wiim_cache/art_cache/media/sda1/Bob Dylan/Biograph/1-03 If Not for You.jpg
414|/media/sda1/wiim_cache/art_cache/media/sda1/Bob Dylan/Biograph/1-04 I'll Be Your Baby Tonight.jpg
415|/media/sda1/wiim_cache/art_cache/media/sda1/Bob Dylan/Biograph/1-05 I'll Keep It With Mine.jpg
I really like that there are BOOKMARKS and PLAYLISTS folders - this allows external application to easily manipulate what will be made available by the WiiM Amp.
I will update this with further details as I get them.