CN113132766A - VBR (video base layer) sending method in TS (transport stream) packaging format - Google Patents
VBR (video base layer) sending method in TS (transport stream) packaging format Download PDFInfo
- Publication number
- CN113132766A CN113132766A CN202110285028.4A CN202110285028A CN113132766A CN 113132766 A CN113132766 A CN 113132766A CN 202110285028 A CN202110285028 A CN 202110285028A CN 113132766 A CN113132766 A CN 113132766A
- Authority
- CN
- China
- Prior art keywords
- format
- vbr
- data
- udp
- encapsulation
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/266—Channel 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/2662—Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- 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/22—Parsing or analysis of headers
-
- 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/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods 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/146—Data rate or code amount at the encoder output
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Computer Security & Cryptography (AREA)
- Databases & Information Systems (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention discloses a VBR (video base layer) sending method in a TS (transport stream) encapsulation format, which comprises the following steps of: s10, performing TS format encapsulation on the audio and video compressed data according to the compression code rate; s20, according to the TS format packaging code rate, carrying out UDP packaging and sending; s30, when UDP is packed and sent, empty packets packaged in TS format are filtered, TS Header is analyzed according to TS format specification, packets with PID being 0x1FFF are directly filtered before UDP is sent, and UDP is not packed and sent. The invention can effectively solve the problem of VBR transmission in the TS encapsulation format.
Description
Technical Field
The invention belongs to the technical field of real-time audio and video processing, and particularly relates to a VBR (visual basic) sending method in a TS (transport stream) packaging format.
Background
In an audio/video processing system in the field of radio and television, audio/video compressed data is generally packaged in a TS (Transport Stream) encapsulation format and a UDP (User data packet Protocol) network, and real-time Stream transmission between systems is performed. The UDP packet is generally transmitted through a fixed Bit Rate (CBR), and even if the audio/video coding is a dynamic Bit Rate (VBR), the UDP packet is finally transmitted with the highest Bit Rate of the dynamic Bit Rate as the fixed Bit Rate, which generates unnecessary network traffic.
Because the data is fixedly transmitted according to the highest code rate of the codes, the coded data actually generated per second generally cannot reach the highest code rate, so that no data can be transmitted instantaneously in the transmission process of the UDP data, and the stream is output instantaneously and interrupted, so that the back-end IP switcher mistakenly considers the problem of the data source and directly switches the data source.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a VBR sending method in a TS encapsulation format, which is used for detecting TS encapsulation empty packets in UDP data, filtering the TS encapsulation empty packets and solving the problem of empty packet sending cutoff.
In order to solve the technical problems, the invention adopts the following technical scheme:
a VBR sending method of a TS encapsulation format comprises the following steps:
s10, performing TS format encapsulation on the audio and video compressed data according to the compression code rate;
s20, according to the TS format packaging code rate, carrying out UDP packaging and sending;
s30, when UDP is packed and sent, empty packets packaged in TS format are filtered, TS Header is analyzed according to TS format specification, packets with PID being 0x1FFF are directly filtered before UDP is sent, and UDP is not packed and sent.
Preferably, in S10, if the audio/video compressed data is fixed-rate CBR encoding, the code rate of the TS format encapsulation is determined as CBR multiplied by the floating coefficient, and is used to reserve table information data in the TS format.
Preferably, in S10, if the audio/video compressed data is fixed-rate CBR encoding, the rate of TS format encapsulation is determined as the sum of the fixed rate of the audio compressed data and the fixed rate of the video compressed data multiplied by the floating coefficient, and is used to reserve table information data in the TS format.
Preferably, if the audio/video compressed data is coded with a dynamic bit rate VBR, the bit rate of the TS format encapsulation is determined as the sum of the highest bit rate of the audio compressed data VBR and the highest bit rate of the video compressed data VBR multiplied by a floating coefficient, and is used for reserving table information data in the TS format.
The invention has the following beneficial effects:
(1) the TS file packaging code rate has certain upward floating compared with the coding code rate, so that the problem of TS code rate underflow can be effectively solved;
(2) the control of UDP sending code rate effectively solves the problems that the UDP sending instantaneous code rate is too high and a back-end system receives packet loss;
(3) and the TS file is filtered to encapsulate the empty packet for sending, so that the transmission bandwidth is effectively reduced, and the network pressure is obviously reduced.
Drawings
Fig. 1 is a flowchart illustrating steps of a VBR sending method in a TS encapsulation format according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a TS encapsulation format according to an 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 the method of the embodiment of the invention is implemented.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart illustrating steps of a VBR sending method in a TS encapsulation format according to an embodiment of the present invention is shown, where the method includes the following steps:
s10, performing TS format encapsulation on the audio and video compressed data according to the compression code rate;
s20, according to the TS format packaging code rate, carrying out UDP packaging and sending;
s30, when UDP is packed and sent, empty packets packaged in TS format are filtered, TS Header is analyzed according to TS format specification, packets with PID being 0x1FFF are directly filtered before UDP is sent, and UDP is not packed and sent.
In a specific application example, in S10, if the audio/video compressed data is CBR encoded with a fixed bit rate, the bit rate of the TS format encapsulation is determined as the sum of the fixed bit rate of the audio compressed data and the fixed bit 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: the TS format packing rate (fixed rate of video compressed data + fixed rate of audio compressed data) R, where R > 1.
If the audio and video compressed data is coded with a dynamic code rate VBR, the code rate packaged in the TS format is determined 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 a floating coefficient, and the code rate is used for reserving table information data in the TS format and table information data in the TS format, namely: and the TS format packaging code rate is (the highest code rate of the dynamic code rate of the video compression data + the highest code rate of the dynamic code rate of the audio data) R, wherein R is more than 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 is 188 bytes. The message header includes a fixed length portion and an optional portion, the optional portion including an adaptation field. As shown in fig. 2, the fixed portion 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 existence flag, and 4-bit continuity counter. For the PID part, the messages with different filling contents representing different contents are specifically shown in table 1.
Table 1 TS encapsulation packet type
In a specific application example, the specific execution process of S20 is as follows: setting the data volume of UDP packet transmission each time, setting the transmission starting time, acquiring the current time, calculating the data volume required to be transmitted from the transmission starting time to the current time through the TS packaging code rate, and transmitting the fixed-length data if the data volume required to be transmitted currently exceeds the transmitted data volume.
In a specific application example, in S30, as shown in table 1, one of the TS encapsulation packet types is a null packet (PID is 0x1FFF), and the null packet is used to fill the TS format encapsulation code rate and is not generally used by a back-end system decoder, so that the packet of the type null packet is directly filtered before UDP transmission, and the packet of the non-null packet type is transmitted, so that data that is originally transmitted at a fixed code rate (CBR) is changed into dynamic code rate (VBR) transmission, and the decoding of the back-end system is not affected.
Sending test statistics by using a VBR with a 55M code rate, wherein FIG. 3 is a statistical code rate curve before modification, and FIG. 4 is a statistical code rate curve after the method of the embodiment of the invention is implemented, and as can be seen from the statistical code rate of receiving the UDP flow from the rear end, the bandwidth occupation of the previous sending code rate is about 50M, the bandwidth occupation after modification is obviously reduced to about 30-40M, and a data transmission empty condition does not occur, so that the effect is obviously improved.
It is to be understood that the exemplary embodiments described herein are illustrative and not restrictive. 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 (4)
1. A VBR sending method in a TS packaging format is characterized by comprising the following steps:
s10, performing TS format encapsulation on the audio and video compressed data according to the compression code rate;
s20, according to the TS format packaging code rate, carrying out UDP packaging and sending;
s30, when UDP is packed and sent, empty packets packaged in TS format are filtered, TS Header is analyzed according to TS format specification, packets with PID being 0x1FFF are directly filtered before UDP is sent, and UDP is not packed and sent.
2. The VBR transmitting method of claim 1, wherein in S10, if the audio/video compressed data is CBR encoded at a fixed bit rate, the bit rate of the TS format encapsulation is determined by multiplying a sum of the fixed bit rate of the audio compressed data and the fixed bit rate of the video compressed data by a floating coefficient, and is used to reserve table information data in the TS format.
3. The VBR transmitting method in a TS encapsulation format according to claim 1, wherein in S10, if the audio/video compressed data is dynamic bitrate VBR coding, the bitrate in the TS encapsulation is determined by multiplying a sum of a highest bitrate of the audio compressed data VBR and a highest bitrate of the video compressed data VBR by a lifting coefficient for reserving table information data in the TS format.
4. The VBR transmitting method of claim 1, wherein in S20, the amount of data to be transmitted per UDP packet is set, the transmission start time is set, the current time is obtained, the amount of data to be transmitted from the start of transmission to the current time is calculated by the TS encapsulation rate, and if the amount of data to be transmitted currently exceeds the amount of data already transmitted, fixed-length data is transmitted.
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 true CN113132766A (en) | 2021-07-16 |
CN113132766B 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) |
Cited By (1)
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 (6)
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 |
CN101959062A (en) * | 2010-05-13 | 2011-01-26 | 北京创毅视讯科技有限公司 | Data transmission method, system and device for China mobile multimedia broadcasting (CMMB) system |
CN103329514A (en) * | 2010-11-23 | 2013-09-25 | Lg电子株式会社 | Broadcast signal transmitting apparatus, broadcast signal receiving apparatus, and broadcast signal transceiving method in broadcast signal transmitting and receiving apparatuses |
CN105657480A (en) * | 2015-12-31 | 2016-06-08 | 惠州市伟乐科技股份有限公司 | Method and device for fractionally adjusting TS stream bit rate |
CN107113321A (en) * | 2015-01-07 | 2017-08-29 | 三星电子株式会社 | Transmission equipment and receiving device and their signal processing method |
US20200205027A1 (en) * | 2018-12-19 | 2020-06-25 | Industrial Technology Research Institute | Collaborative transmission method and transmission device based on udp and tcp connections |
-
2021
- 2021-03-17 CN CN202110285028.4A patent/CN113132766B/en active Active
Patent Citations (7)
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 |
CN101959062A (en) * | 2010-05-13 | 2011-01-26 | 北京创毅视讯科技有限公司 | Data transmission method, system and device for China mobile multimedia broadcasting (CMMB) system |
CN103329514A (en) * | 2010-11-23 | 2013-09-25 | Lg电子株式会社 | Broadcast signal transmitting apparatus, broadcast signal receiving apparatus, and broadcast signal transceiving method in broadcast signal transmitting and receiving apparatuses |
CN106027578A (en) * | 2010-11-23 | 2016-10-12 | Lg电子株式会社 | Broadcast signal transmitting apparatus and broadcast signal transmitting method |
CN107113321A (en) * | 2015-01-07 | 2017-08-29 | 三星电子株式会社 | Transmission equipment and receiving device and their signal processing method |
CN105657480A (en) * | 2015-12-31 | 2016-06-08 | 惠州市伟乐科技股份有限公司 | Method and device for fractionally adjusting TS stream bit rate |
US20200205027A1 (en) * | 2018-12-19 | 2020-06-25 | Industrial Technology Research Institute | Collaborative transmission method and transmission device based on udp and tcp connections |
Cited By (1)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN113132766B (en) | 2023-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101292490B1 (en) | Rtp payload format for vc-1 | |
CN102143367B (en) | Method, device and system for checking error correction | |
US5652749A (en) | Apparatus and method for segmentation and time synchronization of the transmission of a multiple program multimedia data stream | |
CN106341738B (en) | Bandwidth calculation method, server side and system for streaming media network transmission | |
RU2369040C2 (en) | Buffering during data streaming | |
CN1164082C (en) | Radio communication system using for video group transmission | |
KR100556911B1 (en) | Video data format for wireless video streaming service | |
KR101835340B1 (en) | Apparatus for transmitting broadcast signal, apparatus for receiving broadcast signal, method for transmitting broadcast signal and method for receiving broadcast signal | |
RU2004118718A (en) | METHOD FOR PROVIDING VIDEO DATA STREAM SERVICE | |
CN110312147A (en) | Method, system and the storage medium of business data transmission | |
CN110224793B (en) | Self-adaptive FEC method based on media content | |
CN101562615A (en) | Transmission method for MPEG-4 code based multimedia data stream self-adapting network bandwidth | |
CN112804264B (en) | Method, system and equipment for self-adaptive switching of multiple coding standards and transmission interfaces | |
CN101521813B (en) | Method and device for processing media stream | |
CN101146212A (en) | Stream media encapsulation and unpacking method and system for video order network | |
CN113316028B (en) | Screen projection method, screen projection equipment and storage medium | |
JP2004007480A (en) | Packet transfer apparatus and its method for multimedia streaming service | |
CN104394117A (en) | RTP packet transmission method and device | |
CN113132766A (en) | VBR (video base layer) sending method in TS (transport stream) packaging format | |
CN109862400B (en) | Streaming media transmission method, device and system | |
CN103313045A (en) | H.264 video sub-packaging method of dispatching desk of wideband multimedia trunking system | |
CN114979093B (en) | RTP-based data transmission method, device, equipment and medium | |
CN101159667B (en) | Method of performing packet compression to packet data of mobile multimedia broadcasting system | |
CN1399445A (en) | Redundant transmission method of data message package of IP fax gateway user | |
CN103096049A (en) | Video processing method and system and associated equipment |
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 |