CN102256182A - RTP (Real-time Transport Protocol)-based video stream fragment framing method - Google Patents

RTP (Real-time Transport Protocol)-based video stream fragment framing method Download PDF

Info

Publication number
CN102256182A
CN102256182A CN2011102099874A CN201110209987A CN102256182A CN 102256182 A CN102256182 A CN 102256182A CN 2011102099874 A CN2011102099874 A CN 2011102099874A CN 201110209987 A CN201110209987 A CN 201110209987A CN 102256182 A CN102256182 A CN 102256182A
Authority
CN
China
Prior art keywords
fragment data
node
data
hash table
real
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
CN2011102099874A
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.)
CHONGQING DATA TECHNOLOGY Co Ltd
Original Assignee
CHONGQING DATA 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 CHONGQING DATA TECHNOLOGY Co Ltd filed Critical CHONGQING DATA TECHNOLOGY Co Ltd
Priority to CN2011102099874A priority Critical patent/CN102256182A/en
Publication of CN102256182A publication Critical patent/CN102256182A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a computer data processing method, which aims at providing an RTP (Real-time Transport Protocol)-based video stream fragment framing method for solving the problem of consumption of resource in ordering and recombination of video stream fragment data in the prior art. The method comprises the following steps of: establishing a Hash table data structure at a receiving end; establishing a queue for pre-distributing memory space at the receiving end, wherein the queue is an idle queue, and each node of the queue directs to the memory space of fixed size; accepting the fragment data from a transmitting end by the receiving end through an RTP-based UDP (User Datagram Protocol) transmission mode, simultaneously, orderly filling the fragment data into the memory space corresponding to the nodes, and orderly inserting the nodes into the Hash table according to the order of being filled with the fragment data; and at the receiving end, assembling the fragment data according to the node filling order in the Hash table, and outputting frame data. In comparison with the background technology, the method uses a Hash algorithm, and only copies the recombination of the fragment data in a computer memory once, thereby improving efficiency.

Description

A kind of video flowing burst framing method based on Real-time Transport Protocol
Technical field
The present invention relates to a kind of And Methods of Computer Date Processing.
Background technology
This practical information relates to a kind of video rtp streaming burst framing algorithm, be meant that video flowing is when Network Transmission, because it is restricted when adopting the UDP mode to transmit to the size of data of each transmission, therefore the one-frame video data burst repeatedly must be transmitted, dock the process that the fragment data of receiving is reassembled into video requency frame data at receiving terminal according to minute sheet mode then.
Frame of video burst transmission, during to fragment data framing again, computer needs sort and recombinate fragment data again, can expend a large amount of CPU of computer and memory source like this at receiving terminal.
Summary of the invention
The invention is intended to provide a kind of video flowing burst framing method, with ordering that solves video flowing fragment data in the prior art and the problem that reorganization expends a large amount of CPU of computer and memory source based on Real-time Transport Protocol.
Purpose of the present invention can reach by following measure: a kind of video flowing burst framing method based on Real-time Transport Protocol, and it may further comprise the steps:
One, sets up the Hash list data structure at receiving terminal;
Two, set up the formation of a preassignment memory headroom at receiving terminal, this formation is an idle queues, and each node of formation points to the memory headroom of fixed size;
Three, by UDP transmission means based on Real-time Transport Protocol, receiving terminal is accepted the fragment data from transmitting terminal, in the memory headroom of the described node correspondence of simultaneously described fragment data being packed into successively, by the order that is loaded into fragment data described node is inserted the Hash table successively simultaneously;
Four,, fragment data is assembled the output frame data according to the order of packing into of node in the Hash table at receiving terminal.
Described transmitting terminal and receiving terminal are the computer system that possesses necessary hardware configuration, connect by cable or GRPS device talk therebetween, and video data is stored in the transmitting terminal, and the receiving terminal desire receives described video data.
The purpose of this programme is efficiently the fragment data of video transmission to be carried out framing, compare with background technology, specifically used hash algorithm, the reorganization of fragment data in calculator memory also only needed copy once, therefore improved efficient, the ordering of fragment data and reorganization no longer expend a large amount of CPU of computer and memory source.
Further, in described step 3: at first in idle queues, obtain a node, a fragment data is copied the into memory headroom of this node sensing, and indicate length; Then this node is deleted in idle queues, and this node is inserted the Hash table,
With the whole graftabls of described fragment data in groups space, the node that fragment data will be housed simultaneously inserts the Hash table according to above-mentioned steps.
Technique scheme is simple and clear easily to be implemented, and can realize the technique effect described in first scheme equally.
Further, in described step 3: when described idle queues is all packed fragment data into, after to installed fragment data framing output, empty formation.This feature can guarantee to be unlikely to make mistakes when the fragment data total amount of frame data exceeds in the idle queues the corresponding capacity of the corresponding memory headrooms of all nodes, and processing mode is more flexible.
Further, in described step 3: insert Hash when table successively at node, judge the fragment data type of present node correspondence,, then continue with all pack into the memory headroom of idle node correspondence of the fragment data of remainder if not last fragment data; If last fragment data is then packed into according to node in the Hash table and fragment data is assembled the output frame data in proper order.This feature has been arranged the processing mode of end fragment data, and end operation rapidly after the fragment data of each frame disposes has improved operating efficiency.
Description of drawings
The present invention is further detailed explanation below in conjunction with the drawings and specific embodiments:
Fig. 1 is the flow chart of video fragment data framing in the embodiment of the invention.
Embodiment
Disclosed a kind of video flowing burst framing method based on Real-time Transport Protocol in the present embodiment, be connected by cable with PC as receiving terminal as the server of transmitting terminal, existing desire is delivered to receiving terminal with video data from transmitting terminal, idiographic flow as shown in Figure 1:
Set up the Hash list data structure at receiving terminal.
In the formation that receiving terminal is set up a preassignment memory headroom, this formation initial condition is an idle queues, and each node of formation points to the memory headroom of fixed size.
By the UDP transmission means based on Real-time Transport Protocol, receiving terminal is accepted the fragment data from transmitting terminal, at first obtains a node in idle queues, a fragment data is copied the into memory headroom of this node sensing, and indicate length; Then this node is deleted in idle queues, and this node is inserted the Hash table.
Insert Hash when table successively at node, judge the fragment data type of present node correspondence,, then continue the fragment data of remainder according to all pack into the memory headroom of idle node correspondence of sample if not last fragment data; If last fragment data is then packed into according to node in the Hash table and fragment data is assembled the output frame data in proper order.
When described idle queues is all packed fragment data into, after to installed fragment data framing output, empty formation, carry out the remaining not operation of the fragment data of framing as yet.
With the whole graftabls of described fragment data in groups space, the node that fragment data will be housed simultaneously inserts the Hash table according to above-mentioned steps.
At last, according to the order of packing into of node in the Hash table fragment data is assembled, the output frame data are finished the transmission work of frame data.
Above-described only is preferred implementation of the present invention; should be understood that; for a person skilled in the art; under the prerequisite that does not break away from structure of the present invention; can also make some distortion and improvement; these also should be considered as protection scope of the present invention, and these can not influence effect of the invention process and practical applicability.

