CN106507024A - A kind of self-adaption code rate method of adjustment and device - Google Patents

A kind of self-adaption code rate method of adjustment and device Download PDF

Info

Publication number
CN106507024A
CN106507024A CN201611011854.5A CN201611011854A CN106507024A CN 106507024 A CN106507024 A CN 106507024A CN 201611011854 A CN201611011854 A CN 201611011854A CN 106507024 A CN106507024 A CN 106507024A
Authority
CN
China
Prior art keywords
bandwidth
parameter
video
new
code check
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
Application number
CN201611011854.5A
Other languages
Chinese (zh)
Other versions
CN106507024B (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.)
Sumavision Technologies Co Ltd
Original Assignee
Sumavision Technologies 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 Sumavision Technologies Co Ltd filed Critical Sumavision Technologies Co Ltd
Priority to CN201611011854.5A priority Critical patent/CN106507024B/en
Publication of CN106507024A publication Critical patent/CN106507024A/en
Application granted granted Critical
Publication of CN106507024B publication Critical patent/CN106507024B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load
    • H04N21/64738Monitoring network characteristics, e.g. bandwidth, congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64746Control signals issued by the network directed to the server or the client
    • H04N21/64761Control signals issued by the network directed to the server or the client directed to the server
    • H04N21/64769Control signals issued by the network directed to the server or the client directed to the server for rate control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64784Data processing by the network
    • H04N21/64792Controlling the complexity of the content stream, e.g. by dropping packets

Abstract

The present invention provides a kind of self-adaption code rate method of adjustment and device, is applied in the communication system of dialogue-based initiation protocol.The step of realizing of the method is that system receiving terminal responds code check adjust request, after calculating the new bandwidth parameter for being adapted to system current media streaming, determines corresponding code check parameter by the new bandwidth parameter.Then new Session Description Protocol is built according to the code check parameter, and conversation request is set up to what transmitting terminal initiated to include the new Session Description Protocol, so that the transmitting terminal is updated to media information according to the new Session Description Protocol after the session confirms foundation.The self-adaption code rate method of adjustment and device can be when system bandwidth deficiency cause packet loss, the bit rate output of self-adapted adjustment system in time, ensure the normal transmission of Media Stream, without the need for manually on duty, reduce unnecessary human and material resources cost, the ability that system reply channel width does not stop to change is improved, Consumer's Experience is effectively lifted.

Description

A kind of self-adaption code rate method of adjustment and device
Technical field
The present invention relates to network communication technology field, in particular to a kind of self-adaption code rate method of adjustment and device.
Background technology
Between existing video terminal or when carrying out media flow transmission between video terminal and gateway device, due to channel shakiness Caused by fixed, channel width does not stop to change, and often causes video generation situations such as noise occur in mosaic, audio frequency occur.For this Kind of situation, can only carry out real-time monitoring by network monitor equipment to the change of the network bandwidth at present, when there is certain media all the way When the bandwidth of streaming is not enough, network monitor equipment carries out early warning, reminds related personnel to find other channel occupancy bandwidth manually Excessive equipment and on the device configuration page modification coding output system code check mode adapting to the change that current bandwidth narrows Change.This settling mode, needs related personnel's long-time on duty before network monitor equipment, brings unnecessary manpower to be lost same When cannot also timely respond to solve the problems, such as bandwidth is not enough and introduce poor user experience caused by packet loss institute.
Content of the invention
In view of this, it is an object of the invention to provide a kind of self-adaption code rate method of adjustment and device, above-mentioned to improve Problem.
The embodiment of the present invention provides a kind of self-adaption code rate method of adjustment, is applied to the communication system of dialogue-based initiation protocol Receiving terminal in system, the method include:
Response code check adjust request, calculates the new bandwidth parameter for being adapted to system current media streaming, wherein, institute Stating bandwidth parameter includes video bandwidth and audio bandwidth;
By the described new bandwidth parameter for obtaining, corresponding code check parameter is determined, the code check parameter includes video code rate And audio code rate;
New Session Description Protocol is built according to the code check parameter, initiates again to include that the new session is retouched to transmitting terminal That states agreement sets up conversation request so that the transmitting terminal after the session confirms to set up according to the new Session Description Protocol Media information is updated, the media information includes video frequency output code check and audio output code check.
Another embodiment of the present invention provides a kind of self-adaption code rate method of adjustment, is applied to the logical of dialogue-based initiation protocol Transmitting terminal in letter system, the method include:
The conversation request of setting up including new Session Description Protocol initiated again of receiving terminal is obtained, wherein, described new Session Description Protocol by the receiving terminal according to the new video bandwidth for being adapted to system current media streaming that calculates and Audio bandwidth and the code check parameter that determines is built-up, the code check parameter includes audio code rate and video code rate;
Parse the new Session Description Protocol and obtain the code check parameter;
The code check parameter according to obtaining after parsing is updated to media information, and the media information includes that video is defeated Go out code check and audio output code check.
Another embodiment of the present invention provides a kind of self-adaption code rate adjusting apparatus, applies to the logical of dialogue-based initiation protocol Receiving terminal in letter system, the device include:
Bandwidth calculation module, for responding code check adjust request, calculates and is adapted to the new of system current media streaming Bandwidth parameter, wherein, the bandwidth parameter includes video bandwidth and audio bandwidth;
Code check determining module, for the described new bandwidth parameter by obtaining, determines corresponding code check parameter, the code check Parameter includes video code rate and audio code rate;And
Request initiation module, for building new Session Description Protocol according to the code check parameter, is sent out again to transmitting terminal Rise include the new Session Description Protocol set up conversation request so that the transmitting terminal after the session confirms foundation according to institute State new Session Description Protocol to be updated media information, the media information includes video frequency output code check and audio output code Rate.
Another embodiment of the present invention provides a kind of self-adaption code rate adjusting apparatus, applies to the logical of dialogue-based initiation protocol Transmitting terminal in letter system, the device include:
Request receiving module, please for obtaining the session of setting up including new Session Description Protocol that receiving terminal is initiated again Ask, wherein, the new Session Description Protocol is adapted to system current media streaming by the receiving terminal according to calculated New video bandwidth and audio bandwidth and the code check parameter that determines is built-up, the code check parameter includes audio code rate and video Code check;
Protocol resolution module, obtains the code check parameter for parsing the new Session Description Protocol;And
Media information update module, for being updated to media information according to the code check parameter obtained after parsing, The media information includes video frequency output code check and audio output code check.
Self-adaption code rate method of adjustment provided in an embodiment of the present invention and device, can cause to occur in system bandwidth deficiency During packet loss, the bit rate output of self-adapted adjustment system in time, it is ensured that the normal transmission of Media Stream, without the need for manually on duty, is reduced Unnecessary human and material resources cost, improves the ability that system reply channel width does not stop to change, and effectively lifts user's body Test.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below by to be used attached needed for embodiment Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, and it is right to be therefore not construed as The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can be with according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is a kind of application scenarios schematic diagram of self-adaption code rate method of adjustment provided in an embodiment of the present invention;
Fig. 2A is a kind of specific example figure of the application scenarios shown in Fig. 1;
Fig. 2 B are another kind of specific example figure of the application scenarios shown in Fig. 1;
Fig. 3 is the block diagram of the receiving terminal shown in Fig. 1 provided in an embodiment of the present invention;
Fig. 4 is the block diagram of the transmitting terminal shown in Fig. 1 provided in an embodiment of the present invention;
Fig. 5 is the flow chart of the self-adaption code rate method of adjustment for being applied to receiving terminal provided in an embodiment of the present invention;
Fig. 6 is the concrete handling process schematic diagram of media processing layer in receiving terminal provided in an embodiment of the present invention;
Fig. 7 is the parameter list for being stored in receiving terminal provided in an embodiment of the present invention;
Flow charts of the Fig. 8 for the self-adaption code rate method of adjustment for being applied to transmitting terminal of the embodiment of the present invention;
Fig. 9 is the flow chart of the self-adaption code rate method of adjustment that the another kind of the embodiment of the present invention is applied to receiving terminal;
Figure 10 A for the embodiment of the present invention a kind of receiving terminal and transmitting terminal between self-adaption code rate is carried out based on Session Initiation Protocol The interaction schematic diagram of adjustment;
Figure 10 B for the embodiment of the present invention another kind of receiving terminal and transmitting terminal between adaptive code is carried out based on Session Initiation Protocol The interaction schematic diagram of rate adjustment;
Figure 10 C for the embodiment of the present invention another kind of receiving terminal and transmitting terminal between adaptive code is carried out based on Session Initiation Protocol The interaction schematic diagram of rate adjustment;
Figure 11 is the functional module frame of the self-adaption code rate adjusting apparatus for being applied to receiving terminal provided in an embodiment of the present invention Figure;
Figure 12 is the functional module frame of the self-adaption code rate adjusting apparatus for being applied to transmitting terminal provided in an embodiment of the present invention Figure.
Icon:100- receiving terminals;200- transmitting terminals;110- self-adaption code rate adjusting apparatus;120- processors;130- is stored Device;1102- receiver modules;1104- parsing modules;1106- bandwidth calculation modules;1108- network management modules;1110- code checks Determining module;1112- asks initiation module;210- self-adaption code rate adjusting apparatus;220- processors;230- memorizeies;2102- Request receiving module;2104- protocol resolution modules;2106- media information update modules.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention is clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, to the embodiment of the present invention in technical scheme be clearly and completely described, it is clear that described embodiment is The a part of embodiment of the present invention, rather than whole embodiments.Therefore, embodiments of the invention below to providing in the accompanying drawings Detailed description be not intended to limit the scope of claimed invention, but be merely representative of the selected embodiment of the present invention. Embodiment in based on the present invention, it is all that those of ordinary skill in the art are obtained under the premise of creative work is not made Other embodiment, belongs to the scope of protection of the invention.
As shown in figure 1, being a kind of application scenarios schematic diagram of self-adaption code rate method of adjustment provided in an embodiment of the present invention. In the scene, receiving terminal 100 passes through dialogue-based initiation protocol between cable network or wireless network and transmitting terminal 200 (Session Initiation Protocol, abbreviation SIP) carries out the media flow transmission of audio frequency and video.
The receiving terminal 100 and transmitting terminal 200 may be, but not limited to, video gateway equipment for Transformation Service or The video terminal (hereinafter referred to as SIP video terminals) of dialogue-based initiation protocol.Specifically, as shown in Figure 2 A, the video network Pass equipment and SIP video terminals opposite end each other, when the video gateway equipment is used as receiving terminal 100, accordingly, the SIP Video terminal is then transmitting terminal 200, otherwise can push away.Or, as shown in Figure 2 B, two in same video communication system SIP video terminals opposite end each other, when one of terminal is as transmitting terminal 200, accordingly, another terminal is then as receiving End 100.
As shown in figure 3, being a kind of block diagram of receiving terminal 100 provided in an embodiment of the present invention.The receiving terminal 100 is wrapped Include self-adaption code rate adjusting apparatus 110, processor 120 and memorizer 130.The self-adaption code rate adjusting apparatus 110 include At least one operation that can be stored in the memorizer 130 or be solidificated in the receiving terminal 100 in the form of software or firmware Software function module in system.The processor 120 is used for executing the executable module stored in memorizer 130, such as institute State software function module or computer program that self-adaption code rate adjusting apparatus 110 include.
As shown in figure 4, being a kind of block diagram of transmitting terminal 200 provided in an embodiment of the present invention.The transmitting terminal 200 is wrapped Include self-adaption code rate adjusting apparatus 210, processor 220 and memorizer 230.The self-adaption code rate adjusting apparatus 210 include At least one operation that can be stored in the memorizer 230 or be solidificated in the receiving terminal 100 in the form of software or firmware Software function module in system.The processor 220 is used for executing the executable module stored in memorizer 230, such as institute State software function module or computer program that self-adaption code rate adjusting apparatus 210 include.
As shown in figure 5, being a kind of self-adaption code rate method of adjustment for being applied to receiving terminal 100 provided in an embodiment of the present invention Flow chart.It should be noted that, the method that the present embodiment is provided is not with the particular order of Fig. 5 and described below as limiting.Under Face will be described in detail to each step shown in Fig. 5.
Step S101, the packet that receiving end/sending end 200 sends.
Step S103, parses the packet, judges whether a current system packet loss occurs at interval of setting time, if It is then to trigger code check adjust request and go to step S105.
In the present embodiment, the media processing layer of the receiving terminal 100 is according to handling process execution step S101 shown in Fig. 6 ~S103.As shown in fig. 6, after the media processing layer creates audio frequency and video receiving thread initialization thread parameter, entering while and following Ring body, judges that following three condition thread signal amount is non-zero, ES (Elementary Stream, abbreviation ES) queue overflow successively Semaphore is non-zero and whether data length that receive simultaneously is set up more than 0, if set up simultaneously, packet is parsed, and Judge whether once current media flow transmission occurs at interval of setting time (such as 3 seconds, 10 seconds or 30 seconds) in resolving Packet loss, if there is packet loss, then triggers code check adjust request, and the audio, video data obtained after parsing is stored to ES queues.
It is understood that adjacent judge whether that the time interval for packet loss occur determines system self-adaption channel strip twice The response time of wide change.Assume to be set as 3 seconds or shorter the interval time, then the fluctuation of bandwidth very little will all be detected Arrive, and trigger code rate adjust request at once.
Step S105, responds the code check adjust request, calculates the new band for being adapted to system current media streaming Wide parameter.Wherein, the bandwidth parameter includes video bandwidth and audio bandwidth.
Firstly the need of explanation, in the present embodiment, media processing layer of the code check adjust request by the receiving terminal 100 Triggering is simultaneously responded by its own.After packet loss occurs in judgement system, the media processing layer will be current for statistical system immediately Video bandwidth and packet loss, and judge whether the current audio decoder form of system is a preset format.In the present embodiment, institute State preset format may be, but not limited to, G.729A audio decoder form.
When the current audio decoder form of system is the preset format, according to the first calculating formula:Bn=Br×(1-PL) Calculate new video bandwidth, wherein, BrRepresent current video bandwidth, PLRepresent packet loss, BnRepresent the new video tape Wide;When the non-preset format of the current audio decoder form of system, then according to the second calculating formula:Bn=Br×(1-PL)2Meter New video bandwidth is calculated, and the audio decoder form is converted to the preset format.The audio decoder lattice of the preset format Audio bandwidth corresponding to formula is the new audio bandwidth of the system, and for example, when G.729A the preset format is, its institute is right Bandwidth 8KBps that answers is the new audio bandwidth of system.
Step S107, by the described new bandwidth parameter for obtaining, determines corresponding code check parameter.The code check parameter bag Include video code rate and audio code rate.
Step S109, builds new Session Description Protocol according to the code check parameter, and initiates to include being somebody's turn to do to transmitting terminal 200 New Session Description Protocol sets up conversation request.
In the present embodiment, by the receiving terminal 100 Signaling Layer according to handling process execution step S107 shown in Fig. 6~ S109.
When the audio decoder form of system is the preset format or after have been converted into the preset format, the sound of system Frequency code rate is the decoding code check corresponding to the preset format.So, in execution step S107, actual needs the Signaling Layer The video code rate of system to be determined.
Used as a kind of embodiment, 100 internal memory of receiving terminal is contained just like the parameter list shown in Fig. 7.The Signaling Layer root The video media included according to the session that is set up between new video bandwidth and current receiving terminal 100 and transmitting terminal 200 is joined Digital section, correspondingly searches the parameter list and determines corresponding video code rate.Wherein, the video media parameter field refers to session Profile-level-id fields in description agreement (Session Description Protocol, abbreviation SDP).In Fig. 6 The shown subprocessing flow process for being designated " 2. " is Signaling Layer according to new video bandwidth and profile-level-id fields The process inquired about by the parameter list.Wherein, " table length " represents the length of parameter list, for the parameter list in Fig. 7, can To understand its " table length " as 15.
After the Signaling Layer determines the corresponding video code rate of system and audio code rate, according to the video code rate and audio code Rate builds new SDP, more specifically, is to build the new media more newer field in SDP.In order to preferably carry out to scheme Illustrate, below illustrative the SDP for showing a certain session in media more newer field, as follows:
V=0
2364391276 2364391276IN IP4 10.10.40.67 of o=6703
S=sipcall
C=IN IPV4 10.10.40.67
T=0 0
20002 RTP/AVP 18 of m=audio
B=TIAS:64000
A=rtpmap:8PCMA/8000
A=ptime:20
A=sendrecv
M=video 20000RTP/AVP 100
B=TIAS:1024000
A=rtpmap:100H264/90000
A=fmtp:100profile-level-id=42001e;Max-mbps=48600;Max-fs=1620
A=sendrecv
Wherein, b=TIAS in m=audio:64000 audio code rates for representing system, b=TIAS in m=video: 64000 video code rates for representing system, profile-level-id=42001e represent the media parameter of video.
It is appreciated that the mode of the new SDP of the signaling layer building is exactly by above-mentioned correspondence system audio code rate and to be System video code rate field in parameter value replace with step s 107 determined by code check parameter.When new SDP has built Cheng Hou, the Signaling Layer create REINVITE according to the SDP, to ask to change between current receiving terminal 100 and transmitting terminal 200 The session of foundation.
After the transmitting terminal 200 receives the REINVITE message, if right through three-way handshake confirmation between the two Current sessions are modified, then the transmitting terminal 200 by the system audio code check according to included by the SDP in REINVITE message and System video code check generates media fresh information, is adjusted with the video frequency output code check and audio code rate to transmitting terminal 200.Tool Body ground, as shown in figure 8, the process that the transmitting terminal 200 responds the REINVITE message comprises the steps.
Step S201, receives REINVITE message.
Step S203, parses the SDP in the REINVITE message, obtains the code check parameter.
In the present embodiment, by the Signaling Layer execution step S201~S203 in the transmitting terminal 200.When the Signaling Layer is received After the REINVITE message sent to opposite end, SDP therein is parsed, obtain regarding in the media more newer field of the SDP Frequency code rate and audio code rate.
Step S205, is updated to media information according to the code check parameter obtained after parsing.
Between transmitting terminal 200 and receiving terminal 100 after three-way handshake confirms to modify current sessions, the transmission The Signaling Layer at end 200 issues the media processing layer that media update messages to transmitting terminal 200, so that the media processing layer is according to institute State the video frequency output code check and audio output code check of code check parameter more new system.
Special instruction, when video gateway equipment is used as receiving terminal 100, as shown in figure 9, adaptive shown in Fig. 5 Generally also include in code rate method of adjustment:
Step S106, searches signaling session parameter and obtains session unique ID, issued according to the session unique ID Media information more new command.
Annexation of step S106 with previous step S105 and next step S107 in stream process meaning is to work as institute (after media processing layer execution of step S105) after the media processing layer in video gateway equipment calculates new bandwidth parameter is stated, The new bandwidth parameter is reported to NML, so that the NML carries out messaging protocol conversion distribution processor, i.e., Search signaling session parameter and obtain session unique ID, and media information more new command is issued according to the session unique ID Signaling Layer into video gateway equipment.The Signaling Layer receives the media information more new command and the instruction is parsed Afterwards, step S107 is executed.
Similarly, when the video gateway equipment is used as transmitting terminal 200, the Signaling Layer of the video gateway equipment is parsed After code check parameter, media control messages are issued to NML, so that media new information is forwarded to by the NML Media processing layer, and then the video frequency output code check and audio output code check of system are adjusted by media processing layer.
It is preferred that further illustrating between the receiving terminal 100 and transmitting terminal 200 based on Session Initiation Protocol for globality The interaction of self-adaption code rate adjustment is carried out, the present embodiment provides the interactive schematic diagram under several concrete application scenes as follows.
As shown in Figure 10 A, the video gateway equipment is used as receiving terminal 100, and accordingly, SIP video terminals are used as sending out Sending end 200.During the media processing layer in video gateway equipment is to resolve packet, after there is packet loss in decision-making system, will Triggering code check adjust request, reports to NML after calculating new bandwidth parameter, so that the NML is according to session The new bandwidth parameter is distributed to Signaling Layer by unique ID.The Signaling Layer determines corresponding according to new bandwidth parameter After code check parameter, new SDP is built, and REINVITE is initiated to SIP video terminals.The Signaling Layer of the video gateway equipment with Confirm to repair currently-established session based on the REINVITE through three-way handshake between the Signaling Layer of SIP video terminals After changing, the Signaling Layer of SIP video terminals issues media and updates messages to media processing layer, so that the media processing layer is according to described The current audio frequency and video bit rate output of code check parameter adjustment system.
As shown in Figure 10 B, the SIP video terminals are used as receiving terminal 100, and accordingly, video gateway equipment is used as sending out Sending end 200.Based on the above-mentioned description to Figure 10 A, it is readily appreciated that the interaction in Figure 10 B between the two, will not be described here.
As illustrated in figure 10 c, in same SIP video systems, two SIP video terminals opposite end each other.Without loss of generality, with The SIP video terminals in left side as receiving terminal 100, right side as transmitting terminal 200, to self-adaption code rate adjustment between the two Process is illustrated.When the media processing layer in the SIP video terminals as receiving terminal 100 finds that packet loss occurs in system, will Triggering code check adjust request, and after new bandwidth parameter is calculated, the new bandwidth parameter is conveyed directly to Signaling Layer.Institute State Signaling Layer to be determined after corresponding code check parameter according to new bandwidth parameter, build new SDP, and send including described new The SIP video terminals of the REINVITE message of SDP to opposite end (transmitting terminal).The Signaling Layer of the SIP video terminals of opposite end receives institute State REINVITE message.Confirm to carry out currently-established session based on the REINVITE through three-way handshake in two Signaling Layers After modification, the Signaling Layer of the SIP video terminals of the opposite end directly issues media fresh information to media processing layer, so that the media Process layer is according to the current audio frequency and video bit rate output of the code check parameter adjustment system.
As shown in figure 11, be self-adaption code rate adjusting apparatus 110 shown in Fig. 3 provided in an embodiment of the present invention function Module frame chart.The device includes receiver module 1102, parsing module 1104 and the band for belonging to media processing layer in receiving terminal 100 Wide computing module 1106, belongs to the network management module 1108 of NML, and the code check determining module for belonging to Signaling Layer 1110 and request initiation module 1112.
The receiver module 1102, for receiving the packet of the transmission of the transmitting terminal 200.
At interval of setting time, the parsing module 1104, for parsing the packet, judges that a current system is No there is packet loss, if so, then triggers the code check adjust request.
The bandwidth calculation module 1106, for responding code check adjust request, calculates and is adapted to system current media stream The new bandwidth parameter of transmission.
The network management module 1108, obtains session unique ID for searching signaling session parameter, according to the meeting Words unique ID issues media information more new command.
The code check determining module 1110, for the described new bandwidth parameter by obtaining, determines corresponding code check ginseng Number, the code check parameter include video code rate and audio code rate.
The request initiation module 1112, for building new Session Description Protocol according to the code check parameter, and to sending out What sending end 200 was initiated to include the new Session Description Protocol sets up conversation request.
In the present embodiment, the concrete operation method of each functional module can refer to the description of above-mentioned correlation method embodiment, This no longer repeats one by one.
Certainly, it should be noted that when there is no NML in receiving terminal 100, corresponding network management module Can also omit.
As shown in figure 12, be self-adaption code rate adjusting apparatus 210 shown in Fig. 4 provided in an embodiment of the present invention function Module frame chart.The device includes request receiving module 2102, the protocol resolution module 2104 for belonging to Signaling Layer, and belongs to media The media information update module 2106 of process layer.
The request receiving module 2102, for obtaining the building including new Session Description Protocol of the initiation of receiving terminal 100 Vertical conversation request.
The protocol resolution module 2104, obtains the code check parameter for parsing the new Session Description Protocol.
The media information update module 2106, for entering to media information according to the code check parameter obtained after parsing Row updates, and the media information includes video frequency output code check and audio output code check.
In the present embodiment, the concrete operation method of each functional module equally can refer to retouching for above-mentioned correlation method embodiment State, this is no longer going to repeat them.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it is also possible to pass through Other modes are realized.Device embodiment described above is only schematically, for example flow chart and block diagram in accompanying drawing Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of module, program segment or a code Part, a part the holding comprising one or more logic functions for realization regulation of the module, program segment or code Row instruction.It should also be noted that in some are as the implementations that replaces, the function that marked in square frame can also be being different from The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be executed substantially in parallel, and they are sometimes Can execute in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart Individual square frame and the combination of block diagram and/or the square frame in flow chart, can use the special base for executing the function or action of regulation Realize in the system of hardware, or can combine to realize with specialized hardware and computer instruction.
If the function is realized using in the form of software function module and as independent production marketing or when using, can be with It is stored in a computer read/write memory medium.Such understanding is based on, technical scheme is substantially in other words The part contributed by prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be individual People's computer, server, or network equipment etc.) execute all or part of step of each embodiment methods described of the invention.
It should be noted that herein, term " including ", "comprising" or its any other variant are intended to non-row His property includes, so that a series of process, method, article or equipment including key elements not only includes those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or equipment institute inherently Key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that including institute Also there is other identical element in process, method, article or the equipment of stating key element.
It should be noted that:Similar label and letter represent similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined in individual accompanying drawing, then in subsequent accompanying drawing which further need not be defined and be explained.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by the scope of the claims.

Claims (14)

1. a kind of self-adaption code rate method of adjustment, the receiving terminal being applied in the communication system of dialogue-based initiation protocol, its are special Levy and be, the method includes:
Response code check adjust request, calculates the new bandwidth parameter for being adapted to system current media streaming, wherein, the band Wide parameter includes video bandwidth and audio bandwidth;
By the described new bandwidth parameter for obtaining, corresponding code check parameter is determined, the code check parameter includes video code rate and sound Frequency code rate;
New Session Description Protocol is built according to the code check parameter, and initiates to include the new Session Description Protocol to transmitting terminal Set up conversation request so that the transmitting terminal after the session confirms to set up according to the new Session Description Protocol to media Information is updated, and the media information includes video frequency output code check and audio output code check.
2. self-adaption code rate method of adjustment according to claim 1, it is characterised in that the method is adjusted in the response code check Also include before the step of whole request:
Receive the packet that the transmitting terminal sends;
The packet is parsed, judges whether a current system packet loss occurs at interval of setting time, if so, then triggered described Code check adjust request.
3. the self-adaption code rate method of adjustment according to claim 1 or 2 any one, it is characterised in that calculate adaptation Include the step of the new bandwidth parameter of system current media streaming:
The current video bandwidth of statistical system and packet loss;
When the current audio decoder form of system is a preset format, according to the first calculating formula:Bn=Br×(1-PL) calculate New video bandwidth, wherein, BrRepresent current video bandwidth, PLRepresent packet loss, BnRepresent the new video bandwidth;
When the non-preset format of the current audio decoder form of system, then according to the second calculating formula:Bn=Br×(1-PL)2Meter New video bandwidth is calculated, and the audio decoder form is converted to the preset format, wherein, the audio frequency solution of the preset format Audio bandwidth corresponding to code form is the new audio bandwidth of the system.
4. self-adaption code rate method of adjustment according to claim 3, it is characterised in that the receiving terminal internal memory contains a ginseng Number tables, by the described new bandwidth parameter for obtaining, include the step of determine corresponding code check parameter:
Decoding code check corresponding to the audio decoder form of the preset format is defined as corresponding audio code rate;And
The video media ginseng that session according to being set up between new video bandwidth and current receiving terminal and transmitting terminal includes Digital section, correspondingly searches the parameter list and determines corresponding video code rate.
5. self-adaption code rate method of adjustment according to claim 1, it is characterised in that the receiving terminal is for changing clothes The video terminal of the video gateway equipment or dialogue-based initiation protocol of business.
6. self-adaption code rate method of adjustment according to claim 5, it is characterised in that when receiving terminal is the video gateway During equipment, the method also included before the step of passing through the described new bandwidth parameter of acquisition, determine corresponding code check parameter:
Search signaling session parameter and obtain session unique ID, issue media information and update according to the session unique ID and refer to Order.
7. a kind of self-adaption code rate method of adjustment, the transmitting terminal being applied in the communication system of dialogue-based initiation protocol, its are special Levy and be, the method includes:
Obtain the conversation request of setting up including new Session Description Protocol that receiving terminal is initiated, wherein, the new conversation description Agreement is by the receiving terminal according to the new video bandwidth and audio bandwidth that are adapted to system current media streaming for calculating And the code check parameter of determination is built-up, the code check parameter includes audio code rate and video code rate;
Parse the new Session Description Protocol and obtain the code check parameter;
The code check parameter according to obtaining after parsing is updated to media information, and the media information includes video frequency output code Rate and audio output code check.
8. a kind of self-adaption code rate adjusting apparatus, apply to the receiving terminal in the communication system of dialogue-based initiation protocol, and which is special Levy and be, the device includes:
Bandwidth calculation module, for responding code check adjust request, calculates the new band for being adapted to system current media streaming Wide parameter, wherein, the bandwidth parameter includes video bandwidth and audio bandwidth;
Code check determining module, for the described new bandwidth parameter by obtaining, determines corresponding code check parameter, the code check parameter Including video code rate and audio code rate;And
Request initiation module, for building new Session Description Protocol according to the code check parameter, and initiates to include to transmitting terminal The new Session Description Protocol sets up conversation request so that the transmitting terminal after the session confirms to set up according to described new Session Description Protocol is updated to media information, and the media information includes video frequency output code check and audio output code check.
9. self-adaption code rate adjusting apparatus according to claim 8, it is characterised in that the device also includes:
Receiver module, for receiving the packet that the transmitting terminal sends;
At interval of setting time, parsing module, for parsing the packet, judges whether a current system packet loss occurs, if It is then to trigger the code check adjust request.
10. self-adaption code rate adjusting apparatus according to claim 8 or 9 any one, it is characterised in that the bandwidth meter Calculation module calculates the mode of the new bandwidth parameter for being adapted to system current media streaming to be included:
The current video bandwidth of statistical system and packet loss;
When the current audio decoder form of system is a preset format, according to the first calculating formula:Bn=Br×(1-PL) calculate New video bandwidth, wherein, BrRepresent current video bandwidth, PLRepresent packet loss, BnRepresent the new video bandwidth;
When the non-preset format of the current audio decoder form of system, then according to the second calculating formula:Bn=Br×(1-PL)2Meter New video bandwidth is calculated, and the audio decoder form is converted to the preset format, wherein, the audio frequency solution of the preset format Audio bandwidth corresponding to code form is the new audio bandwidth of the system.
11. self-adaption code rate adjusting apparatus according to claim 10, it is characterised in that the receiving terminal internal memory contains one Parameter list, the code check determining module determine the mode bag of corresponding code check parameter by the described new bandwidth parameter for obtaining Include:
Decoding code check corresponding to the audio decoder form of the preset format is defined as corresponding audio code rate;And
The video media ginseng that session according to being set up between new video bandwidth and current receiving terminal and transmitting terminal includes Digital section, correspondingly searches the parameter list and determines corresponding video code rate.
12. self-adaption code rate adjusting apparatus according to claim 8, it is characterised in that the receiving terminal is for changing The video terminal of the video gateway equipment or dialogue-based initiation protocol of service.
13. self-adaption code rate adjusting apparatus according to claim 12, it is characterised in that when receiving terminal is the video network During the equipment of pass, the device also includes:
Network management module, obtains session unique ID for searching signaling session parameter, according to the session unique ID Issue media information more new command.
A kind of 14. self-adaption code rate adjusting apparatus, apply to the transmitting terminal in the communication system of dialogue-based initiation protocol, and which is special Levy and be, the device includes:
Request receiving module, for obtaining the conversation request of setting up including new Session Description Protocol of receiving terminal initiation, wherein, The new Session Description Protocol is regarded according to the new of system current media streaming that be adapted to for calculating by the receiving terminal Bandwidth and audio bandwidth and the code check parameter that determines is built-up, the code check parameter includes audio code rate and video code rate;
Protocol resolution module, obtains the code check parameter for parsing the new Session Description Protocol;
Media information update module, for being updated to media information according to the code check parameter obtained after parsing, described Media information includes video frequency output code check and audio output code check.
CN201611011854.5A 2016-11-17 2016-11-17 A kind of self-adaption code rate method of adjustment and device Active CN106507024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611011854.5A CN106507024B (en) 2016-11-17 2016-11-17 A kind of self-adaption code rate method of adjustment and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611011854.5A CN106507024B (en) 2016-11-17 2016-11-17 A kind of self-adaption code rate method of adjustment and device

Publications (2)

Publication Number Publication Date
CN106507024A true CN106507024A (en) 2017-03-15
CN106507024B CN106507024B (en) 2019-04-02

Family

ID=58324844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611011854.5A Active CN106507024B (en) 2016-11-17 2016-11-17 A kind of self-adaption code rate method of adjustment and device

Country Status (1)

Country Link
CN (1) CN106507024B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295395A (en) * 2017-06-27 2017-10-24 武汉斗鱼网络科技有限公司 Code check adaptive regulation method, device and electronic equipment
CN108063955A (en) * 2017-12-15 2018-05-22 重庆邮电大学 The code check switching method of dynamic self-adapting transmission of video based on state machine
CN108259948A (en) * 2018-03-30 2018-07-06 武汉斗鱼网络科技有限公司 A kind of playback method, device, computer and storage medium that audio and video are broadcast live
CN108966022A (en) * 2018-06-29 2018-12-07 广州市千钧网络科技有限公司 A kind of live broadcasting method, device and terminal
CN108989078A (en) * 2017-08-29 2018-12-11 北京视联动力国际信息技术有限公司 A kind of view networking interior joint equipment fault detection method and device
CN109348259A (en) * 2018-11-14 2019-02-15 迪爱斯信息技术股份有限公司 A kind of the transmission code rate adjustment method and system of wireless network video
CN110996103A (en) * 2019-12-12 2020-04-10 杭州叙简科技股份有限公司 Method for adjusting video coding rate according to network condition
CN114651449A (en) * 2020-04-26 2022-06-21 华为技术有限公司 Method and device for adjusting streaming media parameter dynamic adaptive network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6519259B1 (en) * 1999-02-18 2003-02-11 Avaya Technology Corp. Methods and apparatus for improved transmission of voice information in packet-based communication systems
CN101222296A (en) * 2008-01-31 2008-07-16 上海交通大学 Self-adapting transmission method and system in ascending honeycomb video communication
CN101404759A (en) * 2008-10-30 2009-04-08 中山大学 Network self-adaptive system used for digital video monitoring system
CN101552771A (en) * 2008-03-31 2009-10-07 华为技术有限公司 Media gateway, media gateway controller, multimedia telephone intercommunication method and system
CN101800697A (en) * 2010-01-27 2010-08-11 深圳市宇速科技有限公司 Method for real-time video transmission self-adapting to network bandwidth

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6519259B1 (en) * 1999-02-18 2003-02-11 Avaya Technology Corp. Methods and apparatus for improved transmission of voice information in packet-based communication systems
CN101222296A (en) * 2008-01-31 2008-07-16 上海交通大学 Self-adapting transmission method and system in ascending honeycomb video communication
CN101552771A (en) * 2008-03-31 2009-10-07 华为技术有限公司 Media gateway, media gateway controller, multimedia telephone intercommunication method and system
CN101404759A (en) * 2008-10-30 2009-04-08 中山大学 Network self-adaptive system used for digital video monitoring system
CN101800697A (en) * 2010-01-27 2010-08-11 深圳市宇速科技有限公司 Method for real-time video transmission self-adapting to network bandwidth

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295395A (en) * 2017-06-27 2017-10-24 武汉斗鱼网络科技有限公司 Code check adaptive regulation method, device and electronic equipment
CN108989078A (en) * 2017-08-29 2018-12-11 北京视联动力国际信息技术有限公司 A kind of view networking interior joint equipment fault detection method and device
CN108989078B (en) * 2017-08-29 2021-12-03 视联动力信息技术股份有限公司 Method and device for detecting node equipment fault in video network
CN108063955A (en) * 2017-12-15 2018-05-22 重庆邮电大学 The code check switching method of dynamic self-adapting transmission of video based on state machine
CN108063955B (en) * 2017-12-15 2020-02-11 重庆邮电大学 State machine based code rate switching method for dynamic self-adaptive video transmission
CN108259948B (en) * 2018-03-30 2020-12-15 武汉斗鱼网络科技有限公司 Method and device for playing live broadcast audio and video, computer and storage medium
CN108259948A (en) * 2018-03-30 2018-07-06 武汉斗鱼网络科技有限公司 A kind of playback method, device, computer and storage medium that audio and video are broadcast live
CN108966022A (en) * 2018-06-29 2018-12-07 广州市千钧网络科技有限公司 A kind of live broadcasting method, device and terminal
CN109348259B (en) * 2018-11-14 2021-02-26 迪爱斯信息技术股份有限公司 Method and system for adjusting sending code rate of wireless network video
CN109348259A (en) * 2018-11-14 2019-02-15 迪爱斯信息技术股份有限公司 A kind of the transmission code rate adjustment method and system of wireless network video
CN110996103A (en) * 2019-12-12 2020-04-10 杭州叙简科技股份有限公司 Method for adjusting video coding rate according to network condition
CN114651449A (en) * 2020-04-26 2022-06-21 华为技术有限公司 Method and device for adjusting streaming media parameter dynamic adaptive network
CN114651449B (en) * 2020-04-26 2023-09-29 华为技术有限公司 Method and device for adjusting stream media parameter dynamic self-adaptive network

Also Published As

Publication number Publication date
CN106507024B (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN106507024A (en) A kind of self-adaption code rate method of adjustment and device
CN110768817B (en) Upgrading method and device for video networking terminal
CN100446466C (en) Reactivity bandwidth control for stream data
CN101300885B (en) Traffic generation during inactive user plane
US10455042B2 (en) Transmitting information across a communications network
CN109068186B (en) Method and device for processing packet loss rate
CN101707551B (en) Data transmission method and device
CN104363407B (en) A kind of video conferencing system means of communication and related device
CN106937136A (en) Data delay method and system based on statistical information between network direct broadcasting
CN106973253A (en) A kind of method and device for adjusting media flow transmission
CN104754339B (en) I framing control method, apparatus and system
CN101170487B (en) Compression method and compression system and compression device in data stream multiplexing
CN111224889A (en) Data transmission method and device
CN108809921A (en) A kind of audio-frequency processing method regards networked server and regards networked terminals
US7907594B2 (en) Marking keyframes for a communication session
US9826009B2 (en) Balance management of scalability and server loadability for internet protocol (IP) audio conference based upon monitored resource consumption
KR100619701B1 (en) Method for monitoring status of wireless lan
CN109842821A (en) A kind of method and apparatus of video data transmission
CN110198384B (en) Communication method based on video networking and transfer server
CN111245733A (en) Data transmission method and device
CN111212263A (en) Method and device for filtering monitoring resource data
CN110545214A (en) time delay detection method based on video network and switch
CN101656807B (en) Networking telephone sending terminal and voice control method thereof
CN114189890A (en) Method, device, equipment and storage medium for updating network service quality model
CN110740296B (en) Method and device for processing video stream monitored by video network

Legal Events

Date Code Title Description
C06 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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Ma Huawen

Inventor after: Li Jiaying

Inventor after: Liu Shichuan

Inventor after: Zhang Tianruo

Inventor before: Ma Huawen

Inventor before: Liu Shichuan

Inventor before: Zhang Tianruo