WO2016095166A1 - 提取多媒体文件元信息的方法及装置 - Google Patents

提取多媒体文件元信息的方法及装置 Download PDF

Info

Publication number
WO2016095166A1
WO2016095166A1 PCT/CN2014/094239 CN2014094239W WO2016095166A1 WO 2016095166 A1 WO2016095166 A1 WO 2016095166A1 CN 2014094239 W CN2014094239 W CN 2014094239W WO 2016095166 A1 WO2016095166 A1 WO 2016095166A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
multimedia file
markup language
extensible markup
information
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.)
Ceased
Application number
PCT/CN2014/094239
Other languages
English (en)
French (fr)
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.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Publication of WO2016095166A1 publication Critical patent/WO2016095166A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present invention relates to the field of multimedia technologies, and in particular, to a method and an apparatus for extracting meta information of a multimedia file.
  • meta information In addition to the audio and video data that takes up most of the space in the multimedia file, there are some information describing the audio and video data, called meta information.
  • the meta-information of multimedia files can be roughly divided into two categories.
  • the first category belongs to key description information of audio and video data, and is used for decoding or encoding of audio and video data, such as encoding format of audio and video data, container format, video width and height, Audio sampling rate, etc.
  • the second type of irrelevant decoding and encoding only serves as an auxiliary description, such as video title, actors and production date information.
  • the above two types of meta-information are very important for information decoding and retrieval.
  • the meta-information in the multimedia file needs to be extracted quickly, but the meta-information format in the multimedia file is There are many unified standards for description, and the meta information may be scattered in various places in the multimedia file.
  • the commonly used method of extracting meta information of multimedia files is very inefficient, and the speed of extracting meta information is very slow, and the extracted The format of the meta-information is not uniform, which is not conducive to the call and extension of subsequent operations.
  • the main object of the present invention is to provide a method and apparatus for extracting meta-information of multimedia files, so as to solve the technical problem that the speed of extracting meta-information is slow and the extracted meta-information is not high.
  • the present invention provides a method for extracting metafile information of a multimedia file, the method comprising the following steps:
  • the step of parsing the separated audio and video data and the description data comprises: parsing the video format data, the audio format data, and the subtitle format data in the separated audio and video data and the description data.
  • the step of converting the extracted description data into extensible markup language format information and transmitting the extensible markup language format information to the created message bus comprises:
  • the extracted description data is unified according to different formats, and the description data after the unified name is converted into extensible markup language format information, and the extensible markup language format information is sent to the created message bus.
  • the step of converting the extracted description data into extensible markup language format information and transmitting the extensible markup language format information to the created message bus comprises:
  • the converted extensible markup language format information is transmitted to the created message bus by competing for reading and writing message bus rights.
  • the step of generating the multimedia file meta information according to the extensible markup language format information received by the message bus comprises: integrating a plurality of extensible markup language format information received by the message bus to form a complete expandable The markup language format information, which is the final generated multimedia file meta information.
  • the step of generating the multimedia file meta information according to the extensible markup language format information received by the message bus further includes:
  • the reading data in the multimedia file data is performed while reading the multimedia file data, separating the audio and video data and the description data in the multimedia file data, parsing the separated audio and video data and the description data.
  • the steps to extract are:
  • the protocol processing module extracts the description data in the multimedia file data while reading the multimedia file data, and separates the audio and video data and the description data in the multimedia file data by the demultiplexing module into the multimedia file data.
  • the description data is extracted, and the description data in the multimedia file data is extracted by the parser while parsing the separated audio and video data and the description data.
  • the description data extracted by the protocol processing module includes data information describing a size of the multimedia file.
  • the description data extracted by the demultiplexing module includes data information describing a multimedia file container type and an audio sampling rate.
  • the description data extracted by the parser includes data information describing an audio and video encoding format and an encoding level.
  • the present invention further provides an apparatus for extracting meta-information of a multimedia file, the apparatus comprising:
  • the extraction module is configured to: when reading multimedia file data, separating audio and video data and description data in the multimedia file data, parsing the separated audio and video data and description data, and describing data in the multimedia file data Extracting;
  • a sending module configured to convert the extracted description data into extensible markup language format information, and send the extensible markup language format information to the created message bus;
  • a generating module configured to generate multimedia file meta information according to the extensible markup language format information received by the message bus.
  • the extracting module is further configured to: parse the video format data, the audio format data, and the subtitle format data in the separated audio and video data and the description data.
  • the sending module is further configured to:
  • the extracted description data is unified according to different formats, and the description data after the unified name is converted into extensible markup language format information, and the extensible markup language format information is sent to the created message bus.
  • the sending module is further configured to:
  • the converted extensible markup language format information is transmitted to the created message bus by competing for reading and writing message bus rights.
  • the generating module is further configured to:
  • the plurality of extensible markup language format information received by the message bus is integrated to form a complete extensible markup language format information, and the complete extensible markup language format information is the finally generated multimedia file meta information.
  • the device further comprises:
  • a stopping module configured to stop the process of extracting the description data in the multimedia file data when the preset preset time is exceeded or the message bus determines that the error information and the end information are received.
  • the present invention further provides an apparatus for extracting metafile information of a multimedia file, the apparatus comprising:
  • a demultiplexing module configured to separate audio and video data and description data in the multimedia file data read by the protocol processing module
  • a parser for parsing audio and video data and description data separated by the demultiplexing module
  • the protocol processing module, the demultiplexing module, and the parser all include an extracting module and a sending module, and the protocol processing module, the demultiplexing module, and the extracting module in the parser are respectively used for reading multimedia file data. Extracting the description data in the multimedia file data when the audio and video data and the description data in the multimedia file data are separated, and when the separated audio and video data and the description data are parsed; the protocol processing module And a demultiplexing module and a sending module in the parser for respectively converting description data extracted by the corresponding extraction module into extensible markup language format information, and transmitting the extensible markup language format information to the created Message bus.
  • the device further comprises:
  • a generating module configured to acquire the extensible markup language format information received by the message bus and integrate the generated multimedia file meta information.
  • the generating module further has a display unit for presenting multimedia file meta information generated by the integration.
  • the sending module unifies the description data describing the same category when the description data is converted into the extensible markup language format information.
  • the method and device for extracting multimedia file meta information proposed by the invention separates audio file data and description data in multimedia file data, and parses separated audio and video data and description data.
  • the description data in the multimedia file data is extracted, so that the asynchronous concurrent extraction of the description data is realized, and the efficiency is higher, and the blocking of any link in the sequence extraction may affect the extraction of the description data
  • the finally generated multimedia file meta information is obtained by synthesizing the extensible markup language format information converted by the extracted description data, that is, the finally generated multimedia file meta information is an extensible markup language format, so that the generated multimedia file meta information is generated. More scalable and more flexible.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for extracting metafile information of a multimedia file according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for extracting metafile information of a multimedia file according to the present invention
  • FIG. 3 is a schematic diagram of functional modules of a first embodiment of an apparatus for extracting multimedia file meta information according to the present invention
  • FIG. 4 is a schematic diagram of functional modules of a second embodiment of an apparatus for extracting multimedia file meta information according to the present invention.
  • the invention provides a method for extracting metafile information of a multimedia file.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a method for extracting metafile information of a multimedia file according to the present invention.
  • the method for extracting multimedia file meta information includes:
  • Step S10 extracting the description data in the multimedia file data while reading the multimedia file data, separating the audio and video data and the description data in the multimedia file data, parsing the separated audio and video data and the description data. ;
  • the audio and video data and the description data in the multimedia file data are separated, and the separated audio and video data and the description data are parsed, the description data in the multimedia file data is
  • the extraction is performed to achieve asynchronous concurrent extraction of the description data, which is more efficient, and avoids the situation that the extraction of the description data is affected by the blocking of any link in the sequential extraction.
  • the demultiplexing module separates the audio and video data and the description data in the multimedia file data, and the sound separated by the parser is separated.
  • the video data and the description data are parsed, and the description data in the multimedia file data is extracted by the protocol processing module, the demultiplexing module, and the parser as an example.
  • the other functions are not limited to implement the above functions. .
  • the protocol processing module is configured to read multimedia file data that needs to extract meta information, wherein the multimedia file data includes local multimedia file data or network online multimedia file data; and the demultiplexing module is configured to perform multimedia file data read by the protocol processing module. Separating, separating audio and video data and description data in the multimedia file data, such as subtitle data, and transmitting the separated data to the parser in the form of a frame; the parser is configured to perform the separated audio and video data and the description data.
  • parser includes but is not limited to: a parser that parses the video format data, a parser that parses the audio format data, and parsing A parser for subtitle format data.
  • the distribution position of the description data in the multimedia file in the multimedia file is scattered and disordered, it may be scattered in the audio and video data blocks in the multimedia file data, and may also be scattered outside the audio and video data blocks in the multimedia file data. Therefore, in the process in which the protocol processing module reads the multimedia file data, the demultiplexing module separates the audio and video data and the description data in the multimedia file data, and the parser analyzes the separated audio and video data and the description data, The protocol processing module, the demultiplexing module, and the parser may obtain the description data in the multimedia file data. If the processing sequence of the processing module, the demultiplexing module, and the parser is completely in accordance with the protocol, until the parser fully parses the multimedia file.
  • the description data in the multimedia file data is extracted as the meta information, which not only causes the extraction efficiency to be low, but also if any of the protocol processing module, the demultiplexing module, and the parser has a processing error or a network congestion, It will slow down the speed of extracting the data described in the multimedia file data. Therefore, in this embodiment, the protocol processing module reads the multimedia file data, the demultiplexing module separates the audio and video data and the description data in the multimedia file data, and the parser analyzes the separated audio and video data and the description data.
  • the description data in the multimedia file data is extracted by the protocol processing module, the demultiplexing module, and the parser; that is, the protocol processing module, the demultiplexing module, and the parser extract the description data in the multimedia file data in an order.
  • the process is performed asynchronously.
  • the protocol processing module, the demultiplexing module, and the parser are read into the multimedia file data.
  • the description data, any one of the protocol processing module, the demultiplexing module, and the parser can extract the description data in the multimedia file data, thereby greatly improving the efficiency of extracting the description data in the multimedia file data.
  • each module extracts the description data in the multimedia file data. Independently, any link to avoid blocking situation will be described on the extraction data extracted sequence occurs, and further increases the extraction rate of the description data.
  • the description data extracted by the protocol processing module may include data information describing a multimedia file size;
  • the description data extracted by the demultiplexing module may include data information describing a multimedia file container type and an audio sampling rate;
  • the profile data extracted by the parser may include data information describing an audio and video encoding format and an encoding level.
  • Step S20 converting the extracted description data into extensible markup language format information, and transmitting the extensible markup language format information to the created message bus;
  • the demultiplexing module, and the parser After the protocol processing module, the demultiplexing module, and the parser extract the description data in the multimedia file data, the extracted description data is converted into the extensible markup language format information, and the extensible markup language can be used to mark the data and define the data type. Ideal for web transmission, converting extracted description data into extensible markup language format information facilitates subsequent transmission and application.
  • the description data in the multimedia file data can be extracted, and a message bus is created, so that the protocol processing module, the demultiplexing module, and the parser are used.
  • the module may send the converted extensible markup language format information to the created message bus, that is, protocol processing.
  • the module, the demultiplexing module, and the parser share the message bus, and implement the asynchronous concurrent execution of the description data extraction in the multimedia file data by the protocol processing module, the demultiplexing module, and the parser.
  • the protocol processing module, the demultiplexing module, and the parser can pass The way of competing for reading and writing message bus rights sends the converted extensible markup language format information to the created message bus, so that the resources of the message bus are fully utilized, further improving the efficiency of extracting the description data in the multimedia file data.
  • the protocol processing module, the demultiplexing module, and the parser are not limited to asynchronously concurrently extracting description data in the multimedia file data by means of other read/write message buses.
  • Step S30 Generate multimedia file meta information according to the extensible markup language format information received by the message bus.
  • the message is sent.
  • the plurality of extensible markup language format information received by the bus is integrated to form a complete extensible markup language format information
  • the complete extensible markup language format information is the final generated multimedia file meta information, including the description of the multimedia file.
  • the information of the data is called for subsequent decoding, encoding and retrieval of the information. Since the generated meta-information of the multimedia file is in an extensible markup language format, it can be flexibly expanded as needed, and can be more conveniently transmitted, which is more conducive to subsequent Call and other operations.
  • the extensible markup language format information is xml format information.
  • the finally generated multimedia file meta information is complete xml format information obtained by integrating several xml format information received by the message bus.
  • the multimedia file data is read, the audio and video data and the description data in the multimedia file data are separated, and the separated audio and video data and the description data are parsed, and the description data in the multimedia file data is performed. Extracting, in this way, realizes asynchronous concurrent extraction of description data, which is more efficient, avoids the situation that any step blocking during sequence extraction will affect the extraction of description data, and the final generated multimedia file meta information is integrated by extraction.
  • the description data is converted into the extensible markup language format information, that is, the finally generated multimedia file meta information is in an extensible markup language format, so that the generated multimedia file meta information is more scalable and more flexible.
  • step S20 may include:
  • the extracted description data is unified according to different formats, and the description data after the unified name is converted into extensible markup language format information, and the extensible markup language format information is sent to the created message bus.
  • the demultiplexing module, and the parser extract the description data in the multimedia file data
  • the description data in the multimedia file data does not have a unified naming standard, such as the title use name TIT2 in the mp3 type multimedia file data
  • the title of the MKV type multimedia file data uses the title Title, which results in the extracted description data containing various names. Therefore, it is necessary to perform unified standardized naming, and the various formats correspond to a unified name, that is,
  • the extracted description data is unified according to different formats, so that the description data after the unified name is converted into the extensible markup language format information, and the extensible markup language format information is sent to the created message bus.
  • the extensible markup language format information converted according to the description data after the unified name is more scalable, and is more convenient for sending and receiving between different modules.
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of a method for extracting metafile information of a multimedia file according to the present invention.
  • the method further includes:
  • Step S40 When the set preset time is exceeded or the message bus determines that the error information and the end information are received, the process of extracting the description data in the multimedia file data is stopped.
  • the embodiment further includes stopping the description data in the multimedia file data when the preset preset time is exceeded or the message bus determines that the error information and the end information are received. The operation of the extraction process.
  • the network extension may occur when the meta information in the online multimedia file data is extracted.
  • a preset time is preset, and when the preset preset time is exceeded, the process of extracting the description data in the multimedia file data by the protocol processing module, the demultiplexing module, and the parser is stopped.
  • the message bus stops receiving the extensible markup language format information, and ends the extraction of the description data in the multimedia file data by the protocol processing module, the demultiplexing module, and the parser to avoid long delay caused by the network delay. The situation is more flexible.
  • the protocol processing module, the demultiplexing module, and the parser are in error in the process of extracting the description data or the extraction is ended, and then all the modules in the protocol processing module, the demultiplexing module, and the parser are stopped to describe the data in the multimedia file data.
  • the message bus does not need to wait for the receiving protocol processing module, the demultiplexing module, and the parser to send a message, and directly generates the multimedia file meta information according to the extensible markup language format information received on the message bus.
  • the message bus wastes time waiting to receive the message, further improving the extraction of the multimedia file. The efficiency and speed of meta information.
  • the invention further provides an apparatus for extracting metafile information of a multimedia file.
  • FIG. 3 is a schematic diagram of functional modules of a first embodiment of an apparatus for extracting multimedia file meta information according to the present invention.
  • the apparatus for extracting multimedia file meta information includes:
  • the extracting module 01 is configured to perform the description in the multimedia file data while reading the multimedia file data, separating the audio and video data and the description data in the multimedia file data, and parsing the separated audio and video data and the description data. Data extraction;
  • the extracting module 01 separates the audio file data and the description data in the multimedia file data, parses the separated audio and video data and the description data, and analyzes the multimedia file data.
  • the description data is extracted to achieve asynchronous concurrent extraction of the description data, which is more efficient, and avoids the situation that the extraction of the description data is affected by the blocking of any link in the sequential extraction.
  • the protocol processing module reads the multimedia file.
  • the data and demultiplexing module separates the audio and video data and the description data in the multimedia file data
  • the parser analyzes the separated audio and video data and the description data, and simultaneously passes through the protocol processing module, the demultiplexing module, and the parser.
  • the description of the description data in the multimedia file data is taken as an example.
  • the extraction module 01 is not limited to include other processing modules or the extraction module 01 itself to implement the above functions.
  • the protocol processing module is configured to read multimedia file data that needs to extract meta information, where the multimedia file data includes local multimedia file data or network online multimedia file data; and the demultiplexing module is configured to read the protocol processing module.
  • the multimedia file data is separated, the audio and video data in the multimedia file data and the description data, such as subtitle data, are separated, and the separated data is transmitted to the parser in the form of a frame; the parser is used to separate the separated audio and video
  • the data and the description data are parsed, and finally the multimedia file data is parsed into data of various formats.
  • the parser includes but is not limited to: a parser that parses the video format data, and parses the audio format data.
  • the parser and the parser that parses the subtitle format data is configured to read multimedia file data that needs to extract meta information, where the multimedia file data includes local multimedia file data or network online multimedia file data; and the demultiplexing module is configured to read the protocol processing module.
  • the multimedia file data is separated, the audio and video
  • the distribution position of the description data in the multimedia file in the multimedia file is scattered and disordered, it may be scattered in the audio and video data blocks in the multimedia file data, and may also be scattered outside the audio and video data blocks in the multimedia file data. Therefore, in the process in which the protocol processing module reads the multimedia file data, the demultiplexing module separates the audio and video data and the description data in the multimedia file data, and the parser analyzes the separated audio and video data and the description data, The protocol processing module, the demultiplexing module, and the parser may obtain the description data in the multimedia file data. If the processing sequence of the processing module, the demultiplexing module, and the parser is completely in accordance with the protocol, until the parser fully parses the multimedia file.
  • the description data in the multimedia file data is extracted as the meta information, which not only causes the extraction efficiency to be low, but also if any of the protocol processing module, the demultiplexing module, and the parser has a processing error or a network congestion, It will slow down the speed of extracting the data described in the multimedia file data. Therefore, in this embodiment, the protocol processing module reads the multimedia file data, the demultiplexing module separates the audio and video data and the description data in the multimedia file data, and the parser analyzes the separated audio and video data and the description data.
  • the description data in the multimedia file data is extracted by the protocol processing module, the demultiplexing module, and the parser; that is, the protocol processing module, the demultiplexing module, and the parser extract the description data in the multimedia file data in an order.
  • the process is performed asynchronously.
  • the protocol processing module, the demultiplexing module, and the parser are read into the multimedia file data.
  • the description data, any one of the protocol processing module, the demultiplexing module, and the parser can extract the description data in the multimedia file data, thereby greatly improving the efficiency of extracting the description data in the multimedia file data.
  • each module extracts the description data in the multimedia file data. Independently, any link to avoid blocking situation will be described on the extraction data extracted sequence occurs, and further increases the extraction rate of the description data.
  • a sending module 02 configured to convert the extracted description data into extensible markup language format information, and send the extensible markup language format information to the created message bus;
  • the demultiplexing module, and the parser After the protocol processing module, the demultiplexing module, and the parser extract the description data in the multimedia file data, the extracted description data is converted into the extensible markup language format information, and the extensible markup language can be used to mark the data and define the data type. Ideal for web transmission, converting extracted description data into extensible markup language format information facilitates subsequent transmission and application.
  • the description data in the multimedia file data can be extracted, and a message bus is created, so that the protocol processing module, the demultiplexing module, and the parser are used.
  • the module may send the converted extensible markup language format information to the created message bus, that is, protocol processing.
  • the module, the demultiplexing module, and the parser share the message bus, and implement the asynchronous concurrent execution of the description data extraction in the multimedia file data by the protocol processing module, the demultiplexing module, and the parser.
  • the protocol processing module, the demultiplexing module, and the parser can pass The way of competing for reading and writing message bus rights sends the converted extensible markup language format information to the created message bus, so that the resources of the message bus are fully utilized, further improving the efficiency of extracting the description data in the multimedia file data.
  • the protocol processing module, the demultiplexing module, and the parser are not limited to asynchronously concurrently extracting description data in the multimedia file data by means of other read/write message buses.
  • the generating module 03 is configured to generate multimedia file meta information according to the extensible markup language format information received by the message bus.
  • the demultiplexing module, and the parser When any one of the protocol processing module, the demultiplexing module, and the parser extracts the description data in the multimedia file data, and converts the extracted description data into the extensible markup language format information and sends the message to the created message bus, the message is sent.
  • the plurality of extensible markup language format information received by the bus is integrated to form a complete extensible markup language format information, and the complete extensible markup language format information is the final generated multimedia file meta information, including the description of the multimedia file.
  • the information of the data is used for subsequent information decoding and encoding, and the generating module may further have a display unit for presenting the multimedia file meta information generated by the integration. Since the generated meta-information of the multimedia file is in an extensible markup language format, it can be flexibly expanded as needed, and can be more conveniently transmitted, which is more conducive to subsequent calls and the like.
  • the multimedia file data is read, the audio and video data and the description data in the multimedia file data are separated, and the separated audio and video data and the description data are parsed, and the description data in the multimedia file data is performed. Extracting, in this way, realizes asynchronous concurrent extraction of description data, which is more efficient, avoids the situation that any step blocking during sequence extraction will affect the extraction of description data, and the final generated multimedia file meta information is integrated by extraction.
  • the description data is converted into the extensible markup language format information, that is, the finally generated multimedia file meta information is in an extensible markup language format, so that the generated multimedia file meta information is more scalable and more flexible.
  • the sending module 02 is further configured to:
  • the extracted description data is unified according to different formats, and the description data after the unified name is converted into extensible markup language format information, and the extensible markup language format information is sent to the created message bus.
  • the demultiplexing module, and the parser extract the description data in the multimedia file data
  • the description data in the multimedia file data does not have a unified naming standard, such as the title use name TIT2 in the mp3 type multimedia file data
  • the title of the MKV type multimedia file data uses the title Title, which results in the extracted description data containing various names, so it is necessary to describe the description data describing the same category (for example, all describing the title).
  • the names are unified, and the various formats adopt a unified name, that is, the extracted description data is unified according to different formats, so that the description data after the unified name is converted into the extensible markup language format information, and the Extended markup language format information is sent to the created message bus.
  • the extensible markup language format information converted according to the description data after the unified name is more scalable, and is more convenient for sending and receiving between different modules.
  • FIG. 4 is a schematic flowchart diagram of a second embodiment of an apparatus for extracting multimedia file meta information according to the present invention.
  • the apparatus for extracting meta-information of the multimedia file further includes:
  • the stopping module 04 is configured to stop the process of extracting the description data in the multimedia file data when the preset preset time is exceeded or the message bus determines that the error information and the end information are received.
  • the embodiment further includes stopping the protocol processing module and the demultiplexing module when the preset preset time is exceeded or the message bus determines that the error information and the end information are received.
  • the operation of the parser for the extraction process of the description data in the multimedia file data is that the embodiment further includes stopping the protocol processing module and the demultiplexing module when the preset preset time is exceeded or the message bus determines that the error information and the end information are received.
  • the network extension may occur when the meta information in the online multimedia file data is extracted.
  • a preset time is preset, and when the preset preset time is exceeded, the process of extracting the description data in the multimedia file data by the protocol processing module, the demultiplexing module, and the parser is stopped.
  • the message bus stops receiving the extensible markup language format information, and ends the extraction of the description data in the multimedia file data by the protocol processing module, the demultiplexing module, and the parser to avoid long delay caused by the network delay. The situation is more flexible.
  • the protocol processing module, the demultiplexing module, and the parser are in error in the process of extracting the description data or the extraction is ended, and then all the modules in the protocol processing module, the demultiplexing module, and the parser are stopped to describe the data in the multimedia file data.
  • the message bus does not need to wait for the receiving protocol processing module, the demultiplexing module, and the parser to send a message, and directly generates the multimedia file meta information according to the extensible markup language format information received on the message bus.
  • the message bus wastes time waiting to receive the message, further improving the extraction of the multimedia file. The efficiency and speed of meta information.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • a storage medium such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明公开了一种提取多媒体文件元信息的方法,包括:在读取多媒体文件数据、将多媒体文件数据中的音视频数据及描述数据进行分离、对分离出的音视频数据及描述数据进行解析的同时,对多媒体文件数据中的描述数据进行提取;将提取的描述数据转换为可扩展标记语言格式信息,并将可扩展标记语言格式信息发送至创建的消息总线;根据消息总线接收的可扩展标记语言格式信息生成多媒体文件元信息。本发明还公开了一种提取多媒体文件元信息的装置。本发明对元信息提取效率更高,且生成的多媒体文件元信息为可扩展标记语言格式,可扩展性更好。

Description

提取多媒体文件元信息的方法及装置
技术领域
本发明涉及多媒体技术领域,尤其涉及一种提取多媒体文件元信息的方法及装置。
背景技术
多媒体文件里除了占用大部分空间的音视频数据外,还有一些描述音视频数据的信息,称作元信息。多媒体文件的元信息大体上可以分成两类,第一类属于对音视频数据的关键描述信息,用于音视频数据的解码或者编码,例如音视频数据的编码格式、容器格式、视频宽高、音频采样率等,第二类无关解码和编码,仅起辅助性的描述说明作用,例如视频标题、演员和制作日期信息等。上述两类元信息对于信息解码编码和检索来说非常重要,因此,在要进行信息解码编码和检索时,需要快速的对多媒体文件中的元信息进行提取,但是由于多媒体文件中的元信息格式繁多,没有统一的标准进行说明,而且元信息可能杂乱的散落在多媒体文件中的各个位置,目前常用的顺序提取多媒体文件元信息的方法效率很低,提取元信息的速度非常缓慢,且提取的元信息格式不统一,不利于后续操作的调用及扩展。
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。
发明内容
本发明的主要目的在于提供一种提取多媒体文件元信息的方法及装置,以解决现有提取元信息的速度缓慢、提取的元信息可扩展性不高的技术问题。
为实现上述目的,本发明提供的一种提取多媒体文件元信息的方法,所述方法包括以下步骤:
在读取多媒体文件数据、将多媒体文件数据中的音视频数据及描述数据进行分离、对分离出的音视频数据及描述数据进行解析的同时,对多媒体文件数据中的描述数据进行提取;
将提取的描述数据转换为可扩展标记语言格式信息,并将所述可扩展标记语言格式信息发送至创建的消息总线;
根据所述消息总线接收的所述可扩展标记语言格式信息生成多媒体文件元信息。
优选地,所述对分离出的音视频数据及描述数据进行解析的步骤包括:对分离出的音视频数据及描述数据中的视频格式数据、音频格式数据及字幕格式数据进行解析。
优选地,所述将提取的描述数据转换为可扩展标记语言格式信息,并将所述可扩展标记语言格式信息发送至创建的消息总线的步骤包括:
将提取的描述数据按不同格式对应进行名称统一,并将统一名称后的描述数据转换为可扩展标记语言格式信息,将所述可扩展标记语言格式信息发送至创建的消息总线。
优选地,所述将提取的描述数据转换为可扩展标记语言格式信息,并将所述可扩展标记语言格式信息发送至创建的消息总线的步骤包括:
将提取的描述数据转换为可扩展标记语言格式信息后,通过竞争读写消息总线权利的方式将转换的可扩展标记语言格式信息发送至创建的消息总线。
优选地,所述根据所述消息总线接收的所述可扩展标记语言格式信息生成多媒体文件元信息的步骤包括:将消息总线接收的若干可扩展标记语言格式信息进行整合,形成一个完整的可扩展标记语言格式信息,该完整的可扩展标记语言格式信息即为最终生成的多媒体文件元信息。
优选地,所述根据所述消息总线接收的所述可扩展标记语言格式信息生成多媒体文件元信息的步骤之前还包括:
当超过设定的预设时间或所述消息总线判断接收到出错信息、结束信息时,停止对多媒体文件数据中的描述数据的提取进程。
优选地,所述在读取多媒体文件数据、将多媒体文件数据中的音视频数据及描述数据进行分离、对分离出的音视频数据及描述数据进行解析的同时,对多媒体文件数据中的描述数据进行提取的步骤为:
由协议处理模块在读取多媒体文件数据的同时对多媒体文件数据中的描述数据进行提取、由解复用模块在将多媒体文件数据中的音视频数据及描述数据进行分离的同时对多媒体文件数据中的描述数据进行提取、由剖析器在对分离出的音视频数据及描述数据进行解析的同时对多媒体文件数据中的描述数据进行提取。
优选地,所述协议处理模块提取的描述数据包括描述多媒体文件大小的数据信息。
优选地,所述解复用模块提取的描述数据包括描述多媒体文件容器类型和音频采样率的数据信息。
优选地,所述剖析器提取的描述数据包括描述音视频编码格式和编码等级的数据信息。
此外,为实现上述目的,本发明还提供一种提取多媒体文件元信息的装置,所述装置包括:
提取模块,用于在读取多媒体文件数据、将多媒体文件数据中的音视频数据及描述数据进行分离、对分离出的音视频数据及描述数据进行解析的同时,对多媒体文件数据中的描述数据进行提取;
发送模块,用于将提取的描述数据转换为可扩展标记语言格式信息,并将所述可扩展标记语言格式信息发送至创建的消息总线;
生成模块,用于根据所述消息总线接收的所述可扩展标记语言格式信息生成多媒体文件元信息。
优选地,所述提取模块还用于:对分离出的音视频数据及描述数据中的视频格式数据、音频格式数据及字幕格式数据进行解析。
优选地,所述发送模块还用于:
将提取的描述数据按不同格式对应进行名称统一,并将统一名称后的描述数据转换为可扩展标记语言格式信息,将所述可扩展标记语言格式信息发送至创建的消息总线。
优选地,所述发送模块还用于:
将提取的描述数据转换为可扩展标记语言格式信息后,通过竞争读写消息总线权利的方式将转换的可扩展标记语言格式信息发送至创建的消息总线。
优选地,所述生成模块还用于:
将消息总线接收的若干可扩展标记语言格式信息进行整合,形成一个完整的可扩展标记语言格式信息,该完整的可扩展标记语言格式信息即为最终生成的多媒体文件元信息。
优选地,所述装置还包括:
停止模块,用于当超过设定的预设时间或所述消息总线判断接收到出错信息、结束信息时,停止对多媒体文件数据中的描述数据的提取进程。
本发明又提供一种提取多媒体文件元信息的装置,所述装置包括:
协议处理模块,用于读取多媒体文件数据;
解复用模块,用于对协议处理模块读取的多媒体文件数据中的音视频数据及描述数据进行分离;
剖析器,用于对解复用模块分离出的音视频数据及描述数据进行解析;
所述协议处理模块、解复用模块和剖析器均包括提取模块和发送模块,所述协议处理模块、解复用模块以及剖析器中的提取模块,分别对应用于在读取多媒体文件数据时、在将多媒体文件数据中的音视频数据及描述数据进行分离时、以及在对分离出的音视频数据及描述数据进行解析时,对多媒体文件数据中的描述数据进行提取;所述协议处理模块、解复用模块以及剖析器中的发送模块,分别用于将其对应的提取模块提取到的描述数据转换为可扩展标记语言格式信息,并将所述可扩展标记语言格式信息发送至创建的消息总线。
优选地,所述装置还包括:
生成模块,用于获取所述消息总线接收的所述可扩展标记语言格式信息并整合生成多媒体文件元信息。
优选地,所述生成模块还具有显示单元,用以呈现其整合生成的多媒体文件元信息。
优选地,所述发送模块在将描述数据转换为可扩展标记语言格式信息时,将描述同一类别的描述数据进行名称统一。
本发明提出的一种提取多媒体文件元信息的方法及装置,在读取多媒体文件数据、将多媒体文件数据中的音视频数据及描述数据进行分离、对分离出的音视频数据及描述数据进行解析的同时,对多媒体文件数据中的描述数据进行提取,这样,实现了对描述数据的异步并发提取,效率更高,避免了顺序提取时任一环节阻塞就会影响提取描述数据的情况发生,而且,最终生成的多媒体文件元信息是综合由提取的描述数据转换成的可扩展标记语言格式信息得到的,即最终生成的多媒体文件元信息为可扩展标记语言格式,使得生成的多媒体文件元信息的可扩展性更好,更加灵活。
附图说明
图1为本发明提取多媒体文件元信息的方法第一实施例的流程示意图;
图2为本发明提取多媒体文件元信息的方法第二实施例的流程示意图;
图3为本发明提取多媒体文件元信息的装置第一实施例的功能模块示意图;
图4为本发明提取多媒体文件元信息的装置第二实施例的功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供一种提取多媒体文件元信息的方法。
参照图1,图1为本发明提取多媒体文件元信息的方法第一实施例的流程示意图。
在第一实施例中,该提取多媒体文件元信息的方法包括:
步骤S10,在读取多媒体文件数据、将多媒体文件数据中的音视频数据及描述数据进行分离、对分离出的音视频数据及描述数据进行解析的同时,对多媒体文件数据中的描述数据进行提取;
本实施例中,在读取多媒体文件数据、将多媒体文件数据中的音视频数据及描述数据进行分离、对分离出的音视频数据及描述数据进行解析的同时,对多媒体文件数据中的描述数据进行提取,以实现对描述数据的异步并发提取,效率更高,避免了顺序提取时任一环节阻塞就会影响提取描述数据的情况发生。
需要说明的是,为了便于说明,本实施例中仅以协议处理模块读取多媒体文件数据、解复用模块将多媒体文件数据中的音视频数据及描述数据进行分离、剖析器对分离出的音视频数据及描述数据进行解析的同时,通过协议处理模块、解复用模块、剖析器对多媒体文件数据中的描述数据进行提取为例进行说明,当然,也不限定通过其他处理模块来实现上述功能。
协议处理模块用于读取需要提取元信息的多媒体文件数据,其中,多媒体文件数据包括本地多媒体文件数据或网络在线多媒体文件数据;解复用模块用于将协议处理模块读取的多媒体文件数据进行分离,将多媒体文件数据中的音视频数据及描述数据如字幕数据等进行分离,并将分离的数据以帧的形式传送至剖析器中;剖析器用于对分离出的音视频数据及描述数据进行解析,从而最终将多媒体文件数据解析成各种不同格式的数据,其中,本实施例中,所述剖析器包括但不限于:解析视频格式数据的剖析器、解析音频格式数据的剖析器及解析字幕格式数据的剖析器。
由于多媒体文件中的描述数据在多媒体文件中的分布位置是散落无序的,可能散落在多媒体文件数据中音视频数据块里面,也可能散落在多媒体文件数据中音视频数据块之外的位置。因此,在协议处理模块读取多媒体文件数据、解复用模块将多媒体文件数据中的音视频数据及描述数据进行分离、剖析器对分离出的音视频数据及描述数据进行解析的处理过程中,协议处理模块、解复用模块、剖析器均有可能获取到多媒体文件数据中的描述数据,若完全依照协议处理模块、解复用模块、剖析器的处理顺序,直到剖析器全面解析完多媒体文件数据之后,才提取多媒体文件数据中的描述数据作为元信息,不仅会导致提取效率很低,而且如果协议处理模块、解复用模块、剖析器中任一模块出现处理出错或网络阻塞的情况,则会更加拖慢提取多媒体文件数据中描述数据的速度。因此,本实施例中,在协议处理模块读取多媒体文件数据、解复用模块将多媒体文件数据中的音视频数据及描述数据进行分离、剖析器对分离出的音视频数据及描述数据进行解析的同时,通过协议处理模块、解复用模块、剖析器对多媒体文件数据中的描述数据进行提取;即协议处理模块、解复用模块、剖析器对多媒体文件数据中的描述数据的提取不是顺序进行的,而是异步并发进行,在协议处理模块、解复用模块、剖析器对多媒体文件数据进行处理的过程中,只要协议处理模块、解复用模块、剖析器读取到多媒体文件数据中的描述数据,协议处理模块、解复用模块、剖析器中任一模块均可对多媒体文件数据中的描述数据进行提取,这样,极大地提升了对多媒体文件数据中的描述数据提取的效率,且各个模块对多媒体文件数据中的描述数据的提取相对独立,避免了顺序提取时任一环节阻塞就会影响提取描述数据的情况发生,进一步地提高了描述数据的提取速度。在本实施例中,所述协议处理模块提取的描述数据可包括描述多媒体文件大小的数据信息;所述解复用模块提取的描述数据可包括描述多媒体文件容器类型和音频采样率的数据信息;所述剖析器提取的描述数据可包括描述音视频编码格式和编码等级的数据信息。
步骤S20,将提取的描述数据转换为可扩展标记语言格式信息,并将所述可扩展标记语言格式信息发送至创建的消息总线;
协议处理模块、解复用模块、剖析器提取到多媒体文件数据中的描述数据后,将提取的描述数据转换为可扩展标记语言格式信息,可扩展标记语言可以用来标记数据、定义数据类型,非常适合万维网传输,将提取的描述数据转换为可扩展标记语言格式信息有利于对其后续进行传输及应用。同时,为了实现协议处理模块、解复用模块、剖析器中任一模块均可对多媒体文件数据中的描述数据进行提取,创建消息总线,使得协议处理模块、解复用模块、剖析器中任一模块在提取到多媒体文件数据中的描述数据,并将提取的描述数据转换为可扩展标记语言格式信息后,均可将转换的可扩展标记语言格式信息发送至创建的消息总线,即协议处理模块、解复用模块、剖析器共享该消息总线,实现了协议处理模块、解复用模块、剖析器对多媒体文件数据中的描述数据提取的异步并发进行。其中,本实施例中,协议处理模块、解复用模块、剖析器中任一模块将提取的描述数据转换为可扩展标记语言格式信息后,协议处理模块、解复用模块、剖析器可通过竞争读写消息总线权利的方式将转换的可扩展标记语言格式信息发送至创建的消息总线,这样,使消息总线的资源得到了充分利用,进一步提升了对多媒体文件数据中的描述数据提取的效率,当然,也不限定协议处理模块、解复用模块、剖析器通过其他读写消息总线的方式来对多媒体文件数据中的描述数据进行异步并发提取。
步骤S30,根据所述消息总线接收的所述可扩展标记语言格式信息生成多媒体文件元信息。
当协议处理模块、解复用模块、剖析器中任一模块提取到多媒体文件数据中的描述数据,并将提取的描述数据转换为可扩展标记语言格式信息发送至创建的消息总线后,将消息总线接收的若干可扩展标记语言格式信息进行整合,最后形成一个完整的可扩展标记语言格式信息,该完整的可扩展标记语言格式信息即为最终生成的多媒体文件元信息,包含了多媒体文件的描述数据的信息,供后续进行信息解码编码和检索时调用,由于生成的多媒体文件元信息为可扩展标记语言格式,可以根据需要灵活的进行扩展,且能更加方便的进行传输,更加有利于后续的调用等操作。在本实施例中,所述可扩展标记语言格式信息即为xml格式信息。最终生成的多媒体文件元信息是将消息总线接收到的若干xml格式信息进行整合得到的完整的xml格式信息。
本实施例中在读取多媒体文件数据、将多媒体文件数据中的音视频数据及描述数据进行分离、对分离出的音视频数据及描述数据进行解析的同时,对多媒体文件数据中的描述数据进行提取,这样,实现了对描述数据的异步并发提取,效率更高,避免了顺序提取时任一环节阻塞就会影响提取描述数据的情况发生,而且,最终生成的多媒体文件元信息是综合由提取的描述数据转换成的可扩展标记语言格式信息得到的,即最终生成的多媒体文件元信息为可扩展标记语言格式,使得生成的多媒体文件元信息的可扩展性更好,更加灵活。
进一步地,在其他实施例中,上述步骤S20可以包括:
将提取的描述数据按不同格式对应进行名称统一,并将统一名称后的描述数据转换为可扩展标记语言格式信息,将所述可扩展标记语言格式信息发送至创建的消息总线。
协议处理模块、解复用模块、剖析器提取到多媒体文件数据中的描述数据后,由于多媒体文件数据中的描述数据没有统一的命名标准,如mp3类型的多媒体文件数据中标题使用名称TIT2,而MKV类型的多媒体文件数据中标题使用名称Title,这就导致了提取的描述数据中包含有各种各样的名称,因此,有必要进行统一标准化命名,各种格式对应采用统一的名称,即对提取的描述数据按不同格式对应进行名称统一,这样,有利于将统一名称后的描述数据转换为可扩展标记语言格式信息,将所述可扩展标记语言格式信息发送至创建的消息总线。根据统一名称后的描述数据转换的可扩展标记语言格式信息可扩展性更高,更加方便进行不同模块之间的发送和接收。
参照图2,图2为本发明提取多媒体文件元信息的方法第二实施例的流程示意图。
在上述第一实施例的基础上,在上述步骤S30之前还包括:
步骤S40,当超过设定的预设时间或所述消息总线判断接收到出错信息、结束信息时,停止对多媒体文件数据中的描述数据的提取进程。
本实施例与上述第一实施例的区别在于,本实施例还包括当超过设定的预设时间或所述消息总线判断接收到出错信息、结束信息时,停止对多媒体文件数据中的描述数据的提取进程的操作。
本实施例中,在根据所述消息总线接收的所述可扩展标记语言格式信息生成多媒体文件元信息之前,考虑到在对网络在线多媒体文件数据中的元信息进行提取时,可能会出现网络延时造成数据传输阻塞的情况发生,预先设定一预设时间,当超过设定的预设时间时,停止协议处理模块、解复用模块、剖析器对多媒体文件数据中的描述数据的提取进程,所述消息总线即停止接收所述可扩展标记语言格式信息,结束协议处理模块、解复用模块、剖析器对多媒体文件数据中的描述数据的提取,以避免网络延时造成长时间等待的情况,更加灵活。且在根据所述消息总线接收的所述可扩展标记语言格式信息生成多媒体文件元信息之前,对所述消息总线接收的消息进行分析判断,若判断所述消息总线接收到出错信息或结束信息,则获知协议处理模块、解复用模块、剖析器在提取描述数据的过程中出错或提取已结束,则停止协议处理模块、解复用模块、剖析器中所有模块对多媒体文件数据中描述数据的提取进程,所述消息总线无需继续等待接收协议处理模块、解复用模块、剖析器发送消息,直接根据所述消息总线上已接收到的所述可扩展标记语言格式信息生成多媒体文件元信息,这样,避免了协议处理模块、解复用模块、剖析器在提取描述数据的过程中出错或提取进程已结束的情况下,所述消息总线浪费时间继续等待接收消息,进一步地提升了提取多媒体文件元信息的效率及速度。
本发明进一步提供一种提取多媒体文件元信息的装置。
参照图3,图3为本发明提取多媒体文件元信息的装置第一实施例的功能模块示意图。
在第一实施例中,该提取多媒体文件元信息的装置包括:
提取模块01,用于在读取多媒体文件数据、将多媒体文件数据中的音视频数据及描述数据进行分离、对分离出的音视频数据及描述数据进行解析的同时,对多媒体文件数据中的描述数据进行提取;
本实施例中,提取模块01在读取多媒体文件数据、将多媒体文件数据中的音视频数据及描述数据进行分离、对分离出的音视频数据及描述数据进行解析的同时,对多媒体文件数据中的描述数据进行提取,以实现对描述数据的异步并发提取,效率更高,避免了顺序提取时任一环节阻塞就会影响提取描述数据的情况发生。
需要说明的是,为了便于说明,本实施例中仅以提取模块01位于协议处理模块、解复用模块及剖析器这三个分支处理模块中为例进行说明,即协议处理模块读取多媒体文件数据、解复用模块将多媒体文件数据中的音视频数据及描述数据进行分离、剖析器对分离出的音视频数据及描述数据进行解析的同时,通过协议处理模块、解复用模块、剖析器对多媒体文件数据中的描述数据进行提取为例进行说明,当然,也不限定提取模块01包括其他处理模块或提取模块01自身单独来实现上述功能。
本实施例中,协议处理模块用于读取需要提取元信息的多媒体文件数据,其中,多媒体文件数据包括本地多媒体文件数据或网络在线多媒体文件数据;解复用模块用于将协议处理模块读取的多媒体文件数据进行分离,将多媒体文件数据中的音视频数据及描述数据如字幕数据等进行分离,并将分离的数据以帧的形式传送至剖析器中;剖析器用于对分离出的音视频数据及描述数据进行解析,从而最终将多媒体文件数据解析成各种不同格式的数据,其中,本实施例中,所述剖析器包括但不限于:解析视频格式数据的剖析器、解析音频格式数据的剖析器及解析字幕格式数据的剖析器。
由于多媒体文件中的描述数据在多媒体文件中的分布位置是散落无序的,可能散落在多媒体文件数据中音视频数据块里面,也可能散落在多媒体文件数据中音视频数据块之外的位置。因此,在协议处理模块读取多媒体文件数据、解复用模块将多媒体文件数据中的音视频数据及描述数据进行分离、剖析器对分离出的音视频数据及描述数据进行解析的处理过程中,协议处理模块、解复用模块、剖析器均有可能获取到多媒体文件数据中的描述数据,若完全依照协议处理模块、解复用模块、剖析器的处理顺序,直到剖析器全面解析完多媒体文件数据之后,才提取多媒体文件数据中的描述数据作为元信息,不仅会导致提取效率很低,而且如果协议处理模块、解复用模块、剖析器中任一模块出现处理出错或网络阻塞的情况,则会更加拖慢提取多媒体文件数据中描述数据的速度。因此,本实施例中,在协议处理模块读取多媒体文件数据、解复用模块将多媒体文件数据中的音视频数据及描述数据进行分离、剖析器对分离出的音视频数据及描述数据进行解析的同时,通过协议处理模块、解复用模块、剖析器对多媒体文件数据中的描述数据进行提取;即协议处理模块、解复用模块、剖析器对多媒体文件数据中的描述数据的提取不是顺序进行的,而是异步并发进行,在协议处理模块、解复用模块、剖析器对多媒体文件数据进行处理的过程中,只要协议处理模块、解复用模块、剖析器读取到多媒体文件数据中的描述数据,协议处理模块、解复用模块、剖析器中任一模块均可对多媒体文件数据中的描述数据进行提取,这样,极大地提升了对多媒体文件数据中的描述数据提取的效率,且各个模块对多媒体文件数据中的描述数据的提取相对独立,避免了顺序提取时任一环节阻塞就会影响提取描述数据的情况发生,进一步地提高了描述数据的提取速度。
发送模块02,用于将提取的描述数据转换为可扩展标记语言格式信息,并将所述可扩展标记语言格式信息发送至创建的消息总线;
协议处理模块、解复用模块、剖析器提取到多媒体文件数据中的描述数据后,将提取的描述数据转换为可扩展标记语言格式信息,可扩展标记语言可以用来标记数据、定义数据类型,非常适合万维网传输,将提取的描述数据转换为可扩展标记语言格式信息有利于对其后续进行传输及应用。同时,为了实现协议处理模块、解复用模块、剖析器中任一模块均可对多媒体文件数据中的描述数据进行提取,创建消息总线,使得协议处理模块、解复用模块、剖析器中任一模块在提取到多媒体文件数据中的描述数据,并将提取的描述数据转换为可扩展标记语言格式信息后,均可将转换的可扩展标记语言格式信息发送至创建的消息总线,即协议处理模块、解复用模块、剖析器共享该消息总线,实现了协议处理模块、解复用模块、剖析器对多媒体文件数据中的描述数据提取的异步并发进行。其中,本实施例中,协议处理模块、解复用模块、剖析器中任一模块将提取的描述数据转换为可扩展标记语言格式信息后,协议处理模块、解复用模块、剖析器可通过竞争读写消息总线权利的方式将转换的可扩展标记语言格式信息发送至创建的消息总线,这样,使消息总线的资源得到了充分利用,进一步提升了对多媒体文件数据中的描述数据提取的效率,当然,也不限定协议处理模块、解复用模块、剖析器通过其他读写消息总线的方式来对多媒体文件数据中的描述数据进行异步并发提取。
生成模块03,用于根据所述消息总线接收的所述可扩展标记语言格式信息生成多媒体文件元信息。
当协议处理模块、解复用模块、剖析器中任一模块提取到多媒体文件数据中的描述数据,并将提取的描述数据转换为可扩展标记语言格式信息发送至创建的消息总线后,将消息总线接收的若干可扩展标记语言格式信息进行整合,最后形成一个完整的可扩展标记语言格式信息,该完整的可扩展标记语言格式信息即为最终生成的多媒体文件元信息,包含了多媒体文件的描述数据的信息,供后续进行信息解码编码和检索时调用,所述生成模块还可以具有显示单元,用以呈现其整合生成的多媒体文件元信息。由于生成的多媒体文件元信息为可扩展标记语言格式,可以根据需要灵活的进行扩展,且能更加方便的进行传输,更加有利于后续的调用等操作。
本实施例中在读取多媒体文件数据、将多媒体文件数据中的音视频数据及描述数据进行分离、对分离出的音视频数据及描述数据进行解析的同时,对多媒体文件数据中的描述数据进行提取,这样,实现了对描述数据的异步并发提取,效率更高,避免了顺序提取时任一环节阻塞就会影响提取描述数据的情况发生,而且,最终生成的多媒体文件元信息是综合由提取的描述数据转换成的可扩展标记语言格式信息得到的,即最终生成的多媒体文件元信息为可扩展标记语言格式,使得生成的多媒体文件元信息的可扩展性更好,更加灵活。
进一步地,在其他实施例中,上述发送模块02还用于:
将提取的描述数据按不同格式对应进行名称统一,并将统一名称后的描述数据转换为可扩展标记语言格式信息,将所述可扩展标记语言格式信息发送至创建的消息总线。
协议处理模块、解复用模块、剖析器提取到多媒体文件数据中的描述数据后,由于多媒体文件数据中的描述数据没有统一的命名标准,如mp3类型的多媒体文件数据中标题使用名称TIT2,而MKV类型的多媒体文件数据中标题使用名称Title,这就导致了提取的描述数据中包含有各种各样的名称,因此,有必要对描述同一类别(例如,都是描述标题)的描述数据进行名称统一,各种格式对应采用统一的名称,即对提取的描述数据按不同格式对应进行名称统一,这样,有利于将统一名称后的描述数据转换为可扩展标记语言格式信息,将所述可扩展标记语言格式信息发送至创建的消息总线。根据统一名称后的描述数据转换的可扩展标记语言格式信息可扩展性更高,更加方便进行不同模块之间的发送和接收。
参照图4,图4为本发明提取多媒体文件元信息的装置第二实施例的流程示意图。
在上述第一实施例的基础上,该提取多媒体文件元信息的装置还包括:
停止模块04,用于当超过设定的预设时间或所述消息总线判断接收到出错信息、结束信息时,停止对多媒体文件数据中的描述数据的提取进程。
本实施例与上述第一实施例的区别在于,本实施例还包括当超过设定的预设时间或所述消息总线判断接收到出错信息、结束信息时,停止协议处理模块、解复用模块、剖析器对多媒体文件数据中的描述数据的提取进程的操作。
本实施例中,在根据所述消息总线接收的所述可扩展标记语言格式信息生成多媒体文件元信息之前,考虑到在对网络在线多媒体文件数据中的元信息进行提取时,可能会出现网络延时造成数据传输阻塞的情况发生,预先设定一预设时间,当超过设定的预设时间时,停止协议处理模块、解复用模块、剖析器对多媒体文件数据中的描述数据的提取进程,所述消息总线即停止接收所述可扩展标记语言格式信息,结束协议处理模块、解复用模块、剖析器对多媒体文件数据中的描述数据的提取,以避免网络延时造成长时间等待的情况,更加灵活。且在根据所述消息总线接收的所述可扩展标记语言格式信息生成多媒体文件元信息之前,对所述消息总线接收的消息进行分析判断,若判断所述消息总线接收到出错信息或结束信息,则获知协议处理模块、解复用模块、剖析器在提取描述数据的过程中出错或提取已结束,则停止协议处理模块、解复用模块、剖析器中所有模块对多媒体文件数据中描述数据的提取进程,所述消息总线无需继续等待接收协议处理模块、解复用模块、剖析器发送消息,直接根据所述消息总线上已接收到的所述可扩展标记语言格式信息生成多媒体文件元信息,这样,避免了协议处理模块、解复用模块、剖析器在提取描述数据的过程中出错或提取进程已结束的情况下,所述消息总线浪费时间继续等待接收消息,进一步地提升了提取多媒体文件元信息的效率及速度。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (20)

  1. 一种提取多媒体文件元信息的方法,其特征在于,所述方法包括以下步骤:
    在读取多媒体文件数据、将多媒体文件数据中的音视频数据及描述数据进行分离、对分离出的音视频数据及描述数据进行解析的同时,对多媒体文件数据中的描述数据进行提取;
    将提取的描述数据转换为可扩展标记语言格式信息,并将所述可扩展标记语言格式信息发送至创建的消息总线;
    根据所述消息总线接收的所述可扩展标记语言格式信息生成多媒体文件元信息。
  2. 如权利要求1所述的提取多媒体文件元信息的方法,其特征在于,所述对分离出的音视频数据及描述数据进行解析的步骤包括:对分离出的音视频数据及描述数据中的视频格式数据、音频格式数据及字幕格式数据进行解析。
  3. 如权利要求1所述的提取多媒体文件元信息的方法,其特征在于,所述将提取的描述数据转换为可扩展标记语言格式信息,并将所述可扩展标记语言格式信息发送至创建的消息总线的步骤包括:
    将提取的描述数据按不同格式对应进行名称统一,并将统一名称后的描述数据转换为可扩展标记语言格式信息,将所述可扩展标记语言格式信息发送至创建的消息总线。
  4. 如权利要求1所述的提取多媒体文件元信息的方法,其特征在于,所述将提取的描述数据转换为可扩展标记语言格式信息,并将所述可扩展标记语言格式信息发送至创建的消息总线的步骤包括:
    将提取的描述数据转换为可扩展标记语言格式信息后,通过竞争读写消息总线权利的方式将转换的可扩展标记语言格式信息发送至创建的消息总线。
  5. 如权利要求1所述的提取多媒体文件元信息的方法,其特征在于,所述根据所述消息总线接收的所述可扩展标记语言格式信息生成多媒体文件元信息的步骤包括:将消息总线接收的若干可扩展标记语言格式信息进行整合,形成一个完整的可扩展标记语言格式信息,该完整的可扩展标记语言格式信息即为最终生成的多媒体文件元信息。
  6. 如权利要求1所述的提取多媒体文件元信息的方法,其特征在于,所述根据所述消息总线接收的所述可扩展标记语言格式信息生成多媒体文件元信息的步骤之前还包括:
    当超过设定的预设时间或所述消息总线判断接收到出错信息、结束信息时,停止对多媒体文件数据中的描述数据的提取进程。
  7. 如权利要求1所述的提取多媒体文件元信息的方法,其特征在于,所述在读取多媒体文件数据、将多媒体文件数据中的音视频数据及描述数据进行分离、对分离出的音视频数据及描述数据进行解析的同时,对多媒体文件数据中的描述数据进行提取的步骤为:
    由协议处理模块在读取多媒体文件数据的同时对多媒体文件数据中的描述数据进行提取、由解复用模块在将多媒体文件数据中的音视频数据及描述数据进行分离的同时对多媒体文件数据中的描述数据进行提取、由剖析器在对分离出的音视频数据及描述数据进行解析的同时对多媒体文件数据中的描述数据进行提取。
  8. 如权利要求7所述的提取多媒体文件元信息的方法,其特征在于,所述协议处理模块提取的描述数据包括描述多媒体文件大小的数据信息。
  9. 如权利要求7所述的提取多媒体文件元信息的方法,其特征在于,所述解复用模块提取的描述数据包括描述多媒体文件容器类型和音频采样率的数据信息。
  10. 如权利要求7所述的提取多媒体文件元信息的方法,其特征在于,所述剖析器提取的描述数据包括描述音视频编码格式和编码等级的数据信息。
  11. 一种提取多媒体文件元信息的装置,其特征在于,所述装置包括:
    提取模块,用于在读取多媒体文件数据、将多媒体文件数据中的音视频数据及描述数据进行分离、对分离出的音视频数据及描述数据进行解析的同时,对多媒体文件数据中的描述数据进行提取;
    发送模块,用于将提取的描述数据转换为可扩展标记语言格式信息,并将所述可扩展标记语言格式信息发送至创建的消息总线;
    生成模块,用于根据所述消息总线接收的所述可扩展标记语言格式信息生成多媒体文件元信息。
  12. 如权利要求11所述的装置,其特征在于,所述提取模块还用于:对分离出的音视频数据及描述数据中的视频格式数据、音频格式数据及字幕格式数据进行解析。
  13. 如权利要求11所述的装置,其特征在于,所述发送模块还用于:
    将提取的描述数据按不同格式对应进行名称统一,并将统一名称后的描述数据转换为可扩展标记语言格式信息,将所述可扩展标记语言格式信息发送至创建的消息总线。
  14. 如权利要求11所述的装置,其特征在于,所述发送模块还用于:
    将提取的描述数据转换为可扩展标记语言格式信息后,通过竞争读写消息总线权利的方式将转换的可扩展标记语言格式信息发送至创建的消息总线。
  15. 如权利要求11所述的装置,其特征在于,所述生成模块用于:
    将消息总线接收的若干可扩展标记语言格式信息进行整合,形成一个完整的可扩展标记语言格式信息,该完整的可扩展标记语言格式信息即为最终生成的多媒体文件元信息。
  16. 如权利要求11所述的装置,其特征在于,还包括:
    停止模块,用于当超过设定的预设时间或所述消息总线判断接收到出错信息、结束信息时,停止对多媒体文件数据中的描述数据的提取进程。
  17. 一种提取多媒体文件元信息的装置,所述装置包括:
    协议处理模块,用于读取多媒体文件数据;
    解复用模块,用于对协议处理模块读取的多媒体文件数据中的音视频数据及描述数据进行分离;
    剖析器,用于对解复用模块分离出的音视频数据及描述数据进行解析;
    其特征在于,所述协议处理模块、解复用模块和剖析器均包括提取模块和发送模块,所述协议处理模块、解复用模块以及剖析器中的提取模块,分别对应用于在读取多媒体文件数据时、在将多媒体文件数据中的音视频数据及描述数据进行分离时、以及在对分离出的音视频数据及描述数据进行解析时,对多媒体文件数据中的描述数据进行提取;所述协议处理模块、解复用模块以及剖析器中的发送模块,分别用于将其对应的提取模块提取到的描述数据转换为可扩展标记语言格式信息,并将所述可扩展标记语言格式信息发送至创建的消息总线。
  18. 如权利要求17所述的装置,其特征在于,所述装置还包括:
    生成模块,用于获取所述消息总线接收的所述可扩展标记语言格式信息并整合生成多媒体文件元信息。
  19. 如权利要求18所述的装置,其特征在于,所述生成模块还具有显示单元,用以呈现其整合生成的多媒体文件元信息。
  20. 如权利要求17所述的装置,其特征在于,所述发送模块在将描述数据转换为可扩展标记语言格式信息时,将描述同一类别的描述数据进行名称统一。
PCT/CN2014/094239 2014-12-15 2014-12-18 提取多媒体文件元信息的方法及装置 Ceased WO2016095166A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410778237.2A CN105760376B (zh) 2014-12-15 2014-12-15 提取多媒体文件元信息的方法及装置
CN201410778237.2 2014-12-15

Publications (1)

Publication Number Publication Date
WO2016095166A1 true WO2016095166A1 (zh) 2016-06-23

Family

ID=56125628

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/094239 Ceased WO2016095166A1 (zh) 2014-12-15 2014-12-18 提取多媒体文件元信息的方法及装置

Country Status (2)

Country Link
CN (1) CN105760376B (zh)
WO (1) WO2016095166A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106961626B (zh) * 2017-03-13 2020-02-11 福州瑞芯微电子股份有限公司 一种视频元信息自动补全整理的方法和装置
CN108055507A (zh) * 2017-12-19 2018-05-18 四川九洲电器集团有限责任公司 一种用于视频分析系统通信的数据组包方法

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026022A (zh) * 2009-09-14 2011-04-20 展讯通信(上海)有限公司 Cmmb手机电视的终端多模式处理方法及其处理终端
CN102387177A (zh) * 2010-09-01 2012-03-21 腾讯科技(深圳)有限公司 影音文件的下载方法及装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020103920A1 (en) * 2000-11-21 2002-08-01 Berkun Ken Alan Interpretive stream metadata extraction
EP1349080A1 (en) * 2002-03-26 2003-10-01 Deutsche Thomson-Brandt Gmbh Methods and apparatus for using metadata from different sources
EP2089882A4 (en) * 2006-10-19 2010-12-08 Lg Electronics Inc Coding method and apparatus and decoding method and apparatus
CN101187938B (zh) * 2007-11-09 2010-12-08 中国传媒大学 一种多媒体元数据统一描述及检索方法
EP2583421A1 (en) * 2010-06-16 2013-04-24 Sony Mobile Communications AB User-based semantic metadata for text messages
CN102541889A (zh) * 2010-12-21 2012-07-04 新奥特(北京)视频技术有限公司 一种非结构化媒体数据存储方式的方法
TWI476761B (zh) * 2011-04-08 2015-03-11 Dolby Lab Licensing Corp 用以產生可由實施不同解碼協定之解碼器所解碼的統一位元流之音頻編碼方法及系統

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026022A (zh) * 2009-09-14 2011-04-20 展讯通信(上海)有限公司 Cmmb手机电视的终端多模式处理方法及其处理终端
CN102387177A (zh) * 2010-09-01 2012-03-21 腾讯科技(深圳)有限公司 影音文件的下载方法及装置

