CN103731232A - SIP terminal encoding and decoding self-adapting method and device - Google Patents

SIP terminal encoding and decoding self-adapting method and device Download PDF

Info

Publication number
CN103731232A
CN103731232A CN201210386995.0A CN201210386995A CN103731232A CN 103731232 A CN103731232 A CN 103731232A CN 201210386995 A CN201210386995 A CN 201210386995A CN 103731232 A CN103731232 A CN 103731232A
Authority
CN
China
Prior art keywords
opposite end
decoding
local terminal
encoding
terminal
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
CN201210386995.0A
Other languages
Chinese (zh)
Other versions
CN103731232B (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.)
SANYA ZHONGXING SOFTWARE Co Ltd
Original Assignee
SANYA ZHONGXING SOFTWARE 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 SANYA ZHONGXING SOFTWARE Co Ltd filed Critical SANYA ZHONGXING SOFTWARE Co Ltd
Priority to CN201210386995.0A priority Critical patent/CN103731232B/en
Publication of CN103731232A publication Critical patent/CN103731232A/en
Application granted granted Critical
Publication of CN103731232B publication Critical patent/CN103731232B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an SIP terminal encoding and decoding self-adapting method and device, and relates to the field of multimedia processing. The method includes the steps that after a home terminal builds an SIP session with an opposite terminal, encoding and decoding capacity of the home terminal and encoding and decoding capacity of the opposite terminal are acquired; when detecting that the consultation encoding and decoding capacity of the home terminal and the opposite terminal can not adapt to current code stream communication when the SIP session is built, the home terminal conducts encoding and decoding self-adapting processing; the home terminal sends the encoding and decoding self-adapting processing result of the home terminal to the opposite terminal, so that the opposite terminal correspondingly adjusts the encoding and decoding capacity of itself. By the adoption of the SIP terminal encoding and decoding self-adapting method and device, the influence of flow path reexchange of media on video communication is avoided, code streams of an RTP channel is more conveniently and more quickly controlled by an RTCP channel than SIP signals, the influence of the change of the encoding and decoding capacity on the communication effect is reduced, and the optimal communication effect is achieved.

Description

A kind of adaptive method of sip terminal encoding and decoding and device
Technical field
The present invention relates to video conference terminal multimedia process field, particularly a kind of encoding and decoding state that changes in real time in Session initiation Protocol SIP communication process, to realize method and the relevant apparatus thereof of best communication effect.
Background technology
Popular along with the develop rapidly of the Internet and video signal application, IETF is organized in 1999 and proposed for H.323 more simply, Session Initiation Protocol freely.Its application target is based on Internet environment, realizes data, audio frequency and video real-time communication, particularly by Internet, this application of video communication is incorporated into huge numbers of families, really embodies popular.SIP, when realizing video communication, need to be used Session Description Protocol SDP to describe the media collection that this session is used.SIP adopts the basic offer/answer model of SDP to complete the negotiation of terminal multi-media ability.In offer, terminal is by the video communication ability of self, transmission of video mechanism, voice communication capability, voice transfer mechanism sends to terminal called, terminal called is according to the video and audio communication ability of self, from offer, choose video and audio ability, in answer, put into the video and audio ability chosen and the video and audio transmission mechanism of self and respond offer and complete capability negotiation.
Along with the development of video conference, the sound in SDP, video capability get more and more, and offer provides multiple sound, video capability, and answer root is replied the multiple sound of the other side, coding and decoding video ability according to the coding/decoding capability of oneself and the other side's volume solution ability.Both sides select a kind of the other side of sending to according to the coding/decoding capability negotiating.If a side when coding/decoding capability changes in communication process, re-start capability negotiation, with new ability, carry out communication.Therefore, the receipts code stream that is necessary to achieve a butt joint is monitored, and according to the loadtype that receives code stream, decodes in real time.
Summary of the invention
The object of the present invention is to provide a kind of adaptive method of sip terminal encoding and decoding and device, by the control to the flexible code stream of each media channel, realize optimal communication effect.
According to an aspect of the present invention, provide a kind of sip terminal encoding and decoding adaptive method, having comprised:
After the SIP session of local terminal foundation and opposite end, obtain the coding/decoding capability of local terminal and opposite end;
When the coding/decoding capability that both sides consult when local terminal detects SIP session establishment is not suitable with current code stream communication, local terminal carries out encoding and decoding self-adaptive processing;
Local terminal is sent to opposite end by its encoding and decoding self-adaptive processing result, carries out the corresponding adjustment of coding/decoding capability for opposite end.
Preferably, local terminal, by extracting the code/decode format of each realtime transmission protocol RTP channel and the loadtype of channel code stream of local terminal and opposite end, obtains the coding/decoding capability of local terminal and opposite end.
Preferably, local terminal, according to opposite end decoding capability, is dynamically adjusted local terminal coded format, and the local terminal coded format after adjusting is sent to opposite end.
Preferably, opposite end, according to the described local terminal coded format of receiving, is adjusted its decoding capability, and is upgraded local terminal code capacity.
Preferably, local terminal, according to its decoding capability, obtains opposite end coded format to be adjusted, and described opposite end coded format is sent to opposite end, for adjustment opposite end, opposite end code capacity.
Preferably, opposite end, according to the described opposite end coded format of receiving, is adjusted its code capacity, and described code capacity is sent to local terminal, for local terminal, upgrades opposite end coding/decoding capability.
Preferably, utilize the RTCP Real-time Transport Control Protocol RTCP channel that RTP channel is corresponding that local terminal coded format or opposite end coded format are sent to opposite end.
According to a further aspect in the invention, provide a kind of sip terminal encoding and decoding adaptive device, having comprised:
Channel coding/decoding parameter configuration module, after the SIP session in foundation and opposite end, obtains the coding/decoding capability of local terminal and opposite end;
Code stream dynamic monitoring module, when the coding/decoding capability of consulting for both sides when SIP session establishment being detected is not suitable with current code stream communication, carries out encoding and decoding self-adaptive processing;
Encoding and decoding state notifying module, for encoding and decoding self-adaptive processing result is sent to opposite end, carries out the corresponding adjustment of coding/decoding capability for opposite end.
Preferably, described code stream dynamic monitoring module dynamically changes local terminal coded format according to opposite end decoding capability, or obtains opposite end coded format to be adjusted according to local terminal decoding capability.
Preferably, described encoding and decoding state notifying module comprises:
Encoding state changes notice submodule, for the local terminal coded format after adjusting is sent to opposite end;
Opposite end encoding state changes notice submodule, for opposite end coded format to be adjusted is sent to opposite end, for opposite end, carries out code capacity adjustment.
Compared with prior art, beneficial effect of the present invention is:
Both sides carry out code stream communication by RTP channel after completing capabilities exchange, if the channel negotiating has multiple coding/decoding capability, in communication process, when one side's coding or decoded state change, by RTCP channel corresponding to this RTP channel, send the new encoding state of message informing the other side or require the other side's coded format, so just avoided again consulting the impact of ability on other channel by SDP, and the code stream of controlling RTP channel by RTCP channel is also more convenient than the signaling by SIP, the impact bringing to communication changing because of ability is less.Therefore, the present invention, by obtaining after the other side's coding/decoding capability, utilizes RTCP channel to control the other side's coding and notifies the encoding state of the other side's local terminal to change, and has reduced the impact of capacity variation on communication effect, has reached the object of best communication effect.
Accompanying drawing explanation
Fig. 1 is the adaptive method flow diagram of sip terminal encoding and decoding that the embodiment of the present invention provides;
Fig. 2 is the adaptive device block diagram of sip terminal encoding and decoding that the embodiment of the present invention provides.
Embodiment
Below in conjunction with accompanying drawing, to a preferred embodiment of the present invention will be described in detail, should be appreciated that following illustrated preferred embodiment, only for description and interpretation the present invention, is not intended to limit the present invention.
The present invention is applied to Session Initiation Protocol communication, realize both sides' adaptive coding/decoding, method comprises: after the SIP session of local terminal foundation and opposite end, local terminal, by extracting the code/decode format of each RTP channel and the loadtype of channel code stream of local terminal and opposite end, obtains the coding/decoding capability of local terminal and opposite end, when the coding/decoding capability that both sides consult when local terminal detects SIP session establishment is not suitable with current code stream communication, local terminal is according to opposite end decoding capability, dynamically adjust local terminal coded format, and utilize the RTCP channel that RTP channel is corresponding that local terminal coded format after adjusting is sent to opposite end, make opposite end according to the described local terminal coded format of receiving, adjust its decoding capability, and upgrade local terminal code capacity, or local terminal is according to its decoding capability, obtain opposite end coded format to be adjusted, and utilize the RTCP channel that RTP channel is corresponding that described opposite end coded format is sent to opposite end, make opposite end according to the described opposite end coded format of receiving, adjust its code capacity, and described code capacity is sent to local terminal, for local terminal, upgrade opposite end coding/decoding capability, be that local terminal is sent to opposite end by its encoding and decoding self-adaptive processing result, for opposite end, carry out the corresponding adjustment of coding/decoding capability.That is to say, in communication process, when a side encoding and decoding state changes, mainly carry out following processing:
1, channel coding/decoding parameter configuration: the media capability by SDP in SIP session is preserved opposite end coding/decoding capability and local terminal coding/decoding capability, and the coding/decoding capability of each RTP channel and loadtype are mapped.
2, the dynamic monitoring of code stream: for monitoring the loadtype of RTP channel code stream, by receiving the loadtype of code stream and dynamically changing the decoding capability of channel from local codec parameters, if consistent with current decoding capability, do not need to change, if inconsistent, carry out the adjustment of this decoded state.
3, notify the encoding state of the other side's local terminal: we send the indication of code stream state, and the RTCP channel corresponding by RTP channel sends to the other side by our encoding state.
4, notify the other side to require the other side's encoding state: require the other side to change encoding state, the other side's who we is required by RTCP channel corresponding to RTP channel coded format sends to the other side.
Below in conjunction with accompanying drawing 1, to accompanying drawing 2, the present invention is further described.
Fig. 1 is the adaptive method flow diagram of sip terminal encoding and decoding that the embodiment of the present invention provides, and as shown in Figure 1, step comprises:
Step 10: terminal is set up session connection in SIP mode, the code/decode format of each RTP channel of extraction opposite end and local terminal and corresponding loadtype, so just can know the coding/decoding capability of local terminal and the coding/decoding capability of opposite end, and can be by receiving loadtype judgement the other side's of code stream coded format.
Step 11: when network environment changes or when terminal capability changes, when the ability that when a side detects session establishment, both sides consult is not suitable with current communication, can carry out encoding and decoding self-adaptive processing.
Step 12: after step 11 is carried out, judgement need to carry out code adjustment or decoding is adjusted.
If need to change local terminal coded format, within the scope of the opposite end decoding capability that the local terminal coded format after requirement change is obtained in step 10, change after local terminal coded format, utilize the RTCP channel that RTP channel is corresponding by code stream, the parameter after changing to be notified to opposite end, be convenient to opposite end and according to this parameter, carry out the processing of relative decoding information.
If judgement need to change local terminal codec format, need to notify the other side to carry out the variation of opposite end coded format, within the scope of the local terminal decoding capability that requirement opposite end coded format is obtained in step 10, utilize the RTCP channel that RTP channel is corresponding that the opposite end coded format requiring is sent to the other side, notify the other side to carry out corresponding RTP chnnel coding parameter modification.
Step 13: after step 12 is carried out, require after our coded message by RTCP channel reception the other side's coded message or the other side, can carry out the processing of related fields to RTP channel corresponding to RTCP channel according to these information.Receive the other side's coded message, can upgrade the other side's encoding state, encoding and decoding self adaptive flow after being convenient to.The other side who receives requires, after the coded message of local terminal, to re-start the coding of this channel according to the form of the other side's requirement, and the information of recompile notifies to the other side, allows the other side upgrade our encoding state.
Fig. 2 is the adaptive device block diagram of sip terminal encoding and decoding that the embodiment of the present invention provides, and as shown in Figure 2, device comprises channel coding/decoding parameter configuration module, code stream dynamic monitoring module, encoding and decoding state notifying module.
Described channel coding/decoding parameter configuration module is used for after the SIP session of foundation and opposite end, by extracting the code/decode format of each RTP channel and the loadtype of channel code stream of local terminal and opposite end, obtain the coding/decoding capability of local terminal and opposite end, for the follow-up encoding and decoding self-adaptive processing of carrying out.
When the coding/decoding capability that described code stream dynamic monitoring module is consulted for both sides when SIP session establishment being detected is not suitable with current code stream communication, carry out encoding and decoding self-adaptive processing, that is to say, when local terminal detects need to carry out encoding and decoding self-adaptive processing time, local terminal is dynamically adjusted local terminal coded format according to opposite end decoding capability, or according to its decoding capability, obtain opposite end coded format to be adjusted.
Described encoding and decoding state notifying module, for encoding and decoding self-adaptive processing result is sent to opposite end, is carried out the corresponding adjustment of coding/decoding capability for opposite end.Described encoding and decoding state notifying module comprises that the encoding state for utilizing RTCP channel that RTP channel is corresponding that the local terminal coded format after adjusting is sent to opposite end changes notice submodule and for utilizing the opposite end encoding state that RTCP channel that RTP channel is corresponding is sent to opposite end by opposite end coded format to be adjusted to change notice submodule.
In sum, the present invention has following technique effect:
1, the present invention has utilized RTCP channel to control RTP channel coding method, when side's encoding and decoding state changes, needn't re-start the encoding and decoding state variation that capabilities exchange has just realized individual channel, avoid media again to exchange the impact of flow process on video communication.
2, the present invention can notify the encoding state of the other side's local terminal in time, and the other side's adaptive decoding is had to good help, has prevented that code stream from changing the impact of testing process on decoded state.
Although above the present invention is had been described in detail, the invention is not restricted to this, those skilled in the art of the present technique can carry out various modifications according to principle of the present invention.Therefore, all modifications of doing according to the principle of the invention, all should be understood to fall into protection scope of the present invention.

Claims (10)

1. the adaptive method of sip terminal encoding and decoding, is characterized in that, comprising:
After the Session initiation Protocol SIP session of local terminal foundation and opposite end, obtain the coding/decoding capability of local terminal and opposite end;
When the coding/decoding capability that both sides consult when local terminal detects SIP session establishment is not suitable with current code stream communication, local terminal carries out encoding and decoding self-adaptive processing;
Local terminal is sent to opposite end by its encoding and decoding self-adaptive processing result, carries out the corresponding adjustment of coding/decoding capability for opposite end.
2. method according to claim 1, is characterized in that, local terminal, by extracting the code/decode format of each realtime transmission protocol RTP channel and the loadtype of channel code stream of local terminal and opposite end, obtains the coding/decoding capability of local terminal and opposite end.
3. method according to claim 2, is characterized in that, local terminal, according to opposite end decoding capability, is dynamically adjusted local terminal coded format, and the local terminal coded format after adjusting is sent to opposite end.
4. method according to claim 3, is characterized in that, opposite end, according to the described local terminal coded format of receiving, is adjusted its decoding capability, and upgraded local terminal code capacity.
5. method according to claim 2, is characterized in that, local terminal, according to its decoding capability, obtains opposite end coded format to be adjusted, and described opposite end coded format is sent to opposite end, for adjustment opposite end, opposite end code capacity.
6. method according to claim 5, is characterized in that, opposite end, according to the described opposite end coded format of receiving, is adjusted its code capacity, and described code capacity is sent to local terminal, for local terminal, upgrades opposite end coding/decoding capability.
7. according to the method described in claim 1-6 any one, it is characterized in that, utilize the RTCP Real-time Transport Control Protocol RTCP channel that RTP channel is corresponding that local terminal coded format or opposite end coded format are sent to opposite end.
8. the adaptive device of sip terminal encoding and decoding, is characterized in that, comprising:
Channel coding/decoding parameter configuration module, after the Session initiation Protocol SIP session in foundation and opposite end, obtains the coding/decoding capability of local terminal and opposite end;
Code stream dynamic monitoring module, when the coding/decoding capability of consulting for both sides when SIP session establishment being detected is not suitable with current code stream communication, carries out encoding and decoding self-adaptive processing;
Encoding and decoding state notifying module, for encoding and decoding self-adaptive processing result is sent to opposite end, carries out the corresponding adjustment of coding/decoding capability for opposite end.
9. device according to claim 8, is characterized in that, described code stream dynamic monitoring module dynamically changes local terminal coded format according to opposite end decoding capability, or obtains opposite end coded format to be adjusted according to local terminal decoding capability.
10. device according to claim 8 or claim 9, is characterized in that, described encoding and decoding state notifying module comprises:
Encoding state changes notice submodule, for utilizing the RTCP Real-time Transport Control Protocol RTCP channel that RTP channel is corresponding that local terminal coded format after adjusting is sent to opposite end;
Opposite end encoding state changes notice submodule, for utilizing the RTCP channel that RTP channel is corresponding that opposite end coded format to be adjusted is sent to opposite end, for opposite end, carries out code capacity adjustment.
CN201210386995.0A 2012-10-12 2012-10-12 A kind of adaptive method and device of sip terminal encoding and decoding Active CN103731232B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210386995.0A CN103731232B (en) 2012-10-12 2012-10-12 A kind of adaptive method and device of sip terminal encoding and decoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210386995.0A CN103731232B (en) 2012-10-12 2012-10-12 A kind of adaptive method and device of sip terminal encoding and decoding

Publications (2)

Publication Number Publication Date
CN103731232A true CN103731232A (en) 2014-04-16
CN103731232B CN103731232B (en) 2018-06-01

Family

ID=50455173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210386995.0A Active CN103731232B (en) 2012-10-12 2012-10-12 A kind of adaptive method and device of sip terminal encoding and decoding

Country Status (1)

Country Link
CN (1) CN103731232B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105743872A (en) * 2014-12-12 2016-07-06 华为终端(东莞)有限公司 Data transmission system and automatic adjustment method of PCM communication protocol
WO2018053806A1 (en) * 2016-09-23 2018-03-29 广东欧珀移动通信有限公司 Wireless communication method and device
WO2019007211A1 (en) * 2017-07-03 2019-01-10 腾讯科技(深圳)有限公司 Encoding and decoding capability configuration method and device, and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070011277A1 (en) * 2005-07-11 2007-01-11 Ralph Neff System and method for transferring data
CN101227482A (en) * 2008-02-02 2008-07-23 中兴通讯股份有限公司 System, apparatus and method of media negotiation in network telephone call
CN101478621A (en) * 2009-01-24 2009-07-08 华为技术有限公司 Encoding and decoding negotiation method for ciphered voice call, communication system and device
CN102223201A (en) * 2010-04-15 2011-10-19 中兴通讯股份有限公司 Negotiation method of codec capability and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070011277A1 (en) * 2005-07-11 2007-01-11 Ralph Neff System and method for transferring data
CN101227482A (en) * 2008-02-02 2008-07-23 中兴通讯股份有限公司 System, apparatus and method of media negotiation in network telephone call
CN101478621A (en) * 2009-01-24 2009-07-08 华为技术有限公司 Encoding and decoding negotiation method for ciphered voice call, communication system and device
CN102223201A (en) * 2010-04-15 2011-10-19 中兴通讯股份有限公司 Negotiation method of codec capability and terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105743872A (en) * 2014-12-12 2016-07-06 华为终端(东莞)有限公司 Data transmission system and automatic adjustment method of PCM communication protocol
WO2018053806A1 (en) * 2016-09-23 2018-03-29 广东欧珀移动通信有限公司 Wireless communication method and device
RU2710207C1 (en) * 2016-09-23 2019-12-25 Гуандун Оппо Мобайл Телекоммьюникейшнз Корп., Лтд. Wireless communication method and device
US11102677B2 (en) 2016-09-23 2021-08-24 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Wireless communication method and device
WO2019007211A1 (en) * 2017-07-03 2019-01-10 腾讯科技(深圳)有限公司 Encoding and decoding capability configuration method and device, and computer storage medium
US11044278B2 (en) 2017-07-03 2021-06-22 Tencent Technology (Shenzhen) Company Limited Transcoding capability configuration method and device and computer storage medium

