CN102932378A - RTP (Real-time Transport Protocol)-based stream media transmission method in 3G network - Google Patents

RTP (Real-time Transport Protocol)-based stream media transmission method in 3G network Download PDF

Info

Publication number
CN102932378A
CN102932378A CN2012104942169A CN201210494216A CN102932378A CN 102932378 A CN102932378 A CN 102932378A CN 2012104942169 A CN2012104942169 A CN 2012104942169A CN 201210494216 A CN201210494216 A CN 201210494216A CN 102932378 A CN102932378 A CN 102932378A
Authority
CN
China
Prior art keywords
rtp
client
rtcp
bag
network
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.)
Pending
Application number
CN2012104942169A
Other languages
Chinese (zh)
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.)
Hohai University HHU
Original Assignee
Hohai University HHU
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 Hohai University HHU filed Critical Hohai University HHU
Priority to CN2012104942169A priority Critical patent/CN102932378A/en
Publication of CN102932378A publication Critical patent/CN102932378A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a RTP (Real-time Transport Protocol)-based stream media transmission method in a 3G (The 3rd Generation Telecommunication) network. After receiving a request, a server generates two UDP (User Datagram Protocol) channels including a RTP channel and a RTCP (Real-time Transport Control Protocol) channel between a client and the server, and then the transmission of a stream media on the 3G network can be realized by a multithreading mechanism, wherein the server comprises the following 3 threads of: 1. generating and transmitting RTP packets, packing the RTP packets in a UDP packet, and transmitting to a client by multiplexing; 2. periodically transmitting RTCP packets; and 3. monitoring the RTCP packets transmitted from the client, wherein the client also has 3 corresponding threads. After receiving the RTP packets, a receiving end firstly analyzes RTP packet headers, judges the validity of information about versions, lengths and load types, updates RTP information of a buffer region, carries out information source synchronization according to a RTP time stamp, packet serial numbers and the like, clears up the RTP packet numbers and reconfigures video frames; and finally, the decoding is carried out according to load type identifiers, and data are placed into a buffer memory to be decoded and output by a decoder.

Description

