[mythtv-users] Store Recording Previews in a seperate location

Mike Perkins mikep at randomtraveller.org.uk
Sat Nov 20 11:04:08 UTC 2010


E. Westbrook wrote:
> If any work is being done on recording file naming conventions, I would like
> to pipe in.  Please use truly unique filenames, either with an ID in them or
> using UTC, to make them impervious to time/channel filename collisions and
> other potential issues that exist today.
> 
I support this suggestion. One thing I've always found is that it is difficult 
to remember video filenames because they are so long, particularly if you are 
hunting for a file over several storage volumes. It's easy to write the wrong 
thing down when you have a long string of pseudo-random digits.

This is because so much information is encoded into the filename. IMO this 
information should be kept where it belongs, in the database. Each file could be 
identified by a simple record_id value, say a 4- or 5-digit number, perhaps with 
a simple prefix indicating that it's a recording or a video or whatever.

This record_id is obviously the (automatically incrementing) primary key for the 
DB record which holds all the other info. It would make human identification of 
a file much easier. It would make running manual processes against the files 
much easier. Side benefit: if it is necessary to do a rescan and the channel_id 
changes, it isn't going to affect previously-recorded files, whereas with the 
current system old files now end up referencing the 'wrong' channel.

Thoughts?

-- 

Mike Perkins



More information about the mythtv-users mailing list