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

CN105163169B - A kind of method and system for the data encapsulation format being suitable for transmission - Google Patents

A kind of method and system for the data encapsulation format being suitable for transmission Download PDF

Info

Publication number
CN105163169B
CN105163169B CN201510591461.5A CN201510591461A CN105163169B CN 105163169 B CN105163169 B CN 105163169B CN 201510591461 A CN201510591461 A CN 201510591461A CN 105163169 B CN105163169 B CN 105163169B
Authority
CN
China
Prior art keywords
module
coded format
data
format
encoded
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
CN201510591461.5A
Other languages
Chinese (zh)
Other versions
CN105163169A (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.)
Storm Group Ltd By Share Ltd
Original Assignee
Storm Group Ltd By Share 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 Storm Group Ltd By Share Ltd filed Critical Storm Group Ltd By Share Ltd
Priority to CN201510591461.5A priority Critical patent/CN105163169B/en
Publication of CN105163169A publication Critical patent/CN105163169A/en
Application granted granted Critical
Publication of CN105163169B publication Critical patent/CN105163169B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

This application discloses a kind of method and system for the data encapsulation format being suitable for transmission, wherein method includes:Including:Obtain the multimedia file encoded with the first coded format;The multimedia file is demultiplexed, each frame data and Presentation Time Stamp encoded with the first coded format are obtained;The code stream of first coded format coding is packaged;Each frame data with the first coded format coding are decoded, yuv data is obtained;The yuv data is encoded using the second coded format, obtains each frame data encoded with the second coded format, and the code stream encoded with the second coded format is formed by this multiple frame data.Data encapsulation format method provided by the present invention so that code stream remains the required all information of decoding, and remains the synchronization that timestamp carries out audio and video;Encapsulation format simplifies, and the separation of file is carried out convenient for decoding end;Code stream is saved, header information has especially been simplified, has been more suitable for network transmission.

Description

A kind of method and system for the data encapsulation format being suitable for transmission
Technical field
This application involves data encapsulation format field, specifically, being related to a kind of data encapsulation format being suitable for transmission Method and system.
Background technology
Multi-medium data includes but not limited to audio data, video data, audio, video data, but in current packaging technology In, data format after encapsulation simultaneously not enough simplifies, and transcoding encapsulation format reads inconsistent, and data redundancy amount is big after encapsulating, Occupied bandwidth.
General packaged type is to be used to decode to play, for example have many decoding control parameters in the packaged types such as mp4 And the information such as play position.But the file of transcoding only needs frame data, temporal information, and the decoded header of energy.
Therefore the present invention is proposed, it is intended that simplify transmission of the encapsulation format in order to multi-medium data, while being conducive to decode End carries out data separating, and remains synchronizing information.
Invention content
In view of this, there is provided a kind of data encapsulation format being suitable for transmission for technical problems to be solved in this application Method and system solve the problems, such as that the data format after encapsulation in the prior art not enough simplifies, is unfavorable for data transmission.
In order to solve the above-mentioned technical problem, the application has following technical solution:
A method of being suitable for the data encapsulation format of transmission, which is characterized in that including:Obtain with the first coded format into The multimedia file of row coding;The multimedia file is demultiplexed, each frame encoded with the first coded format is obtained Data and Presentation Time Stamp;The code stream of first coded format coding is packaged;It is compiled with the first coded format to described Each frame data of code are decoded, and obtain yuv data;The yuv data is encoded using the second coded format, is obtained With each frame data that the second coded format encodes, and the code stream encoded with the second coded format is formed by this multiple frame data.
A kind of system for the data encapsulation format being suitable for transmission, which is characterized in that including:Multi-media module, demultiplexing mould Block, the first package module, decoder module, secondary coding module, wherein the multi-media module, with the demultiplexing module coupling It connects, for providing the multimedia file encoded with the first coded format;The demultiplexing module, with the multi-media module It is coupled with first package module, for being demultiplexed to the multimedia file, obtains and encoded with the first coded format Each frame data and Presentation Time Stamp;First package module is coupled with the demultiplexing module and the decoder module, Code stream for being encoded to first coded format is packaged;The decoder module, with first package module and institute Secondary coding module couples are stated, for being decoded to each frame data with the first coded format coding, obtain YUV numbers According to;The secondary coding module is coupled with the decoder module, for being carried out using the second coded format to the yuv data Coding is obtained each frame data encoded with the second coded format, and is formed by this multiple frame data and compiled with the second coded format The code stream of code.
Compared with prior art, method and system described herein has reached following effect:
First, data encapsulation format method provided by the present invention so that code stream remains the required all letters of decoding Breath, and remain the synchronization that timestamp carries out audio and video;
Second, the solution of the present invention makes encapsulation format simplify, and the separation of file is carried out convenient for decoding end.
Third, the solution of the present invention save code stream, have especially simplified header information, be more suitable for network transmission.
Description of the drawings
Attached drawing described herein is used for providing further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please do not constitute the improper restriction to the application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of method flow diagram for the data encapsulation format being suitable for transmission of the present invention;
Fig. 2 is a kind of another flow chart of the method for the data encapsulation format being suitable for transmission of the present invention;
Fig. 3 is a kind of system structure diagram for the data encapsulation format being suitable for transmission of the present invention.
Specific implementation mode
Some vocabulary has such as been used to censure specific components in specification and claim.Those skilled in the art answer It is understood that hardware manufacturer may call the same component with different nouns.This specification and claims are not with name The difference of title is used as the mode for distinguishing component, but is used as the criterion of differentiation with the difference of component functionally.Such as logical The "comprising" of piece specification and claim mentioned in is an open language, therefore should be construed to " include but do not limit In "." substantially " refer in receivable error range, those skilled in the art can be described within a certain error range solution Technical problem basically reaches the technique effect.In addition, " coupling " word includes any direct and indirect electric property coupling herein Means.Therefore, if it is described herein that a first device is coupled to a second device, then representing the first device can directly electrical coupling It is connected to the second device, or the second device indirectly electrically coupled through other devices or coupling means.Specification Subsequent descriptions be implement the application better embodiment, so it is described description be for the purpose of the rule for illustrating the application, It is not limited to scope of the present application.The protection domain of the application is when subject to appended claims institute defender.
Embodiment 1
The specific embodiment of method shown in Figure 1 for the herein described data encapsulation format for being suitable for transmission, this reality Method described in example is applied to include the following steps:
Step 101:Obtain the multimedia file encoded with the first coded format;
Step 102:The multimedia file is demultiplexed, each frame data encoded with the first coded format are obtained And Presentation Time Stamp;
Step 103:The code stream of first coded format coding is packaged;
Step 104:Each frame data with the first coded format coding are decoded, yuv data is obtained;
Step 105:The yuv data is encoded using the second coded format, obtains encoding with the second coded format Each frame data, and form the code stream encoded with the second coded format by this multiple frame data;
Step 106:The code stream of second coded format coding is packaged.
The encapsulation of step 106 and nonessential step, can omit.
Such code stream format remains all information that decoding needs, and retention time stamp carries out the synchronization of audio and video.
Wherein, information parameter collection is also obtained in the demultiplexing.
Wherein, to first coded format coding code stream be packaged the step of further include:Information parameter collection is put Enter the parts extraData, after obtaining each frame data encoded with the first coded format, is encoded with the first coded format described Each frame data before add Presentation Time Stamp, extraData data are in the header information of code stream.
Wherein, if the multimedia file is video file, described information parameter set includes sequence parameter set (Sequence Parameter Set, abbreviation SPS), picture parameter set (Picture Parameter Set, abbreviation PPS) and video parameter collection (Video Parameter Set, abbreviation VPS).
Wherein, if the multimedia file is audio file, described information parameter set includes channel number, sample rate and sound Frequently the information that can be used is decoded.
Wherein, YUV is a kind of colour coding method (belonging to PAL) used by eurovision system, wherein " Y " is indicated Brightness (Luminance or Luma), that is, grayscale value;And " U " and " V " indicate be then coloration (Chrominance or Chroma), effect is description colors of image and saturation degree, is used for the color of specified pixel.
Embodiment 2
For the present invention is described in more detail, shown in Figure 2 is the herein described data encapsulation format for being suitable for transmission The another specific embodiment of method, method described in the present embodiment include the following steps:
Step 201:Obtain the video file H.264 to be encoded;
Step 202:The video file is demultiplexed, when obtaining each frame data and the display H.264 to encode Between stab;
Step 203:To being packaged with the code stream H.264 encoded;
Step 204:It is decoded with each frame data H.264 encoded to described, obtains yuv data;
Step 205:To the yuv data using H.265 encoding, each frame data H.265 to encode are obtained, and The code stream H.265 to encode is formed by this multiple frame data;
Step 206:The code stream is packaged.
Wherein, information parameter collection is also obtained in demultiplexing.
Wherein, the step of being packaged to the code stream further include:Information parameter collection is put into the parts extraData, It is described to add Presentation Time Stamp before each frame data for H.264 encoding.
Wherein, described information parameter set includes SPS, PPS and VPS.
Embodiment 3
For the present invention is described in more detail, shown in Figure 3 is the herein described data encapsulation format for being suitable for transmission The another specific embodiment of system, system described in the present embodiment include:Multi-media module 301, demultiplexing module 302, first Package module 303, decoder module 304, secondary coding module 305, the second package module 306, wherein
The multi-media module 301 is coupled with the demultiplexing module 302, is carried out with the first coded format for providing The multimedia file of coding;
The demultiplexing module 302 is coupled with the multi-media module 301 and first package module 303, for pair The multimedia file is demultiplexed, and each frame data and Presentation Time Stamp encoded with the first coded format are obtained;
First package module 303 is coupled with the demultiplexing module 302 and the decoder module 304, for institute The code stream for stating the first coded format coding is packaged.
The decoder module 304 is coupled with first package module 303 and the secondary coding module 305, for pair Each frame data with the first coded format coding are decoded, and obtain yuv data;
The secondary coding module 305 is coupled with the decoder module 304 and second package module 306, for pair The yuv data is encoded using the second coded format, obtains each frame data encoded with the second coded format, and by this Multiple frame data form the code stream encoded with the second coded format;
Second package module 306 is coupled with the secondary coding module 305, for being packaged to the code stream.
Wherein, the demultiplexing module 302 also obtains information parameter collection.
Wherein, first package module 303 further includes when being packaged to the code stream:Information parameter collection is put into The parts extraData, and by being added before each frame data encoded with the first coded format after the demultiplexing Presentation Time Stamp.
Wherein, if the multimedia file that the multi-media module 301 provides is video file, described information parameter set Including SPS, PPS and VPS.
Wherein, if the multimedia file that the multi-media module 301 provides is audio file, described information parameter set The information that can be used including channel number, sample rate and audio decoder.
By the above various embodiments it is found that advantageous effect existing for the application is:
First, data encapsulation format method provided by the present invention so that code stream remains the required all letters of decoding Breath, and remain the synchronization that timestamp carries out audio and video;
Second, the solution of the present invention makes encapsulation format simplify, and the separation of file is carried out convenient for decoding end.
Third, the solution of the present invention save code stream, have especially simplified header information, be more suitable for network transmission.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, apparatus or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, the application can be used in one or more wherein include computer usable program code computer The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
Several preferred embodiments of the application have shown and described in above description, but as previously described, it should be understood that the application Be not limited to form disclosed herein, be not to be taken as excluding other embodiments, and can be used for various other combinations, Modification and environment, and the above teachings or related fields of technology or knowledge can be passed through in the scope of the invention is set forth herein It is modified.And changes and modifications made by those skilled in the art do not depart from spirit and scope, then it all should be in this Shen It please be in the protection domain of appended claims.

Claims (6)

1. a kind of method for the data encapsulation format being suitable for transmission, which is characterized in that including:
Obtain the multimedia file encoded with the first coded format;
The multimedia file is demultiplexed, each frame data encoded with the first coded format are obtained and shows the time Stamp, also obtains information parameter collection in the demultiplexing;
The code stream of first coded format coding is packaged, information parameter collection is put into the parts extraData, is being obtained After each frame data of the first coded format coding, added before each frame data encoded with the first coded format aobvious Show timestamp;
Each frame data with the first coded format coding are decoded, yuv data is obtained;The yuv data is adopted It is encoded with the second coded format, obtains each frame data encoded with the second coded format, and by this multiple frame data shape At the code stream encoded with the second coded format.
2. being suitable for the method for the data encapsulation format of transmission according to claim 1, which is characterized in that the multimedia file For video file, described information parameter set includes sequence parameter set, picture parameter set and video parameter collection.
3. being suitable for the method for the data encapsulation format of transmission according to claim 1, which is characterized in that the multimedia file For audio file, described information parameter set includes the information that channel number, sample rate and audio decoder can be used.
4. a kind of system for the data encapsulation format being suitable for transmission, which is characterized in that including:Multi-media module, demultiplexing module, First package module, decoder module, secondary coding module, wherein
The multi-media module is coupled with the demultiplexing module, for providing the more matchmakers encoded with the first coded format Body file;
The demultiplexing module is coupled with the multi-media module and first package module, for multimedia text Part is demultiplexed, and obtains each frame data and Presentation Time Stamp encoded with the first coded format, the demultiplexing module is also Obtain information parameter collection;
First package module is coupled with the demultiplexing module and the decoder module, for the first coding lattice The code stream of formula coding is packaged, and information parameter collection is put into the parts extraData, and by after the demultiplexing described To add Presentation Time Stamp before each frame data of the first coded format coding;
The decoder module is used to compile with first to described with first package module and the secondary coding module couples Each frame data of code said shank are decoded, and obtain yuv data;
The secondary coding module is coupled with the decoder module, for being carried out using the second coded format to the yuv data Coding is obtained each frame data encoded with the second coded format, and is formed by this multiple frame data and compiled with the second coded format The code stream of code.
5. being suitable for the system of the data encapsulation format of transmission according to claim 4, which is characterized in that if the multimedia mould The multimedia file that block provides is video file, and described information parameter set includes sequence parameter set, picture parameter set and regards Frequency parameter set.
6. being suitable for the system of the data encapsulation format of transmission according to claim 4, which is characterized in that if the multimedia mould The multimedia file that block provides is audio file, and described information parameter set includes channel number, sample rate and audio decoder The information that can be used.
CN201510591461.5A 2015-09-16 2015-09-16 A kind of method and system for the data encapsulation format being suitable for transmission Active CN105163169B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510591461.5A CN105163169B (en) 2015-09-16 2015-09-16 A kind of method and system for the data encapsulation format being suitable for transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510591461.5A CN105163169B (en) 2015-09-16 2015-09-16 A kind of method and system for the data encapsulation format being suitable for transmission

Publications (2)

Publication Number Publication Date
CN105163169A CN105163169A (en) 2015-12-16
CN105163169B true CN105163169B (en) 2018-08-07

Family

ID=54803909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510591461.5A Active CN105163169B (en) 2015-09-16 2015-09-16 A kind of method and system for the data encapsulation format being suitable for transmission

Country Status (1)

Country Link
CN (1) CN105163169B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507115B (en) * 2016-11-30 2019-10-15 上海音绮文化发展有限公司 Coding/decoding method, device and the terminal device of VR video based on iOS device
CN109640162B (en) * 2018-12-25 2021-05-14 北京数码视讯软件技术发展有限公司 Code stream conversion method and system
CN117201789B (en) * 2023-11-07 2024-01-26 南京美乐威电子科技有限公司 Video code stream generating method, computer storage medium and encoder

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459833A (en) * 2007-12-13 2009-06-17 安凯(广州)软件技术有限公司 Transcoding method used for similar video code stream and transcoding device thereof
CN102196268A (en) * 2011-05-06 2011-09-21 成都市华为赛门铁克科技有限公司 Method, device and system for processing multimedia data
CN102790906A (en) * 2012-08-28 2012-11-21 曙光信息产业(北京)有限公司 Encoding and decoding system and method
CN103002353A (en) * 2011-09-16 2013-03-27 杭州海康威视数字技术股份有限公司 Method and device for packaging multimedia documents
CN104068439A (en) * 2014-06-10 2014-10-01 南京泽朗农业发展有限公司 Preparation method of blackberry fruit powder
CN104168439A (en) * 2013-05-17 2014-11-26 腾讯科技(深圳)有限公司 Video coding method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9936266B2 (en) * 2013-05-17 2018-04-03 Tencent Technology (Shenzhen) Company Limited Video encoding method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459833A (en) * 2007-12-13 2009-06-17 安凯(广州)软件技术有限公司 Transcoding method used for similar video code stream and transcoding device thereof
CN102196268A (en) * 2011-05-06 2011-09-21 成都市华为赛门铁克科技有限公司 Method, device and system for processing multimedia data
CN103002353A (en) * 2011-09-16 2013-03-27 杭州海康威视数字技术股份有限公司 Method and device for packaging multimedia documents
CN102790906A (en) * 2012-08-28 2012-11-21 曙光信息产业(北京)有限公司 Encoding and decoding system and method
CN104168439A (en) * 2013-05-17 2014-11-26 腾讯科技(深圳)有限公司 Video coding method and apparatus
CN104068439A (en) * 2014-06-10 2014-10-01 南京泽朗农业发展有限公司 Preparation method of blackberry fruit powder

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
H.264/SVC 的RTP封装算法及其应用;柳伟等;《计算机工程与应用》;20101231;全文 *

