CN107147916A - A kind of method for transmitting H.265 encoded video data on the level of the transport layer - Google Patents
A kind of method for transmitting H.265 encoded video data on the level of the transport layer Download PDFInfo
- Publication number
- CN107147916A CN107147916A CN201710431382.7A CN201710431382A CN107147916A CN 107147916 A CN107147916 A CN 107147916A CN 201710431382 A CN201710431382 A CN 201710431382A CN 107147916 A CN107147916 A CN 107147916A
- Authority
- CN
- China
- Prior art keywords
- agreements
- rtmp
- http
- video data
- flv
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/70—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/26—Special purpose or proprietary protocols or architectures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
Abstract
A kind of method for transmitting H.265 encoded video data on the level of the transport layer, comprises the following steps, and H.265 live video is encoded;The codecID fields and metadata information of RTMP or HTTP FLV protocol headers are changed, the data structure to RTMP agreements or HTTP FLV agreements is modified;The transmission of H.265 encoded video data is carried out using amended RTMP or HTTP FLV agreements;H.265 decoder is decoded and video playback for selection.The method for transmitting H.265 encoded video data on the level of the transport layer of the present invention, using H.265 coded system on the premise of ensureing that image quality is constant, reduces code check to transmit the video data of high image quality in the case where that need not consume very high bandwidth resource situation.
Description
Technical field
Regarded the present invention relates to video data transmission technical field, more particularly to a kind of H.265 coding that transmits on the level of the transport layer
The method of frequency evidence.
Background technology
In recent years, due to the popularization of high code check, high image quality video, particularly VR videos are this needs the vision of ultimate attainment experience
The video of viewing experience, it is necessary to which the higher network bandwidth is transmitted.A kind of method is user's active upgrade of network amount of bandwidth,
Another is to use new Video coding mode on the premise of ensureing that image quality is constant, reduces code check to disappear
The video data of high image quality is transmitted under consumption very high bandwidth resource situation.The present invention is exactly to be solved using second of thinking relative
It is not the solution that superelevation image quality video data is transmitted under very high code check.
The content of the invention
In order to solve the deficiency of prior art presence, transmitted on the level of the transport layer it is an object of the invention to provide one kind
H.265 the method for encoded video data, is using the higher H.265 coded system of compression ratio in screen live TV stream transport layer protocol
The picture of upper distribution transmission higher-definition.
To achieve the above object, the method for transmitting H.265 encoded video data on the level of the transport layer that the present invention is provided, including
Following steps:
1) H.265 live video is encoded;
2) the codecID fields and metadata information of RTMP or HTTP-FLV protocol headers are changed, to RTMP agreements or
The data structure of HTTP-FLV agreements is modified;
3) transmission of H.265 encoded video data is carried out using amended RTMP or HTTP-FLV agreements;
4) H.265 decoder is decoded and video playback for selection.
Further, step 2) the modification RTMP or HTTP-FLV protocol headers codecID fields and metadata letter
Breath, including,
The data for increasing codecID=10 in the protocol header of RTMP agreements or HTTP-FLV agreements are used for identifying the volume of stream
H.265 code type is;
Increase codecID in the metadata information of RTMP agreements to represent to use for 10 H.265 to encode.
Further, it is further comprising the steps of:
If HevcPacketType fields are 0, increase VPS data;
265 frame data are encapsulated into RTMP or HTTP-FLV video payload package.
Further, the step 4) further comprise,
Whether judge the protocol header of RTMP agreements or HTTP-FLV agreements has codecID=10 marks;
Judge to identify whether codecID is 10 in RTMP agreements or HTTP-FLV agreements metadata;
H.265 decoder carries out video data decoding for player selection.
The method for transmitting H.265 encoded video data on the level of the transport layer that the present invention is provided, is existed using H.265 coded system
On the premise of ensureing that image quality is constant, reduce code check to transmit high image quality in the case where very high bandwidth resource situation need not be consumed
Video data.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
Obtain it is clear that or being understood by implementing the present invention.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for specification, and with the present invention's
Embodiment together, for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the message structure schematic diagram of message in existing RTMP agreements;
Fig. 2 is the message structure schematic diagram of message blocks in existing RTMP agreements;
Fig. 3 is message blocking process schematic diagram in existing RTMP agreements;
Fig. 4 is the method flow diagram for transmitting H.265 encoded video data on the level of the transport layer according to the present invention.
Embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described herein
Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
RTMP (HTTP-FLV is identical with RTMP agreements, behind repeat no more) agreement is five layers of bodies of an internet TCP/IP
The agreement of application layer in architecture.Basic data cell is referred to as message (Message) in RTMP agreements.When RTMP agreements are mutual
When transmitting data in networking, message can be split into smaller unit, referred to as message blocks (Chunk).
1 message
Message is basic data cell in RTMP agreements.Different types of message package is containing different Message Type
ID, represents different functions.More than ten kinds of type of message is defined altogether in RTMP agreements, different effects are played respectively.Fig. 1
For the message structure schematic diagram of message in existing RTMP agreements, as shown in figure 1, Message Type ID are used in 1-7 message
Protocol integrated test system, these message are usually the RTMP agreement self-managements message to be used, and user need not generally operate it
In data.Message Type ID are respectively used to transmit Voice & Video data for 8,9 message.Message Type ID
It is used for the order for sending AMF codings for 15-20 message, is responsible for interacting between user and server, such as plays, pause etc.
Deng.Message header (Message Header) is made up of four parts:The Message Type ID of banner message type, mark disappears
The Payload Length of length, the Timestamp of identified time stamp are ceased, the Stream ID of the affiliated Media Stream of message are identified.
2 message blocks
In transmission over networks data, message needs to be split into less data block, is just adapted in corresponding network rings
Transmitted on border.Provided in RTMP agreements, message is split into message blocks (Chunk) in transmission over networks.Fig. 2 is existing RTMP
The message structure schematic diagram of message blocks in agreement, as shown in Fig. 2 message blocks stem (Chunk Header) is made up of three parts:
Chunk Basic Header for identifying this block, the Chunk Message for identifying message belonging to the load of this block
Header, and the Extended Timestamp just occurred when timestamp overflows.
3 message piecemeals
During message is divided into several message blocks, Message Payload part (Message Body) is divided into greatly
The data block (acquiescence is 128 bytes, and last data block can be less than the regular length) of small fixation, and added in its stem
Message blocks stem (Chunk Header), just constitutes corresponding message blocks.Fig. 3 is message blocking process in existing RTMP agreements
Schematic diagram a, as shown in figure 3, size is divided into the message blocks of 128 bytes (except last for the message of 307 bytes
It is individual).
During RTMP transmission media data, media data is packaged into message by transmitting terminal first, then message point
Message blocks are cut into, finally send the message blocks after segmentation by Transmission Control Protocol.Receiving terminal is receiving number by Transmission Control Protocol
According to rear, message blocks are reassembled into message first, then media can be just recovered by carrying out decapsulation processing to message
Data.
Fig. 4 is the method flow diagram for transmitting H.265 encoded video data on the level of the transport layer according to the present invention, below with reference to
Fig. 4, the method for transmitting H.265 encoded video data on the level of the transport layer to the present invention is described in detail.
First, in step 401, live video is encoded using H.265 video encoding standard;
H.265 it is the new video encoding standard that ITU-T VCEG are formulated after H.264.H.265 standard around
H.264 existing video encoding standard, retains original some technologies, while the technology related to some is improved, it makes
Set with advanced technology to improve the relation between code stream, coding quality, delay and algorithm complex, being optimal.
Specific research contents includes:Improve compression efficiency, improve robustness and error recovery capabilities, the real-time time delay of reduction, reduction
Channel acquisition time and Stochastic accessing time delay, reduction complexity etc..H264 can be less than 1Mbps speed due to algorithm optimization
Realize that SD digital picture is transmitted;H.265 it can then realize and transmit 720P (resolution ratio using 1~2Mbps transmission speed
1280*720) common high resolution audio and video transmission.
In step 402, the data structure to RTMP agreements is modified;
The Frame type fields of RTMP protocol headers are constant, in RTMP protocol headers (RTMP Header) codecID fields
Newly-increased codecID=10 data are used for identifying the type of coding of stream for H.265 (264 use 7).And in RTMP agreements
Metadata information in increase codecID be that 10 (264 coding use 7) represent to use H.265 to encode, be used for
Player is allowed to select H.265 decoder progress video data decoding.
If HevcPacketType fields be 0 (expression be HEVC sequence header), i.e. 265 videos
Some configuration informations of stream, on the basis of 264 sequence header originally (sps+pps data), add VPS data
[VPS:Video Parameter Set (video parameter collection)], auxiliary decoder.
The encapsulation of 265 frame data is entered in RTMP video payload package.This mechanism is identical with 264, and simply payload content is not
Together.
In step 403, the data structure to HTTP-FLV agreements is modified;
HTTP-FLV agreements support H.265 identical with RTMP agreements, enable new codecID and are used for representing H.265 to encode
Mode.
In step 404, the transmission of H.265 encoded video data is carried out using amended RTMP, HTTP-FLV agreement;
In step 405, H.265 decoder carries out video data decoding, played for player selection.
RTMP agreements and HTTP-FLV agreements increase codecID=10 newly and are used for identifying H.265 encoder.Need in agreement
It is 10 to represent to use and H.265 encode that codecID is identified in metadata, and for allowing player selection, H.265 decoder enters
Row video data decoding.
(5 byte N of byte header+4 ALU are big by RTMP video bag load data structure RTMP Header+RTMP Body
Small+be truly video data), wherein body header structures are as follows:
Byte [0]=[1-byte header]
Byte [1]=[1-byte codec config indicator (1-video data, 0-codec config
packet)]
Byte [2..4]=[3-byte time difference between dts and pts in
Milliseconds] byte [5..8]=[4-byte nalu size]
Wherein NALU field sizes are determined by lengthSizeMinusOne.
HEVC field definitions are as shown in the table:
HEVC video decoding configuration information data structures:
HTTP-FLV agreements support H.265 identical with RTMP agreements, enable new codecID and are used for representing H.265 to encode
Mode.
One of ordinary skill in the art will appreciate that:It the foregoing is only the preferred embodiments of the present invention, and without
In the limitation present invention, although the present invention is described in detail with reference to the foregoing embodiments, for those skilled in the art
For, it can still be modified to the technical scheme that foregoing embodiments are recorded, or which part technical characteristic is entered
Row equivalent substitution.Within the spirit and principles of the invention, make-any modification, equivalent substitution and improvements etc., all should wrap
It is contained within protection scope of the present invention.
Claims (4)
1. a kind of method for transmitting H.265 encoded video data on the level of the transport layer, comprises the following steps:
1)H.265, live video is encoded;
2)The codecID fields and metadata information of RTMP or HTTP-FLV protocol headers are changed, to RTMP agreements or HTTP-
The data structure of FLV agreements is modified;
3)The transmission of H.265 encoded video data is carried out using amended RTMP or HTTP-FLV agreements;
4)H.265 decoder is decoded and video playback for selection.
2. the method according to claim 1 for transmitting H.265 encoded video data on the level of the transport layer, it is characterised in that step
Rapid 2)The codecID fields and metadata information of the modification RTMP or HTTP-FLV protocol headers, including,
The data for increasing codecID=10 in the protocol header of RTMP agreements or HTTP-FLV agreements are used for identifying the coding class of stream
H.265 type is;
Increase codecID in the metadata information of RTMP agreements to represent to use for 10 H.265 to encode.
3. the method according to claim 2 for transmitting H.265 encoded video data on the level of the transport layer, it is characterised in that also
Comprise the following steps:
If HevcPacketType fields are 0, increase VPS data;
265 frame data are encapsulated into RTMP or HTTP-FLV video payload package.
4. the method according to claim 1 for transmitting H.265 encoded video data on the level of the transport layer, it is characterised in that institute
State step 4)Further comprise,
Whether judge the protocol header of RTMP agreements or HTTP-FLV agreements has codecID=10 to identify;
Judge to identify whether codecID is 10 in RTMP agreements or HTTP-FLV agreements metadata;
H.265 decoder carries out video data decoding for player selection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710431382.7A CN107147916B (en) | 2017-06-09 | 2017-06-09 | Method for transmitting H.265 coding video data on transmission layer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710431382.7A CN107147916B (en) | 2017-06-09 | 2017-06-09 | Method for transmitting H.265 coding video data on transmission layer |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107147916A true CN107147916A (en) | 2017-09-08 |
CN107147916B CN107147916B (en) | 2021-01-29 |
Family
ID=59781060
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710431382.7A Active CN107147916B (en) | 2017-06-09 | 2017-06-09 | Method for transmitting H.265 coding video data on transmission layer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107147916B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110087084A (en) * | 2018-01-25 | 2019-08-02 | 联咏科技股份有限公司 | Video process apparatus and method for processing video frequency |
CN111010593A (en) * | 2019-11-08 | 2020-04-14 | 深圳市麦谷科技有限公司 | Method and device for packaging H.265 video data based on FLV format |
CN111083510A (en) * | 2019-12-18 | 2020-04-28 | 深圳市麦谷科技有限公司 | Method and device for pushing HEVC (high efficiency video coding) video |
CN111683293A (en) * | 2020-05-31 | 2020-09-18 | 杭州视在数科信息技术有限公司 | Method for playing H.265 video across browsers based on HTTP-FLV protocol |
CN112004101A (en) * | 2020-07-31 | 2020-11-27 | 北京琳云信息科技有限责任公司 | Virtual live broadcast data transmission method and device and storage medium |
CN114363662A (en) * | 2022-01-07 | 2022-04-15 | 深圳看到科技有限公司 | Plug flow method, device, terminal and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102098513A (en) * | 2010-12-20 | 2011-06-15 | 北京交通大学 | Real-time transmission method of wireless video |
CN102577403A (en) * | 2009-10-13 | 2012-07-11 | Lg电子株式会社 | Broadcast receiver and 3D video data processing method thereof |
CN104584554A (en) * | 2012-09-26 | 2015-04-29 | 松下电器(美国)知识产权公司 | Image decoding method, image encoding method, image decoding device, image encoding device, and image encoding/decoding device |
CN104754349A (en) * | 2013-12-25 | 2015-07-01 | 炫一下(北京)科技有限公司 | Method and device for hardware decoding of audio/video |
CN104837022A (en) * | 2015-04-29 | 2015-08-12 | 中南大学 | Nerve image data compression method based on HEVC |
CN106412621A (en) * | 2016-09-28 | 2017-02-15 | 广州华多网络科技有限公司 | Video display method and device of network studio, control method and related equipment |
US20170055041A1 (en) * | 2014-05-07 | 2017-02-23 | Daxin Zhu | Interactive acknowledge system and method based on internet communications and streaming media live broadcast |
-
2017
- 2017-06-09 CN CN201710431382.7A patent/CN107147916B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102577403A (en) * | 2009-10-13 | 2012-07-11 | Lg电子株式会社 | Broadcast receiver and 3D video data processing method thereof |
CN102098513A (en) * | 2010-12-20 | 2011-06-15 | 北京交通大学 | Real-time transmission method of wireless video |
CN104584554A (en) * | 2012-09-26 | 2015-04-29 | 松下电器(美国)知识产权公司 | Image decoding method, image encoding method, image decoding device, image encoding device, and image encoding/decoding device |
CN104754349A (en) * | 2013-12-25 | 2015-07-01 | 炫一下(北京)科技有限公司 | Method and device for hardware decoding of audio/video |
US20170055041A1 (en) * | 2014-05-07 | 2017-02-23 | Daxin Zhu | Interactive acknowledge system and method based on internet communications and streaming media live broadcast |
CN104837022A (en) * | 2015-04-29 | 2015-08-12 | 中南大学 | Nerve image data compression method based on HEVC |
CN106412621A (en) * | 2016-09-28 | 2017-02-15 | 广州华多网络科技有限公司 | Video display method and device of network studio, control method and related equipment |
Non-Patent Citations (1)
Title |
---|
爱吃花栗鼠的猫: "srs流媒体服务器(simple rtmp server)如何支持h265", 《简书 HTTPS://WWW.JIANSHU.COM/P/53180774002D》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110087084A (en) * | 2018-01-25 | 2019-08-02 | 联咏科技股份有限公司 | Video process apparatus and method for processing video frequency |
CN110087084B (en) * | 2018-01-25 | 2022-03-18 | 联咏科技股份有限公司 | Video processing apparatus and video processing method |
CN111010593A (en) * | 2019-11-08 | 2020-04-14 | 深圳市麦谷科技有限公司 | Method and device for packaging H.265 video data based on FLV format |
CN111083510A (en) * | 2019-12-18 | 2020-04-28 | 深圳市麦谷科技有限公司 | Method and device for pushing HEVC (high efficiency video coding) video |
CN111683293A (en) * | 2020-05-31 | 2020-09-18 | 杭州视在数科信息技术有限公司 | Method for playing H.265 video across browsers based on HTTP-FLV protocol |
CN112004101A (en) * | 2020-07-31 | 2020-11-27 | 北京琳云信息科技有限责任公司 | Virtual live broadcast data transmission method and device and storage medium |
CN112004101B (en) * | 2020-07-31 | 2022-08-26 | 北京心域科技有限责任公司 | Virtual live broadcast data transmission method and device and storage medium |
CN114363662A (en) * | 2022-01-07 | 2022-04-15 | 深圳看到科技有限公司 | Plug flow method, device, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107147916B (en) | 2021-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11665384B2 (en) | Method and apparatus for transmitting media data in multimedia transport system | |
CN107147916A (en) | A kind of method for transmitting H.265 encoded video data on the level of the transport layer | |
US11805286B2 (en) | Apparatus and method for transmitting/receiving processes of a broadcast signal | |
US11178436B2 (en) | Broadcast signal transmission device, broadcast signal reception device, broadcast signal transmission method, and broadcast signal reception method | |
KR101972951B1 (en) | Method of delivering media data based on packet with header minimizing delivery overhead | |
RU2657473C2 (en) | Transmission device, transmission method, reception device and reception method | |
US9967582B2 (en) | Hybrid delivery method and reception method for MMT packaged SVC video contents | |
KR20190085899A (en) | Interface apparatus and method for transmitting and receiving media data | |
CN104038844B (en) | A kind of mobile live broadcast system based on the standards of MPEG 2 | |
CN108881927A (en) | A kind of video data synthetic method and device | |
TW202032998A (en) | Multiple decoder interface for streamed media data | |
CN106657113B (en) | A kind of conversion method and system of multiplexing protocols in broadcast network | |
KR20130040090A (en) | Apparatus and method for delivering multimedia data in hybrid network | |
CN105191248A (en) | Method and apparatus for packet header compression | |
CN101146212B (en) | Stream media encapsulation and unpacking method and system for video order network | |
EP1936908A1 (en) | Method, apparatus and data container for transferring high resolution audio/video data in a high speed IP network | |
WO2010049312A1 (en) | Data container for transferring high resolution audio/video data in a high speed ip network | |
KR100762718B1 (en) | Preprocessing method for adapting MPEG-4 data streams to the internet network | |
WO2008043213A1 (en) | A mobile multimedia broadcast system for enhancing transmission efficiency by using variable-length frame and thereof method | |
CN104125479B (en) | Video interception system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |