On 09/09/2010 14:46, A Mennucc wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > hi > > here is an idea that I have been thinking for some time. > > - -- Summary > > Freevo manages some extra metadata regarding media files; it would be > better if these metadata may be stored all in one place , and IMHO > that place may be the associated .fxd file . This would reduce cruft in > the filesystem, improve code mantainability, etc etc. > > --- Long story > > In my Freevo box, > the recorded TV shows are in /data9/tv/ , > the cache is in ~/cache , > > Here is a list of metadata I found around. > > -- autoresume > > When I quit viewing a show, the current position is stored so > that it is possible, later, to resume playback ; it is stored > by the code in src/video/plugins/bookmarker.py using a call > item.store_info('autobookmark_resume', item.elapsed) > but this key,value pair is then stored in a pickled database inside > ~/cache/vfs/data9/tv/freevo.cache > > This is a somewhat weird position, indeed this database contains > only the keys 'autobookmark_resume' for all files, and for many files > that I have long deleted or moved elsewhere; (not to mention that it is > not the most intuitive place, it took me long time to find where this > data was eventually saved). > > When the file is deleted, the freevo.cache file is not updated, so the > info is left over , and this generates cruft. Similarly if a file is > moved to a subdir using the 'cart' > > - - bookmarks > > Another info is the 'bookmarks' . Let's make a concrete example. > Consider a show recorded in a file called > /data/tv/Star_Trek/2010-08-08-22-00-star-trek.avi > then the bookmarks are saved in > ~/cache/2010-08-08-22-00-star-trek.avi > > There is an inherent flaw in this approach. I have 693 video files > recorded from TV ; so obviously I keep them organized by sub- and > sub-sub-directories; but this directory structure is not reflected in > the bookmark's files in the cache, so that this setting would conflict > if two files by same name and in different dirs would be bookmarked. > > - the thumbnail > > for each recorded TV show, an image thumbnail is stored, but I don't > recall where. > > - So what? > > My proposal would be to store all above info (but maybe for the > thumbnail) in the .fxd file. > > This would reduce leftover cruft: when the file is deleted, all info > would disappear. When a file is moved around, then all info follow > it. If I burn a movie to CDROM then the bookmarks I put on it would be > saved as well. > > What do you think? > > a. Hi,
This seems reasonable to me. You've probably seen Adam's post today about the next release and submission date of the 14th of November for new features so you'd need to get this work in by then for inclusion in the last version of freevo-1. John ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel