CN102118539A - 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 PDF

Info

Publication number
CN102118539A
CN102118539A CN2009102389297A CN200910238929A CN102118539A CN 102118539 A CN102118539 A CN 102118539A CN 2009102389297 A CN2009102389297 A CN 2009102389297A CN 200910238929 A CN200910238929 A CN 200910238929A CN 102118539 A CN102118539 A CN 102118539A
Authority
CN
China
Prior art keywords
key frame
file
multimedia file
multimedia
video
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
CN2009102389297A
Other languages
Chinese (zh)
Other versions
CN102118539B (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN 200910238929 priority Critical patent/CN102118539B/en
Publication of CN102118539A publication Critical patent/CN102118539A/en
Application granted granted Critical
Publication of CN102118539B publication Critical patent/CN102118539B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

A kind of multimedia play terminal and file thereof drag playing method and device
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 continuous development of multimedia technology, the user is also more and more higher to the requirement of multimedia quality.
With MKV is 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 the MatroskaMedia file.
MKV is different from video code models such as DivX, XviD, also is different from 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 has only video and have only the MP3 of audio frequency to combine, the form with a kind of multimedia medium occurs then.
MKV can use Media player Classic, BSplayer, ZoomPlayer player etc., even comprises Windows Media player.
Because MKV can hold video, audio frequency and the caption stream of number of different types coding, even if very files in stream media such as Feng Bi RealMedia and QuickTime are also included into by MKV, therefore MKV has almost become an omnipotent media container, uses constantly and popularizes.
Because the MKV package file can provide the user to play the function that drags, just 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 because the information that drags location index, generally can be encapsulated in the afterbody of file, when imperfect or the Internet download is imperfect when the MKV document copying, 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 information location 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, improve play quality because the problem that can't normally drag file that causes lost in information location index.
The embodiment of the 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 characteristic value searching multimedia files 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 values that system is provided with, begin play multimedia files from described key frame of video.
An also purpose of the embodiment of the invention is to provide a kind of multimedia file to drag playing device, and described device comprises:
Drag the command reception module, be used to receive multimedia file and drag instruction;
The index judge module is used to judge whether the described index that drags instruction respective file section is normal;
Roughly the position location computing module is used to obtain the described roughly position location that drags instruction respective file section;
The key frame of video acquisition module is used for beginning from described roughly position location the characteristic value searching multimedia files key frame of video 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 from the nearest audio frequency key frame of this key frame of video relatively, and
Playing module is used for beginning play multimedia files from described key frame of video.
The embodiment of the invention also provides a kind of playback terminal, and described terminal comprises that the multimedia file that the embodiment of the invention provides drags playing device.
Whether the embodiment of the invention instructs the index of corresponding file section normal by judging that the user drags, if it is 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 play multimedia files from this key frame of video, solve because the problem that can't normally drag file that causes lost in information location index, improved play quality, be beneficial to the popularization of multimedia play terminal.
Description of drawings
The multimedia file that Fig. 1 provides for the embodiment of the invention drags the flow chart of player method;
The multimedia file that Fig. 2 provides for the embodiment of the invention drags the structure chart of playing device;
The multimedia file that Fig. 3 provides for the embodiment of the invention drags in the 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,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Whether the embodiment of the invention instructs the index of corresponding file section normal by judging that the user drags, if it is undesired, approximate location search key frame of video in that the user drags when the key frame of video that searches is eligible, begins play multimedia files from this key frame of video.
The multimedia file that Fig. 1 shows the embodiment of the 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 then; 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 the 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, then 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, obtain dragging the time of user then, according to the described ratio that drags time and described total time that obtains total time of user's time that drags and multimedia file.
Afterwards, obtain the sizes values of described multimedia file, and calculate described roughly position location according to the ratio of time of dragging and described total time and the sizes values of described multimedia file by the file operation function.
In step S104, begin characteristic value searching multimedia files key frame of video from described roughly position location according to the multimedia file frame head.
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, judge the key frame of video that searches with apart from the time interval between its nearest audio frequency key frame whether less than the threshold values of system's setting; If then carry out step S106, otherwise proceed step S104.
In step S106, when the key frame of video that searches and described audio frequency key frame satisfy the threshold values that system is provided with, begin play multimedia files 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 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;
Index judge module 22 judges whether the described index that drags instruction respective file section is normal;
In specific implementation process, described index judge module 22 specifically comprises starting position parsing module 221 and index inspection module 222:
Starting position parsing module 221 parses the described starting position that drags instruction respective file section from the multimedia file data head;
The starting position of module 222 from described file section checked in index, according to described multimedia file standard agreement, check whether described file section data structure is complete, and whether the data value in the described file section structure type meets the range of definition of described multimedia file standard agreement.
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 characteristic value searching multimedia files 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, key frame of video judge module 25 judge the key frame of video that searches with apart from the time interval between its nearest audio frequency key frame whether less than the threshold values of system's setting, if judge that then the key frame of video and the described audio frequency key frame that search satisfy the threshold values that system is provided with.
Playing module 26 begins play multimedia files from described key frame of video.
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 computing 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 dragging the time of user;
Time ratio computing module 233 obtains 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 invention also provides a kind of multimedia play terminal, and described terminal comprises that the multimedia file that the embodiment of the invention provides drags playing device, in view of this installs in above existing detailed description, repeats no more herein.
Whether the embodiment of the invention instructs the index of corresponding file section normal by judging that the user drags, if it is 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 play multimedia files from this key frame of video, solve because the problem that can't normally drag file that causes lost in information location index, improved play quality, be 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 improvement and conversion all should belong to the protection range of claims of the present invention.

Claims (9)

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 that described dragging instruct the index of respective file section whether normal;
If undesired, calculate the described roughly position location that drags instruction respective file section;
Begin characteristic value searching multimedia files 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 values that system is provided with, begin play multimedia files from described key frame of video.
2. multimedia file as claimed in claim 1 drags player method, it is characterized in that, describedly judges that whether normal the described index step that drags the instruction respective file specifically comprise:
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,, check whether described file section data structure is complete, and whether the data value in the described file section structure type meets the range of definition of described multimedia file standard agreement according to described multimedia file standard agreement.
3. multimedia file as claimed in claim 1 drags player method, it is characterized in that, describedly obtains the described step of roughly position location that drags the corresponding multimedia file of instruction and specifically comprises:
From described multimedia file data head, parse the total time of this multimedia file;
Obtain dragging the time of user;
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.
4. 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:
Judge the key frame of video search and the threshold values that whether is provided with apart from the time interval between its nearest audio frequency key frame, if then judge the threshold values that the key frame of video that searches and described audio frequency key frame satisfy system's setting less than system.
5. a multimedia file drags playing device, it is characterized in that, described device comprises:
Drag the command reception module, be used to receive multimedia file and drag instruction;
The index judge module is used to judge whether the described index that drags instruction respective file section is normal;
Roughly the position location computing module is used to calculate the described roughly position location that drags instruction respective file section;
The key frame of video acquisition module is used for beginning from described roughly position location the characteristic value searching multimedia files key frame of video 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 from the nearest audio frequency key frame of this key frame of video relatively, and
Playing module is used for beginning play multimedia files from described key frame of video.
6. multimedia file as claimed in claim 5 drags playing device, it is characterized in that, 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
Module checked in index, be used for starting position from described file section, according to described multimedia file standard agreement, check whether described file section data structure is complete, and whether the data value in the described file section structure type meets the range of definition of described multimedia file standard agreement.
7. multimedia file as claimed in claim 5 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 to obtain dragging the time of user;
Time ratio computing module is used to calculate the described ratio that drags time and described total time;
The file size acquisition module is used for obtaining by the file operation function sizes values of described multimedia file;
Roughly the position location computing module is used for obtaining described roughly position location according to the sizes values of described ratio value and described multimedia file.
8. multimedia file as claimed in claim 5 drags playing device, it is characterized in that,
Described key frame of video judge module, also be used to judge the key frame of video that searches and the threshold values that whether is provided with apart from the time interval between its nearest audio frequency key frame less than system, if judge that then the key frame of video and the described audio frequency key frame that search satisfy the threshold values that system is provided with.
9. a multimedia play terminal is characterized in that, described terminal comprises that each described multimedia file of claim 5 to 8 drags playing device.
CN 200910238929 2009-12-30 2009-12-30 Multimedia playing terminal as well as playing method and device for dragging multimedia files Active CN102118539B (en)

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 true CN102118539A (en) 2011-07-06
CN102118539B 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)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102264004A (en) * 2011-08-05 2011-11-30 Tcl集团股份有限公司 Method and device for preventing deficiency of key frame from causing seek incapability
CN102523513A (en) * 2011-12-31 2012-06-27 西南交通大学 Implementation method for accurately obtaining images of original video file on basis of video player
CN103024561A (en) * 2011-09-28 2013-04-03 深圳市快播科技有限公司 Method and device for displaying dragging progress bar
CN103491387A (en) * 2012-06-14 2014-01-01 深圳市快播科技有限公司 System, on-demand unicast terminal and method for video positioning
CN103559899A (en) * 2013-10-31 2014-02-05 广东欧珀移动通信有限公司 Searching method and device for designated playing position of code stream
CN104077336A (en) * 2013-05-09 2014-10-01 腾讯科技(深圳)有限公司 Method and device for dragging audio file to retrieve audio file information
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
CN106911941A (en) * 2017-03-02 2017-06-30 上海幻电信息科技有限公司 A kind of adaptive video dicing method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100525447C (en) * 2005-12-07 2009-08-05 联合信源数字音视频技术(北京)有限公司 Audio-video frequency media data organization realizing method of supporting precision positioning
CN100527704C (en) * 2006-01-05 2009-08-12 华为软件技术有限公司 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
CN101394469B (en) * 2008-10-29 2011-04-06 北京创毅视讯科技有限公司 Audio and video synchronization method, device and a digital television chip

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102264004A (en) * 2011-08-05 2011-11-30 Tcl集团股份有限公司 Method and device for preventing deficiency of key frame from causing seek incapability
CN102264004B (en) * 2011-08-05 2014-11-12 Tcl集团股份有限公司 Method and device for preventing deficiency of key frame from causing seek incapability
CN103024561A (en) * 2011-09-28 2013-04-03 深圳市快播科技有限公司 Method and device for displaying dragging progress bar
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
CN102523513A (en) * 2011-12-31 2012-06-27 西南交通大学 Implementation method for accurately obtaining images of original video file on basis of video player
CN103491387A (en) * 2012-06-14 2014-01-01 深圳市快播科技有限公司 System, on-demand unicast terminal and method for video positioning
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
CN104077336A (en) * 2013-05-09 2014-10-01 腾讯科技(深圳)有限公司 Method and device for dragging audio file to retrieve audio file information
CN103559899B (en) * 2013-10-31 2016-01-20 广东欧珀移动通信有限公司 Code stream fixed point play position searching method and device
CN103559899A (en) * 2013-10-31 2014-02-05 广东欧珀移动通信有限公司 Searching method and device for designated playing position of code stream
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
CN106911941A (en) * 2017-03-02 2017-06-30 上海幻电信息科技有限公司 A kind of adaptive video dicing method
CN106911941B (en) * 2017-03-02 2019-08-16 上海幻电信息科技有限公司 A kind of adaptive video dicing method

Also Published As

Publication number Publication date
CN102118539B (en) 2013-06-19

Similar Documents

Publication Publication Date Title
CN102118539B (en) Multimedia playing terminal as well as playing method and device for dragging multimedia files
CN103414949B (en) A kind of multimedia edit system based on intelligent television and method
CN1764974B (en) Storage medium storing multimedia data, and method and apparatus for reproducing multimedia data
US20120233345A1 (en) Method and apparatus for adaptive streaming
CN102110458B (en) Playing terminal as well as method and device for playing an audio/video file
CN102156734B (en) Video content management method based on semantic hidden indexing
CN1941908A (en) System and method for transrating based on multimedia program type
CN104602105B (en) The player method and user equipment of video file
JP2021510047A (en) Synchronous playback method of media files, equipment and storage media
CN101908052A (en) Making method and device of multimedia program
CN110784741A (en) Time-shifting response method and device of media data
JP2021508220A (en) Media playback loading control method, device and storage medium
CN101802803B (en) Method and apparatus for generating and reproducing media object-based metadata
CN103108252B (en) The method and system that a kind of internet television broadcasts
CN103428527A (en) Real-time data source media stream transformation method and breakpoint switching play method
CN106792158A (en) Order video inserting method based on internet television client
CN201663666U (en) Network video device
CN105847990A (en) Media file playing method and apparatus
CN103501457B (en) The method and apparatus that a kind of program is play
CN109587517A (en) A kind of playback method and device, server and storage medium of multimedia file
CN108282678A (en) A kind of playback method of multi-medium data, apparatus and system
US9484064B2 (en) Video chunking for robust, progressive uploading
CN102768841B (en) The method of online network flash front end recorded video and flash front end
CN106412715A (en) Information retrieval method, terminal and server
CN102231847B (en) Direct and accurate frame positioning method supporting stream media files

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