Le mardi 31 octobre 2006 Ã 12:44 +0000, Jamie McCracken a Ãcrit :
Laurent Aguerreche wrote:Le mardi 31 octobre 2006 Ã 00:45 +0000, Jamie McCracken a Ãcrit :Baptiste Mille-Mathias wrote:Hello <MyStory> This morning I was testing the amazing tracker-search-tool; When I tried to search 'Thom Yorke' in the list of my audio files, I was surprised not to find any result; specially because I was sure I had some in my Rhythmbox Library -> the reason was the Thom Yorke's tracks are in m4a format. </MyStory> So, as I heard tracker want to be the new way of store the Rhythmbox Library, I wanted to know if it was possible to create an audio extractor that could supports all the files that the system supports (Gstreamer) ?yes a gstreamer based extractor for audio files makes sense - if we have one for video why not audio too? Maybe Laurent is familiar enough with gstreamer to do this quickly?I can recycle my patch for GStreamer/Xine. But this time, how should I do it? * "audio/mpeg", "audio/x-mp3", etc. things become "audio/*" and I remove tracker_extract_mp3() and tracker_extract_vorbis()? * I add tracker_extract_gstreamer() and tracker_extract_xine() (or libxine()?) * I remove using of Totem and MPlayer? What happens if I do not find a metadata with Gstreamer, should I try libXine, then Totem (IMHO it is useless after GStreamer+libXine tries), then MPlayer? * at ./configure, what flags would you be happy to see? --enable-gstreamer and --enable-libxine? * suggestions?hehe yes. Make gstreamer optional and if defined it is used exclusively for both audio and video extraction (all others are disabled). If no metadata found then do *not* try others (xdgmime sometimes incorrectly identifies large binary files as avi video files and they will obviously not have any metadata) Can Xine perform audio extraction? If not make it optional or discard it (I dont mind which) If none of the above enabled, then default to totem and mplayer I will probably have to make the debs use gstreamer if we want to get all audio stuff that we dont currently support (IE FLAC and mp4)
All is done. Use --enable-gstreamer (default) or --enable-libxine to use GStreamer or libXine for audio/video metadata extraction. Extractor based on MPlayer did not work on tags like "title", "comment", "album", etc. I updated it and added copyright (Edward and myself). I cleaned up a bit extractor based on Totem but did not test it since I do not have totem-video-indexer on my box. I also removed use of libvorbis, tracker_extract_mp3 and tracker_extract_vorbis. Code implementing tracker_extract_mp3 seems rather buggy (I found channels=0 or wrong duration and wrong bitrate on some files...). And a question about this code : it seems to have received hard work (look all genre_names and addresses to find data in files for instance) but do not mention any copyright... So, is Edward Duffy its unique author or has it been copied from somewhere? In any way, a copyright must be added at its top if we keep it! Laurent.
Attachment:
universal-audio-and-video-extractor.diff.bz2
Description: application/bzip