-----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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyI5UEACgkQ9B/tjjP8QKTzWACfQYqPDCMkvwcFQtIhsHxKl83S
FhgAmgJQ7gh9ij2+CFDF+auf30pTLFK4
=gsYz
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to