Claims (4)

1. video flowing burst framing method based on Real-time Transport Protocol is characterized in that may further comprise the steps:
Set up the Hash list data structure at receiving terminal;
In the formation that receiving terminal is set up a preassignment memory headroom, this formation initial condition is an idle queues, and each node of formation points to the memory headroom of fixed size;
By UDP transmission means based on Real-time Transport Protocol, receiving terminal is accepted the fragment data from transmitting terminal, in the memory headroom of the described node correspondence of simultaneously described fragment data being packed into successively, by the order that is loaded into fragment data described node is inserted the Hash table successively simultaneously;
At receiving terminal, fragment data is assembled the output frame data according to the order of packing into of node in the Hash table.
2. the video flowing burst framing method based on Real-time Transport Protocol according to claim 1 is characterized in that in described step 3: at first obtain a node in idle queues, a fragment data is copied the into memory headroom of this node sensing, and indicate length; Then this node is deleted in idle queues, and this node is inserted the Hash table,
With the whole graftabls of described fragment data in groups space, the node that fragment data will be housed simultaneously inserts the Hash table according to above-mentioned steps.
3. the video flowing burst framing method based on Real-time Transport Protocol according to claim 1 and 2 is characterized in that in described step 3: when described idle queues is all packed fragment data into, empty formation after to installed fragment data framing output.
4. the video flowing burst framing method based on Real-time Transport Protocol according to claim 3, it is characterized in that in described step 3: when node inserts the Hash table successively, judge the fragment data type of present node correspondence, if not last fragment data, then continue all pack into the memory headroom of idle node correspondence of the fragment data of remainder; If last fragment data is then packed into according to node in the Hash table and fragment data is assembled the output frame data in proper order.
CN2011102099874A 2011-07-26 2011-07-26 RTP (Real-time Transport Protocol)-based video stream fragment framing method Pending CN102256182A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102099874A CN102256182A (en) 2011-07-26 2011-07-26 RTP (Real-time Transport Protocol)-based video stream fragment framing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102099874A CN102256182A (en) 2011-07-26 2011-07-26 RTP (Real-time Transport Protocol)-based video stream fragment framing method

Publications (1)

Publication Number Publication Date
CN102256182A true CN102256182A (en) 2011-11-23

Family

ID=44983118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102099874A Pending CN102256182A (en) 2011-07-26 2011-07-26 RTP (Real-time Transport Protocol)-based video stream fragment framing method

Country Status (1)

Country Link
CN (1) CN102256182A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942150A (en) * 2014-04-01 2014-07-23 上海网达软件股份有限公司 Memory management method for real-time streaming media transmission system
CN105681342A (en) * 2016-03-08 2016-06-15 随锐科技股份有限公司 Anti-error code method and system of multi-channel video conference system based on H264
CN107222793A (en) * 2017-05-05 2017-09-29 浙江大华技术股份有限公司 A kind of method and device of data transfer
CN108696773A (en) * 2017-04-11 2018-10-23 上海谦问万答吧云计算科技有限公司 A kind of transmission method and device of real-time video

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201243314Y (en) * 2008-05-28 2009-05-20 成都卫士通信息产业股份有限公司 Coprocessor for IP containing slice
CN101645851A (en) * 2009-09-03 2010-02-10 中兴通讯股份有限公司 Recombination method for IP fragment messages and device thereof
WO2010062020A2 (en) * 2008-11-28 2010-06-03 Electronics And Telecommunications Research Institute System for controlling path maximum transmission unit by detecting repetitional ip packet fragmentation and method thereof
CN101841545A (en) * 2010-05-14 2010-09-22 中国科学院计算技术研究所 TCP stream restructuring and/or packetizing method and device
CN102065012A (en) * 2010-12-22 2011-05-18 中兴通讯股份有限公司 Distributed system and method for processing IP message fragments

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201243314Y (en) * 2008-05-28 2009-05-20 成都卫士通信息产业股份有限公司 Coprocessor for IP containing slice
WO2010062020A2 (en) * 2008-11-28 2010-06-03 Electronics And Telecommunications Research Institute System for controlling path maximum transmission unit by detecting repetitional ip packet fragmentation and method thereof
CN101645851A (en) * 2009-09-03 2010-02-10 中兴通讯股份有限公司 Recombination method for IP fragment messages and device thereof
CN101841545A (en) * 2010-05-14 2010-09-22 中国科学院计算技术研究所 TCP stream restructuring and/or packetizing method and device
CN102065012A (en) * 2010-12-22 2011-05-18 中兴通讯股份有限公司 Distributed system and method for processing IP message fragments

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942150A (en) * 2014-04-01 2014-07-23 上海网达软件股份有限公司 Memory management method for real-time streaming media transmission system
CN105681342A (en) * 2016-03-08 2016-06-15 随锐科技股份有限公司 Anti-error code method and system of multi-channel video conference system based on H264
CN105681342B (en) * 2016-03-08 2019-12-17 随锐科技集团股份有限公司 H264-based error code resisting method and system for multi-channel video conference system
CN108696773A (en) * 2017-04-11 2018-10-23 上海谦问万答吧云计算科技有限公司 A kind of transmission method and device of real-time video
CN108696773B (en) * 2017-04-11 2021-03-09 苏州谦问万答吧教育科技有限公司 Real-time video transmission method and device
CN107222793A (en) * 2017-05-05 2017-09-29 浙江大华技术股份有限公司 A kind of method and device of data transfer
CN107222793B (en) * 2017-05-05 2019-11-19 浙江大华技术股份有限公司 A kind of method and device of data transmission

Similar Documents

Publication Publication Date Title
JP6526289B2 (en) Packet transmitting apparatus supporting downloading and streaming
KR102107716B1 (en) Method and apparatus for media data delivery control
US9712442B2 (en) Efficient memory bandwidth utilization in a network device
CN110418376A (en) Data transmission method and device
US20130262702A1 (en) Hardware-based packet editor
US10498788B2 (en) Method and apparatus for transceiving data packet for transmitting and receiving multimedia data
CN109076025B (en) Method and apparatus for managing data removal
JP6744458B2 (en) How to send information about media data
KR20100083233A (en) Apparatus and method for multimedia file streaming in portable terminal
CN110581812A (en) Data message processing method and device
CN102256182A (en) RTP (Real-time Transport Protocol)-based video stream fragment framing method
US9240952B2 (en) System and method for communication between networked applications
CN105357229A (en) Video processing method and device
CN105934952A (en) Method and apparatus for transmitting and receiving media data in multimedia system
CN103248679A (en) Network message passing method
CN108124183B (en) Method for synchronously acquiring video and audio to perform one-to-many video and audio streaming
CN102077184A (en) Method and device to perform direct memory access
CN104601343A (en) Data downloading method, device and system
CN106302572B (en) Multi-channel communication method and system between servers
JP6555853B2 (en) Transmission device, transmission control method, and program
JP6738306B2 (en) Data transfer device and data transfer method
CN101997872A (en) Method for reducing transmit jitter of code streams of streaming media and streaming media server
US10848422B2 (en) System and a method for handling data
JP6970124B2 (en) Methods for sending and receiving MMTP packets and their devices
Xu et al. A method for fast channel switching based on MPEG media transport for broadcast TV

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: 20111123