CN100551027C - The control method of video format and system thereof in the video communication - Google Patents

The control method of video format and system thereof in the video communication Download PDF

Info

Publication number
CN100551027C
CN100551027C CNB2006100574603A CN200610057460A CN100551027C CN 100551027 C CN100551027 C CN 100551027C CN B2006100574603 A CNB2006100574603 A CN B2006100574603A CN 200610057460 A CN200610057460 A CN 200610057460A CN 100551027 C CN100551027 C CN 100551027C
Authority
CN
China
Prior art keywords
video
data
format
video format
packets
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.)
Active
Application number
CNB2006100574603A
Other languages
Chinese (zh)
Other versions
CN101039408A (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.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CNB2006100574603A priority Critical patent/CN100551027C/en
Publication of CN101039408A publication Critical patent/CN101039408A/en
Application granted granted Critical
Publication of CN100551027C publication Critical patent/CN100551027C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses the control method and the system thereof of video format in a kind of video communication, wherein said method is provided with the packet header that can hold video format information at least in video packets of data, this method further comprises: transmitting terminal obtains video data according to the current video form, and compresses this video data and obtain video packets of data; In described video packets of data packet header, write the current video format information, and send to receiving terminal; Receive termination and judge whether the represented video format of video format information in the video packets of data packet header is identical with the presently used video format of receiving terminal, if identical then according to the video format decode video data bag and the display video image of current use; Otherwise behind the configuration of the video format in video packets of data packet header decoder, decode video data bag and display video image.The present invention can transmit video format information the video communication both sides immediately effectively, and can quick Switch Video form.

Description

The control method of video format and system thereof in the video communication
Technical field
The present invention relates to field of computer technology, the control method and the system thereof of video format in particularly a kind of video communication.
Background technology
During existing instant messaging was used, video communication is one to be used very widely, and along with popularizing of video communication, the user is also more and more higher to the various demands of video communication, comprised quality, size, fluency of video or the like.Wherein, the video in the current communication adopt big video still be small video also be that the user pays close attention to, and the size of so-called video just is meant a kind of of video format, so need carry out better controlled to satisfy user's different demands to video format.
Video communication is generally based on a kind of video format, communication two party can be when the initialization communication connects, consult an identical video format, and jointly carry out video and obtain with this video format, coding, decoding, operations such as demonstration in actual applications, need change video format sometimes in the video communication process, do not see such as picture is too for a short time, need become big to picture, perhaps network condition is too poor, and big picture bandwidth consumed is too big, need become little picture and transmit etc., these just need be changed video format.
Why video format wants both sides unified, is that receiving terminal then reduces video according to unified video format, and shows with this form because transmitting terminal will send to receiving terminal to video data compression again.If the video format disunity is then received and can't correctly be reduced behind the video data and correctly show, also just can't carry out video communication.
In the prior art, the general mode that adopts of Switch Video form is: stop local video earlier, send a message then to the other side, tell the video format that the other side will change, the other side obtains stopping corresponding video after the message, carries out the video setting again with new video format again, return the message of an affirmation then, after the message of affirmation is received in this locality, restart video, begin the video communication under the new video format then with new video format.
Above-mentioned prior art has following shortcoming: at first, the mutual process of confirming of both sides is very loaded down with trivial details, and carries out such can expending a lot of times alternately, further can make the user wait for the long time; In addition, when network condition is bad, the situation of packet time-delay or packet loss can take place, if the affirmation packet delay in the reciprocal process, will expend the more stand-by period, and, may cause video communication can't continue normally to carry out in case the affirmation bag is lost.
Summary of the invention
In view of this, the present invention proposes the control method of video format in a kind of video communication, its purpose is, transmits video format information the video communication both sides effectively immediately.Further aim of the present invention is for being implemented in the quick Switch Video form of video communication both sides.
Another object of the present invention is to propose the control system of video format in a kind of video communication.
According to above-mentioned purpose, the invention provides the control method of video format in a kind of video communication, this method is provided with the packet header that can hold video format information at least in video packets of data, and this method further may further comprise the steps:
A. transmitting terminal obtains video data according to the current video form, and compresses this video data and obtain video packets of data;
B. in described video packets of data packet header, write the current video format information, and send to receiving terminal;
C. receiving terminal judges whether the represented video format of video format information in the video packets of data packet header is identical with the presently used video format of receiving terminal, if identical then according to the video format decode video data bag and the display video image of current use; Otherwise behind the configuration of the video format in video packets of data packet header decoder, decode video data bag and display video image.
Further comprise the step that transmitting terminal is provided with video format and disposes sending ending equipment according to set video format before the steps A.
Further comprise before the steps A and change the current video form and according to the step of the current video format configuration sending ending equipment after changing.
Further comprise the step of obtaining the current video form before the step B.
Described current video format information is the code of current video form or expression current video form.
Described video format comprises video size and/or video code model.
The present invention also provides the control system of video format in a kind of video communication, and this system comprises transmitting terminal and receiving terminal.Wherein, the transmitting terminal of this system comprises: video capture device is used for obtaining video data according to the current video form; Encoder is used for obtaining video packets of data according to the coding video data of current video form to being obtained; The video sending module is used for writing the current video format information in video packets of data packet header, and sends to receiving terminal.The receiving terminal of this system comprises: the video reception module, be used to receive described video packets of data, judge whether the represented video format of video format information in the video packets of data packet header is identical with the presently used video format of receiving terminal, if identical then send decoder to according to the video format decode video data bag of current use and with video packets of data; Otherwise behind the configuration of the video format in video packets of data packet header decoder, send video packets of data to decoder; Decoder is used for obtaining video data according to current video formats video packets of data, and sends video data to video display apparatus; Video display apparatus is used for according to decoded video data display video image.
The transmitting terminal of this system comprises that further video format is provided with module, and this video format is provided with module and is used for disposing video capture device, encoder and video sending module according to the new video format of user's setting.
From such scheme, as can be seen,, thereby can transmit video format information the video communication both sides effectively immediately because the present invention has increased the packet header of carrying video format information in the video packets of data that transmitting terminal sends.And further, in needs Switch Video form, need not both sides sends message repeatedly and determines new video format, can automatically switch to new video format, not only remove reciprocal process loaded down with trivial details when switching from, allowed video format switch and carry out fast, guaranteed both sides' video format unanimity, and avoided time-delay in the prior art or influence that packet loss brought, guaranteed the correctness of video format.
Description of drawings
Fig. 1 is a video packets of data transmission flow common in the prior art;
Fig. 2 is the schematic flow sheet according to the method for the embodiment of the invention;
Fig. 3 is the structured flowchart according to the system of the embodiment of the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in more detail by the following examples.
Video format among the present invention can be to comprise contents such as video size, video coding mode.Only be the example explanation in the following embodiments, but it will be appreciated by those skilled in the art that the present invention does not limit to therewith with the video size.
As shown in Figure 1, common video packets of data process of transmitting is: at first obtain video data from the video capture device camera, by obtaining video packets of data after the encoder compresses, then video packets of data is directly sent then.In the present embodiment, in the video packets of data that is sent, increase a packet header, wherein write down the employed video format information of current video bag.When the video communication connection is set up, both sides have just negotiated a unified video format, and when sending video packets of data, the video format that this is unified writes video packets of data packet header so, send to the other side in the lump, the other side then is correspondingly processed according to the video format in the packet header.
Fig. 2 is the schematic flow sheet of the embodiment of the invention.With reference to Fig. 2, present embodiment may further comprise the steps:
Step 101 sets in advance packet header of video packets of data, and this packet header can hold video format information at least.This setting up procedure also comprises the implication of informing video format information representative in the both sides packet header, so that both sides are consistent.
Video format information can directly be the current video form, also can be the code of expression current video form.With the video size is example, if the current video size is 320*240, video format information can be 320*240 so, also can be the code of expression 320*240, as long as both sides can identification.
Step 102, change the current video form if the user sends instruction, then transmitting terminal receives the video format that the user changes, and the relevant device of transmitting terminal is set according to the video format that changes, for example video capture device, encoder etc. are with as new current video form.
If the user does not change the current video form, execution in step 102 not then.This moment, the current video form of transmitting terminal was the video format that is provided with before this, and transmitting terminal has disposed the relevant device of transmitting terminal, for example video capture device, encoder etc. according to set video format after video format is set.
Step 103, video capture device obtains video data according to the current video form.
Step 104, the encoder video data that compression is obtained according to the current video form obtains video packets of data.
Step 105 is obtained the current video form, writes the current video format information in the packet header of video packets of data, i.e. the video format information of this packet.
Step 106, transmitting terminal sends to the other side with video packets of data, i.e. receiving terminal.
Following step 107 to step 113 is described receiving terminal according to the video format information decode video data bag in the video packets of data packet header and the flow process of display video image.
Step 107 after receiving terminal receives video packets of data, is resolved packet header and is obtained video format information.
Step 108 judges whether the local current video form of the described video format that obtains and receiving terminal is identical from packet header, if identical then execution in step 109 and subsequent step; Otherwise expression the other side has changed video format, and the video data that is sent also is to handle with new video format, so need at first change the video format of receiving terminal, then receiving terminal execution in step 111 and subsequent step.
Step 109, the decoder of receiving terminal is according to current video formats video data.
Step 110 according to decoded video data display video image, finishes current handling process.
Step 111, according to new video format, the video format configuration relevant device that promptly obtains from packet header comprises decoder etc.
Step 112, decoder is with new video format decode video data.
Step 113 is according to decoded video data display video image.
Fig. 3 is the system configuration schematic diagram according to the embodiment of the invention.With reference to Fig. 3, this system comprises transmitting terminal and receiving terminal.
Transmitting terminal comprises video capture device, encoder, video sending module.Wherein, video capture device obtains video data according to the current video form; Encoder to the coding video data that video equipment obtains, obtains video packets of data according to the current video form; The video sending module writes the current video format information in the packet header of described video packets of data, and sends to receiving terminal.Transmitting terminal can further include video format module is set, this video format is provided with new video format configuration video equipment, encoder and the video sending module that module is provided with according to the user, thereby makes these equipment to operate accordingly according to new video format.
The receiving terminal of this system comprises video reception module, decoder, video display apparatus.Wherein, the video packets of data that video reception module receiving end/sending end is sent, the packet header of resolving wherein obtains video format information, and judges whether the described video format that obtains from packet header is identical with receiving terminal this locality current video form, if identical then send video packets of data to decoder; Otherwise dispose decoder according to new video format, and send video packets of data to decoder.Decoder is according to current video formats video data, and decoded video data is sent to video display apparatus.Video display apparatus is according to decoded video data display video image.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1, the control method of video format in a kind of video communication is characterized in that, the packet header that can hold video format information at least is set in video packets of data, and this method further may further comprise the steps:
A. transmitting terminal obtains video data according to the current video form, and the video data that compression is obtained obtains video packets of data;
B. in described video packets of data packet header, write the current video format information, and send to receiving terminal;
C. receiving terminal judges whether the represented video format of video format information in the video packets of data packet header is identical with the presently used video format of receiving terminal, if identical then according to the video format decode video data bag and the display video image of current use; Otherwise behind the configuration of the video format in video packets of data packet header decoder, decode video data bag and display video image.
2, method according to claim 1 is characterized in that, further comprises the step that video format is set and disposes sending ending equipment according to set video format before the steps A.
3, method according to claim 1 is characterized in that, further comprises before the steps A changing the current video form and according to the step of the current video format configuration sending ending equipment after changing.
4, method according to claim 1 is characterized in that, further comprises the step of obtaining the current video form before the step B.
According to the described method of one of claim 1~4, it is characterized in that 5, described current video format information is the code of current video form or expression current video form.
According to the described method of one of claim 1~4, it is characterized in that 6, described video format comprises video size and/or video code model.
7, the control system of video format in a kind of video communication, this system comprises transmitting terminal and receiving terminal, it is characterized in that,
The transmitting terminal of this system comprises:
Video capture device is used for obtaining video data according to the current video form;
Encoder is used for obtaining video packets of data according to the coding video data of current video form to being obtained;
The video sending module is used for writing the current video format information in video packets of data packet header, and sends to receiving terminal;
The receiving terminal of this system comprises:
The video reception module, be used to receive described video packets of data, judge whether the represented video format of video format information in the video packets of data packet header is identical with the presently used video format of receiving terminal, if identical then send decoder to according to the video format decode video data bag of current use and with video packets of data; Otherwise behind the configuration of the video format in video packets of data packet header decoder, send video packets of data to decoder;
Decoder is used for obtaining video data according to current video formats video packets of data, and sends video data to video display apparatus;
Video display apparatus is used for according to decoded video data display video image.
8, system according to claim 7, it is characterized in that, the transmitting terminal of this system comprises that further video format is provided with module, and this video format is provided with module and is used for disposing video capture device, encoder and video sending module according to the new video format of user's setting.
CNB2006100574603A 2006-03-15 2006-03-15 The control method of video format and system thereof in the video communication Active CN100551027C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100574603A CN100551027C (en) 2006-03-15 2006-03-15 The control method of video format and system thereof in the video communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100574603A CN100551027C (en) 2006-03-15 2006-03-15 The control method of video format and system thereof in the video communication

Publications (2)

Publication Number Publication Date
CN101039408A CN101039408A (en) 2007-09-19
CN100551027C true CN100551027C (en) 2009-10-14

Family

ID=38890012

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100574603A Active CN100551027C (en) 2006-03-15 2006-03-15 The control method of video format and system thereof in the video communication

Country Status (1)

Country Link
CN (1) CN100551027C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065269A (en) * 2010-11-18 2011-05-18 深圳市同洲电子股份有限公司 Method for carrying out video session, video session system and set top boxes (STBs)
CN103024509B (en) * 2012-12-07 2017-02-01 深圳Tcl新技术有限公司 Method and device for displaying multimedia file information on television
CN104184980A (en) * 2014-07-21 2014-12-03 联想(北京)有限公司 Data processing method and electronic device

Also Published As

Publication number Publication date
CN101039408A (en) 2007-09-19

Similar Documents

Publication Publication Date Title
CN112422508A (en) Method and system for playing video in browser webpage
CN103414894A (en) Wireless real-time screen transfer equipment and method
CN107241563B (en) Video transmission method, intelligent mobile terminal and device with storage function
CN101662662A (en) Video-on-demand method, system and set top box
EP2227066A1 (en) Message service implementation method and device
CN104703053A (en) Packet loss processing method, device and system of video transmission process
WO2021168649A1 (en) Multifunctional receiving device and conference system
CN103856809A (en) Method, system and terminal equipment for multipoint at the same screen
CN106790612A (en) A kind of dynamic virtual camera mapping method and system
CN100551027C (en) The control method of video format and system thereof in the video communication
CN100459695C (en) Method of transmitting video data, and transmission system
CN103384319B (en) The image-scaling method and system of double-current video conference terminal
CN102223406B (en) System and method for network-based digitalized real-time transmission of video information
CN101931797A (en) Mobile communication terminal and video call method
CN205105347U (en) Video wireless transmission equipment, video playback devices and system
CN106685908A (en) Protection method for audio data completeness in audio live broadcasting process
CN109104581B (en) Wireless screen transmission method, system and receiving terminal
JP2006109466A (en) Message transmitting apparatus and method in mobile communication terminal
CN104391576A (en) Remote input method and device based on wireless Ethernet
CN104580289A (en) Method, device and system for controlling user equipment
CN107454462B (en) Data transmission method, device and system
US20150189231A1 (en) Video conferencing system
CN110248038B (en) Image transmission method and system based on WIFI
CN201123043Y (en) Household wireless multimedia game system
CN110266911B (en) Decoding method and device capable of realizing synchronous switching of video matrix and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20190802

Address after: 518057 Nanshan District science and technology zone, Guangdong, Zhejiang Province, science and technology in the Tencent Building on the 1st floor of the 35 layer

Co-patentee after: Tencent cloud computing (Beijing) limited liability company

Patentee after: Tencent Technology (Shenzhen) Co., Ltd.

Address before: Shenzhen Futian District City, Guangdong province 518044 Zhenxing Road, SEG Science Park 2 East Room 403

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.

TR01 Transfer of patent right