CN102857834B - Read the method for video progress - Google Patents
Read the method for video progress Download PDFInfo
- Publication number
- CN102857834B CN102857834B CN201210342526.9A CN201210342526A CN102857834B CN 102857834 B CN102857834 B CN 102857834B CN 201210342526 A CN201210342526 A CN 201210342526A CN 102857834 B CN102857834 B CN 102857834B
- Authority
- CN
- China
- Prior art keywords
- time
- video
- file
- frame
- reading
- 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.)
- Expired - Fee Related
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The present invention relates to the method reading video progress, comprise: the time stamp file extracting each frame in video file, each time is stabbed file temporally order composition time indexed file, stabs in file in each time and comprise frame time, frame index position and frame video location respectively; Video time for reading according to input, finds corresponding time stamp file by described frame time and frame index position in time indexed file, then the frame video location stabbing file according to the time directly reads the video of corresponding address in video file. The method of the reading video progress of the present invention, the position reading video file by finding on time indexed file, then on video file, directly carry out reading the content of this position, significantly improve the efficiency reading video file, shorten the time searching load position, effectively raise the experience property of user.
Description
Technical field
The present invention relates to video technology, it is the method reading video progress concretely.
Background technology
The linear fashion that content in video file normally increases progressively with the time is stored in equipment or server. Every frame in video all stabs with regular time, to show the corresponding time of this frame in video reads and plays. It is that the time for reading with input successively compares with the time stamp of frame that traditional video reads, until finding equal time stamp or stabbing that nearest frame from the time. Very obviously but when video file is very long time, this kind successively compares the time that the method searching reading needs to grow very much, obviously will reduce the reading efficiency of file, easily stagnate when video file carries out the reading of any time user be exactly this reason by picture.
Summary of the invention
For above-mentioned problem, the present invention provides a kind of method reading video progress, increases substantially the reading efficiency of file when reading video file, it is to increase the experience property of user.
The present invention reads the method for video progress, comprising:
Set up time index: the time stamp file extracting each frame in video file, each time is stabbed file temporally order composition time indexed file, stab in file in each time and comprise frame time, frame index position and frame video location respectively, wherein the frame time is the time stamp of frame in video file, frame index position maps the address of frame in time indexed file, and frame video location maps the address of frame in video file;
Load Game: according to the video time for reading of input, in time indexed file, corresponding time stamp file is found, then the frame video location stabbing file according to the time directly reads the video of corresponding address in video file by described frame time and frame index position.
Usually the speed reading indexed file is more many soon than the speed of reading of content file, therefore the time indexed file with audio video synchronization is set up, the correspondence position of video time for reading in video file is obtained by time for reading indexed file, then directly go to this position to read video file, and not be used in video file progressively to search, thus significantly improve the time searching load position, it is to increase reading efficiency.
Concrete, described Load Game comprises:
A. stab in the time and file judges the video time for reading of input and the difference of video initial time;
B. taking video initial time as starting point in time stamp file, described difference is offset backward;
C. the address of the frame that after reading skew, the frame video location of time stamp file maps in video file;
D. the corresponding content of address described in video file is read.
Preferably, step a, before judging described difference, first judges that the video time for reading of input is whether within the scope of video time, if, continue to perform, if do not existed, video reads and terminates.
Preferably, step b, after the described difference of skew, judges the frame time of current time stamp file and the error of the video time for reading of input, if error value is in accuracy rating, then continuing to perform, if being greater than accuracy rating, then carrying out position adjustment according to error value.
On above-mentioned basis, the described one carrying out position adjustment according to error value can choosing method be: the point centered by the position that current time stabs file of circulation, plus or minus according to error value, corresponding to the left or after the 1/2 of right offset error value, the frame time reading current time stamp file again carries out described with error judgment that is video time for reading, until described error value is in accuracy rating. Adopt the span of 1/2 error value to adjust, it is that the searching algorithm according to " dichotomy " sets, it is also possible to adjust according to other span, such as 1/3 error value, frame by frame skew etc.
Preferably, described video file is video file, and the method for the present invention is not suitable for applying on real-time video.
The method of the reading video progress of the present invention, the position reading video file by finding on time indexed file, then on video file, directly carry out reading the content of this position, significantly improve the efficiency reading video file, shorten the time searching load position, effectively raise the experience property of user.
Below in conjunction with the embodiment of embodiment, the foregoing of the present invention is described in further detail again. But this should not being interpreted as, the scope of the above-mentioned theme of the present invention is only limitted to following example. Without departing from the idea case in the present invention described above, the various replacement made according to ordinary skill knowledge and customary means or change, all should comprise within the scope of the invention.
Embodiment
The present invention reads the method for video progress, comprising:
Set up time index: the time stamp file extracting each frame in video file, each time is stabbed file temporally order composition time indexed file, stab in file in each time and comprise frame time, frame index position and frame video location respectively, wherein the frame time is the time stamp of frame in video file, frame index position maps the address of frame in time indexed file, and frame video location maps the address of frame in video file;
Load Game:
A. judge that the video time for reading q of input is whether within the scope of video time, if, continue to perform, if do not existed, video reads and terminates.
The time stamp file set up judges the difference d of the video time for reading q and video initial time s of input;
B. taking video initial time s as starting point in time stamp file, described difference d is offset backward. Judge the frame time of the stamp file of the current time after skew and the error of the video time for reading q of input, if error value m is in accuracy rating, then continue to perform; If being greater than accuracy rating, point centered by the position of file is stabbed by current time, when error value m is timing, the 1/2 of left shift error value m, when error value m is for time negative, to the right the 1/2 of offset error value m, read the frame time of current time stamp file afterwards again, by the error judgment with video time for reading of described frame time repeating step b, until error is in accuracy rating;
C. the address of the frame that the frame video location having offset rear time for reading stamp file maps in video file;
D. the corresponding content of address described in video file is read.
Video file described in the present embodiment is video file.
The correspondence position of video time for reading in video file is obtained by time for reading indexed file, then directly go to this position to read video file, and not be used in video file progressively to search, thus significantly improve the time searching load position, it is to increase reading efficiency.
Claims (3)
1. reading the method for video progress, its feature comprises:
Set up time index: the time stamp file extracting each frame in video file, each time is stabbed file temporally order composition time indexed file, stab in file in each time and comprise frame time, frame index position and frame video location respectively, wherein the frame time is the time stamp of frame in video file, frame index position maps the address of frame in time indexed file, and frame video location maps the address of frame in video file;
Load Game: according to the video time for reading of input, in time indexed file, corresponding time stamp file is found by described frame time and frame index position, the frame video location stabbing file according to the time more directly reads in video file the video of corresponding address, and concrete reading process is as follows:
A. stab in the time and file judges the video time for reading of input and the difference of video initial time;
B. taking video initial time as starting point in time stamp file, described difference is offset backward;
C. the address of the frame that after reading skew, the frame video location of time stamp file maps in video file;
D. the corresponding content of address described in video file is read;
Step b is after the described difference of skew, judge the frame time of current time stamp file and the error of the video time for reading of input, if error value is in accuracy rating, then continue to perform, if being greater than accuracy rating, then carry out position adjustment according to error value, described carry out position adjustment according to error value and it is: the point centered by the position that current time stabs file of circulation, plus or minus according to error value, corresponding to the left or after the 1/2 of right offset error value, the frame time reading current time stamp file again carries out described with error judgment that is video time for reading, until described error value is in accuracy rating.
2. the as claimed in claim 1 method reading video progress, is characterized by: step a, before judging described difference, first judges that the video time for reading of input is whether within the scope of video time, if, continue to perform, if do not existed, video reads termination.
3. the method reading video progress as claimed in claim 1 or 2, is characterized by: described video file is video file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210342526.9A CN102857834B (en) | 2012-09-17 | 2012-09-17 | Read the method for video progress |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210342526.9A CN102857834B (en) | 2012-09-17 | 2012-09-17 | Read the method for video progress |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102857834A CN102857834A (en) | 2013-01-02 |
CN102857834B true CN102857834B (en) | 2016-06-15 |
Family
ID=47403960
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210342526.9A Expired - Fee Related CN102857834B (en) | 2012-09-17 | 2012-09-17 | Read the method for video progress |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102857834B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104918120B (en) * | 2014-03-12 | 2019-03-29 | 联想(北京)有限公司 | A kind of playback progress adjusting method and electronic equipment |
CN105657427A (en) * | 2016-01-25 | 2016-06-08 | 成都国铁电气设备有限公司 | High-definition image compression method and system suitable for catenary |
CN112558873B (en) | 2020-12-14 | 2021-10-15 | 上海创米科技有限公司 | Embedded audio and video data storage, retrieval and deletion method and device and memory |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217638A (en) * | 2007-12-28 | 2008-07-09 | 深圳市迅雷网络技术有限公司 | A downloading method, system and device of video file fragmentation |
CN101325681A (en) * | 2008-07-25 | 2008-12-17 | 北京声迅电子有限公司 | Method for storing AVS encoding file format for video recorder and video server |
CN101873355A (en) * | 2010-06-28 | 2010-10-27 | 深圳市迅雷网络技术有限公司 | Method, device and system for downloading file |
CN102131106A (en) * | 2010-12-22 | 2011-07-20 | 华为技术有限公司 | Method, device and system for playing streaming media contents |
CN102510519A (en) * | 2011-10-11 | 2012-06-20 | 成都市华为赛门铁克科技有限公司 | Streaming media data processing method, playing method and device |
-
2012
- 2012-09-17 CN CN201210342526.9A patent/CN102857834B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217638A (en) * | 2007-12-28 | 2008-07-09 | 深圳市迅雷网络技术有限公司 | A downloading method, system and device of video file fragmentation |
CN101325681A (en) * | 2008-07-25 | 2008-12-17 | 北京声迅电子有限公司 | Method for storing AVS encoding file format for video recorder and video server |
CN101873355A (en) * | 2010-06-28 | 2010-10-27 | 深圳市迅雷网络技术有限公司 | Method, device and system for downloading file |
CN102131106A (en) * | 2010-12-22 | 2011-07-20 | 华为技术有限公司 | Method, device and system for playing streaming media contents |
CN102510519A (en) * | 2011-10-11 | 2012-06-20 | 成都市华为赛门铁克科技有限公司 | Streaming media data processing method, playing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN102857834A (en) | 2013-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102857834B (en) | Read the method for video progress | |
MY174951A (en) | A data updating method based on data block comparison | |
CN103747316B (en) | A kind of audio and video synchronization method and electronic equipment | |
CN107390089B (en) | Method and device for realizing transient zero-sequence current signal synchronization in distributed system | |
CN106162293B (en) | A kind of method and device of video sound and image synchronization | |
RU2014105773A (en) | METHOD, SYSTEM AND MACHINE-READABLE MEDIA FOR DIVIDING THE CIRCLE OF USER RELATIONS IN A SOCIAL NETWORK | |
CN102890675B (en) | Method and device for storing and finding data | |
CN104581193A (en) | Generation method of highlight live video | |
CN106021556A (en) | Address information processing method and device | |
CN104809248B (en) | Video finger print extracts and search method | |
CN106649722A (en) | Storing and inquiring method for high-frequency data of monitoring system | |
WO2021128782A1 (en) | Frequency-domain time and frequency synchronization method for nbiot | |
MX2016002625A (en) | Data searching method, device and terminal. | |
CN103354576B (en) | The storage of mobile phone and cell-phone number attaching information thereof and lookup method | |
CN104991741B (en) | A kind of situation adaptation power network big data storage method based on key-value model | |
CN103064935B (en) | A kind of multi-medium data parallel processing system (PPS) and method | |
CN104535827A (en) | Defective point removing method and system used in AD sampling | |
CN104394343A (en) | Target map track and history video synchronous playback control method | |
CN105550254A (en) | Method for automatically generating ICD (Interface Control Document) information database by ICD information | |
CN102737083B (en) | Instant competition information editing method and system | |
CN105426417A (en) | Method for quickly looking up geographic position information in smartphone | |
CN104301682A (en) | Monitoring video fragment restoration method and device | |
TW200636674A (en) | Gamma correction system and method thereof | |
CN106815346A (en) | A kind of synchronous migration method for being classified code multi-stage data | |
CN107918671A (en) | Global sequence number is applied to the method for distributed data base middleware |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160615 Termination date: 20180917 |