Filed in: Tutorials.BansheeIsAudioPlayer · Modified on : Wed, 24 Nov 10
The Banshee music player is a decent enough media player that comes with Ubuntu. I use it to manage podcasts: managing foldered music albums or audiobooks is easy enough, but podcasts are a pain to manage by hand, due in no small part to their random naming conventions and lack of tag support for dates.
Anyway, this tutorial is about the mysterious .is_audio_player file. You can make any mass storage device into a device that Banshee (among others) will recognize, display, and sync by placing a file named exaetly .is_audio_player in the root of the filesystem. (I would imagine that Banshee et al wouldn't care too much about the particular filesystem, but I'm sure your media player will want it to be FAT of some sort.) This file contains a few key=value[,value...] pairs that we can use to configure the thing.
The basics are easy enough to find on the Internet, but finding a full description of the format is difficult. After quite some time searching for a formal specification of it, I realized apt-get source is as good a spec as I'm gonna get. Here are the relevant lines from banshee-1.8.0/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageDevice.cs:
Thus we have (with some guessed examples):
name: Tunebox
cover_art_file_type: jpeg
cover_art_file_name: cover.jpg
cover_art_size: 320 (might be size in pixels?)
audio_folders: music/,tuneskys/
video_folders: movies/,tvshows/
output_formats: audio/ogg,audio/mp3
playlist_formats
playlist_path
folder_depth: 2
Note that all ...formats keys take MIME types.
I also found that Banshee looks for a file called ".is_not_audio_player". I guess you add that file if you need to have a file in there called .is_audio_player but it isn't one? Dunno.