CN109874049A - A method of video frame reading speed is extracted in optimization - Google Patents

A method of video frame reading speed is extracted in optimization Download PDF

Info

Publication number
CN109874049A
CN109874049A CN201910060936.6A CN201910060936A CN109874049A CN 109874049 A CN109874049 A CN 109874049A CN 201910060936 A CN201910060936 A CN 201910060936A CN 109874049 A CN109874049 A CN 109874049A
Authority
CN
China
Prior art keywords
video
frame
file
cluster
data
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.)
Granted
Application number
CN201910060936.6A
Other languages
Chinese (zh)
Other versions
CN109874049B (en
Inventor
曾传杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Xinmai Microelectronics Co ltd
Original Assignee
Hangzhou Mai Integrated Circuit Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Mai Integrated Circuit Technology Co Ltd filed Critical Hangzhou Mai Integrated Circuit Technology Co Ltd
Priority to CN201910060936.6A priority Critical patent/CN109874049B/en
Publication of CN109874049A publication Critical patent/CN109874049A/en
Application granted granted Critical
Publication of CN109874049B publication Critical patent/CN109874049B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

Disclosed by the invention is a kind of method that video frame reading speed is extracted in optimization, including storing step, read step, storing step is that video file downloading is stored in embedded fat32 file system, read step is to read the video data of each frame, reading video requency frame data using the method for the present invention may be implemented several frames enhancing in one second from the prior art to one second frame up to a hundred, to guarantee that video frame read stablizes high frame per second;It will not influence video playing frame per second, improve the reading speed of video frame, to guarantee video playing frame per second.

Description

A method of video frame reading speed is extracted in optimization
Technical field
The present invention relates to a kind of methods of reading speed, more specifically say, are related to a kind of optimization extraction video frame reading The method of speed belongs to embedded video and plays field.
Background technique
In embedded systems play be stored in fat32 file system video file when read video file have with Under several steps:
1) format for, analyzing video file, according to specific format determine video frame be located at the specific location of video file with Length;
2) position, got according to back and length read video frame to fat32 file system requests;
3), Fat32 file system obtains the corresponding cluster number in position of previous step request according to the fat sheet format of itself, and Cluster number is converted to final hardware address;
4), the hardware address obtained according to previous step initiates multiple read request to hardware;
5), hardware returns to video requency frame data and uses to program;
When playing video in order to reach certain frame per second, before playing previous frame, the data of next frame are had to It is ready to, the speed for then reading video frame is particularly critical, but due to itself storage characteristics of fat32 file system, the following The reading speed of serious limitation video frame, that is, the problem of presence:
1), as shown in Figure 1, in order to determine that the position of each video frame is necessarily required to repeatedly read fat table, by document misregistration Be converted to cluster number;
2), as shown in Figure 1, fat32 file system is using cluster as storage cell, the data length of a video frame has and has greatly It is small, if frame crosses over several clusters, it is possible to which need repeatedly to read fat table just can determine that the corresponding cluster of all video frames Position;
3) it, repeatedly requests read operation speed that can greatly increase protocol overhead to hardware, and then influences speed.
Due to the presence of the above Railway Project, it is likely that video data reading efficiency can be seriously affected and broadcast to influence video Frame per second is put, when being shown if it is multichannel local video, is influenced even more serious.
Summary of the invention
In order to solve above-mentioned prior art problem, the present invention, which provides to have, can be improved the technologies such as local video frame reading speed The method that video frame reading speed is extracted in a kind of optimization of feature.
To achieve the goals above, the present invention is achieved by the following technical solutions:
A method of video frame reading speed is extracted in optimization, and this method includes storing step, read step, the storage Step is that video file downloading is stored in embedded fat32 file system comprising following steps:
Step 1): formatted storage medium is fat32 file system, and specified cluster size can be large enough to hold each frame video The limitation of every one-frame video data is stored in cluster by data;
Step 2): in one fat32 file system to embedded system of transplanting;
Step 3): upper computer software parsing video format file is write, obtains the video data of each frame, and requesting will be every The video data of one frame is sent to embedded system;
Step 4): local built-in system software is write for receiving the request of upper computer software, receives upper computer software Video data request is sent, and creates a videogram under the root directory for each new video files;
Step 5): receiving the video data of each frame of host computer, and is the video data of each frame in corresponding video A file is created under catalogue, and video file name is named with frame number, obtains several video frame files;
The read step is to read the video data of each frame comprising following steps:
Step 1): obtaining the cluster number of root, and the first cluster of the root is close to FAT2, the area Zhan Cu sequentially the 1st Cluster;
Step 2): reading the data of the corresponding cluster of root, and reads video file name as needed, finds corresponding mesh Item is recorded, the corresponding cluster number of the directory entry is found with this;The data of cluster are the file entry of each video frame file, are recorded in the middle Each video frame file corresponding cluster position;
Step 3): the corresponding cluster of the directory entry is read;
Step 4): corresponding file entry in cluster is successively indexed according to the frame number of video file name, is found respectively each The corresponding file entry of frame video data;
Step 5): the corresponding cluster number of video frame file and cluster length are found according to the file entry of every one-frame video data;
Step 6): being the address and length that hardware needs by cluster number and cluster length transition;
Step 7): according to the cluster number and length of acquisition, hardware read command is initiated;
Step 8): hardware returns to video requency frame data.
As an improvement short file entry length is all fixed as 4 bytes, the frame number of video file name is since 0 It is named and is sorted with natural positive integer.
Enhance the utility model has the advantages that reading video requency frame data using the method for the present invention and one second several frame from the prior art may be implemented To one second frame up to a hundred, thus guarantee video frame read stablize high frame per second;It will not influence video playing frame per second, improve video frame Reading speed, to guarantee video playing frame per second.
Detailed description of the invention
Fig. 1 is to need to find lower cluster schematic diagram in the prior art.
Fig. 2 is video frame file index cluster schematic diagram in the present invention.
Fig. 3 is video frame file under videogram in the embodiment of the present invention 1.
Specific embodiment
Below in conjunction with Figure of description, the invention will be further described, but the invention is not limited to following embodiments.
Embodiment 1
A kind of specific embodiment for being as Figure 2-3, method that video frame reading speed is extracted in optimization of the embodiment, should Method includes storing step, read step, and the storing step is that video file downloading is stored in embedded fat32 file system In system comprising following steps:
Step 1): formatted storage medium (such as CF card) is fat32 file system, and specified cluster size can be large enough to hold The limitation of every one-frame video data is stored in cluster by every one-frame video data;
Step 2): in one fat32 file system to embedded system of transplanting;Embedded system be completely embedded into it is controlled Device inside, the dedicated computer system designed for specific application, the core of embedded system are by one or several preparatory Programming it is good be used to execute several tasks microprocessor or singlechip group at.User can be run with general purpose computer The software of selection is different, and the software in embedded system is usually temporarily constant, so being frequently referred to as firmware;
Step 3): upper computer software parsing video format file is write, obtains the video data of each frame, and requesting will be every The video data of one frame is sent to embedded system;Upper computer software is mounted in the software in computer, be used to and slave computer into Row communication, control or the data for reading slave computer;
Step 4): local built-in system software is write for receiving the request of upper computer software, receives upper computer software Video data request is sent, and creates a videogram under the root directory for each new video files;
Step 5): receiving the video data of each frame of host computer, and is the video data of each frame in corresponding video A file is created under catalogue, video file name is named with frame number, as shown in figure 3, directory name is video, includes under catalogue Frame0, frame1, rame2, frame3, rame4, frame5, rame6, frame7 video frame file;
The read step is to read the video data of each frame comprising following steps:
Step 1): obtaining the cluster number of root, and the first cluster of the root is close to FAT2, the area Zhan Cu sequentially the 1st Cluster;
Step 2): reading the data of the corresponding cluster of root, and reads video file name as needed, finds corresponding mesh Item is recorded, the corresponding cluster number of the directory entry is found with this;The data of cluster are the file entry of each video frame file, are recorded in the middle Each video frame file corresponding cluster position;Since catalogue is placed under root, the position of the cluster of root is fixed , so obtaining very fast according to directory entry position each in root cluster;As shown in Fig. 2, according to video frame filename rope File entry is guided to so that it is determined that the corresponding cluster position of video frame, short essay part list length all fixes 4 bytes, according to video file The frame number 0 of name, 1,2, x, so that it may the position of file entry is determined according to formula 4*x;
Step 3): the corresponding cluster of the directory entry is read;
Step 4): corresponding file entry in cluster is successively indexed according to the frame number of video file name, is found respectively each The corresponding file entry of frame video data;As shown in Fig. 2, such as corresponding first file entry 1 of frame0, frame1 corresponding second A file entry 2, each short file entry are 4 bytes;
Step 5): the corresponding cluster number of video frame file and cluster length are found according to the file entry of every one-frame video data;
Step 6): being the address and length that hardware needs by cluster number and cluster length transition;
Step 7): according to the cluster number and length of acquisition, hardware read command is initiated;
Step 8): hardware returns to video requency frame data.
Finally it should be noted that present invention is not limited to the above embodiments, there can also be many variations.This field it is general All deformations that logical technical staff directly can export or associate from present disclosure, are considered as of the invention Protection scope.

Claims (2)

1. a kind of method that video frame reading speed is extracted in optimization, it is characterised in that this method includes storing step, read step, The storing step is that video file downloading is stored in embedded fat32 file system comprising following steps:
Step 1): formatted storage medium is fat32 file system, and specified cluster size can be large enough to hold each frame video counts According to, by every one-frame video data limitation be stored in cluster;
Step 2): in one fat32 file system to embedded system of transplanting;
Step 3): upper computer software parsing video format file is write, obtains the video data of each frame, and request each frame Video data send to embedded system;
Step 4): local built-in system software is write for receiving the request of upper computer software, upper computer software is received and sends Video data request, and a videogram is created under the root directory for each new video files;
Step 5): receiving the video data of each frame of host computer, and is the video data of each frame in corresponding videogram One file of lower creation names video file name with frame number, obtains several video frame files;
The read step is to read the video data of each frame comprising following steps:
Step 1): obtaining the cluster number of root, and the first cluster of the root is close to FAT2, the 1st cluster of the area Zhan Cu sequentially;
Step 2): reading the data of the corresponding cluster of root, and reads video file name as needed, finds corresponding catalogue , the corresponding cluster number of the directory entry is found with this;The data of cluster are the file entry of each video frame file, are had recorded in the middle The corresponding cluster position of each video frame file;
Step 3): the corresponding cluster of the directory entry is read;
Step 4): successively indexing corresponding file entry in cluster according to the frame number of video file name, finds each frame view respectively Frequency is according to corresponding file entry;
Step 5): the corresponding cluster number of video frame file and cluster length are found according to the file entry of every one-frame video data;
Step 6): being the address and length that hardware needs by cluster number and cluster length transition;
Step 7): according to the cluster number and length of acquisition, hardware read command is initiated;
Step 8): hardware returns to video requency frame data.
2. the method that video frame reading speed is extracted in a kind of optimization according to claim 1, it is characterised in that: short file List length is all fixed as 4 bytes, and the frame number of video file name is to name to sort with natural positive integer since 0.
CN201910060936.6A 2019-01-23 2019-01-23 Method for optimizing and extracting video frame reading speed Active CN109874049B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910060936.6A CN109874049B (en) 2019-01-23 2019-01-23 Method for optimizing and extracting video frame reading speed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910060936.6A CN109874049B (en) 2019-01-23 2019-01-23 Method for optimizing and extracting video frame reading speed

Publications (2)

Publication Number Publication Date
CN109874049A true CN109874049A (en) 2019-06-11
CN109874049B CN109874049B (en) 2021-04-27

Family

ID=66917914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910060936.6A Active CN109874049B (en) 2019-01-23 2019-01-23 Method for optimizing and extracting video frame reading speed

Country Status (1)

Country Link
CN (1) CN109874049B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1486462A (en) * 2001-01-12 2004-03-31 ������������ʽ���� Data recorder
CN1522534A (en) * 2001-07-04 2004-08-18 ������������ʽ���� Image recording equipment
CN101008919A (en) * 2007-01-31 2007-08-01 浙江大学 Audio/video data access method and device based on raw device
JP2009026402A (en) * 2007-07-20 2009-02-05 Teac Corp Optical disk device
US20140075544A1 (en) * 2012-09-11 2014-03-13 Toshiba Samsung Storage Technology Korea Corporation Device and method for authenticating contents-protected information
CN104394371A (en) * 2014-12-01 2015-03-04 北京理工大学 System for large amount continuous image collection and quick storage
CN104484427A (en) * 2014-12-19 2015-04-01 武汉长江通信智联技术有限公司 Video file storage device and video file storage method
CN104991746A (en) * 2015-07-27 2015-10-21 深圳市蓝天威视科技有限公司 Method and system for storing and reading record data in FAT hard disk
CN107729566A (en) * 2017-11-14 2018-02-23 郑州天迈科技股份有限公司 A kind of index method for reconstructing for public transport vehicle-mounted hard disk audio/video data access

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1486462A (en) * 2001-01-12 2004-03-31 ������������ʽ���� Data recorder
CN1522534A (en) * 2001-07-04 2004-08-18 ������������ʽ���� Image recording equipment
CN101008919A (en) * 2007-01-31 2007-08-01 浙江大学 Audio/video data access method and device based on raw device
JP2009026402A (en) * 2007-07-20 2009-02-05 Teac Corp Optical disk device
US20140075544A1 (en) * 2012-09-11 2014-03-13 Toshiba Samsung Storage Technology Korea Corporation Device and method for authenticating contents-protected information
CN104394371A (en) * 2014-12-01 2015-03-04 北京理工大学 System for large amount continuous image collection and quick storage
CN104484427A (en) * 2014-12-19 2015-04-01 武汉长江通信智联技术有限公司 Video file storage device and video file storage method
CN104991746A (en) * 2015-07-27 2015-10-21 深圳市蓝天威视科技有限公司 Method and system for storing and reading record data in FAT hard disk
CN107729566A (en) * 2017-11-14 2018-02-23 郑州天迈科技股份有限公司 A kind of index method for reconstructing for public transport vehicle-mounted hard disk audio/video data access

