[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN102196268B - Method, device and system for processing multimedia data - Google Patents

Method, device and system for processing multimedia data Download PDF

Info

Publication number
CN102196268B
CN102196268B CN201110116709.4A CN201110116709A CN102196268B CN 102196268 B CN102196268 B CN 102196268B CN 201110116709 A CN201110116709 A CN 201110116709A CN 102196268 B CN102196268 B CN 102196268B
Authority
CN
China
Prior art keywords
multimedia data
code stream
data frame
format
multimedia
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
Application number
CN201110116709.4A
Other languages
Chinese (zh)
Other versions
CN102196268A (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.)
Chengdu Huawei Technology Co Ltd
Original Assignee
Huawei Symantec Technologies 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 Huawei Symantec Technologies Co Ltd filed Critical Huawei Symantec Technologies Co Ltd
Priority to CN201110116709.4A priority Critical patent/CN102196268B/en
Publication of CN102196268A publication Critical patent/CN102196268A/en
Application granted granted Critical
Publication of CN102196268B publication Critical patent/CN102196268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a method, device and system for processing multimedia data. The method comprises the following steps of: receiving a code stream transmitted by an encoding end, wherein the code stream comprises a plurality of multimedia data frames stored according to a multimedia container format, and the plurality of multimedia data frames are obtained by compression encoding of source data; identifying the compression encoding format of each multimedia data frame in the code stream according to a code stream detection characteristic base and extracting each multimedia data frame, wherein the code stream detection characteristic base comprises characteristic information for identifying the compression encoding format used by the multimedia data frames; and acquiring the source data according to each extracted multimedia data frame and the used compression encoding format thereof. Through the method, device and system for processing the multimedia data, disclosed by the embodiment of the invention, the direct acquisition of the source data by identification and extraction of video frames from an original bit stream to be played with any video container format is realized, and the compatibility is provided.

Description

Multimedia data processing method, device and system
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to a multimedia data processing method, device and system.
Background
The current common video container formats for storing video files are as follows: flv (FLASH VIDEO), mp4, ts, mkv and the like, and a plurality of VIDEO data streams and audio data streams compressed according to different compression coding formats are stored in a VIDEO container according to a VIDEO container format. The decoding process of the video file mainly comprises the following two steps:
the first step is video container decoding (container decoding for short), firstly, demultiplexing is carried out, namely a plurality of audio and video data streams in a video file are separated; then extracting audio and video data of one frame from each separated audio and video data stream and acquiring various decoding parameters required by decoding the audio and video data;
and the second step is audio and video data decoding (decompression), a corresponding coder-decoder (CODEC) is selected according to the decoding parameters obtained in the first step to decode the audio and video data frame by frame, one frame of video data is an image after decoding, one frame of audio data is a sound fragment after decoding, and most input data accepted by the decoders are generally one frame of video data or one frame of audio data.
Thus, a complete decoding software such as a player is a large collection of video container decoders and audio video CODECs (CODECs).
However, different from a common video, a video container in the monitoring field is often private, that is, a format of the video container in the monitoring field is often private, and a video file encapsulated according to the private video container format does not store a compressed data frame according to a standard open format. In the prior art, decoding a video file in a private video container format mainly uses private decoding software provided by a monitoring manufacturer, such as a private player, to play the private video file (i.e., the video file in the private video container format) one to one, that is, to decode the video file in the private video container format, the video file can only be played by the private player provided by the manufacturer, and standard multimedia players, such as vlc (video Lan client) and kmp player, cannot be played correctly.
Thus, since the formats of the video containers of the monitoring manufacturers are different, and there are too many monitoring manufacturers in the market, if each player is provided, a user may need to manage a plurality of players, and the more players need to be managed, the higher the management complexity. Similarly, in the non-monitoring field, if the video container formats are different, the same problem exists.
Disclosure of Invention
In view of the foregoing defects in the prior art, embodiments of the present invention provide a method, an apparatus, and a system for processing multimedia data.
The embodiment of the invention provides a multimedia data processing method, which comprises the following steps:
receiving a code stream sent by an encoding end, wherein the code stream comprises a plurality of multimedia data frames stored according to a multimedia container format, and the plurality of multimedia data frames are obtained by performing compression encoding on source data;
identifying a compression coding format used by each multimedia data frame in the code stream according to a code stream detection feature library and extracting each multimedia data frame from the code stream, wherein the code stream detection feature library comprises feature information used for identifying the compression coding format used by the multimedia data frame;
and acquiring the source data according to the extracted multimedia data frames and the used compression coding format thereof.
An embodiment of the present invention provides a multimedia data processing apparatus, including:
the receiving module is used for receiving a code stream sent by an encoding end, wherein the code stream comprises a plurality of multimedia data frames stored according to a multimedia container format, and the plurality of multimedia data frames are obtained by compressing and encoding source data;
the acquisition module is used for identifying the compression coding format used by each multimedia data frame in the code stream according to a code stream detection feature library, extracting each multimedia data frame from the code stream, and acquiring the source data according to each extracted multimedia data frame and the compression coding format used by the multimedia data frame, wherein the code stream detection feature library comprises feature information used for identifying the compression coding format used by the multimedia data frame.
The embodiment of the invention provides a multimedia data processing system, which comprises an encoding end and the multimedia data processing device, wherein the encoding end is used for carrying out compression encoding on source data to obtain a plurality of multimedia data frames, and storing the obtained plurality of multimedia data frames according to a preset multimedia container format to generate a code stream.
The embodiment of the invention detects and identifies the compression coding format of each multimedia data frame in the code stream through the characteristic information of each multimedia compression coding format stored in the code stream detection characteristic library, thereby identifying the compression coding format of each multimedia data frame in the code stream, and then acquiring the source data according to each extracted data frame and the compression coding format used by the data frame, thereby skipping the video container decoding step in the prior art, realizing the effect of directly identifying and extracting the multimedia data frame from the original bit stream to be played in any video container format and further acquiring the source data through matching with the characteristic information of each multimedia compression coding format, and having compatibility. Meanwhile, the defect that in the prior art, a one-to-one private player is needed to decode and acquire source data for the code stream with the private video container format can be overcome.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of a multimedia data processing method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of code stream detection and decoding performed by using a code stream detection feature library in the multimedia data processing method according to the embodiment of the present invention;
FIG. 3 is a block diagram of a multimedia data processing apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a multimedia data processing apparatus according to another embodiment of the present invention;
FIG. 5 is a block diagram of a multimedia data processing apparatus according to another embodiment of the present invention;
FIG. 6 is a block diagram of a multimedia data processing system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the detailed description and specific examples, while indicating the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention. For convenience of description, the embodiment of the present invention takes the monitoring field as an example. It is obvious that the present invention is not limited thereto, and the embodiments of the present invention can also be applied to other fields where video containers are not uniform.
The embodiment of the invention provides a solution to the problem that video containers (or video container formats) in the monitoring field in the prior art are often private, video files packaged according to the private video container format can only be decoded and played by a private player (namely decoding software) provided by a monitoring manufacturer, and standard multimedia players such as VLC, KMPLAYER and the like can not be played correctly, so that a user may need to manage a plurality of players, and the management complexity is high, namely, a solution is provided, namely, detection and identification are carried out on the compression coding formats of various multimedia data frames in a code stream through characteristic information of various multimedia compression coding formats stored in a code stream detection characteristic library, the effect of directly extracting various multimedia data frames from the code stream of any video container format to obtain source data is realized, and the problem that the private player is used for decoding the video files of the private video container format is avoided, has compatibility.
The multimedia in the following embodiments of the present invention may be audio, video, or pictures, or may be any combination of audio, video, and pictures.
Fig. 1 is a flowchart of a multimedia data processing method according to an embodiment of the present invention, as shown in fig. 1, the method includes:
step 100, receiving a code stream sent by an encoding end, wherein the code stream comprises a plurality of multimedia data frames stored according to a preset multimedia container format, and the plurality of multimedia data frames are obtained by performing compression encoding on source data;
the encoding end first performs compression encoding on source data according to a standard multimedia compression encoding format (the source data mentioned in the embodiments of the present invention may be a video file), the standard multimedia compression encoding format includes, for example, an Audio compression encoding format MP3(Moving Picture Experts Group Audio Layer III, Motion Picture Experts compression standard Audio Layer 3), AAC-LC (Advanced Coding-low complexity) and the like, a video compression encoding format h.264, MPEG (Motion Picture Experts Group) 4, and MJPEG (Motion joint Picture Experts Group) and the like, the source data is compression encoded to form a plurality of multimedia data frames having various multimedia compression encoding formats (that is, the compression encoding formats used for the plurality of multimedia data frames may be different or the same), storing each multimedia data frame according to a predetermined multimedia container format to form a code stream with a certain sequence and sending the code stream, wherein the multimedia container format comprises a standard multimedia container format and a private multimedia container format, for example, the standard multimedia container format is an open standard which can be FLV, MP4, TS and MKV, and each multimedia data frame in the standard multimedia container is stored according to a specified sequence; in the proprietary multimedia container format, the frames of multimedia data are stored in any non-standard order customized by each vendor.
Step 101, identifying a compression coding format used by each multimedia data frame in a code stream according to a code stream detection feature library and extracting each multimedia data frame from the code stream, wherein the code stream detection feature library comprises feature information used for identifying the compression coding format used by the multimedia data frame;
after receiving the code stream sent by the encoding end, the decoding end can detect the code stream in real time or non-real time (for example, store the code stream first and then store the video file), and identify the compression encoding format used by each multimedia data frame obtained by compression encoding in the code stream, so as to obtain the source data.
And 102, acquiring the source data according to the extracted multimedia data frames and the used compression coding format thereof. Then, the playback can be performed.
The decoding end detects the code stream according to a code stream detection characteristic library maintained by the decoding end, the code stream detection characteristic library stores characteristic information of various multimedia compression coding formats, specifically identifies the multimedia compression coding format used by each multimedia data frame in the code stream, and extracts each multimedia data frame from the code stream to acquire source data.
In the multimedia data processing method provided by this embodiment, the compressed coding formats of the multimedia data frames in the code stream are detected and identified through the feature information of various multimedia compressed coding formats stored in the code stream detection feature library, so that the compressed coding formats of the multimedia data frames in the code stream can be identified, and then the source data can be acquired according to the extracted data frames and the used compressed coding formats thereof, so that the video container decoding step in the prior art is skipped, and the effect of directly identifying and extracting the multimedia data frames from the original to-be-played bit stream of any video container format to acquire the source data is realized through matching with the feature information of various multimedia compressed coding formats, so that compatibility is achieved. Meanwhile, the defect that in the prior art, a one-to-one private player is needed to decode and acquire source data for the code stream with the private video container format can be overcome.
Further, fig. 2 is a schematic diagram of performing code stream detection and decoding by using a code stream detection feature library in the multimedia data processing method according to the embodiment of the present invention, as shown in fig. 2, the code stream detection feature library stores therein feature information of various multimedia compression coding formats, where the feature information includes header file information of the multimedia compression formats, formats of intermediate files, and formats of end files, such as header file information of standard multimedia compression coding formats h.264, MPEG4, MJPEG, and the like, formats of the intermediate files, and formats of the end files. Then, when identifying the compression encoding format used by each multimedia data frame in the code stream according to the code stream detection feature library in step 101, for each multimedia data frame in the code stream, at least one of the following information may be used: matching the multimedia data frame with each compression coding format in the code stream detection feature library to determine the compression coding format used by the multimedia data frame as the matched compression coding format. Specifically, the compression encoding format used for a frame of multimedia data may be identified in a number of ways:
mode 1: respectively comparing the header file information of the multimedia data frame with the header file information of the compression coding format in the code stream detection feature library, the format of the intermediate file of the multimedia data frame with the format of the intermediate file of the compression coding format in the code stream detection feature library, and the format of the end file of the multimedia data frame with the format of the end file of the compression coding format in the code stream detection feature library, if so, determining that the multimedia data frame is matched with the currently compared compression coding format, and the compression coding format used by the multimedia data frame is the matched compression coding format.
In practical application, the comparison sequence may be performed according to requirements, for example, the header file information of the multimedia data frame and the header file information of the current compression coding format may be compared first, then the format of the intermediate file of the multimedia data frame and the format of the intermediate file of the current compression coding format may be compared, and finally the format of the end file of the multimedia data frame and the format of the end file of the current compression coding format may be compared; or comparing the formats of the intermediate files of the two files, then comparing the header file information and finally comparing the format of the end file; and so on.
The method can also be characterized in that after the header file information of the multimedia data frame is compared with the header file information of each compression code in the code stream detection feature library, a plurality of consistent compression coding formats are obtained, then the format of the intermediate file of the multimedia data frame is compared with the format of the obtained intermediate file of the plurality of compression coding formats to obtain a plurality of consistent compression coding formats, finally the format of the end file of the multimedia data frame is compared with the format of the end file of the plurality of compression coding formats obtained by the second comparison, and finally the compression coding formats with consistent three types of information are obtained. Obviously, the format of the intermediate file can be compared first, then the header file information can be compared, and finally the format of the end file can be compared; and so on.
For example, the header file information of a multimedia data frame in the code stream is obtained as "00.00.01", firstly, the header file information of the multimedia data frame is compared with the header file information of various multimedia compression coding formats in the code stream detection feature library respectively, if it is judged that "00.00.01" is consistent with the header file information of the multimedia compression coding formats H.264, MPEG4 and MJPEG, then the format of the intermediate file of the multimedia data frame is continuously compared with the formats of the intermediate files of the multimedia compression coding formats H.264, MPEG4 and MJPEG in the code stream detection feature library respectively, if the formats of the intermediate files are judged to be consistent with the formats of the intermediate files of H.264 and MJPEG, the format of the end file of the multimedia data frame is continuously compared with the formats of the end files of H.264 and MJPEG in the code stream detection feature library, and if the format of the end file of the H.264 is judged to be consistent with the format of the end file of the H.264, the compression coding format used by the data frame can be determined to be the H.264.
Mode 2: respectively comparing the header file information of the multimedia data frame with the header file information of the compression coding format in the code stream detection feature library, and whether the format of the intermediate file of the multimedia data frame is consistent with the format of the intermediate file of the compression coding format in the code stream detection feature library, if so, determining that the multimedia data frame is matched with the currently compared compression coding format, and the compression coding format used by the multimedia data frame is the matched compression coding format.
Or respectively comparing the format of the intermediate file of the multimedia data frame with the format of the intermediate file of the compression coding format in the code stream detection feature library, and comparing whether the format of the end file of the multimedia data frame is consistent with the format of the end file of the compression coding format in the code stream detection feature library, if so, determining that the multimedia data frame is matched with the currently compared compression coding format, and the compression coding format used by the multimedia data frame is the matched compression coding format.
Or, the formats of the header file information and the end file of the two files are respectively compared, and so on.
Similarly, in practical applications, the comparison sequence may also be performed according to requirements, and is not described herein again, as in the method 1.
Mode 3: and comparing the header file information of the multimedia data frame with the header file information of each compression coding format in the code stream detection feature library, and determining that the compression coding format used by the multimedia data frame is the matched compression coding format.
Or comparing the format of the intermediate file of the multimedia data frame with the format of the intermediate file of each compression coding format in the code stream detection feature library, and determining that the compression coding format used by the multimedia data frame is the matched compression coding format.
Or comparing the format of the end file of the multimedia data frame with the format of the end file of each compression coding format in the code stream detection feature library, and determining that the compression coding format used by the multimedia data frame is the matched compression coding format.
In practical applications, a data Frame (Frame) may be composed of a Frame Header (Frame Header), a plurality of slices, a Slice Header (Slice Header) of each Slice, and a Tail (Tail) of the Frame. The header file may be a frame header, the intermediate file may be a slice header, and the end file may be a trailer. Obviously, the intermediate file may also be a combination of a slice header and a slice, and may also be a slice, which is not limited in this embodiment of the present invention.
Based on the foregoing embodiment, after identifying the compression coding format used by each multimedia data frame in the code stream and extracting each multimedia data frame from the code stream, source data can be obtained according to each extracted multimedia data frame and the compression coding format used by the extracted multimedia data frame (corresponding to step 102), this embodiment introduces two processing procedures for obtaining source data (corresponding to step 102), as shown in fig. 2:
ten thousand formula one:
the extracted multimedia data frames are stored according to a storage sequence specified by an open standard multimedia container format under the condition of no decompression to generate a standard code stream, for example, the multimedia data frames are stored according to a storage sequence specified by FLV, MP4, TS or MKV, so that a standard multimedia player such as VLC, kmPLAYER and the like can perform container decoding on the standard code stream to obtain the multimedia data frames, and then the multimedia data frames are decompressed to obtain source data to be played.
In the multimedia data processing method provided in this embodiment, after each multimedia data frame is obtained from the code stream, each obtained multimedia data frame is stored and generated into a standard code stream according to a standard multimedia container format, so that a private video code stream is quickly converted into a standard video code stream, and the standard video code stream can be played directly by using an existing standard player without using a private player.
The second method comprises the following steps:
and sending each extracted multimedia data frame to a data decoder (CODEC) corresponding to the compression coding format for decompression to acquire source data, for example, sending an h.264 compressed data frame extracted from the code stream to an h.264 decoder for decompression to acquire the source data.
In the multimedia data processing method provided in this embodiment, after each multimedia data frame is acquired from the code stream, each extracted multimedia data frame is directly decompressed by a decoder corresponding to a compression coding format used by the data frame, so that a private video file can be decoded by using decoders of various standard compression coding formats, and a private player is avoided.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Fig. 3 is a schematic structural diagram of a multimedia data processing apparatus according to an embodiment of the present invention, as shown in fig. 3, the apparatus includes: the system comprises a receiving module 11 and an obtaining module 12, wherein the receiving module 11 is configured to receive a code stream sent by an encoding end, where the code stream includes a plurality of multimedia data frames stored according to a multimedia container format, and the plurality of multimedia data frames are obtained by performing compression encoding on source data; the obtaining module 12 is configured to identify a compression coding format used by each multimedia data frame in the code stream according to a code stream detection feature library, extract each multimedia data frame from the code stream, and obtain the source data according to each extracted multimedia data frame and the compression coding format used by the extracted multimedia data frame, where the code stream detection feature library includes feature information used for identifying the compression coding format used by the multimedia data frame. The multimedia data processing apparatus provided in this embodiment is located in the decoding end in the embodiment of the multimedia data processing method provided in this embodiment of the present invention.
The functions and processing flows of the multimedia data processing apparatus provided in this embodiment may refer to the above method embodiments, and are not described herein again.
The multimedia data processing apparatus provided in this embodiment detects and identifies the compression coding format of each multimedia data frame in the code stream through the feature information of each multimedia compression coding format stored in the code stream detection feature library, so as to identify the compression coding format of each multimedia data frame in the code stream, and then can acquire source data according to each extracted data frame and the compression coding format used by the extracted data frame, thereby skipping the step of decoding a video container in the prior art, and by matching the features of each multimedia compression format in the monitoring field, the effect of directly identifying and extracting a video frame from an original to-be-played bit stream of any video container format to acquire source data is achieved, and the apparatus has compatibility. Meanwhile, the defect that in the prior art, one-to-one private decoding software is needed to decode the code stream with the private video container format to acquire the source data can be overcome.
FIG. 4 is a block diagram of a multimedia data processing apparatus according to another embodiment of the present invention. The feature information stored in the code stream detection feature library may specifically include: header file information in a multimedia compression coding format, a format of an intermediate file, and a format of an end file; as shown in fig. 4, based on the above embodiment, the obtaining module 12 includes: a comparing unit 121, configured to, for each multimedia data frame in the bitstream, according to at least one of the following information: matching the multimedia data frame with each compression coding format in the code stream detection feature library to determine the compression coding format used by the multimedia data frame as the matched compression coding format. In this way, the compression encoding format of each multimedia data frame in the codestream can be identified. The specific implementation manner can be referred to as manner 1-3 in the above method embodiments, and is not described herein again.
Further, the obtaining module 12 further includes a storage unit 122, configured to store a code stream detection feature library.
The multimedia data processing apparatus provided in this embodiment compares the data frames in the code stream with the feature information of various multimedia compression coding formats stored in the code stream detection feature library, so as to directly identify and extract each multimedia data frame from the code stream of any video container format, and further obtain the effect of source data, thereby avoiding decoding the video file of the private video container format by using a private player, and having compatibility.
Fig. 5 is a schematic structural diagram of a multimedia data processing apparatus according to another embodiment of the present invention, and as shown in fig. 5, in order to further acquire source data based on the foregoing embodiment, the acquiring module 12 further includes: the generating unit 123, the generating unit 123 is configured to obtain the source data in one of the following two ways:
the first method is as follows: storing each multimedia data frame according to a standard video container format and a compression coding format of each multimedia data frame to generate a standard code stream, so that a standard player can perform container decoding on the standard code stream to obtain each multimedia data frame, and then decompressing each multimedia data frame to obtain the source data;
the second method comprises the following steps: and decompressing each multimedia data frame by using a data decoder corresponding to the compression coding format of each multimedia data frame to acquire the source data.
The multimedia data processing device provided by the embodiment can realize that the existing standard player is directly used for playing the private video file without using the private player by quickly converting the video code stream in the private video container format into the video code stream of the standard video container.
Fig. 6 is a schematic structural diagram of a multimedia data processing system according to an embodiment of the present invention, as shown in fig. 6, the system includes: the multimedia data processing apparatus 1 may employ the multimedia data processing apparatus provided in the foregoing embodiment, and the specific structure, function, and processing flow of each device in the multimedia data processing system provided in this embodiment may refer to the embodiments of the foregoing method and device, and details are not described here.
The multimedia data processing system provided in this embodiment detects and identifies the compression coding format of each multimedia data frame in the code stream through the feature information of each multimedia compression coding format stored in the code stream detection feature library, so that the compression coding format of each multimedia data frame in the code stream can be identified, and then source data can be acquired according to each extracted data frame and the compression coding format used by the extracted data frame, thereby skipping the video container decoding step in the prior art, and by matching the features of each multimedia compression coding format in the monitoring field, the effect of directly identifying and extracting a video frame from an original to-be-played bit stream of any video container format to acquire the source data is achieved, and compatibility is achieved. Meanwhile, the defect that in the prior art, one-to-one private decoding software is needed to decode the code stream with the private video container format to acquire the source data can be overcome.
Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be implemented by relevant hardware instructed by a program, and the program may be stored in a computer readable storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. A method for processing multimedia data, comprising:
receiving a code stream sent by an encoding end, wherein the code stream comprises a plurality of multimedia data frames stored according to a multimedia container format, and the plurality of multimedia data frames are obtained by performing compression encoding on source data;
identifying a compression coding format used by each multimedia data frame in the code stream according to a code stream detection feature library and extracting each multimedia data frame from the code stream, wherein the code stream detection feature library comprises feature information used for identifying the compression coding format used by the multimedia data frame;
and acquiring the source data according to the extracted multimedia data frames and the used compression coding format thereof.
2. The method of claim 1, wherein the feature information comprises: compressing header file information in a coding format, a format of the intermediate file, and a format of the end file; the compressed encoding format for identifying each multimedia data frame in the code stream according to the code stream detection feature library comprises the following steps:
for each multimedia data frame in the codestream, according to at least one of the following information: matching the multimedia data frame with each compression coding format in the code stream detection feature library to determine the compression coding format used by the multimedia data frame as the matched compression coding format.
3. The method as claimed in claim 1 or 2, wherein the obtaining the source data according to the extracted multimedia data frames and the used compression coding format comprises:
storing each multimedia data frame according to a standard multimedia container format and a compression coding format used by each multimedia data frame to generate a standard code stream, so that a standard multimedia player can perform container decoding on the standard code stream to obtain each multimedia data frame and then decompress each multimedia data frame to obtain the source data; or,
and decompressing each multimedia data frame by using a data decoder corresponding to the compression coding format used by each multimedia data frame to acquire the source data.
4. The method of claim 3, wherein the compression encoding format comprises at least one of: h.264, MPEG4, and MJPEG, and the standard multimedia container format includes at least one of: FLV, MP4, TS, MKV.
5. A multimedia data processing apparatus, comprising:
the receiving module is used for receiving a code stream sent by an encoding end, wherein the code stream comprises a plurality of multimedia data frames stored according to a multimedia container format, and the plurality of multimedia data frames are obtained by compressing and encoding source data;
the acquisition module is used for identifying the compression coding format used by each multimedia data frame in the code stream according to a code stream detection feature library, extracting each multimedia data frame from the code stream, and acquiring the source data according to each extracted multimedia data frame and the compression coding format used by the multimedia data frame, wherein the code stream detection feature library comprises feature information used for identifying the compression coding format used by the multimedia data frame.
6. The multimedia data processing apparatus of claim 5, wherein the feature information comprises: compressing header file information in a coding format, a format of the intermediate file, and a format of the end file; the acquisition module includes:
a comparing unit, configured to, for each multimedia data frame in the code stream, perform at least one of the following information: matching the multimedia data frame with each compression coding format in the code stream detection feature library to determine the compression coding format used by the multimedia data frame as the matched compression coding format.
7. The multimedia data processing apparatus of claim 6, wherein the obtaining module further comprises:
and the storage unit is used for storing the code stream detection feature library.
8. The multimedia data processing apparatus according to claim 6 or 7, wherein the obtaining module further comprises:
the generating unit is used for storing each multimedia data frame according to a standard multimedia container format and a compression coding format used by each multimedia data frame to generate a standard code stream, so that a standard multimedia player can perform container decoding on the standard code stream to obtain each multimedia data frame and then decompress each multimedia data frame to obtain the source data; or, the apparatus is configured to decompress each multimedia data frame by using a data decoder corresponding to a compression coding format used by each multimedia data frame, and acquire the source data.
9. A multimedia data processing system, comprising: the encoding end and the multimedia data processing device as claimed in any one of claims 5 to 8, wherein the encoding end is configured to perform compression encoding on source data to obtain a plurality of multimedia data frames, and store the obtained plurality of multimedia data frames according to a predetermined multimedia container format to generate a code stream.
CN201110116709.4A 2011-05-06 2011-05-06 Method, device and system for processing multimedia data Active CN102196268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110116709.4A CN102196268B (en) 2011-05-06 2011-05-06 Method, device and system for processing multimedia data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110116709.4A CN102196268B (en) 2011-05-06 2011-05-06 Method, device and system for processing multimedia data

Publications (2)

Publication Number Publication Date
CN102196268A CN102196268A (en) 2011-09-21
CN102196268B true CN102196268B (en) 2013-03-20

Family

ID=44603553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110116709.4A Active CN102196268B (en) 2011-05-06 2011-05-06 Method, device and system for processing multimedia data

Country Status (1)

Country Link
CN (1) CN102196268B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237012B (en) * 2013-03-29 2017-01-18 苏州皓泰视频技术有限公司 Method for processing multimedia data on basis of free components
US9875723B2 (en) 2013-08-13 2018-01-23 Mediatek Inc. Data processing apparatus for transmitting/receiving randomly accessible compressed pixel data groups over display interface and related data processing method
CN104363511B (en) * 2014-11-28 2017-06-23 北京奇艺世纪科技有限公司 A kind of method and system of broadcasting F4v videos online in a mobile device
CN105163169B (en) * 2015-09-16 2018-08-07 暴风集团股份有限公司 A kind of method and system for the data encapsulation format being suitable for transmission
CN108093258B (en) * 2018-01-11 2020-06-16 珠海全志科技股份有限公司 Code stream data decoding method, computer device and computer readable storage medium
CN111787396B (en) * 2020-07-28 2023-02-21 北京金山云网络技术有限公司 Video stream parsing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118777A (en) * 2007-08-22 2008-02-06 北京中星微电子有限公司 Playing method of multimedia container format file and indexes reading method thereof
CN101552791A (en) * 2009-05-22 2009-10-07 腾讯科技(深圳)有限公司 Method and system for playing multiple media file
CN101888540A (en) * 2009-05-13 2010-11-17 中兴通讯股份有限公司 Method and device for bearing transport streams TS in streaming media files

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8019200B2 (en) * 2006-11-06 2011-09-13 Creative Technology Ltd Method and system for media file conversion
US20090327344A1 (en) * 2008-06-26 2009-12-31 Microsoft Corporation Media foundation source reader

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118777A (en) * 2007-08-22 2008-02-06 北京中星微电子有限公司 Playing method of multimedia container format file and indexes reading method thereof
CN101888540A (en) * 2009-05-13 2010-11-17 中兴通讯股份有限公司 Method and device for bearing transport streams TS in streaming media files
CN101552791A (en) * 2009-05-22 2009-10-07 腾讯科技(深圳)有限公司 Method and system for playing multiple media file

Also Published As

Publication number Publication date
CN102196268A (en) 2011-09-21

Similar Documents

Publication Publication Date Title
CN102196268B (en) Method, device and system for processing multimedia data
US20190259124A1 (en) System and Method of Data Transfer In-Band in Video via Optically Encoded Images
US10136163B2 (en) Method and apparatus for repairing video file
CN107634930B (en) Method and device for acquiring media data
KR101336243B1 (en) Transport stream structure for transmitting and receiving video data in which additional information is inserted, method and apparatus thereof
US20150156557A1 (en) Display apparatus, method of displaying image thereof, and computer-readable recording medium
BRPI0706887A2 (en) "method for suppressing some multimedia content from a multimedia content presentation provided by a remote server to a client multimedia content player and method for applying and synchronizing media content filter data with a multimedia content presentation . "
US20100061443A1 (en) Method and system for video streaming of a graphical display of an application
CN112789656A (en) Information processing apparatus, information processing method, and program
JP2006115457A (en) System and its method for embedding multimedia editing information into multimedia bit stream
CN103763578A (en) Method and device for pushing program associated information
US20060059509A1 (en) System and method for embedding commercial information in a video bitstream
US20100098161A1 (en) Video encoding apparatus and video encoding method
KR100963211B1 (en) Method and apparatus for signaling and decoding avs1-p2 bitstreams of different versions
WO2018033152A1 (en) Video playing method and apparatus
CN103841451B (en) Multi-medium play method, device and terminal
CN106060628A (en) DirectShow-based method and system supporting variable coding
CN104994406B (en) A kind of video editing method and device based on Silverlight plug-in units
US20160100197A1 (en) Method and System for Generating a Video Synopsis from Compressed Video Images
US20140254691A1 (en) Bitstream processing using marker codes with offset values
CN101068328B (en) Automatic video recording method
US9560365B2 (en) Image coding device, image decoding device, image coding method, and image decoding method
US20060056506A1 (en) System and method for embedding multimedia compression information in a multimedia bitstream
US10158888B2 (en) Method and apparatus for reproducing video data
US20170078705A1 (en) Verification of error recovery with long term reference pictures for video coding

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 611731 Chengdu high tech Zone, Sichuan, West Park, Qingshui River

Applicant after: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) Co.,Ltd.

Address before: 611731 Chengdu high tech Zone, Sichuan, West Park, Qingshui River

Applicant before: CHENGDU HUAWEI SYMANTEC TECHNOLOGIES Co.,Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: CHENGDU HUAWEI SYMANTEC TECHNOLOGIES CO., LTD. TO: HUAWEI DIGITAL TECHNOLOGY (CHENGDU) CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220831

Address after: No. 1899 Xiyuan Avenue, high tech Zone (West District), Chengdu, Sichuan 610041

Patentee after: Chengdu Huawei Technologies Co.,Ltd.

Address before: 611731 Qingshui River District, Chengdu hi tech Zone, Sichuan, China

Patentee before: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) Co.,Ltd.

TR01 Transfer of patent right