CN113132766B - VBR (visual basic) sending method of TS (transport stream) packaging format - Google Patents

VBR (visual basic) sending method of TS (transport stream) packaging format Download PDF

Info

Publication number
CN113132766B
CN113132766B CN202110285028.4A CN202110285028A CN113132766B CN 113132766 B CN113132766 B CN 113132766B CN 202110285028 A CN202110285028 A CN 202110285028A CN 113132766 B CN113132766 B CN 113132766B
Authority
CN
China
Prior art keywords
code rate
format
data
vbr
udp
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
CN202110285028.4A
Other languages
Chinese (zh)
Other versions
CN113132766A (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.)
Hangzhou Arcvideo Technology Co ltd
Original Assignee
Hangzhou Arcvideo Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Arcvideo Technology Co ltd filed Critical Hangzhou Arcvideo Technology Co ltd
Priority to CN202110285028.4A priority Critical patent/CN113132766B/en
Publication of CN113132766A publication Critical patent/CN113132766A/en
Application granted granted Critical
Publication of CN113132766B publication Critical patent/CN113132766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output

Abstract

The invention discloses a VBR sending method of TS packaging format, comprising the following steps: s10, packaging the audio and video compressed data in a TS format according to the compression code rate; s20, carrying out UDP packaging and sending according to the TS format packaging code rate; s30, when UDP packets are sent, empty packets encapsulated in a TS format are filtered, specifically, TS Header is analyzed according to TS format specifications, and packets with PID of 0x1FFF are directly filtered before UDP transmission, and UDP packets are not sent. The invention can effectively solve the VBR sending problem of the TS packaging format.

Description

VBR (visual basic) sending method of TS (transport stream) packaging format
Technical Field
The invention belongs to the technical field of real-time audio and video processing, and particularly relates to a VBR (visual basic r) sending method of a TS (transport stream) packaging format.
Background
In an audio/video processing system in the broadcast and television field, audio/video compressed data is generally packaged by a Transport Stream (TS) package format, and a User Datagram Protocol (UDP) network (User Datagram Protocol) to perform transmission of an inter-system real-time Stream. The UDP packet is typically sent with a fixed code rate (Constants Bits Rate, CBR), even if the audio-video coding is a dynamic code rate (Variable Bit Rate, VBR), and finally the highest code rate of the coded dynamic code rate is used as the fixed code rate for sending, which generates unnecessary network traffic.
Because the coding data actually generated per second does not reach the highest code rate generally because the coding data is fixedly transmitted according to the highest code rate of the coding, no data can be transmitted instantaneously in the transmission process of UDP data, and the instantaneous output is disconnected, so that the problem that a rear-end IP switcher mistakenly considers the data source is caused, and the data source is directly switched.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a VBR sending method of TS encapsulation format, which is used for detecting TS encapsulation empty packets in UDP data and filtering, thereby solving the problem of empty packet sending cutoff.
In order to solve the technical problems, the invention adopts the following technical scheme:
a VBR transmitting method of TS package format includes the following steps:
s10, packaging the audio and video compressed data in a TS format according to the compression code rate;
s20, carrying out UDP packaging and sending according to the TS format packaging code rate;
s30, when UDP packets are sent, empty packets encapsulated in a TS format are filtered, specifically, TS Header is analyzed according to TS format specifications, and packets with PID of 0x1FFF are directly filtered before UDP transmission, and UDP packets are not sent.
Preferably, in S10, if the audio/video compressed data is CBR encoded with a fixed code rate, the code rate of the TS format encapsulation is defined as CBR multiplied by the floating coefficient, and is used for reserving table information data in the TS format.
Preferably, in S10, if the audio/video compressed data is CBR encoded with a fixed code rate, the code rate of the TS format encapsulation is defined as the sum of the fixed code rate of the audio compressed data and the fixed code rate of the video compressed data multiplied by the floating coefficient, for reserving table information data in the TS format.
Preferably, if the audio and video compressed data is a dynamic code rate VBR code, the code rate of the TS format encapsulation is defined as the sum of the highest code rate of the audio compressed data VBR and the highest code rate of the video compressed data VBR multiplied by the floating coefficient for reserving table information data in the TS format.
The invention has the following beneficial effects:
(1) Because the TS file packaging code rate has a certain floating up compared with the coding code rate, the problem of TS code rate underflow can be effectively solved;
(2) The UDP sending code rate is controlled, so that the problem of packet loss when the UDP sending instantaneous code rate is too high and a back-end system receives the packet is effectively solved;
(3) And the transmission bandwidth is effectively reduced and the network pressure is obviously reduced by filtering TS file encapsulation empty packet transmission.
Drawings
FIG. 1 is a flowchart illustrating steps of a VBR transmitting method of TS encapsulation format according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a TS package format according to an illustrative embodiment of the present invention;
FIG. 3 is a graph of statistical code rate before modification;
FIG. 4 is a graph of statistical code rate after implementation of the method according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flowchart of steps of a VBR transmitting method in a TS package format according to an embodiment of the present invention is shown, which includes the following steps:
s10, packaging the audio and video compressed data in a TS format according to the compression code rate;
s20, carrying out UDP packaging and sending according to the TS format packaging code rate;
s30, when UDP packets are sent, empty packets encapsulated in a TS format are filtered, specifically, TS Header is analyzed according to TS format specifications, and packets with PID of 0x1FFF are directly filtered before UDP transmission, and UDP packets are not sent.
In a specific application example, in S10, if the audio/video compressed data is CBR encoded with a fixed code rate, the code rate of the TS format encapsulation is defined as the sum of the fixed code rate of the audio compressed data and the fixed code rate of the video compressed data multiplied by the floating coefficient, and is used for reserving table information data in the TS format, that is: TS format encapsulation rate= (fixed rate of video compressed data+fixed rate of audio compressed data) ×r, where R > 1.
If the audio/video compressed data is the dynamic code rate VBR code, the code rate of TS format encapsulation is defined as the sum of the highest code rate of the audio compressed data VBR and the highest code rate of the video compressed data VBR multiplied by the floating coefficient, and the floating coefficient is used for reserving the table information data of TS format, and is used for reserving the table information data of TS format, namely: TS format encapsulation code rate= (highest code rate of video compression data dynamic code rate + highest code rate of audio data dynamic code rate) ×r, where R > 1.
Meanwhile, for TS format encapsulation, a standard format is adopted, a transmission packet stream comprises a plurality of encapsulated TS messages, each TS message comprises a message header and a load, and the total size of the TS messages is 188 bytes. The header includes a fixed length portion and an optional portion, the optional portion including an adaptation field. As shown in fig. 2, the fixed part includes 8-bit sync bytes, 1-bit transmission error indication bits, 1-bit transmission priority, 13-bit Packet ID (PID), 2-bit transmission scrambling control, 2-bit adaptation field presence flag, 4-bit continuity counter. For the PID part, the stuffing content of the PID part is different to represent messages with different contents, and the messages are shown in table 1.
Table 1 TS package type
Figure BDA0002979838780000041
In a specific application example, the specific implementation process of S20 is as follows: setting the data quantity transmitted by UDP in each package, setting the transmission starting time, obtaining the current time, calculating the data quantity required to be transmitted from the transmission starting time to the current time through TS package code rate, and transmitting fixed-length data if the current data quantity required to be transmitted exceeds the transmitted data quantity.
In a specific application example, in S30, as shown in table 1, one type of TS encapsulated packet is a null packet (PID is 0x1 FFF), and the null packet is used for filling the encapsulation code rate of the TS format, and is not generally used for a decoder of the back-end system, so that a packet with the type of null packet is filtered directly before UDP is sent, and a packet with the type of non-null packet is sent out, so that data which is originally sent with a fixed code rate (CBR) is changed into data with a dynamic code rate (VBR) to be sent, and meanwhile, decoding of the back-end system is not affected.
The test statistics are sent by using the VBR with the 55M code rate, the statistical code rate curve before modification is shown in fig. 3, the statistical code rate curve after the implementation of the method in the embodiment of the invention is shown in fig. 4, the statistical code rate of the UDP flow is received from the rear end, the bandwidth occupation of the previous sending code rate is about 50M, the bandwidth occupation is obviously reduced to about 30-40M after modification, the data null condition does not appear, and the effect is obviously improved.
It should be understood that the exemplary embodiments described herein are illustrative and not limiting. Although one or more embodiments of the present invention have been described with reference to the accompanying drawings, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the following claims.

Claims (1)

1. A VBR transmission method of a TS encapsulation format, comprising the steps of:
s10, packaging the audio and video compressed data in a TS format according to the compression code rate; if the audio/video compressed data is CBR encoded with a fixed code rate, the code rate of the TS format encapsulation is defined as the sum of the fixed code rate of the audio compressed data and the fixed code rate of the video compressed data multiplied by the floating coefficient, and is used for reserving table information data in the TS format; if the audio and video compressed data is the dynamic code rate VBR code, the code rate of TS format encapsulation is defined as the sum of the highest code rate of the audio compressed data VBR and the highest code rate of the video compressed data VBR multiplied by the floating coefficient, and the floating coefficient is used for reserving table information data in TS format;
s20, carrying out UDP packaging and sending according to the TS format packaging code rate; setting the data quantity transmitted by UDP in each package, setting the transmission starting time, obtaining the current time, calculating the data quantity required to be transmitted from the transmission starting time to the current time through TS package code rate, and transmitting fixed-length data if the current data quantity required to be transmitted exceeds the transmitted data quantity;
s30, when UDP packets are sent, empty packets encapsulated in a TS format are filtered, specifically, according to TS format specifications, TSHeader is analyzed, packets with PID of 0x1FFF are directly filtered before UDP transmission, and UDP packets are not sent.
CN202110285028.4A 2021-03-17 2021-03-17 VBR (visual basic) sending method of TS (transport stream) packaging format Active CN113132766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110285028.4A CN113132766B (en) 2021-03-17 2021-03-17 VBR (visual basic) sending method of TS (transport stream) packaging format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110285028.4A CN113132766B (en) 2021-03-17 2021-03-17 VBR (visual basic) sending method of TS (transport stream) packaging format

Publications (2)

Publication Number Publication Date
CN113132766A CN113132766A (en) 2021-07-16
CN113132766B true CN113132766B (en) 2023-05-23

Family

ID=76773271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110285028.4A Active CN113132766B (en) 2021-03-17 2021-03-17 VBR (visual basic) sending method of TS (transport stream) packaging format

Country Status (1)

Country Link
CN (1) CN113132766B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205135A (en) * 2021-12-07 2022-03-18 国微集团(深圳)有限公司 TS stream processing method and TS stream processing system of decryption device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146212A (en) * 2006-09-11 2008-03-19 思华科技(上海)有限公司 Stream media encapsulation and unpacking method and system for video order network
CN107113321A (en) * 2015-01-07 2017-08-29 三星电子株式会社 Transmission equipment and receiving device and their signal processing method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101959062B (en) * 2010-05-13 2012-07-25 北京创毅视讯科技有限公司 Data transmission method, system and device for mobile multimedia broadcasting system
CN103329514B (en) * 2010-11-23 2016-08-31 Lg电子株式会社 Broadcast singal sends the broadcast singal receiving/transmission method in equipment, broadcasting signal receiving and broadcast singal transmitting and receiving device
CN105657480B (en) * 2015-12-31 2020-07-14 惠州市伟乐科技股份有限公司 Method and device for adjusting TS stream code rate in fractional times
TWI692233B (en) * 2018-12-19 2020-04-21 財團法人工業技術研究院 Collaborative transmission method and transmission device based on udp and tcp connections

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146212A (en) * 2006-09-11 2008-03-19 思华科技(上海)有限公司 Stream media encapsulation and unpacking method and system for video order network
CN107113321A (en) * 2015-01-07 2017-08-29 三星电子株式会社 Transmission equipment and receiving device and their signal processing method

Also Published As

Publication number Publication date
CN113132766A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
KR101292490B1 (en) Rtp payload format for vc-1
CN105357592B (en) A kind of streaming media self-adapting transmitting selective frame losing method
CA2475044C (en) Time-slice signaling for broadband digital broadcasting
US7984179B1 (en) Adaptive media transport management for continuous media stream over LAN/WAN environment
KR100556911B1 (en) Video data format for wireless video streaming service
CN102143367B (en) Method, device and system for checking error correction
KR102117445B1 (en) Method and apparatus for packet header compression
KR101835340B1 (en) Apparatus for transmitting broadcast signal, apparatus for receiving broadcast signal, method for transmitting broadcast signal and method for receiving broadcast signal
CN107147916B (en) Method for transmitting H.265 coding video data on transmission layer
CN101146212B (en) Stream media encapsulation and unpacking method and system for video order network
CN104980819A (en) Video transmission method and device
CN113132766B (en) VBR (visual basic) sending method of TS (transport stream) packaging format
CN113316028B (en) Screen projection method, screen projection equipment and storage medium
EP2099193B1 (en) Data transport container for transferring data in a high speed internet protocol network
JP2004007480A (en) Packet transfer apparatus and its method for multimedia streaming service
CN109862400B (en) Streaming media transmission method, device and system
CN101521813A (en) Method and device for processing media stream
CN103313045A (en) H.264 video sub-packaging method of dispatching desk of wideband multimedia trunking system
WO2023045364A1 (en) Image display method and apparatus, and storage medium and electronic apparatus
CN102427531A (en) Cross-layer interactive image quality continuous adjustable real-time video coding and decoding method
CN114979093A (en) Data transmission method, device, equipment and medium based on RTP
KR100631516B1 (en) Streaming system and adaptive band allocation method
Wu et al. MPEG4 compressed video over the Internet
JPH10303910A (en) Multimedia information distribution method and distribution system
CN114979092B (en) RTP-based data transmission method, device, equipment and medium

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