A kind of based on flow-medium transmission method in the 3G network of RTP
Technical field
The present invention relates to a kind ofly based on flow-medium transmission method in the 3G network of RTP, belong to the mobile communication network multimedia technical field of data transmission.
Background technology
Along with the development of 3 G mobile communication network technology, the enhancing of mobile terminal function and mobile service application content abundant, people's routine work and life will be greatly enriched in various wireless applications.In recent years, from the note to the multimedia message, CAI e, CRBT, mobile phone games etc., the kind of mobile value-added service becomes increasingly abundant.But what all in all, current mobile communications network provided mainly is the static content as leading take image and literal.Development along with the 3G network mobile data services, the particularly lifting of Internet Transmission quality and bandwidth, for the development of mobile flow medium service provides powerful technical guarantee, make and merge voice, literal, image variform, the mobile flow medium services such as more very impressive mobile TV, video request program are provided for the user, become the inexorable trend of mobile value-added service development.Mobile flow medium service is exactly a kind of new business that has much attraction of arising at the historic moment in this case.
Current, some mobile flow medium services can realize at the 2.5G network that 3G network will provide more effective support for the mobile flow medium service development.Because 3G network has higher message transmission rate and data service enabling capabilities, 3G operator not only can provide high-quality speech business to the user, but also the streaming media service of two-forty can be provided.From the whole world, along with the quickening of the commercial process of 3G, the released one after another video traffic of movement-based stream media technology of some mobile operator of Japan and Korea S and European and American areas, mobile flow medium service has become core business and the focus business of 3G network.Streaming media service requires high bandwidth, and the opposite end is responsive to terminal delay time, and delay variation and packet loss are had corresponding requirement, so streaming media service quality is one and at first needs the problem that solves in the wireless network.
Present Streaming Media mainly is transmitted as the basis with bag and carries out interrupted asynchronous transmission, media file to a real-time media source or storage, they will be broken down into many bags in transmission, because network is dynamic change, the route that each bag is selected may be not quite similar, just do not wait so arrive the time delay of client yet, in addition the packet of sending out first also might after arrive.The realization of stream transmission needs suitable host-host protocol.
The MPEG-4 standard becomes main form and the standard of multimedia transmission on present and the next generation network with its high compression rate, high-quality.RTP (RTP) is a kind of RTP that end-to-end transmission service is provided, to support transmitting real-time data in the service of single goal and Multicast net, it is a host-host protocol for multimedia data stream, pay attention to the transport layer protocol of high reliability data transmission with tradition and compare, it lays particular emphasis on the real-time of transfer of data more.
The key that realizes the MPEG-4 streaming media is how its media data to be packaged into the RTP bag.RFC3016 has described the direct burst of the audio-visual data of MPEG-4 and has been mapped to method in the RTP bag.Use Session Description Protocol (SDP) to come the attribute of designated tone video flowing.For video, this packing rule thinks preferably a complete VOP to be encapsulated in the RTP bag that take video object plane (VOP) as the encapsulation elementary cell timestamp of RTP packet header just can reflect its time structure well like this.But also permission is encapsulated into a plurality of complete little VOP in 1 RTP bag and encapsulates load to reduce simultaneously, and large VOP is divided in the different RTP bags.
Aspect the transmission package encapsulation:
Because MPEG-4 is to the independent encoding and decoding of each VOP, it is not only efficient but also take full advantage of the encoding characteristics of MPEG-4 therefore to pack take VOP as unit.In order not cause ip fragmentation, Bao Changying to be no more than the MTU (Maxium Transit Unit, MTU) of this network path.Consider the high efficiency of transmission and the robustness of packet loss, get the smaller value in the current VOP size of Bao Changwei and the path mtu value.The pseudo-code that RTP seals dress MPEG-4 data is expressed as follows:
While (the MPEG-4 data flow finishes front)
{ if (finding next VOP initial code)
{ if (the path mtu value of current section length<=removal header fields length)
{ this segment data is squeezed into the RTP bag }
else
{ macro block as much as possible is squeezed into the RTP bag }
else
{ to the remaining data packing }
…?…
Hop:
The rtp stack that the transmission of data adopts Open Source Code JRTPLIB function library to provide realizes that up-to-date JRTPLIB encapsulates the realization of RFC3550 (IETF is to the draft of RTP).Consider to select RTP/RTCP that the real-time streams service is provided.Wherein the task of server end provides configuration interface, finishes the monitor both transactions such as audio, video data collection, event-monitoring, and and client communication, send media data and notification message.From client application, server end comprises remotely administered server and media server.The former is responsible for receiving control command, the feedback server state; The latter is responsible for transmission of media data.Client can receive the media data that transmits from media server, but not directly media server is configured.
Summary of the invention
Technical problem to be solved by this invention is for background technology, proposes a kind of streaming media method for designing partly based on the 3G network transmission, and emphasis improves data packet form and the host-host protocol of hop.
The present invention is for solving the problems of the technologies described above by the following technical solutions:
A kind of based on flow-medium transmission method in the 3G network of RTP, after server is receiving request of data, between the client and server end, set up 2 UDP passages, that is: RTP passage and RTCP passage, then adopt multi-thread mechanism to realize the transmission of Streaming Media on 3G network, specific as follows:
Step (1) is produced and is wrapped to client transmissions RTP by server end, and described RTP seals and installs in the UDP bag through the multiplexed client that passes to of RTP passage; Simultaneously, server end adopts RTCP channel period ground to send the RTCP bag to client;
Step (2), client is from the RTP passage RTP bag sent of reception server end constantly; Simultaneously, receive the RTCP bag that sends from server end by the RTCP passage, and periodically return the RTCP bag that contains the client statistical information to server by the RTCP passage;
Step (3), the RTCP bag that server end returns by RTCP passage real-time listening client.
Further, as of the present invention a kind of based on flow-medium transmission method in the 3G network of RTP, after the RTP that client sends to server end wraps:
At first analyze RTP packet header, the validity of the version of judgement files in stream media, length, loadtype, the RTP information of renewal buffering area; Described RTP information comprises byte number, video frame number, bag number, serial number;
Then it is synchronous to carry out information source according to RTP timestamp and packet number, arrangement RTP bag order, reconstructing video frame;
Decode according to the loadtype sign at last, data are put into buffer memory for decoder decoding output.
The present invention adopts above technical scheme compared with prior art, has following technique effect:
(1) client periodically contains the RTCP bag of client statistical information to server feedback, has reduced greatly the possibility of Network Packet Loss, has improved the reliability of transmission.
(2) owing to added RTP timestamp and packet number in the packet in the transmission course, so both guarantee the real-time of streaming media, also guaranteed the order integrality of client acceptance bag, made things convenient for the order of client to unpack and play.
Description of drawings
Fig. 1 is the hop frame diagram.
Fig. 2 is based on the streaming media block diagram of RTP.
Embodiment
Below in conjunction with accompanying drawing technical scheme of the present invention is described in further detail:
As shown in Figure 1, be the transport frame schematic diagram of existing 3G network, client is undertaken alternately by 3G network and server end, realizes the contact communication of data.
As shown in Figure 2, server produces 2 UDP passages between client-server after receiving request, be RTP passage and RTCP passage.
By adopting multi-thread mechanism, wherein server has 3 main threads:
The 1st thread: produce and transmission RTP bag, RTP seals and installs in the UDP bag through the multiplexed client computer that passes to.
The 2nd thread: periodically send the RTCP bag.
The 3rd thread: monitor the RTCP bag that client computer is sent.
Client computer has 3 main threads:
The 1st thread: receive all the time the RTP bag, peel off UDP/IP packet header and obtain the RTP bag, remove RTP packet header and obtain initial muxrtp bag, played behind these muxrtp bag processes MPEG-4 files in stream media decoder.
The 2nd thread: receive the RTCP bag from server end.
The 3rd thread: periodically send the RTCP bag that contains the client computer statistical information to server.
Receiving terminal is at first analyzed RTP packet header after receiving RTP bag, judges the validity of the information such as version, length, loadtype, upgrades the RTP information of buffering area, as the information such as the byte number of receiving, video frame number, bag number, serial number; Then it is synchronous to carry out information source according to RTP timestamp and packet number etc., arrangement RTP bag order, reconstructing video frame; Decode according to the loadtype sign at last, data are put into buffer memory for decoder decoding output.

Claims (3)

1. one kind based on flow-medium transmission method in the 3G network of RTP, it is characterized in that: after server is receiving request of data, between the client and server end, set up 2 UDP passages, that is: RTP passage and RTCP passage, then adopt multi-thread mechanism to realize the transmission of Streaming Media on 3G network, specific as follows:
Step (1) is produced and is wrapped to client transmissions RTP by server end, and described RTP seals and installs in the UDP bag through the multiplexed client that passes to of RTP passage; Simultaneously, server end adopts RTCP channel period ground to send the RTCP bag to client;
Step (2), client is from the RTP passage RTP bag sent of reception server end constantly; Simultaneously, receive the RTCP bag that sends from server end by the RTCP passage, and periodically return the RTCP bag that contains the client statistical information to server by the RTCP passage;
Step (3), the RTCP bag that server end returns by RTCP passage real-time listening client.
2. according to claim 1 based on flow-medium transmission method in the 3G network of RTP, it is characterized in that: after the RTP that client sends to server end wraps, carry out following steps:
Step a at first analyzes RTP packet header, the validity of the version of judgement files in stream media, length, loadtype, the RTP information of renewal buffering area;
Step b, it is synchronous then to carry out information source according to RTP timestamp and packet number, arrangement RTP bag order, reconstructing video frame;
Step c decodes according to the loadtype sign at last, and data are put into buffer memory for decoder decoding output.
3. according to claim 2 based on flow-medium transmission method in the 3G network of RTP, it is characterized in that: described RTP information comprises byte number, video frame number, bag number, serial number.
CN2012104942169A 2012-11-28 2012-11-28 RTP (Real-time Transport Protocol)-based stream media transmission method in 3G network Pending CN102932378A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104942169A CN102932378A (en) 2012-11-28 2012-11-28 RTP (Real-time Transport Protocol)-based stream media transmission method in 3G network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104942169A CN102932378A (en) 2012-11-28 2012-11-28 RTP (Real-time Transport Protocol)-based stream media transmission method in 3G network

Publications (1)

Publication Number Publication Date
CN102932378A true CN102932378A (en) 2013-02-13

Family

ID=47647080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104942169A Pending CN102932378A (en) 2012-11-28 2012-11-28 RTP (Real-time Transport Protocol)-based stream media transmission method in 3G network

Country Status (1)

Country Link
CN (1) CN102932378A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613409A (en) * 2017-09-27 2018-01-19 京信通信系统(中国)有限公司 The processing method and processing device of multi-medium data
CN108200481A (en) * 2017-12-07 2018-06-22 北京佳讯飞鸿电气股份有限公司 A kind of RTP-PS method for stream processing, device, equipment and storage medium
CN109495855A (en) * 2018-11-28 2019-03-19 南通先进通信技术研究院有限公司 A kind of core network signalling processing unit
CN114422589A (en) * 2020-10-12 2022-04-29 中国移动通信有限公司研究院 Data transmission method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115011A (en) * 2007-06-28 2008-01-30 恒生电子股份有限公司 Stream media playback method, device and system
CN101150763A (en) * 2007-10-18 2008-03-26 中兴通讯股份有限公司 A terminal and method for testing real time service transmission performance of WiMAX network
CN101505420A (en) * 2008-12-02 2009-08-12 深圳市同洲电子股份有限公司 Encapsulation method for video compression data
CN101938488A (en) * 2010-09-14 2011-01-05 深圳市融创天下科技发展有限公司 Playing method, device, system, proxy server and mobile terminal of streaming media

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115011A (en) * 2007-06-28 2008-01-30 恒生电子股份有限公司 Stream media playback method, device and system
CN101150763A (en) * 2007-10-18 2008-03-26 中兴通讯股份有限公司 A terminal and method for testing real time service transmission performance of WiMAX network
CN101505420A (en) * 2008-12-02 2009-08-12 深圳市同洲电子股份有限公司 Encapsulation method for video compression data
CN101938488A (en) * 2010-09-14 2011-01-05 深圳市融创天下科技发展有限公司 Playing method, device, system, proxy server and mobile terminal of streaming media

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613409A (en) * 2017-09-27 2018-01-19 京信通信系统(中国)有限公司 The processing method and processing device of multi-medium data
CN108200481A (en) * 2017-12-07 2018-06-22 北京佳讯飞鸿电气股份有限公司 A kind of RTP-PS method for stream processing, device, equipment and storage medium
CN108200481B (en) * 2017-12-07 2020-12-15 北京佳讯飞鸿电气股份有限公司 RTP-PS stream processing method, device, equipment and storage medium
CN109495855A (en) * 2018-11-28 2019-03-19 南通先进通信技术研究院有限公司 A kind of core network signalling processing unit
CN114422589A (en) * 2020-10-12 2022-04-29 中国移动通信有限公司研究院 Data transmission method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
JP6422527B2 (en) Data receiving method and apparatus in multimedia system
KR101972951B1 (en) Method of delivering media data based on packet with header minimizing delivery overhead
JP6290950B2 (en) Method for receiving media data in a multimedia transmission system
CN101888378B (en) Multi-screen fusing system based on telephone network, broadcast and television network and internet and method thereof
CN100568971C (en) The transmission code stream of a kind of MPEG-4 is to the real time conversion method of internet stream media alliance stream
CN109788314A (en) A kind of method and apparatus of video stream data transmission
KR20140009315A (en) Apparatus and method for transmitting multimedia frame in broadcast system
WO2007045140A1 (en) A real-time method for transporting multimedia data
CN109462761A (en) A kind of video encoding/decoding method and device
CN101924742A (en) Media transmission method and equipment, and media storage method and equipment
CN104079870A (en) Video monitoring method and system for single-channel video and multiple-channel audio frequency
CN102932378A (en) RTP (Real-time Transport Protocol)-based stream media transmission method in 3G network
KR102518817B1 (en) Broadcast signal transmission apparatus, broadcast signal reception apparatus, broadcast signal transmission method, and broadcast signal reception method
CN108632679B (en) A kind of method that multi-medium data transmits and a kind of view networked terminals
CN105007465A (en) Cipher-text H264 video live-broadcasting and on-demand platform based on live555 frame and ffmpeg library
EP2312826A2 (en) Network device, information processing apparatus, stream switching method, information processing method, program, and content distribution system
CN108881958A (en) A kind of multimedia data stream packaging method and device
WO2008022499A1 (en) A packetting method of a mobile multimedia broadcasting real-time strame
CN108989831A (en) A kind of network REC method and apparatus of multi-code stream
CN103269448A (en) Method for achieving synchronization of audio and video on the basis of RTP/RTCP feedback early-warning algorithm
CN108965914A (en) A kind of video data handling procedure and device based on view networking
CN101193105A (en) A media stream transmission/switching method
CN108882021B (en) A kind of video broadcasting method and device
CN108270740A (en) To the live broadcast system and method for the video conference containing multi-path video stream
WO2008043213A1 (en) A mobile multimedia broadcast system for enhancing transmission efficiency by using variable-length frame and thereof 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
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130213