CN107205174A - A kind of quick playback video file method and system - Google Patents

A kind of quick playback video file method and system Download PDF

Info

Publication number
CN107205174A
CN107205174A CN201710575030.9A CN201710575030A CN107205174A CN 107205174 A CN107205174 A CN 107205174A CN 201710575030 A CN201710575030 A CN 201710575030A CN 107205174 A CN107205174 A CN 107205174A
Authority
CN
China
Prior art keywords
playback
index file
file
index
frame
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
CN201710575030.9A
Other languages
Chinese (zh)
Other versions
CN107205174B (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.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
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 Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN201710575030.9A priority Critical patent/CN107205174B/en
Publication of CN107205174A publication Critical patent/CN107205174A/en
Application granted granted Critical
Publication of CN107205174B publication Critical patent/CN107205174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • H04N21/4325Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists

Abstract

This application discloses a kind of quick playback video file method and system, including:Receive the playback duration section of user's input;The index file collection of video clip corresponding with paying a return visit the period is searched in memory space, index file collection is copied into playback index file;The broadcast information of user's input is received, the corresponding index file of starting reproduction time in searching broadcast information in playback index file;Using index file corresponding with starting reproduction time is found in playback index file, corresponding video content is played.The application is after the return visit period of user's input is received, index file collection corresponding with paying a return visit the period in memory space is copied in the playback index file pre-established, index file corresponding with starting reproduction time is searched in playback index file, it need not go in memory space and search, so as to reduce the lookup time to video index file, the random playback efficiency of any time point is improved.

Description

A kind of quick playback video file method and system
Technical field
The present invention relates to big data retrieval technique field, more particularly to a kind of quick playback video file method and system.
Background technology
Among the practical application of intelligent transportation, often occur that client has reference value very much for certain one end Information carries out repeating to check.
In the prior art, each playback, which is checked, is required for being looked into the disk video file information table at storage service end Retrieval is ask, and possesses substantial amounts of data in disk video file information table, inquiry velocity is slow, causes to play back video file efficiency It is low.
Therefore, video file how is quickly played back, it is the problem of having to be solved to improve playback efficiency.
The content of the invention
In view of this, it is an object of the invention to provide a kind of quick playback video file method and system, with quick Video file is played back, playback efficiency is improved.Its concrete scheme is as follows:
A kind of quick playback video file method, including:
Receive the playback duration section of user's input;
The index file collection of video clip corresponding with the return visit period is searched in memory space, by the rope Draw file set and copy to playback index file;
The broadcast information of user's input is received, the starting searched in the playback index file in the broadcast information is broadcast Put time corresponding index file;
Using index file corresponding with the starting reproduction time is found in the playback index file, play Corresponding video content.
Optionally, it is described using in the rope corresponding with the starting reproduction time for playing back and being found in index file Quotation part, plays the process of corresponding video content, including:
Judge whether current index file comes from same video file with next index file;
If it is not, then being switched to the corresponding video file of next index file.
Optionally, the playback index file is the playback duration section inputted according to user, is paid a return visit for preserving with described The temporary file of the index file collection of period corresponding video clip.
Optionally, it is described using in the rope corresponding with the starting reproduction time for playing back and being found in index file Quotation part, plays the process of corresponding video content, including:
The playback index file is traveled through, key frame collection is obtained;
Concentrated in the key frame and find key frame corresponding with the starting reproduction time, navigated to and the starting The position DI of the corresponding index information of the corresponding key frame of reproduction time;
And DI and DI next frame data DN is successively read, to play corresponding video content.
Optionally, the process of the broadcast information for receiving user's input, including:
The time shaft corresponding with playback duration section of generation one;
Receiving includes the broadcast information for the starting reproduction time that user is inputted using the time shaft.Optionally, institute The process for the broadcast information for receiving user's input is stated, including:
Optionally, it is described corresponding with the starting reproduction time using being found in the playback index file Index file, play the process of corresponding video content, including:
The playback index file is traveled through, key frame collection is obtained;
Formula is searched using the starting reproduction time and key frame information, is found corresponding with the starting reproduction time Index information it is described playback index file position DD;
DD is assigned to DI, and is successively read DI and DI next frame data DN, to play corresponding video content;Its In,
The key frame information searches formula:
In formula, Index represents array index, and Tx represents the starting reproduction time, and T1 represents the playback duration section Starting is paid a return visit time point, and T2 represents that time point is paid a return visit in the end of the playback duration section.
Optionally, the playback index file calculates obtained number using frame shifting amount calculation formula in data file Frame letter in obtained index file is calculated according to frame shifting amount in file, and using frame information offset calculation formula in index file Cease offset;Wherein,
Frame shifting amount calculation formula is in the data file:
Frame information offset calculation formula is in the index file:IndexLen=(x-1) × IndexLen;
In formula, DataLen represents frame shifting amount in data file, and x represents the xth frame in data file, and FrameLen is The frame length of each frame, IndexLen represents all field lengths.
Optionally, the traversal playback index file, obtains the process of key frame collection, including:
Traversal playback index file, obtains all key frame total number N, creates the array that a length is N IframeArray [N], stores key frame information IframeInfo successively, wherein, N is positive integer.
The invention also discloses a kind of quick playback videotex system, including:
First receiving module, the playback duration section for receiving user's input;
First searching modul, the rope for searching video clip corresponding with the return visit period in memory space Draw file set;
Replication module, for the index file collection to be copied into playback index file;
Second receiving module, the broadcast information for receiving user's input;
Second searching modul, for it is described playback index file in search the broadcast information in starting reproduction time Corresponding index file;
Playing module, for corresponding with the starting reproduction time using being found in the playback index file Index file, plays corresponding video content.
Optionally, the playing module, including:
Traversal Unit, for traveling through the playback index file, obtains key frame collection;
Searching unit, key frame corresponding with the starting reproduction time is found for being concentrated in the key frame, fixed Position DI of the position to the corresponding index information of key frame corresponding with the starting reproduction time;
Broadcast unit, next frame data DN for being successively read DI and DI, to play corresponding video content.
In the present invention, quick playback video file method, including:Receive the playback duration section of user's input;It is empty in storage Between in search index file collection with paying a return visit period corresponding video clip, index file collection is copied into playback index literary Part;The broadcast information of user's input is received, the starting reproduction time searched in playback index file in broadcast information is corresponding Index file;Using index file corresponding with starting reproduction time is found in playback index file, play corresponding Video content.The present invention, will be corresponding with paying a return visit the period in memory space after the return visit period of user's input is received Index file collection is copied in the playback index file pre-established, the broadcast information inputted according to user, in playback index text Index file corresponding with starting reproduction time is found in part, is searched on a large scale without going to again in memory space To find index file corresponding with originating reproduction time, so as to reduce to lookup time of video index file significantly The random playback efficiency for paying a return visit any time point in the period is improved, finally utilizes with starting that reproduction time is corresponding indexes text Part, plays and pays a return visit period corresponding video content.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of quick playback video file method flow schematic diagram disclosed in the embodiment of the present invention;
Fig. 2 is a kind of quick playback videotex system structural representation disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
It is shown in Figure 1 the embodiment of the invention discloses a kind of quick playback video file method, including:
Step S11:Receive the playback duration section of user's input.
Specifically, receive includes in the return visit period of the playback video of the desired viewing of user's input, playback duration section Starting pays a return visit time point and terminates to pay a return visit time point.
Step S12:The index file collection of video clip corresponding with paying a return visit the period is searched in memory space, by rope Draw file set and copy to playback index file.
Specifically, using the period is paid a return visit, video clip corresponding with paying a return visit the period is searched in memory space Index file collection, because user's input is the period, and in intelligent transportation fixed-length file storage system, single video text Part limited length, accordingly, it is possible to the returns visit period of user's input include the recording time of multiple video files, and each video Each frame of file all corresponds to an index file, so will include multiple index files in playback duration section, in subsequent operation Just the index file that can be concentrated using index file finds corresponding playback video content;By including multiple index files Index file collection copies to playback index file, and playback index file is pre-created for preserving corresponding with paying a return visit the period Video clip index file collection file, in subsequent operation, it is necessary to using during index file just can playback rope Searched in quotation part.
Step S13:The broadcast information of user's input is received, the starting searched in playback index file in broadcast information is broadcast Put time corresponding index file.
Specifically, user is after the period is paid a return visit in input, in addition it is also necessary to receive the broadcast information of user's input, believed using playing Breath determines that starting reproduction time and the broadcasting side that user sets can be included in starting reproduction time and broadcast mode, broadcast information Formula information, starting reproduction time can be identical with originating return visit time point, can also be different, and starting reproduction time can be return visit Any time point in period, broadcast mode information can be set to be played out in which way to playback video, for example, following Ring is played, and accelerates broadcasting etc.;Using the starting reproduction time in broadcast information, search and played with starting in playback index file Time corresponding index file, without searching corresponding index file in memory space again.
Step S14:Using index file corresponding with starting reproduction time is found in playback index file, play Corresponding video content.
Specifically, by finding index file corresponding with starting reproduction time in playback index file, reading Video content corresponding with index file, is successively read index file, so as to play corresponding video content.
It can be seen that, the embodiment of the present invention is after the return visit period of user's input is received, during by memory space with paying a return visit Between the corresponding index file collection of section copy in the playback index file pre-established, according to user input broadcast information, Index file corresponding with starting reproduction time is found in playback index file, is carried out greatly without going to again in memory space The lookup of scale is to find index file corresponding with originating reproduction time, so as to reduce the lookup to video index file Time increases substantially the random playback efficiency for paying a return visit any time point in the period, finally utilizes and starting reproduction time phase The index file answered, plays and pays a return visit period corresponding video content.
The embodiment of the invention discloses a kind of specific quick playback video file method, relative to a upper embodiment, sheet Embodiment has made further instruction and optimization to technical scheme.Specifically:
Step S21:Receive the playback duration section of user's input;
For example, playback duration section is video information starting playback duration 2017-4-16 11:30:02:000 to video information Terminate playback duration 2017-4-16 11:45:02:000.
Step S22:The index file collection of video clip corresponding with paying a return visit the period is searched in memory space, by rope Draw file set and copy to playback index file;
Specifically, playback index file can be the playback duration section inputted according to user, for preserving and paying a return visit the time The temporary file of the index file collection of the corresponding video clip of section, certainly, playback index file can also be pre-established Long-standing file, while the index file collection in playback index file can be stored in periodic cleaning, for example, often receiving 5 The playback duration section of secondary user's input, then clear up history index file collection, to ensure to play back the index file in index file not Can be excessive, so as to reduce search efficiency.
Further, also including one byte of frame type, (wherein " 0 " represents that audio frame, " 1 " represent to close to playback index file Key frame, " 2 " represent other kinds of frame), 20 bytes of key frame frame absolute time, 12 words of frame shifting amount in data file 12 bytes of frame information offset, 100 bytes of data file path, index text in section, 10 bytes of frame length, index file 100, part path byte totally 7 elementary fields totally 255 bytes.
Wherein, in the data file in playback index file in frame shifting amount and index file frame information offset respectively by Frame information offset calculation formula is calculated and obtained in frame shifting amount calculation formula and index file in data file;Wherein,
Frame shifting amount calculation formula is in data file:
Frame information offset calculation formula is in index file:IndexLen=(x-1) × IndexLen;
In formula, DataLen represents frame shifting amount in data file, and x represents the xth frame in data file, and FrameLen is The frame length of each frame, IndexLen represents all field lengths.
For example, memory space is disk, referring to shown in the disk video file information table of table 1, in disk video file information All index files in the period are inquired in table, then corresponding index information in the period is copied to playback index File, it is IndexF2 such as to find corresponding index file in this section of playback duration section, and corresponding index in the period is believed Breath is copied in playback index file.
Table 1
Step S23:The broadcast information of user's input is received, the starting searched in playback index file in broadcast information is broadcast Put time corresponding index file.
Specifically, the broadcast information for receiving user's input obtains process and can include step S231 and step S232;Wherein,
Step S231:The time shaft corresponding with playback duration section of generation one;
Specifically, the time shaft corresponding with playback duration section of generation one, in order to which user inputs rising in broadcast information Beginning reproduction time.
Step S232:Receiving includes the broadcast information for the starting reproduction time that user is inputted using time shaft.
For example, user drags vernier, starting reproduction time is changed into 2017-4-16 11:40:02:000.
Step S24:Using index file corresponding with starting reproduction time is found in playback index file, play Corresponding video content.
In actual applications, because the return visit period that user inputs includes the recording time of multiple video files, therefore, When playing corresponding video content, it is necessary to judge whether to need Switch Video file;Specifically, can include step S241 and Step S242,
Step S241:Judge whether current index file comes from same video file with next index file.
Step S242:If it is not, then being switched to the corresponding video file of next index file.
It is understood that if it is, continuing to play.
When the starting reproduction time in the broadcast information that user inputs is starting playback duration, i.e. according to default setting, according to When sequence plays the video content for paying a return visit the period, step S24 can specifically include step S243 to step 245;Wherein,
Step S243:Traversal playback index file, obtains key frame collection;
Specifically, traversal playback index file, obtains all key frame total number N, the array that a length is N is created IframeArray [N], stores key frame information IframeInfo successively, wherein, N is positive integer.
For example, traversal playback index file, it is assumed that one has 1750 key frame informations, the 1st in playback index file The corresponding time of key frame is 2017-4-16 11:30:02:021, last crucial frame time is 2017-4-16 11: 45:02:019, it is 1750 to obtain all key frame total number N, creates the array IframeArray that a length is 1750 [1750], key frame information IframeInfo is stored successively.
Wherein, IfameInfo is self-defining data structure, and its attribute includes:Index file name, index file path letter Cease, play back frame information offset IndexLen in index file, frame shifting amount DataLen, video data file in data file Name, video data file path.
Step S244:Concentrated in key frame and find key frame corresponding with starting reproduction time, navigated to and broadcast with starting Put the position DI of the corresponding index information of time corresponding key frame.
Specifically, reading the corresponding key frame index informations of IframeArray [0], i.e. starting reproduction time is corresponding to close Key frame index information, navigates to the position DI of the key frame index information in playback index file file.
For example, playback duration section is 2017-4-16 11:30:02:000 to 2017-4-16 11:45:02:000, starting Playback duration points out 23rd frame of first key frame in playback index file, the frame information offset in above-mentioned index file Calculation formula can obtain offset IndexLen0=22 × 255=5610 in the corresponding key frame indexed file of the 1st frame.
Step S235:And DI and DI next frame data DN is successively read, to play corresponding video content.
Specifically, the corresponding next frame data indexing information position DN in DI positions in playback index file is successively read, will DN value is assigned to DI, to play corresponding video content, for example, the corresponding next frame data indexing information position in DI positions is D2, then be assigned to DI by D2 value, and the corresponding next frame data indexing information position in DI positions is changed into D3, is then assigned to D3 value DI, until DN corresponding with terminating playback duration point value is assigned to DI, completes the broadcasting to corresponding video content.
Specifically, when the broadcast information that user inputs is not that time point is paid a return visit in starting, step S24 can specifically include step Rapid S246 to step S248;Wherein,
Step S246:Traversal playback index file, obtains key frame collection.
Specifically, traversal playback index file, obtains all key frame total number N, the array that a length is N is created IframeArray [N], stores key frame information IframeInfo successively, wherein, N is positive integer.
Step S247:Using reproduction time and key frame information lookup formula is originated, find and starting reproduction time pair Position DD of the index information answered in playback index file.
Specifically, determining IframeArray subscripts Index.Formula is searched using reproduction time and key frame information is originated, Corresponding key frame index information is obtained by IfameArray [Index], and determines the index information in playback index file In position DD, wherein,
Key frame information searches formula:
In formula, Index represents array index, and Tx represents to originate reproduction time, and T1 represents that time point is paid a return visit in starting, and T2 is represented Terminate to pay a return visit time point.
For example, are first converted into millisecond the corresponding time, then play time is originated:
T1=16 × 24 × 60 × 60 × 1000+11 × 60 × 60 × 1000+30 × 60 × 1000+2 × 1000= 1423802000;
Terminate playback duration point:
T2=16 × 24 × 60 × 60 × 1000+11 × 60 × 60 × 1000+45 × 60 × 1000+2 × 1000= 1424702000;
Originate reproduction time:
Tx=16 × 24 × 60 × 60 × 1000+11 × 60 × 60 × 1000+49 × 60 × 1000+2 × 1000= 1424402000;
Corresponding key frame index information is obtained by IfameArray [1166], and determines the index information in playback rope Position DD in quotation part.
Step S248:DD is assigned to DI, and is successively read DI and DI next frame data DN, to play corresponding video Content.
It is understood that in the embodiment of the present invention, chronomere is required to be transformed into the bold and unconstrained second in all formula:Time= My god × 24 × 60 × 60 × 1000+ when × 60 × 60 × 1000+ points × 60 × 1000+ seconds × 1000+ milliseconds.
Accordingly, shown in Figure 2 the embodiment of the invention also discloses a kind of quick playback videotex system, this is System includes:
First receiving module 11, the playback duration section for receiving user's input;
First searching modul 12, the index for searching video clip corresponding with paying a return visit the period in memory space File set;
Replication module 13, for index file collection to be copied into playback index file;
Second receiving module 14, the broadcast information for receiving user's input;
Second searching modul 15, it is corresponding for searching the starting reproduction time in broadcast information in playback index file Index file;
Playing module 16, for literary using index corresponding with starting reproduction time is found in playback index file Part, plays corresponding video content.
It can be seen that, the embodiment of the present invention is after the return visit period of user's input is received, during by memory space with paying a return visit Between the corresponding index file collection of section copy in the playback index file pre-established, according to user input broadcast information, Index file corresponding with starting reproduction time is found in playback index file, is carried out greatly without going to again in memory space The lookup of scale is to find index file corresponding with originating reproduction time, so as to reduce the lookup to video index file Time increases substantially the random playback efficiency for paying a return visit any time point in the period, finally utilizes and starting reproduction time phase The index file answered, plays and pays a return visit period corresponding video content.
In the embodiment of the present invention, above-mentioned playing module 16, can specifically include the first Traversal Unit, the first searching unit and First broadcast unit;Wherein,
First Traversal Unit, for traveling through playback index file, obtains key frame collection;
First searching unit, finds key frame corresponding with starting reproduction time for being concentrated in key frame, navigates to The position DI of index information corresponding with the corresponding key frame of starting reproduction time;
First broadcast unit, next frame data DN for being successively read DI and DI, to play corresponding video content.
Above-mentioned playing module 16, can also specifically include judging unit and switch unit;Wherein,
Judging unit, for judging current index file with next index file whether from same video file;
Switch unit, for judging that current index file is not from same regard with next index file when judging unit Frequency file, then be switched to the corresponding video file of next index file.
It should be noted that playback index file is the playback duration section inputted according to user, during for preserving and pay a return visit Between the corresponding video clip of section index file collection temporary file.Play back frame shifting amount in the data file in index file Frame information is inclined in frame shifting amount calculation formula in data file and index file respectively with frame information offset in index file Shifting amount calculation formula is calculated and obtained;Wherein,
Frame shifting amount calculation formula is in data file:
Frame information offset calculation formula is in index file:IndexLen=(x-1) × IndexLen;
In formula, DataLen represents frame shifting amount in data file, and x represents the xth frame in data file, and FrameLen is The frame length of each frame, IndexLen represents all field lengths.
In the embodiment of the present invention, above-mentioned second receiving module 14 can specifically include generation unit and receiving unit;Its In,
Generation unit, for generating a time shaft corresponding with playback duration section;
Receiving unit, includes the broadcast information for the starting reproduction time that user is inputted using time shaft for receiving.
In the embodiment of the present invention, above-mentioned playing module 16 can also specifically include the second Traversal Unit, the second searching unit With the second broadcast unit;Wherein,
Second Traversal Unit, for traveling through playback index file, obtains key frame collection;
Second searching unit, for using reproduction time and key frame information lookup formula is originated, finding and being broadcast with starting Put position DD of the time corresponding index information in playback index file;
Second broadcast unit, for DD to be assigned into DI, and is successively read DI and DI next frame data DN, to play phase The video content answered wherein,
The key frame information searches formula:
In formula, Index represents array index, and Tx represents the starting reproduction time, and T1 represents the playback duration section Starting is paid a return visit time point, and T2 represents that time point is paid a return visit in the end of the playback duration section.
Further, above-mentioned first Traversal Unit and the second Traversal Unit, can be specifically for traversal playback index text Part, obtains all key frame total number N, creates the array IframeArray [N] that a length is N, and key frame letter is stored successively IframeInfo is ceased, wherein, N is positive integer.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between there is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of key elements not only include that A little key elements, but also other key elements including being not expressly set out, or also include be this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except also there is other identical element in the process including the key element, method, article or equipment.
A kind of quick playback video file method and system provided by the present invention are described in detail above, herein In apply specific case the principle and embodiment of the present invention be set forth, the explanation of above example is only intended to side The method and its core concept of the assistant solution present invention;Simultaneously for those of ordinary skill in the art, the think of according to the present invention Think, will change in specific embodiments and applications, in summary, this specification content should not be construed as pair The limitation of the present invention.

Claims (10)

1. a kind of quick playback video file method, it is characterised in that including:
Receive the playback duration section of user's input;
The index file collection of video clip corresponding with the return visit period is searched in memory space, by the index text Part collection copies to playback index file;
The broadcast information of user's input is received, when the starting broadcasting in the broadcast information is searched in the playback index file Between corresponding index file;
Using index file corresponding with the starting reproduction time is found in the playback index file, play corresponding Video content.
2. quick playback video file method according to claim 1, it is characterised in that described using in the playback rope The index file corresponding with the starting reproduction time found in quotation part, plays the process of corresponding video content, bag Include:
Judge whether current index file comes from same video file with next index file;
If it is not, then being switched to the corresponding video file of next index file.
3. quick playback video file method according to claim 1, it is characterised in that the playback index file be according to The playback duration section inputted according to user, for preserving and the index file collection for paying a return visit period corresponding video clip Temporary file.
4. quick playback video file method according to claim 1, it is characterised in that described using in the playback rope The index file corresponding with the starting reproduction time found in quotation part, plays the process of corresponding video content, bag Include:
The playback index file is traveled through, key frame collection is obtained;
Concentrated in the key frame and find key frame corresponding with the starting reproduction time, navigated to and played with the starting The position DI of the corresponding index information of time corresponding key frame;
And DI and DI next frame data DN is successively read, to play corresponding video content.
5. quick playback video file method according to claim 1, it is characterised in that what the reception user inputted broadcasts The process of information is put, including:
The time shaft corresponding with playback duration section of generation one;
Receiving includes the broadcast information for the starting reproduction time that user is inputted using the time shaft.
6. quick playback video file method according to claim 5, it is characterised in that described using at described time The index file corresponding with the starting reproduction time found in index file is put, the mistake of corresponding video content is played Journey, including:
The playback index file is traveled through, key frame collection is obtained;
Formula is searched using the starting reproduction time and key frame information, rope corresponding with the starting reproduction time is found Position DD of the fuse breath in the playback index file;
DD is assigned to DI, and is successively read DI and DI next frame data DN, to play corresponding video content;Wherein,
The key frame information searches formula:
In formula, Index represents array index, and Tx represents the starting reproduction time, and T1 represents the starting of the playback duration section Pay a return visit time point, T2 represents that time point is paid a return visit in the end of the playback duration section.
7. the quick playback video file method according to any one of claim 1 to 6, it is characterised in that the playback rope Quotation part calculates frame shifting amount in obtained data file using frame shifting amount calculation formula in data file, and utilizes rope Frame information offset calculation formula calculates frame information offset in obtained index file in quotation part;Wherein,
Frame shifting amount calculation formula is in the data file:
Frame information offset calculation formula is in the index file:IndexLen=(x-1) × IndexLen;
In formula, DataLen represents frame shifting amount in data file, and x represents the xth frame in data file, and FrameLen is each The frame length of frame, IndexLen represents all field lengths.
8. the quick playback video file method according to claim 5 or 6, it is characterised in that the traversal playback Index file, obtains the process of key frame collection, including:
Traversal playback index file, obtains all key frame total number N, creates the array IframeArray that a length is N [N], stores key frame information IframeInfo successively, wherein, N is positive integer.
9. a kind of quick playback videotex system, it is characterised in that including:
First receiving module, the playback duration section for receiving user's input;
First searching modul, the index text for searching video clip corresponding with the return visit period in memory space Part collection;
Replication module, for the index file collection to be copied into playback index file;
Second receiving module, the broadcast information for receiving user's input;
Second searching modul, for searching the starting reproduction time correspondence in the broadcast information in the playback index file Index file;
Playing module, for playing back the index corresponding with the starting reproduction time found in index file using described File, plays corresponding video content.
10. quick playback videotex system according to claim 9, it is characterised in that the playing module, including:
Traversal Unit, for traveling through the playback index file, obtains key frame collection;
Searching unit, finds key frame corresponding with the starting reproduction time for being concentrated in the key frame, navigates to The position DI of index information corresponding with the corresponding key frame of the starting reproduction time;
Broadcast unit, next frame data DN for being successively read DI and DI, to play corresponding video content.
CN201710575030.9A 2017-07-14 2017-07-14 Method and system for quickly playing back video file Active CN107205174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710575030.9A CN107205174B (en) 2017-07-14 2017-07-14 Method and system for quickly playing back video file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710575030.9A CN107205174B (en) 2017-07-14 2017-07-14 Method and system for quickly playing back video file

Publications (2)

Publication Number Publication Date
CN107205174A true CN107205174A (en) 2017-09-26
CN107205174B CN107205174B (en) 2019-12-10

Family

ID=59911635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710575030.9A Active CN107205174B (en) 2017-07-14 2017-07-14 Method and system for quickly playing back video file

Country Status (1)

Country Link
CN (1) CN107205174B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108076377A (en) * 2017-12-26 2018-05-25 浙江大华技术股份有限公司 A kind of storage of video, playback method, device, electronic equipment and storage medium
CN109640157A (en) * 2018-12-28 2019-04-16 北京字节跳动网络技术有限公司 Method and apparatus for handling information
CN109698965A (en) * 2017-10-20 2019-04-30 株洲中车时代电气股份有限公司 A kind of audio video synchronization playback method, device, equipment and computer storage medium
CN110262752A (en) * 2019-05-16 2019-09-20 罗普特科技集团股份有限公司 A kind of method, apparatus for stored stream media data, storage medium
CN110418186A (en) * 2019-02-01 2019-11-05 腾讯科技(深圳)有限公司 Audio and video playing method, apparatus, computer equipment and storage medium
CN110971857A (en) * 2018-09-28 2020-04-07 杭州海康威视系统技术有限公司 Video playback method and device and computer readable storage medium
CN111125427A (en) * 2019-12-26 2020-05-08 浪潮电子信息产业股份有限公司 Video file reading method and device, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110305428A1 (en) * 2010-06-10 2011-12-15 Canon Kabushiki Kaisha Playback apparatus
CN103929609A (en) * 2014-04-22 2014-07-16 浙江宇视科技有限公司 Video replaying method and device
CN104519294A (en) * 2013-09-27 2015-04-15 杭州海康威视数字技术股份有限公司 Mobile information-based video recording playback method and device thereof
CN105430314A (en) * 2015-12-01 2016-03-23 浙江宇视科技有限公司 Video data storage and access control method and device
CN106303671A (en) * 2016-08-16 2017-01-04 任晋军 A kind of player method of Streaming Media

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110305428A1 (en) * 2010-06-10 2011-12-15 Canon Kabushiki Kaisha Playback apparatus
CN104519294A (en) * 2013-09-27 2015-04-15 杭州海康威视数字技术股份有限公司 Mobile information-based video recording playback method and device thereof
CN103929609A (en) * 2014-04-22 2014-07-16 浙江宇视科技有限公司 Video replaying method and device
CN105430314A (en) * 2015-12-01 2016-03-23 浙江宇视科技有限公司 Video data storage and access control method and device
CN106303671A (en) * 2016-08-16 2017-01-04 任晋军 A kind of player method of Streaming Media

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109698965A (en) * 2017-10-20 2019-04-30 株洲中车时代电气股份有限公司 A kind of audio video synchronization playback method, device, equipment and computer storage medium
CN108076377A (en) * 2017-12-26 2018-05-25 浙江大华技术股份有限公司 A kind of storage of video, playback method, device, electronic equipment and storage medium
CN108076377B (en) * 2017-12-26 2020-12-08 浙江大华技术股份有限公司 Video storage and playing method and device, electronic equipment and storage medium
CN110971857A (en) * 2018-09-28 2020-04-07 杭州海康威视系统技术有限公司 Video playback method and device and computer readable storage medium
CN110971857B (en) * 2018-09-28 2021-04-27 杭州海康威视系统技术有限公司 Video playback method and device and computer readable storage medium
US11540004B2 (en) 2018-09-28 2022-12-27 Hangzhou Hikvision System Technology Co., Ltd. Methods, apparatuses, computer-readable storage media and electronic devices for video playback
CN109640157A (en) * 2018-12-28 2019-04-16 北京字节跳动网络技术有限公司 Method and apparatus for handling information
CN109640157B (en) * 2018-12-28 2021-07-27 北京字节跳动网络技术有限公司 Method and apparatus for processing information
CN110418186A (en) * 2019-02-01 2019-11-05 腾讯科技(深圳)有限公司 Audio and video playing method, apparatus, computer equipment and storage medium
CN110262752A (en) * 2019-05-16 2019-09-20 罗普特科技集团股份有限公司 A kind of method, apparatus for stored stream media data, storage medium
CN110262752B (en) * 2019-05-16 2020-08-11 罗普特科技集团股份有限公司 Method, device and storage medium for storing streaming media data
CN111125427A (en) * 2019-12-26 2020-05-08 浪潮电子信息产业股份有限公司 Video file reading method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN107205174B (en) 2019-12-10

Similar Documents

Publication Publication Date Title
CN107205174A (en) A kind of quick playback video file method and system
CN108197226A (en) MPTC account status tree and MPTC block chain method for quickly retrieving
US7139746B2 (en) Extended markup language (XML) indexing method for processing regular path expression queries in a relational database and a data structure thereof
WO2000062264A3 (en) Method and system for retrieving data from multiple data sources using a search routing database
CN110008256A (en) It is a kind of to be navigated the approximate KNN searching method of worldlet figure based on layering
US20090222404A1 (en) Querying nonsql data stores with a sql-style language
US20100161780A1 (en) Hot data management method based on hit counter
CN101820386A (en) Be used for promoting network to transmit the method and system of grouping with the content being the center
CN103678491A (en) Method based on Hadoop small file optimization and reverse index establishment
CN101599886B (en) Query method, system and device in distributed structured network
CN104915449A (en) Faceted search system and method based on water conservancy object classification labels
CN106874481A (en) A kind of metadata of distributed type file system information-reading method and system
KR20050000490A (en) Compound contents delivery method and delivery system
CN106686411A (en) Streaming media channel recording method and device, playback method and device and server
CN102890719B (en) A kind of method that license plate number is searched for generally and device
CN102405623A (en) Method and device for storing routing table entry
CN107203532A (en) Construction method, the implementation method of search and the device of directory system
CN103297431A (en) Streaming media video-on-demand duplicate hybrid buffer strategy based on cloud server cluster
US20100281165A1 (en) Method for the load distribution in a peer-to-peer-overlay network
WO2009132556A1 (en) A data searching method and apparatus
CN105786953A (en) Order encoded manifests in a content centric network
Alarabi et al. A demonstration of sharek: an efficient matching framework for ride sharing systems
CN103500165A (en) High-dimensional vector quantity search method combining clustering and double key values
CN101833588B (en) Indexing structure of XML (Extensive Markup Language) document
CN106970965A (en) A kind of Novel Internet resource search method

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
GR01 Patent grant
GR01 Patent grant