CN102118539B - Multimedia playing terminal as well as playing method and device for dragging multimedia files - Google Patents
Multimedia playing terminal as well as playing method and device for dragging multimedia files Download PDFInfo
- Publication number
- CN102118539B CN102118539B CN 200910238929 CN200910238929A CN102118539B CN 102118539 B CN102118539 B CN 102118539B CN 200910238929 CN200910238929 CN 200910238929 CN 200910238929 A CN200910238929 A CN 200910238929A CN 102118539 B CN102118539 B CN 102118539B
- Authority
- CN
- China
- Prior art keywords
- key frame
- multimedia file
- file
- video
- drags
- 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.)
- Active
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention belongs to the technical field of multimedia, and discloses a multimedia playing terminal as well as a playing method and device for dragging multimedia files. The method comprises the following steps: receiving a multimedia file dragging instruction; judging whether an index of the file section corresponding to the multimedia file dragging instruction is normal; if the index is abnormal, acquiring an approximate position of the file section corresponding to the multimedia file dragging instruction; searching a video key frame of the multimedia file at the beginning with the approximate position in accordance with the characteristic value of a multimedia file frame header; comparing the timestamp of the searched video key frame with the timestamp of an audio key frame closest to the video key frame; and when the searched video key frame and the audio key frame meet a threshold value set by a system, playing the multimedia file at the beginning with the video key frame. According to the invention, the problem that the file can not be dragged normally resulting from the losses of information position indexes of the multimedia files can be solved, thus improving the multimedia playing quality.
Description
Technical field
The invention belongs to multimedia technology field, be specifically related to a kind of multimedia play terminal and file thereof and drag playing method and device.
Background technology
Along with the development of multimedia technology, the user is also more and more higher to the requirement of multimedia quality.
Take MKV as example, MKV is a kind of media file of Matroska, also claim multimedia container (Multimedia Container), be a kind of Novel multimedia encapsulation format, the caption stream of the audio frequency of the video of multiple different coding and 16 above different-formats and different language can be encapsulated in the middle of a Matroska Media file.
MKV is different from the video code models such as DivX, XviD, also is different from the audio coding forms such as MP3, Ogg.MKV just provides " combination " and " encapsulation " form of shell for above-mentioned these sounds, video.MKV can be understood as a kind of Container Format, and the XviD that only has video and only have the MP3 of audio frequency to combine, then the form with a kind of multimedia medium occurs.
MKV can use Media player Classic, BSplayer, ZoomPlayer player etc., even comprises Windows Media player.
Video, audio frequency and the caption stream that can hold the number of different types coding due to MKV, even if very the files in stream media such as the RealMedia of sealing and QuickTime are also included into by MKV, therefore MKV has almost become an omnipotent media container, uses constantly universal.
Because can providing the user, the MKV package file plays the function that drags, namely in playing process, the user can drag to file the time location that oneself needs and begin to play, and does not need always to begin to play from file, so this function provides great convenience to the user.
But due to the Information locating index that drags, generally can be encapsulated in the afterbody of file, when imperfect or the Internet download is imperfect when the MKV file copy, these location index are lost, cause file can't drag the situation of file.
Therefore, how avoiding because the problem that can't normally drag file that causes lost in the Information locating index, is one of direction of multimedia technology field research.
Summary of the invention
The object of the present invention is to provide a kind of multimedia file to drag player method, be intended to solve because the problem that can't normally drag file that causes lost in the Information locating index, improve play quality.
The embodiment of the present invention is achieved in that a kind of multimedia file drags player method, said method comprising the steps of:
Receive multimedia file and drag instruction;
Judge whether the described index that drags instruction respective file section is normal;
If undesired, calculate the described roughly position location that drags instruction respective file section;
Begin the eigenvalue search multimedia file key frame of video according to the multimedia file frame head from described roughly position location;
With the key frame of video that searches with carry out timestamp from the nearest audio frequency key frame of this key frame of video relatively,
When the key frame of video that searches and described audio frequency key frame satisfy the threshold value that system arranges, begin the play multimedia file from described key frame of video.
An also purpose of the embodiment of the present invention is to provide a kind of multimedia file to drag playing device, and described device comprises:
Drag the command reception module, be used for receiving multimedia file and drag instruction;
The index judge module is used for judging whether the described index that drags instruction respective file section is normal;
Roughly the position location computing module, be used for obtaining the described roughly position location that drags instruction respective file section;
The key frame of video acquisition module is for the eigenvalue search multimedia file key frame of video that begins from described roughly position location according to the multimedia file frame head;
The key frame of video judge module is used for the key frame of video that will search and carries out timestamp relatively from the nearest audio frequency key frame of this key frame of video, and
Playing module is used for beginning the play multimedia file from described key frame of video.
The embodiment of the present invention also provides a kind of playback terminal, and described terminal comprises that the multimedia file that the embodiment of the present invention provides drags playing device.
Whether the embodiment of the present invention is normal by judging that the user drags the index of file section corresponding to instruction, if undesired, search for key frame of video in the approximate location that the user drags, when the key frame of video that searches is eligible, begin the play multimedia file from this key frame of video, the problem that can't normally drag file that causes is lost in solution due to the Information locating index, improved play quality, is beneficial to the popularization of multimedia play terminal.
Description of drawings
The multimedia file that Fig. 1 provides for the embodiment of the present invention drags the flow chart of player method.
The multimedia file that Fig. 2 provides for the embodiment of the present invention drags the structure chart of playing device.
The multimedia file that Fig. 3 provides for the embodiment of the present invention drags in playing device the roughly cut-away view of position location computing module.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
Whether the embodiment of the present invention is normal by judging that the user drags the index of file section corresponding to instruction, if undesired, approximate location search key frame of video the user drags when the key frame of video that searches is eligible, begins the play multimedia file from this key frame of video.
The multimedia file that Fig. 1 shows the embodiment of the present invention to be provided drags the flow process of player method.
In step S101, when the user drags the file broadcast by dragging bar, receive multimedia file and drag instruction.
In step S102, judge whether the described index that drags instruction respective file section is normal, if, normal play file; Otherwise carry out step S103.
In specific implementation process, at first from the multimedia file data head, parse the described position that instruction respective file section begins that drags, then from described file section starting position, according to described multimedia file standard agreement, check whether described file section data structure is complete, check simultaneously whether the data value in described file section structure type meets the range of definition of described multimedia file standard agreement.
If the file section data structure is imperfect, perhaps, the data value in the file section structure type does not meet the range of definition of described multimedia file standard agreement, judges the index cisco unity malfunction of file section.
In step S103, calculate the described roughly position location that drags instruction respective file section.
In specific implementation process, at first from described multimedia file data head, parse the total time of this multimedia file, then obtain user's the time that drags, according to the described ratio that drags time and described total time that obtains total time of time that drags of user and multimedia file.
Afterwards, obtain the sizes values of described multimedia file by the file operation function, and calculate described roughly position location according to the sizes values of the ratio that drags time and described total time and described multimedia file.
In step S104, begin the eigenvalue search multimedia file key frame of video according to the multimedia file frame head from described roughly position location.
In step S105, with the key frame of video that searches with carry out timestamp from the nearest audio frequency key frame of this key frame of video relatively, the key frame of video that judgement searches with apart from the time interval between its nearest audio frequency key frame whether less than the threshold value of system's setting; If carry out step S106.
In step S106, when the key frame of video that searches and described audio frequency key frame satisfy the threshold value that system arranges, begin the play multimedia file from described key frame of video.
By carrying out the search of key frame of video to dragging instruction respective file section zone, even drag the key frame of video cisco unity malfunction of instruction correspondence position, also guaranteed the continuity that multimedia file is play, the phenomenon of stagnating or blocking can not appear.
The multimedia file that Fig. 2 shows the embodiment of the present invention to be provided drags the structure of playing device.
Described device comprises and drags command reception module 21, index judge module 22, roughly position location computing module 23, key frame of video acquisition module 24, key frame of video judge module 25 and playing module 26.
Wherein, drag command reception module 21 reception multimedia files and drag instruction;
In specific implementation process, described index judge module 22 specifically comprises starting position parsing module 221 and index checking module 222:
Starting position parsing module 221 parses the described starting position that drags instruction respective file section from the multimedia file data head;
Roughly position location computing module 23 obtains the described roughly position location that drags instruction respective file section;
The structure of concrete roughly position location computing module 23 sees also Fig. 3, and to the detailed description of Fig. 3.
Key frame of video acquisition module 24 begins the eigenvalue search multimedia file key frame of video according to the multimedia file frame head from described roughly position location;
The key frame of video that key frame of video judge module 25 searches described key frame of video acquisition module 24 with carry out timestamp from the nearest audio frequency key frame of this key frame of video relatively;
Preferably, the key frame of video that key frame of video judge module 25 judgement searches with apart from the time interval between its nearest audio frequency key frame whether less than the threshold value of system's setting, if judge that the key frame of video and the described audio frequency key frame that search satisfy the threshold value that system arranges.
Fig. 3 shows the roughly concrete structure of position location computing module 23.
Described roughly position location computing module 23 specifically comprises total time parsing module 231, drags time-obtaining module 232, time ratio calculation module 233, file size acquisition module 234 and position location computing module 235 roughly:
Wherein, total time parsing module 231 from described multimedia file data head, parse the total time of this multimedia file;
Drag time-obtaining module 232 and obtain user's the time that drags;
Time ratio calculation module 233 is obtained the described ratio that drags time and described total time;
File size acquisition module 234 obtains the sizes values of described multimedia file by the file operation function;
Roughly position location computing module 235 obtains described roughly position location according to the sizes values of described ratio value and described multimedia file.
The embodiment of the present invention also provides a kind of multimedia play terminal, and described terminal comprises that the multimedia file that the embodiment of the present invention provides drags playing device,, repeats no more in above existing detailed description in view of this device herein.
Whether the embodiment of the present invention is normal by judging that the user drags the index of file section corresponding to instruction, if undesired, search for key frame of video in the approximate location that the user drags, when the key frame of video that searches is eligible, begin the play multimedia file from this key frame of video, the problem that can't normally drag file that causes is lost in solution due to the Information locating index, improved play quality, is beneficial to the popularization of multimedia play terminal.
Should be understood that, for those of ordinary skills, can be improved according to the above description or conversion, and these improve and conversion all should belong to the protection range of claims of the present invention.
Claims (7)
1. a multimedia file drags player method, it is characterized in that, said method comprising the steps of:
Receive multimedia file and drag instruction, judge whether the described index that drags instruction respective file section is normal;
If undesired, calculate the described roughly position location that drags instruction respective file section;
Begin the eigenvalue search multimedia file key frame of video according to the multimedia file frame head from described roughly position location;
With the key frame of video that searches with carry out timestamp from the nearest audio frequency key frame of this key frame of video relatively, when the key frame of video that searches and described audio frequency key frame satisfy the threshold value that system arranges, begin the play multimedia file from described key frame of video;
Describedly judge whether normal step specifically comprises the described index that drags the instruction respective file:
From the multimedia file data head, parse the described starting position that drags instruction respective file section;
From the starting position of described file section, according to the multimedia file standard agreement, check whether described file section data structure is complete, and whether the data value in described file section structure type meets the range of definition of multimedia file standard agreement.
2. multimedia file as claimed in claim 1 drags player method, it is characterized in that, describedly obtains the described step that drags the roughly position location of the corresponding multimedia file of instruction and specifically comprises:
From described multimedia file data head, parse the total time of this multimedia file;
Obtain user's the time that drags;
Calculate the described ratio that drags time and described total time;
Obtain the sizes values of described multimedia file by the file operation function;
Obtain described roughly position location according to the sizes values of described ratio value and described multimedia file.
3. multimedia file as claimed in claim 1 drags player method, it is characterized in that, described the key frame of video that searches and the step of carrying out the timestamp comparison from the nearest audio frequency key frame of this key frame of video is specifically comprised:
The key frame of video that searches of judgement and the threshold value that whether arranges less than system apart from the time interval between its nearest audio frequency key frame are if judge the threshold value that the key frame of video that searches and described audio frequency key frame satisfy system's setting.
4. a multimedia file drags playing device, it is characterized in that, described device comprises:
Drag the command reception module, be used for receiving multimedia file and drag instruction;
The index judge module is used for judging whether the described index that drags instruction respective file section is normal;
Roughly the position location computing module, be used for calculating the described roughly position location that drags instruction respective file section;
The key frame of video acquisition module is for the eigenvalue search multimedia file key frame of video that begins from described roughly position location according to the multimedia file frame head;
The key frame of video judge module is used for the key frame of video that will search and carries out timestamp relatively from the nearest audio frequency key frame of this key frame of video, and
Playing module is used for beginning the play multimedia file from described key frame of video;
Described index judge module specifically comprises:
The starting position parsing module is used for from the multimedia file data head, parses the described position that drags the beginning of instruction respective file section; And
The index checking module, be used for the starting position from described file section, according to the multimedia file standard agreement, check whether described file section data structure is complete, and whether the data value in described file section structure type meets the range of definition of multimedia file standard agreement.
5. multimedia file as claimed in claim 4 drags playing device, it is characterized in that, described roughly position location computing module specifically comprises:
Total time parsing module, be used for parsing the total time of this multimedia file from described multimedia file data head;
Drag time-obtaining module, be used for the time that drags of obtaining the user;
Time ratio calculation module is used for calculating the described ratio that drags time and described total time;
The file size acquisition module is for obtain the sizes values of described multimedia file by the file operation function;
Roughly the position location computing module, be used for obtaining described roughly position location according to the sizes values of described ratio value and described multimedia file.
6. multimedia file as claimed in claim 4 drags playing device, it is characterized in that,
Described key frame of video judge module, also be used for key frame of video that judgement searches with apart from the time interval between its nearest audio frequency key frame whether less than the threshold value of system's setting, if judge that the key frame of video and the described audio frequency key frame that search satisfy the threshold value that system arranges.
7. a multimedia play terminal, is characterized in that, described terminal comprises that the described multimedia file of claim 4 to 6 any one drags playing device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910238929 CN102118539B (en) | 2009-12-30 | 2009-12-30 | Multimedia playing terminal as well as playing method and device for dragging multimedia files |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910238929 CN102118539B (en) | 2009-12-30 | 2009-12-30 | Multimedia playing terminal as well as playing method and device for dragging multimedia files |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102118539A CN102118539A (en) | 2011-07-06 |
CN102118539B true CN102118539B (en) | 2013-06-19 |
Family
ID=44217122
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910238929 Active CN102118539B (en) | 2009-12-30 | 2009-12-30 | Multimedia playing terminal as well as playing method and device for dragging multimedia files |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102118539B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102264004B (en) * | 2011-08-05 | 2014-11-12 | Tcl集团股份有限公司 | Method and device for preventing deficiency of key frame from causing seek incapability |
CN103024561B (en) * | 2011-09-28 | 2016-05-25 | 深圳市快播科技有限公司 | A kind of display methods and device that pulls progress bar |
CN102523513B (en) * | 2011-12-31 | 2015-04-29 | 西南交通大学 | Implementation method for accurately obtaining images of original video file on basis of video player |
CN103491387B (en) * | 2012-06-14 | 2016-09-07 | 深圳市云帆世纪科技有限公司 | System, terminal and the method for a kind of video location |
CN104077336B (en) * | 2013-05-09 | 2016-08-03 | 腾讯科技(深圳)有限公司 | A kind of pull the method and apparatus that audio file carries out audio file information retrieval |
CN103559899B (en) * | 2013-10-31 | 2016-01-20 | 广东欧珀移动通信有限公司 | Code stream fixed point play position searching method and device |
CN104394460A (en) * | 2014-11-24 | 2015-03-04 | 深圳市华宝电子科技有限公司 | Audio-video file locating method and device |
CN105120321A (en) * | 2015-08-21 | 2015-12-02 | 北京佳讯飞鸿电气股份有限公司 | Video searching method, video storage method and related devices |
CN106911941B (en) * | 2017-03-02 | 2019-08-16 | 上海幻电信息科技有限公司 | A kind of adaptive video dicing method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859299A (en) * | 2006-01-05 | 2006-11-08 | 华为技术有限公司 | Stream medium server and stream medium transmitting and storaging method |
CN1980390A (en) * | 2005-12-07 | 2007-06-13 | 联合信源数字音视频技术(北京)有限公司 | Audio-video frequency media data organization realizing method of supporting precision positioning |
CN101106637A (en) * | 2006-07-13 | 2008-01-16 | 中兴通讯股份有限公司 | Method for playing media files in external storage device via STB |
CN101394469A (en) * | 2008-10-29 | 2009-03-25 | 北京创毅视讯科技有限公司 | Audio and video synchronization method, device and a digital television chip |
-
2009
- 2009-12-30 CN CN 200910238929 patent/CN102118539B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1980390A (en) * | 2005-12-07 | 2007-06-13 | 联合信源数字音视频技术(北京)有限公司 | Audio-video frequency media data organization realizing method of supporting precision positioning |
CN1859299A (en) * | 2006-01-05 | 2006-11-08 | 华为技术有限公司 | Stream medium server and stream medium transmitting and storaging method |
CN101106637A (en) * | 2006-07-13 | 2008-01-16 | 中兴通讯股份有限公司 | Method for playing media files in external storage device via STB |
CN101394469A (en) * | 2008-10-29 | 2009-03-25 | 北京创毅视讯科技有限公司 | Audio and video synchronization method, device and a digital television chip |
Also Published As
Publication number | Publication date |
---|---|
CN102118539A (en) | 2011-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102118539B (en) | Multimedia playing terminal as well as playing method and device for dragging multimedia files | |
CN1764974B (en) | Storage medium storing multimedia data, and method and apparatus for reproducing multimedia data | |
CN101267524B (en) | Method for retrieving lost content for a scheduled program and digital video recorder | |
US20120233345A1 (en) | Method and apparatus for adaptive streaming | |
CN102156734B (en) | Video content management method based on semantic hidden indexing | |
CN102110458B (en) | Playing terminal as well as method and device for playing an audio/video file | |
US20200388304A1 (en) | Synchronously playing method and device of media file, and storage medium | |
US10931991B2 (en) | Methods and systems for selectively skipping through media content | |
CN1985321A (en) | Storage medium storing multimedia data, and method and apparatus for reproducing the multimedia data | |
CN113271479B (en) | Playing processing method and device and related equipment | |
JP2021508995A (en) | Network playback method, device and storage medium for media files | |
CN104602105A (en) | Video file playing method and user equipment | |
JP2021508220A (en) | Media playback loading control method, device and storage medium | |
CN110493324A (en) | Method for down loading, downloader and computer readable storage medium | |
CN111966632A (en) | Streaming data storage method, reading method, equipment and readable storage medium | |
CN101802803B (en) | Method and apparatus for generating and reproducing media object-based metadata | |
CN110545460B (en) | Media file preloading method and device and storage medium | |
CN101202894B (en) | Method, system for playing program sequence and digital television receiver | |
CN103269450A (en) | Multimedia system for Android smart television set | |
CN108810575B (en) | Method and device for sending target video | |
CN103428527A (en) | Real-time data source media stream transformation method and breakpoint switching play method | |
CN107580264A (en) | Multimedia resource play handling method and device | |
CN107872716A (en) | A kind of stream data analytic method, device and the electronic equipment of rearmounted encapsulation | |
CN108282678A (en) | A kind of playback method of multi-medium data, apparatus and system | |
US9484064B2 (en) | Video chunking for robust, progressive uploading |
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 |