Also Published As

Publication number Publication date
CN105163169A (en) 2015-12-16

Similar Documents

Publication Publication Date Title
JP7370360B2 (en) Method and device for adapting video content decoded from an elementary stream to display characteristics
KR101273479B1 (en) Method and device for coding a video content comprising a sequence of picture and a logo
KR102077435B1 (en) Transmission device, transmission method, reception device, reception method, display device, and display method
US9596430B2 (en) Data generation apparatus, data generating method, data reproduction apparatus, and data reproducing method
CA2724872C (en) Image signal decoding apparatus, image signal decoding method, image signal encoding apparatus, image signal encoding method, and program
CA2771340A1 (en) Method and apparatus for processing signal for three-dimensional reproduction of additional data
EP3261352B1 (en) Transmission device, transmission method, reception device, and reception method
US9918099B2 (en) File generation apparatus, file generating method, file reproduction apparatus, and file reproducing method
US20180255308A1 (en) Video transmitting device and video playing device
CN108141614A (en) High dynamic range and wide colour gamut content in signal transmission transport stream
CN105163169B (en) A kind of method and system for the data encapsulation format being suitable for transmission
CN107396002B (en) A kind of processing method and mobile terminal of video image
CN100591140C (en) Method for displaying subtitling in video
CN113055706B (en) Video synthesis method, device, electronic equipment and storage medium
WO2015133250A1 (en) Transmission apparatus, transmission method, reception apparatus and reception method
JP5976189B2 (en) Transmitting apparatus, transmitting method, receiving apparatus, and receiving method
JP6350638B2 (en) Transmitting apparatus, transmitting method, receiving apparatus, and receiving method
JP6052354B2 (en) Transmitting apparatus, transmitting method, receiving apparatus, and receiving method
JP2018157591A (en) Transmitter, transmission method, receiver and reception method
JP2016054546A (en) Transmitter, transmission method, receiver and reception method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100191 Beijing, Xueyuan Road No. 51, the first to enjoy the science and technology building, floor 6,

Applicant after: Storm group Limited by Share Ltd

Address before: 100191 Beijing, Xueyuan Road No. 51, the first to enjoy the science and technology building, floor 6,

Applicant before: Beijing Baofeng Technology Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
PP01 Preservation of patent right

Effective date of registration: 20190705

Granted publication date: 20180807

PP01 Preservation of patent right