-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Follow DCF for DVR storage #418
Follow DCF for DVR storage #418
Conversation
- Store DVR files in /DCIM/100HDZRO/ - Extend index length to 4 (hdz_xxx to hdz_xxxx)
|
When the file index is 9999, what is the next index? I don't seem to find the code to clear the index to 0, I guess the index will become 10000. Is this acceptable? |
Good call, overlooked that one. Yes, Regarding the next index after 9999 - I don't think we'll ever get to that point, so it is acceptable for now. DVR files have a large size, SD card will be filled long before we hit 9999 files. Using DCF in general allows us to review DVR files on iOS. In a future release we can further enhance the DCF format. Each DCF directory may contain up to 9999 DCF objects, numbered from "0001" to "9999". This number is also known as a "file number". |
@sanderpuh |
If users use time to name video files, can they satisfy DCF? |
You mean this should change in case we're generating multiple subdirectories, correct? As is, the directory
If users use date / time to name video files, ánd you want to satisfy DCF, you have to stay within the rules of DCF. You could use the subdirectory and file numbering to include the date in naming. Subdirectories Files For example:
xxx: unique directory number 100...999 The final file in the above example would be NOTE: I have not tested the above directory example as DCF structure yet! This requires further testing, perhaps there's better naming structures as well. |
Currently this PR will cause the recording to not start because the DCIM/100HDZRO folder is not created correctly. The option to name the DVR by date is in the menu, please test it. |
DCF is satisfied when |
@ligenxxxx please see #422 - Subdirectory is now created correctly, and permissions set to 777. Naming Scheme options are best of both worlds, people can then choose between DCF format or Date format. The option to change the Naming Scheme is greyed out because I don't have the RTC battery installed in the goggles, so I could not test that option (yet). |
Design rule for Camera File system (DCF)