Also Published As

Publication number Publication date
CN109874049B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
TWI702506B (en) System, machine readable medium, and machine-implemenated method for merge tree garbage metrics
US9286165B2 (en) Apparatus and method for recovering partition using backup boot record information
US9619512B2 (en) Memory searching system and method, real-time searching system and method, and computer storage medium
JP5029513B2 (en) Information processing apparatus, information processing apparatus control method, and program
US20120166400A1 (en) Techniques for processing operations on column partitions in a database
CN106462592A (en) Systems and methods to optimize multi-version support in indexes
CN103150395B (en) Directory path analysis method of solid state drive (SSD)-based file system
CN107682399B (en) File folder breakpoint continuous transmission method based on big data
US10515078B2 (en) Database management apparatus, database management method, and storage medium
CN109284252B (en) Lightweight file system management method in communication equipment
CN111538724A (en) Method for managing index
CN112988916B (en) Full and incremental synchronization method, apparatus and storage medium for Clickhouse
WO2023093607A1 (en) Offline data fuzzy search method and apparatus, device and medium
US20120307148A1 (en) Method and device for demultiplexing audio & video data of multimedia file
CN105787012A (en) Method for improving small file processing capability of storage system and storage system
CN112597345B (en) Automatic acquisition and matching method for laboratory data
CN104035993A (en) Memory search method for e-books, e-book management system and reading system
CN110515958A (en) Data consistency method, apparatus, equipment and storage medium based on big data
CN102752294A (en) Method and system for synchronizing data of multiple terminals on basis of equipment capacity
US8600990B2 (en) Interacting methods of data extraction
CN110008174A (en) A kind of catalogue deriving method, system and relevant apparatus
CN107423321B (en) Method and device suitable for cloud storage of large-batch small files
CN114116611A (en) File scanning method and related device
CN101894131A (en) Video storage method convenient for rapidly retrieving images
US20090248691A1 (en) Interacting methods of data summarization

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
CB02 Change of applicant information

Address after: 311400 4th floor, building 9, Yinhu innovation center, No. 9, Fuxian Road, Yinhu street, Fuyang District, Hangzhou City, Zhejiang Province

Applicant after: Hangzhou xiongmai integrated circuit technology Co.,Ltd.

Address before: 311422 four floor, 9 floor, Silver Lake innovation centre, 9 Fu Fu Road, Fuyang Lake District, Hangzhou, Zhejiang.

Applicant before: HANGZHOU XIONGMAI INTEGRATED CIRCUIT TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Method of Optimizing the Reading Speed of Video Frames

Effective date of registration: 20221109

Granted publication date: 20210427

Pledgee: Zhejiang Fuyang Rural Commercial Bank branch Limited by Share Ltd. Silver Lake

Pledgor: Hangzhou xiongmai integrated circuit technology Co.,Ltd.

Registration number: Y2022980021287

PE01 Entry into force of the registration of the contract for pledge of patent right
CP03 Change of name, title or address

Address after: 311422 4th floor, building 9, Yinhu innovation center, 9 Fuxian Road, Yinhu street, Fuyang District, Hangzhou City, Zhejiang Province

Patentee after: Zhejiang Xinmai Microelectronics Co.,Ltd.

Address before: 311400 4th floor, building 9, Yinhu innovation center, No.9 Fuxian Road, Yinhu street, Fuyang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou xiongmai integrated circuit technology Co.,Ltd.

CP03 Change of name, title or address
PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20210427

Pledgee: Zhejiang Fuyang Rural Commercial Bank branch Limited by Share Ltd. Silver Lake

Pledgor: Hangzhou xiongmai integrated circuit technology Co.,Ltd.

Registration number: Y2022980021287

PC01 Cancellation of the registration of the contract for pledge of patent right