Also Published As

Publication number Publication date
CN105760376B (zh) 2019-04-02
CN105760376A (zh) 2016-07-13

Similar Documents

Publication Publication Date Title
WO2017101266A1 (zh) 语音控制方法及系统
WO2017028601A1 (zh) 智能终端的语音控制方法、装置及电视机系统
WO2017099444A1 (en) Content processing apparatus, content processing method thereof, server, information providing method of server and information providing system
WO2019218444A1 (zh) 测试报告的生成方法、装置、设备及存储介质
WO2013187714A1 (en) Display apparatus, method for controlling the display apparatus, server and method for controlling the server
WO2010087635A2 (en) Method and apparatus for processing user interface composed of component objects
WO2017047884A1 (en) Voice recognition server and control method thereof
WO2014003283A1 (en) Display apparatus, method for controlling display apparatus, and interactive system
WO2015085765A1 (zh) 推送资讯信息的方法和智能终端
WO2010002095A2 (en) Method and apparatus for generating media file having media information compatible between media files having same format, and method and apparatus for executing the media file
WO2013012107A1 (ko) 전자 기기 및 그 제어 방법
EP3563580A1 (en) Handling of video segments in a video stream
WO2019119624A1 (zh) 基于Excel表的计算方法、装置、设备及存储介质
WO2012011724A2 (ko) 미디어 파일 송수신 방법 및 그를 이용한 송수신 장치
WO2019161615A1 (zh) 账单录入方法、系统、光学字符识别服务器和存储介质
WO2012177041A2 (ko) 미디어 컨텐트 송수신 방법 및 그를 이용한 송수신 장치
EP2630790A2 (en) Method for moving pointer in video display apparatus and video display apparatus thereof
WO2019169814A1 (zh) 自动生成中文注释的方法、装置、设备及存储介质
WO2017035787A1 (zh) 一种流媒体文件的存储方法、装置和系统
WO2020116896A1 (ko) 미디어 콘텐트 처리를 관리하기 위한 방법, 장치 및 컴퓨터 판독 가능한 기록 매체
WO2017016310A1 (zh) 遥控功能数据动态配置的方法和装置
WO2015012605A1 (ko) 3차원 콘텐츠의 부호화 방법 및 장치
EP3061254A1 (en) System and method for providing cloud based user interfaces
WO2017036209A1 (zh) 基于智能电视的音频数据播放方法、智能电视及系统
WO2017035786A1 (zh) 一种流媒体文件的播放校验方法、装置和系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14908201

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 22/08/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 14908201

Country of ref document: EP

Kind code of ref document: A1