Re: [Rhythmbox-devel] automatic format conversion for removable devices?



On Tue, 2007-07-24 at 11:38 -0400, Edward Amsden wrote:
> Rhythmbox does convert files from FLAC to MP3 for a T.Sonic MP3
> player.
> Great software! I have seen other programs confuse FLAC for MP3
> (audacity for instance)... But for me rhythmbox works great 

I had no idea about this feature. Do you have a guideline to check if a
device is supported? I've tried to do the same with a Zen Nano Plus (to
convert from ogg to mp3), but the device is not even handled by
Rhythmbox (0.10.1), and it doesn't even appear as a source:

(17:23:16) [0x80f4028] [rhythmdb_volume_mounted_cb] rhythmdb-monitor.c:401: volume file:///media/sda1 mounted
(17:23:16) [0x80f4028] [rb_removable_media_manager_mount_volume] rb-removable-media-manager.c:424: detecting new media - device type=3
(17:23:16) [0x80f4028] [rb_removable_media_manager_mount_volume] rb-removable-media-manager.c:425: detecting new media - volume type=0
(17:23:16) [0x80f4028] [rb_removable_media_manager_mount_volume] rb-removable-media-manager.c:426: detecting new media - fs type=vfat
(17:23:16) [0x80f4028] [rb_removable_media_manager_mount_volume] rb-removable-media-manager.c:427: detecting new media - device path=/dev/sda1
(17:23:16) [0x80f4028] [rb_removable_media_manager_mount_volume] rb-removable-media-manager.c:428: detecting new media - display name=477.2 MB Removable Volume
(17:23:16) [0x80f4028] [rb_removable_media_manager_mount_volume] rb-removable-media-manager.c:429: detecting new media - hal udi=/org/freedesktop/Hal/devices/volume_part1_size_500338688
(17:23:16) [0x80f4028] [rb_removable_media_manager_mount_volume] rb-removable-media-manager.c:430: detecting new media - icon=gnome-dev-harddisk-usb
(17:23:16) [0x80f4028] [rb_removable_media_manager_mount_volume] rb-removable-media-manager.c:445: Unhandled media

I tried creating the .is_audio_player file, and the results were the
same.

Later, I modified the HAL's fdi file for audio players, in order to add
this device, but with no success at all (even when now the player is
mounted as such and not as a storage media). The patch is something like
this:

--- 10-usb-music-players.fdi.bak        2007-07-28 01:08:55.000000000 -0400
+++ 10-usb-music-players.fdi    2007-07-28 01:36:17.000000000 -0400
@@ -66,6 +66,15 @@
           <match key="@storage.originating_device:usb.product_id" int="0x412c">
             <merge key="portable_audio_player.type" type="string">generic</merge>
             <merge key="portable_audio_player.access_method" type="string">storage</merge>
+            <append key="portable_audio_player.input_formats" type="strlist">audio/mpeg</append>
+          </match>
+         <!-- Zen Nano Plus-->
+          <match key="@storage.originating_device:usb.product_id" int="0x4139">
+            <merge key="portable_audio_player.type" type="string">generic</merge>
+            <merge key="portable_audio_player.access_method" type="string">storage</merge>
+            <append key="portable_audio_player.input_formats" type="strlist">audio/mpeg</append>
           </match>
          <!-- NOMAD Jukebox Zen Xtra -->
          <match key="@storage.originating_device:usb.product_id" int="0x4128">

Is there anything I am overlooking?

Greetings,

Claudio

-- 
Claudio Saavedra <csaavedra alumnos utalca cl>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]