CN116320234A - Method and system for managing recorded files of camera - Google Patents
Method and system for managing recorded files of camera Download PDFInfo
- Publication number
- CN116320234A CN116320234A CN202211655031.1A CN202211655031A CN116320234A CN 116320234 A CN116320234 A CN 116320234A CN 202211655031 A CN202211655031 A CN 202211655031A CN 116320234 A CN116320234 A CN 116320234A
- Authority
- CN
- China
- Prior art keywords
- recording
- file
- camera
- recorded
- memory card
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The invention provides a method and a system for managing a camera recording file, which belong to the technical field of camera file management, wherein the method comprises the following steps: step S10, after the camera is started, the storage capacity of the memory card is obtained, and a file system of the memory card is initialized; step S20, creating folders named by the recording formats supported by the camera in the memory card respectively, and setting capacity thresholds of the folders based on the number of the recording formats and the storage capacity; step S30, setting a recording time length, and recording by a camera based on the recording time length to obtain a recording file, and naming the recording file based on the starting time and the deadline of recording; and step S40, circularly storing the recorded file into a corresponding folder based on the recording format of the recorded file. The invention has the advantages that: the management quality of the recorded files of the camera is greatly improved, and the convenience of inquiring the recorded files is greatly improved.
Description
Technical Field
The invention relates to the technical field of camera file management, in particular to a method and a system for managing a camera recording file.
Background
With the advent of the information age, cameras with video recording function have become indispensable electronic products in life, how to record video continuously, and quickly looking up recorded files when there is a demand become the core competitiveness of cameras. However, in the operation process of the traditional camera, recorded files are stored in the storage space continuously, but the stored recorded files are not managed effectively, the problem of overflow of the recorded files is easy to occur, and recorded files in different formats are stored under one folder uniformly, so that inconvenience is brought to management of the recorded files.
Therefore, how to provide a method and a system for managing a recorded file of a camera, so as to improve the management quality of the recorded file of the camera, and facilitate the inquiry of the recorded file, is a technical problem to be solved urgently.
Disclosure of Invention
The invention aims to solve the technical problem of providing a method and a system for managing recorded files of a camera, which can improve the management quality of the recorded files of the camera and facilitate the inquiry of the recorded files.
In a first aspect, the present invention provides a method for managing a recording file of a camera, including the following steps:
step S10, after the camera is started, the storage capacity of the memory card is obtained, and a file system of the memory card is initialized;
step S20, creating folders named by the recording formats supported by the camera in the memory card respectively, and setting capacity thresholds of the folders based on the number of the recording formats and the storage capacity;
step S30, setting a recording time length, and recording by a camera based on the recording time length to obtain a recording file, and naming the recording file based on the starting time and the deadline of recording;
and step S40, circularly storing the recorded file into a corresponding folder based on the recording format of the recorded file.
Further, the step S10 specifically includes:
after the camera is started, automatically checking whether a memory card exists, if so, starting a recording file storage function, acquiring the storage capacity of the memory card, and initializing a file system of the memory card; if not, closing the recording file storage function.
Further, in the step S20, the calculation formula of the capacity threshold is:
capacity threshold = storage capacity/number of recording formats.
Further, in the step S30, the naming rule of the recording file is: start time + separator + cut-off time.
Further, the step S40 specifically includes:
inquiring whether the residual storage space of the corresponding folder is enough to store the recorded file or not based on the recording format and the capacity threshold value of the recorded file, if so, storing the recorded file into the corresponding folder; if not, then:
judging whether the other folders store the recorded files, if so, performing overlay cycle storage on the associated folders based on the starting time carried by the file name of the recorded files; if not, a part of the storage space of the folder not storing the recorded file is allocated to the current folder, the capacity threshold of the current folder is increased, and then the recorded file is stored in the current folder.
In a second aspect, the present invention provides a camera recording file management system, including:
the memory card initializing module is used for acquiring the storage capacity of the memory card after the camera is started and initializing the file system of the memory card;
the file creating module is used for respectively creating file folders named in each recording format supported by the camera in the memory card, and setting the capacity threshold value of each file folder based on the number of the recording formats and the storage capacity;
the recording file generation module is used for setting a recording time length, the camera records a video based on the recording time length to obtain a recording file, and the recording file is named based on the starting time and the deadline of recording;
and the circulation storage module is used for circularly storing the recorded files into corresponding folders based on the recording format of the recorded files.
Further, the memory card initializing module is specifically configured to:
after the camera is started, automatically checking whether a memory card exists, if so, starting a recording file storage function, acquiring the storage capacity of the memory card, and initializing a file system of the memory card; if not, closing the recording file storage function.
Further, in the folder creation module, the calculation formula of the capacity threshold is:
capacity threshold = storage capacity/number of recording formats.
Further, in the recording file generating module, a naming rule of the recording file is: start time + separator + cut-off time.
Further, the cycle storage module is specifically configured to:
inquiring whether the residual storage space of the corresponding folder is enough to store the recorded file or not based on the recording format and the capacity threshold value of the recorded file, if so, storing the recorded file into the corresponding folder; if not, then:
judging whether the other folders store the recorded files, if so, performing overlay cycle storage on the associated folders based on the starting time carried by the file name of the recorded files; if not, a part of the storage space of the folder not storing the recorded file is allocated to the current folder, the capacity threshold of the current folder is increased, and then the recorded file is stored in the current folder.
The invention has the advantages that:
creating folders named in each recording format supported by a camera in the memory card by acquiring the storage capacity of the memory card, setting capacity thresholds of the folders based on the number of the recording formats and the storage capacity, recording by the camera based on the set recording time to obtain recording files, naming the recording files based on the starting time and the deadline of recording, and circularly storing the recording files in the corresponding folders based on the recording formats; the recording files are stored in the corresponding folders based on the recording format, the recording files are named based on the recording time, so that the recording files are searched based on time in the later period, the recording files are circularly covered and stored through the recording time, the capacity threshold value of each folder is dynamically modulated, the recording files are prevented from overflowing, the management quality of the recording files of the camera is finally improved greatly, and the convenience of inquiring the recording files is improved greatly.
Drawings
The invention will be further described with reference to examples of embodiments with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for managing a recording file of a camera according to the present invention.
Fig. 2 is a schematic structural diagram of a camera recording file management system according to the present invention.
Detailed Description
According to the technical scheme in the embodiment of the application, the overall thought is as follows: storing each recorded file into a corresponding folder based on a recording format, naming the recorded files based on recording time so as to search the recorded files based on time in the later period, and further improving convenience of inquiring the recorded files; and circularly covering and storing the recorded files through the recording time, dynamically modulating the capacity threshold value of each folder, and avoiding the overflow of the recorded files so as to improve the management quality of the recorded files of the camera.
Referring to fig. 1 to 2, a preferred embodiment of a method for managing a recording file of a camera according to the present invention includes the following steps:
step S10, after the camera is started, the storage capacity of the memory card is obtained, and a file system of the memory card is initialized;
step S20, creating folders named by the recording formats supported by the camera in the memory card respectively, and setting capacity thresholds of the folders based on the number of the recording formats and the storage capacity;
step S30, setting a recording time length, and recording by a camera based on the recording time length to obtain a recording file, and naming the recording file based on the starting time and the deadline of recording;
and step S40, circularly storing the recorded files into corresponding folders based on the recording format of the recorded files, namely sorting all the recorded files based on the starting time, deleting the old recorded files and storing the new recorded files.
The step S10 specifically includes:
after the camera is started, automatically checking whether a memory card exists, if so, starting a recording file storage function, acquiring the storage capacity of the memory card, and initializing a file system of the memory card; if not, closing the recording file storage function.
In the step S20, the calculation formula of the capacity threshold is:
capacity threshold = storage capacity/number of recording formats. For example, the storage capacity is 3GB, and the recording format includes three types of h264, MP4, AVI, and the capacity threshold is 1GB.
In the step S30, the naming rule of the recording file is: start time + separator + cut-off time. For example, the start time is 10:00, the cutoff time is 10:30, the separator is T, and the file name is 10:00T10:30. by setting the separator, a quick positioning of the start time and the deadline is facilitated.
The step S40 specifically includes:
inquiring whether the residual storage space of the corresponding folder is enough to store the recorded file or not based on the recording format and the capacity threshold value of the recorded file, if so, storing the recorded file into the corresponding folder; if not, then:
judging whether the other folders store the recorded files, if so, performing overlay cycle storage on the associated folders based on the starting time carried by the file name of the recorded files; if not, a part of the storage space of the folder not storing the recorded file is allocated to the current folder, the capacity threshold of the current folder is increased, and then the recorded file is stored in the current folder.
For example, the storage capacity of the memory card is 3GB, the recording format comprises three types of h264, MP4 and AVI, folders with folder names of h264, MP4 and AVI are respectively established, and the capacity threshold value of each folder is 1GB; the recording format of the recorded file recorded at present is h264, the folder h264 is full, the folder MP4 is not stored with the recorded file, the folder AVI is stored with the recorded file, half of the storage space of the folder MP4 is allocated to the folder h264, the capacity threshold of the folder h264 is 1.5GB, the capacity threshold of the folder MP4 is 0.5GB, and the recorded file is stored in the folder h264.
The preferred embodiment of the invention relates to a camera recording file management system, which comprises the following modules:
the memory card initializing module is used for acquiring the storage capacity of the memory card after the camera is started and initializing the file system of the memory card;
the file creating module is used for respectively creating file folders named in each recording format supported by the camera in the memory card, and setting the capacity threshold value of each file folder based on the number of the recording formats and the storage capacity;
the recording file generation module is used for setting a recording time length, the camera records a video based on the recording time length to obtain a recording file, and the recording file is named based on the starting time and the deadline of recording;
and the circulation storage module is used for circularly storing the recorded files into corresponding folders based on the recording format of the recorded files, namely sorting all the recorded files based on the starting time, deleting the old recorded files and storing the new recorded files.
The memory card initializing module is specifically configured to:
after the camera is started, automatically checking whether a memory card exists, if so, starting a recording file storage function, acquiring the storage capacity of the memory card, and initializing a file system of the memory card; if not, closing the recording file storage function.
In the folder creation module, the calculation formula of the capacity threshold is as follows:
capacity threshold = storage capacity/number of recording formats. For example, the storage capacity is 3GB, and the recording format includes three types of h264, MP4, AVI, and the capacity threshold is 1GB.
In the recording file generating module, naming rules of the recording file are as follows: start time + separator + cut-off time. For example, the start time is 10:00, the cutoff time is 10:30, the separator is T, and the file name is 10:00T10:30. by setting the separator, a quick positioning of the start time and the deadline is facilitated.
The cycle storage module is specifically configured to:
inquiring whether the residual storage space of the corresponding folder is enough to store the recorded file or not based on the recording format and the capacity threshold value of the recorded file, if so, storing the recorded file into the corresponding folder; if not, then:
judging whether the other folders store the recorded files, if so, performing overlay cycle storage on the associated folders based on the starting time carried by the file name of the recorded files; if not, a part of the storage space of the folder not storing the recorded file is allocated to the current folder, the capacity threshold of the current folder is increased, and then the recorded file is stored in the current folder.
For example, the storage capacity of the memory card is 3GB, the recording format comprises three types of h264, MP4 and AVI, folders with folder names of h264, MP4 and AVI are respectively established, and the capacity threshold value of each folder is 1GB; the recording format of the recorded file recorded at present is h264, the folder h264 is full, the folder MP4 is not stored with the recorded file, the folder AVI is stored with the recorded file, half of the storage space of the folder MP4 is allocated to the folder h264, the capacity threshold of the folder h264 is 1.5GB, the capacity threshold of the folder MP4 is 0.5GB, and the recorded file is stored in the folder h264.
In summary, the invention has the advantages that:
creating folders named in each recording format supported by a camera in the memory card by acquiring the storage capacity of the memory card, setting capacity thresholds of the folders based on the number of the recording formats and the storage capacity, recording by the camera based on the set recording time to obtain recording files, naming the recording files based on the starting time and the deadline of recording, and circularly storing the recording files in the corresponding folders based on the recording formats; the recording files are stored in the corresponding folders based on the recording format, the recording files are named based on the recording time, so that the recording files are searched based on time in the later period, the recording files are circularly covered and stored through the recording time, the capacity threshold value of each folder is dynamically modulated, the recording files are prevented from overflowing, the management quality of the recording files of the camera is finally improved greatly, and the convenience of inquiring the recording files is improved greatly.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that the specific embodiments described are illustrative only and not intended to limit the scope of the invention, and that equivalent modifications and variations of the invention in light of the spirit of the invention will be covered by the claims of the present invention.
Claims (10)
1. A method for managing a recording file of a camera is characterized by comprising the following steps: the method comprises the following steps:
step S10, after the camera is started, the storage capacity of the memory card is obtained, and a file system of the memory card is initialized;
step S20, creating folders named by the recording formats supported by the camera in the memory card respectively, and setting capacity thresholds of the folders based on the number of the recording formats and the storage capacity;
step S30, setting a recording time length, and recording by a camera based on the recording time length to obtain a recording file, and naming the recording file based on the starting time and the deadline of recording;
and step S40, circularly storing the recorded file into a corresponding folder based on the recording format of the recorded file.
2. The method for managing recorded files of a camera as claimed in claim 1, wherein: the step S10 specifically includes:
after the camera is started, automatically checking whether a memory card exists, if so, starting a recording file storage function, acquiring the storage capacity of the memory card, and initializing a file system of the memory card; if not, closing the recording file storage function.
3. The method for managing recorded files of a camera as claimed in claim 1, wherein: in the step S20, the calculation formula of the capacity threshold is:
capacity threshold = storage capacity/number of recording formats.
4. The method for managing recorded files of a camera as claimed in claim 1, wherein: in the step S30, the naming rule of the recording file is: start time + separator + cut-off time.
5. The method for managing recorded files of a camera as claimed in claim 1, wherein: the step S40 specifically includes:
inquiring whether the residual storage space of the corresponding folder is enough to store the recorded file or not based on the recording format and the capacity threshold value of the recorded file, if so, storing the recorded file into the corresponding folder; if not, then:
judging whether the other folders store the recorded files, if so, performing overlay cycle storage on the associated folders based on the starting time carried by the file name of the recorded files; if not, a part of the storage space of the folder not storing the recorded file is allocated to the current folder, the capacity threshold of the current folder is increased, and then the recorded file is stored in the current folder.
6. A camera recording file management system is characterized in that: the device comprises the following modules:
the memory card initializing module is used for acquiring the storage capacity of the memory card after the camera is started and initializing the file system of the memory card;
the file creating module is used for respectively creating file folders named in each recording format supported by the camera in the memory card, and setting the capacity threshold value of each file folder based on the number of the recording formats and the storage capacity;
the recording file generation module is used for setting a recording time length, the camera records a video based on the recording time length to obtain a recording file, and the recording file is named based on the starting time and the deadline of recording;
and the circulation storage module is used for circularly storing the recorded files into corresponding folders based on the recording format of the recorded files.
7. The camera recording file management system of claim 6, wherein: the memory card initializing module is specifically configured to:
after the camera is started, automatically checking whether a memory card exists, if so, starting a recording file storage function, acquiring the storage capacity of the memory card, and initializing a file system of the memory card; if not, closing the recording file storage function.
8. The camera recording file management system of claim 6, wherein: in the folder creation module, the calculation formula of the capacity threshold is as follows:
capacity threshold = storage capacity/number of recording formats.
9. The camera recording file management system of claim 6, wherein: in the recording file generating module, naming rules of the recording file are as follows: start time + separator + cut-off time.
10. The camera recording file management system of claim 6, wherein: the cycle storage module is specifically configured to:
inquiring whether the residual storage space of the corresponding folder is enough to store the recorded file or not based on the recording format and the capacity threshold value of the recorded file, if so, storing the recorded file into the corresponding folder; if not, then:
judging whether the other folders store the recorded files, if so, performing overlay cycle storage on the associated folders based on the starting time carried by the file name of the recorded files; if not, a part of the storage space of the folder not storing the recorded file is allocated to the current folder, the capacity threshold of the current folder is increased, and then the recorded file is stored in the current folder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211655031.1A CN116320234A (en) | 2022-12-22 | 2022-12-22 | Method and system for managing recorded files of camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211655031.1A CN116320234A (en) | 2022-12-22 | 2022-12-22 | Method and system for managing recorded files of camera |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116320234A true CN116320234A (en) | 2023-06-23 |
Family
ID=86796663
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211655031.1A Pending CN116320234A (en) | 2022-12-22 | 2022-12-22 | Method and system for managing recorded files of camera |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116320234A (en) |
-
2022
- 2022-12-22 CN CN202211655031.1A patent/CN116320234A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104346357B (en) | The file access method and system of a kind of built-in terminal | |
US8953927B2 (en) | Data processing system, apparatus and method for processing information, recording and playback apparatus, and computer program | |
CN106326292B (en) | Data structure and file aggregation and reading method and device | |
US5740445A (en) | Information processing apparatus for generating directory information to manage a file using directories | |
CN101097577B (en) | File management device and electronic equipment | |
US20120014667A1 (en) | Recording medium for storing information for still picture, recording and/or reproducing method and apparatus therefor | |
US20090043963A1 (en) | Removable storage device with code to allow change detection | |
CN106599292B (en) | Method and system for storing real-time video data and image data | |
US5585845A (en) | Electronic still camera having data storage device and method for recording image data within said data storage device | |
CN110764706A (en) | Storage system, data management method, and storage medium | |
CN102340699B (en) | Preserve TV user history and use the method and system of information | |
CN101282446A (en) | Image recording device, player device, imaging device, player system, method of recording image, and computer program | |
US11250888B1 (en) | Flash memory and method for storing and retrieving embedded audio video data | |
CN108920725B (en) | Object storage method and object storage gateway | |
CN111797060B (en) | Offline video recording method, device and equipment and computer readable storage medium | |
CN113448946B (en) | Data migration method and device and electronic equipment | |
CN102075670B (en) | Log recording method and device for broadcast machine | |
CN116320234A (en) | Method and system for managing recorded files of camera | |
CN112306748B (en) | Data recovery method, device and storage medium | |
WO2021128893A1 (en) | Method and system for identifying garbage data, electronic device, and storage medium | |
CN116894052A (en) | Material list comparison method, device, storage medium and processor | |
CN107291909B (en) | Data processing method and system | |
CN103905694A (en) | Key frame processing method and system | |
US20090271458A1 (en) | Data storage system and storing method thereof | |
CN111966533B (en) | Electronic file management method, electronic file management device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |