Also, what app are you referring to?
My app is a vb5 program that was started in 1999..
11,000 lines of spaghetti code.
http://www.telusplanet.net/public/stonedan/source.txt
If you need to query data about files like that, why aren't you using some sort of database? Something like SQLite is great for this sort of single-user application that needs to be highly portable. Metadata can be stored in a way that you can query upon and it's likely faster than scanning the file system. The problem is that at scale, performance may be suboptimal on rotational media drives and this might not work well because you're essentially doing random I/O to determine file names, whereas using something like SQLite is far more likely to do sequential reads to find the same data. I suspect you don't want to store all of your video on an SSD. In addition to that, if you use something like SQLite, you can put the catalog on an SSD while keeping the content on a spinny disk, giving you both excellent performance, and good scaling as your media library grows.
Personally, I think using the file name for anything other than unique identification is a mistake and is possibly error prone. Using an external catalog with hashes could let you detect duplicates and renamed files as well. All things to consider.
Edit: A database could also let you record several tagged times on a single video, which could themselves have their own unique names, so that's a thing too.
Random is just fun.. exciting... beautiful...
To catalog all my mpg videos... one simple function.. and it's created in 2 or 3 minutes
a text file with 2 lines per video is created..
The first is the "search criteria line" and the 2nd is the path to said video.
3000 videos would result in 6000 lines in the text file...
The app counts the number of lines in the file and generates a RANDOM number
It reads to that point and starts the search.. If no match found in 3 lines then another random is generated..
The date time stamp on videos can be very useful...
We did a golf tournament video.. 2 camcorders at a beautiful hole..
by having the camcorder times set to 15 or 20 seconds apart.
We could download both camcorders clips for each golfer...
And they would be automatically sorted into order.
I created a specific catalog function that set these 2 lines up...
one set to play the full 4 or 5 second clip
a next set to play the last second in slow motion (the swing)
Looks like you reinvented the wheel even though there are things out there for this already.
This is the THING you can use forever.. 20 years old already and just getting better... What a Wheel.
Reinventing the wheel is okay if it's a better wheel. I personally see value in things like data deduplication and being able to search your files with your own metadata. I think there is value in that, but there isn't value in trying to cram all of that information in a filename. I think the idea is fine, I just question the implementation.
When we originally did the family albums.. scanned in around 2000.. we put the metadata into the hand made catalog file.
Now.. I'll want to change the CP feature that copies files to another folder... so that it will change the name to contain all the catalog details..
I don't worry much about data duplication.. I worry about losing stuff.. and that doesn't happen when everything I have is in 1 huge folder..
I just drag and drop that to an external 3TB drive.. Duplicates and all..
Back in the Day the Wheel only had 8 characters for a file name... now now it's <=260
Being able to explain how Search works.. And the source code right there.. People can make use of it..
Reinventing the wheel is okay if it's a better wheel. I personally see value in things like data deduplication and being able to search your files with your own metadata. I think there is value in that, but there isn't value in trying to cram all of that information in a filename. I think the idea is fine, I just question the implementation.
Yup having my own metadata allows me to see if any files have gone corrupt or missing.
Same with video. play the first few seconds and last few of all clips.. They can be corrupted..
You wouldn't know unless you had a master list.. or compared backups to backups... Handy in the long run.. for sure
With filenames now.... One doesn't have to type them in more than once.
the rename / copy / paste makes it easy to have those names at hand..
Curation without random ... I don't want it..