Also Published As

Publication number Publication date
CN103731232B (en) 2018-06-01

Similar Documents

Publication Publication Date Title
KR100800748B1 (en) Moving picture stream transmission apparatus and method using bluetooth communication
CN104604286B (en) For transmitting as a stream and the Energy-aware multimedia adaptive of dialogue service
TWI401918B (en) A communication method for signaling buffer parameters indicative of receiver buffer architecture
CN106921843B (en) Data transmission method and device
KR101065649B1 (en) system and method for providing redundancy management
CN101990087A (en) Wireless video monitoring system and method for dynamically regulating code stream according to network state
JP2012523199A (en) Method and apparatus for session negotiation
CN102137098A (en) Method for on-line real-time recording and forwarding of audio/ video streams by mobile internet terminal
CN103118238A (en) Controlling method of video conference and video conference system
US9705935B2 (en) Efficient interworking between circuit-switched and packet-switched multimedia services
CN103731232A (en) SIP terminal encoding and decoding self-adapting method and device
CN107770473B (en) Audio and video data transmission control method and device
WO2007051343A1 (en) A bandwidth adaptive stream medium transmission system of a stream medium serving system and a method thereof
EP1724985A2 (en) Portable terminal, streaming communication system, streaming communication method, and streaming communication program
CN101686288A (en) Receiver apparatus and method, and sending and receiving system
JP2009124362A (en) Communicating system, communication apparatus, control parameter determining method, and program
CN107404363B (en) Method, system, terminal and network side equipment for adjusting voice code rate
JP2006165935A (en) Device and method for converting control information
CN109982023A (en) A kind of method for adjusting resolution in video session
CN106973252A (en) A kind of video call method and system
CN102160392A (en) Gateway device, method, system, and program
CN107210968A (en) Apparatus and method for launching in a wireless communication system and receiving speech data
JP5454354B2 (en) Control information conversion apparatus and control information conversion method
KR101038080B1 (en) Adaptive multimedia streaming service apparatus and method based on terminal device information notification
WO2013127086A1 (en) Method and device for identifying and obtaining ambe coding and decoding rate information in sdp

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant