CN105163199A - Real-time video coding method and electronic equipment - Google Patents

Real-time video coding method and electronic equipment Download PDF

Info

Publication number
CN105163199A
CN105163199A CN201510346212.XA CN201510346212A CN105163199A CN 105163199 A CN105163199 A CN 105163199A CN 201510346212 A CN201510346212 A CN 201510346212A CN 105163199 A CN105163199 A CN 105163199A
Authority
CN
China
Prior art keywords
instant video
preset shape
video frame
user
region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510346212.XA
Other languages
Chinese (zh)
Inventor
武俊敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhang Ying Information Technology Co Ltd Of Us
Original Assignee
Zhang Ying Information Technology Co Ltd Of Us
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 Zhang Ying Information Technology Co Ltd Of Us filed Critical Zhang Ying Information Technology Co Ltd Of Us
Priority to CN201510346212.XA priority Critical patent/CN105163199A/en
Publication of CN105163199A publication Critical patent/CN105163199A/en
Priority to PCT/CN2016/086140 priority patent/WO2016202286A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a real-time video coding method and electronic equipment, and belongs to the field of video. The real-time video coding method comprises the steps of acquiring a selection instruction triggered by a user, wherein the selection instruction is used for indicating a preset shape selected by the user; determining an area indicated by the preset shape in a current real-time video frame; coding at least one macro-block according to quantization parameters corresponding to the at least one macro-block forming the current real-time video frame containing the area indicated by the preset shape if the network bandwidth meets a preset condition, and generating a coded current real-time video frame; and sending the coded current real-time video frame. According to the invention, coding is carried out on the at least one macro-block according to the quantization parameters corresponding to the at least one macro-block of the current real-time video frame containing the are indicated by the preset shape, the coded current real-time video frame is generated, diversified requirements of users in the real-time video process are met, and the user experience is improved.

Description

A kind of coding method of instant video and electronic equipment
Technical field
The present invention relates to video field, particularly a kind of coding method of instant video and electronic equipment.
Background technology
Universal along with mobile device and instant video mechanics of communication, increasing user's Selection utilization mobile device realizes the mutual of instant video, under the scene of instant video interactive, may occur that the attention rate of user to a certain region in instant video is greater than other regions; Or, there will be the requirement of user to the definition in a certain region and details reserved and be greater than other regions; Or, there will be user and wish that attention rate is migrated to the problems such as the region specified by user by mutual other participants of instant video, make the coding method needing to provide a kind of instant video, meet that the attention rate of user to a certain region in instant video is greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video.
Because prior art does not provide the coding method of this instant video, thus make user in instant video process, the diversified demand that user is above-mentioned cannot be met, reduce Consumer's Experience.
Summary of the invention
In order to meet the diversified demand of user in instant video process, improving Consumer's Experience, the invention provides a kind of coding method and electronic equipment of instant video.Described technical scheme is as follows:
First aspect, provides a kind of coding method of instant video, and described method comprises:
Obtain the selection instruction that user triggers, described selection instruction is used to indicate described user-selected preset shape;
The region indicated by described preset shape is determined in current instant video frame;
If the network bandwidth meets pre-conditioned, the quantization parameter corresponding at least one macro block of the described current instant video frame in the region indicated by described preset shape is then comprised according to composition, at least one macro block described is encoded, generates the current instant video frame after coding;
Send the current instant video frame after described coding.
In conjunction with first aspect, in the implementation that the first is possible, described selection instruction comprises the special effect parameters of the size parameter of described preset shape, the location parameter of described preset shape, the frame parameter of described preset shape and described preset shape, the location parameter of described preset shape comprises coordinate parameters, describedly in current instant video frame, determines that the region indicated by described preset shape comprises:
According to described coordinate parameters, in current instant video frame, determine the region indicated by described preset shape.
In conjunction with first aspect, in the implementation that the second is possible, described selection instruction comprises the special effect parameters of the size parameter of described preset shape, the location parameter of described preset shape, the frame parameter of described preset shape and described preset shape, the location parameter of described preset shape comprises characteristic parameter, describedly in current instant video frame, determines that the region indicated by described preset shape comprises:
The details indicated by described characteristic parameter is identified in described current instant video frame;
According to described details, in described current instant video frame, determine the region indicated by described preset shape.
In conjunction with the implementation that the first or the second of first aspect are possible, in the implementation that the third is possible, after the described region determined in current instant video frame indicated by described preset shape, described method also comprises:
According to the region indicated by described preset shape, generate the importance matrix corresponding with described current instant video frame;
According to described importance matrix, described current instant video frame is processed, obtain the current instant video frame after process.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation, quantization parameter corresponding to described at least one macro block comprising the described current instant video frame in the region indicated by described preset shape according to composition, encode at least one macro block described, the current instant video frame generated after coding comprises:
Current instant video frame after described process is divided at least one macro block;
The quantization parameter arranging the macro block in the region comprised indicated by all or part of described preset shape is the first numerical value;
The quantization parameter arranging the macro block in the region do not comprised indicated by described all or part of described preset shape is second value;
According to described first numerical value and described second value, at least one macro block described is encoded, generate the current instant video frame after coding.
In conjunction with first aspect to the third arbitrary possible implementation of first aspect, in the 4th kind of possible implementation, described method also comprises:
Send described selection instruction.
Second aspect, provide a kind of display packing of instant video, the method comprises:
Obtain the current instant video frame after coding;
Show the current instant video frame after described coding;
Wherein, current instant video frame after described coding is in the selection instruction being used to indicate described user-selected preset shape obtaining user's triggering, and the network bandwidth meet pre-conditioned after, comprise the quantization parameter corresponding at least one macro block of the described current instant video frame in region indicated by described preset shape according to composition, carrying out encoding at least one macro block described generates.
In conjunction with second aspect, in the implementation that the first is possible, described method also comprises:
Obtain described selection instruction;
Show the preset shape indicated by described selection instruction.
In conjunction with the first possible implementation of second aspect, in the implementation that the second is possible, described selection instruction at least comprises the location parameter of described preset shape, described location parameter comprises the coordinate parameters of described preset shape and the characteristic parameter of described preset shape region, by any one in following operation, show the instant video frame after described process and comprise:
Described location parameter comprises the coordinate parameters of described preset shape, according to described coordinate parameters, shows the current instant video frame after described coding; Or,
Described location parameter comprises the characteristic parameter of described preset shape region, identifies the details indicated by described characteristic parameter in the current instant video frame after described coding;
According to described details, show the current instant video frame after described coding.
The third aspect, provides a kind of electronic equipment, and described electronic equipment comprises
Acquisition module, for obtaining the selection instruction that user triggers, described selection instruction is used to indicate described user-selected preset shape;
First processing module, for determining the region indicated by described preset shape in current instant video frame;
Coding module, for when the network bandwidth meets pre-conditioned, the quantization parameter corresponding at least one macro block of the described current instant video frame in the region indicated by described preset shape is comprised according to composition, at least one macro block described is encoded, generates the current instant video frame after coding;
Sending module, for sending the current instant video frame after described coding.
In conjunction with the third aspect, in the implementation that the first is possible, described selection instruction comprises at least one in the special effect parameters of the size parameter of described preset shape, the location parameter of described preset shape, the frame parameter of described preset shape and described preset shape, and described first processing module is for performing any one in following operation:
The location parameter of described preset shape comprises coordinate parameters, according to described coordinate parameters, determines the region indicated by described preset shape in current instant video frame; Or,
The location parameter of described preset shape comprises characteristic parameter, identifies the details indicated by described characteristic parameter in described current instant video frame;
According to described details, in described current instant video frame, determine the region indicated by described preset shape.
In conjunction with the first possible implementation of the third aspect, in the implementation that the second is possible, described electronic equipment also comprises the second processing module, for:
According to the region indicated by described preset shape, generate the importance matrix corresponding with described current instant video frame;
According to described importance matrix, described current instant video frame is processed, obtain the current instant video frame after process.
In conjunction with the implementation that the second of the third aspect is possible, in the implementation that the third is possible, described coding module specifically for:
Current instant video frame after described process is divided at least one macro block;
The quantization parameter arranging the macro block in the region comprised indicated by all or part of described preset shape is the first numerical value;
The quantization parameter arranging the macro block in the region do not comprised indicated by described all or part of described preset shape is second value;
According to described first numerical value and described second value, at least one macro block described is encoded, generate the current instant video frame after coding.
In conjunction with the third aspect to the third arbitrary possible implementation of the third aspect, in the 4th kind of possible implementation, described sending module also for:
Send described selection instruction.
Fourth aspect, provide a kind of electronic equipment, the processor that described electronic equipment comprises sending module, memory and is connected with described memory, described sending module, wherein, described memory is for storing batch processing code, and described processor calls program code that described memory stores for performing following operation:
Obtain the selection instruction that user triggers, described selection instruction is used to indicate described user-selected preset shape;
The region indicated by described preset shape is determined in current instant video frame;
If the network bandwidth meets pre-conditioned, the quantization parameter corresponding at least one macro block of the described current instant video frame in the region indicated by described preset shape is then comprised according to composition, at least one macro block described is encoded, generates the current instant video frame after coding;
Send the current instant video frame after described coding.
In conjunction with fourth aspect, in the implementation that the first is possible, described selection instruction comprises at least one in the special effect parameters of the size parameter of described preset shape, the location parameter of described preset shape, the frame parameter of described preset shape and described preset shape, and described processor calls program code that described memory stores for performing any one in following operation:
The location parameter of described preset shape comprises coordinate parameters, according to described coordinate parameters, determines the region indicated by described preset shape in current instant video frame; Or,
The location parameter of described preset shape comprises characteristic parameter, identifies the details indicated by described characteristic parameter in described current instant video frame;
According to described details, in described current instant video frame, determine the region indicated by described preset shape.
In conjunction with the first possible implementation of fourth aspect, in the implementation that the second is possible, described processor calls program code that described memory stores for performing following operation:
According to the region indicated by described preset shape, generate the importance matrix corresponding with described current instant video frame;
According to described importance matrix, described current instant video frame is processed, obtain the current instant video frame after process.
In conjunction with the implementation that the second of fourth aspect is possible, in the implementation that the third is possible, described processor calls program code that described memory stores for performing following operation:
Current instant video frame after described process is divided at least one macro block;
The quantization parameter arranging the macro block in the region comprised indicated by all or part of described preset shape is the first numerical value;
The quantization parameter arranging the macro block in the region do not comprised indicated by described all or part of described preset shape is second value;
According to described first numerical value and described second value, at least one macro block described is encoded, generate the current instant video frame after coding.
In conjunction with fourth aspect to the third arbitrary possible implementation of fourth aspect, in the 4th kind of possible implementation, described processor calls program code that described memory stores for performing following operation:
Send described selection instruction.
5th aspect, provides a kind of electronic equipment, and described electronic equipment comprises:
Acquisition module, for obtaining the current instant video frame after coding;
Display module, for showing the current instant video frame after described coding;
Wherein, current instant video frame after described coding is in the selection instruction being used to indicate described user-selected preset shape obtaining user's triggering, and the network bandwidth meet pre-conditioned after, comprise the quantization parameter corresponding at least one macro block of the described current instant video frame in region indicated by described preset shape according to composition, carrying out encoding at least one macro block described generates.
In conjunction with the 5th aspect, in the implementation that the first is possible,
Described acquisition module is also for obtaining described selection instruction;
Described display module is also for showing the preset shape indicated by described selection instruction.
In conjunction with the first possible implementation of the 5th aspect, in the implementation that the second is possible, described selection instruction at least comprises the location parameter of described preset shape, described location parameter comprises the coordinate parameters of described preset shape and the characteristic parameter of described preset shape region, and described display module is also for performing any one in following operation:
Described location parameter comprises the coordinate parameters of described preset shape, according to described coordinate parameters, shows the current instant video frame after described coding; Or,
Described location parameter comprises the characteristic parameter of described preset shape region, identifies the details indicated by described characteristic parameter in the current instant video frame after described coding;
According to described details, show the current instant video frame after described coding.
6th aspect, provide a kind of electronic equipment, the processor that described electronic equipment comprises display screen, memory and is connected with described display screen, described memory, wherein, described memory is for storing batch processing code, and described processor calls program code that described memory stores for performing following operation:
Obtain the current instant video frame after coding;
Show the current instant video frame after described coding;
Wherein, current instant video frame after described coding is in the selection instruction being used to indicate described user-selected preset shape obtaining user's triggering, and the network bandwidth meet pre-conditioned after, comprise the quantization parameter corresponding at least one macro block of the described current instant video frame in region indicated by described preset shape according to composition, carrying out encoding at least one macro block described generates.
In conjunction with the 6th aspect, in the implementation that the first is possible, described processor calls program code that described memory stores for performing following operation:
Obtain described selection instruction;
Show the preset shape indicated by described selection instruction.
In conjunction with the first possible implementation of the 6th aspect, in the implementation that the second is possible, described selection instruction at least comprises the location parameter of described preset shape, described location parameter comprises the coordinate parameters of described preset shape and the characteristic parameter of described preset shape region, and described processor calls program code that described memory stores for performing any one in following operation:
Described location parameter comprises the coordinate parameters of described preset shape, according to described coordinate parameters, shows the current instant video frame after described coding; Or,
Described location parameter comprises the characteristic parameter of described preset shape region, identifies the details indicated by described characteristic parameter in the current instant video frame after described coding;
According to described details, show the current instant video frame after described coding.
The invention discloses a kind of coding method and electronic equipment of instant video, comprising: obtain the selection instruction that user triggers, selection instruction is used to indicate user-selected preset shape; The region indicated by preset shape is determined in current instant video frame; If the network bandwidth meets pre-conditioned, then comprise the quantization parameter corresponding at least one macro block of the current instant video frame in the region indicated by preset shape according to composition, at least one macro block is encoded, generate the current instant video frame after coding; Send the current instant video frame after coding.By the quantization parameter corresponding at least one macro block of comprising the current instant video frame in region indicated by preset shape according to composition, at least one macro block is encoded, generate the current instant video frame after coding, meet the demand that user in instant video process wishes to be greater than the definition in selected region and details reserved other regions, further increase Consumer's Experience.In addition, by obtaining the selection instruction that user triggers, adding the mode that user selects this region, adding the interaction mode of user in instant video interactive process, meet the diversified demand of user further, improve Consumer's Experience.In addition, due to pre-conditioned by judging whether the network bandwidth meets, so when decision network bandwidth is low, instant video is processed, not only can improve the utilance of the network bandwidth, save Internet resources, improve the efficiency of transmission of instant video, can also when the network bandwidth be low, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, further increase Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the coding method flow chart of a kind of instant video that the embodiment of the present invention provides;
Fig. 2 is a kind of instant video display packing flow chart that the embodiment of the present invention provides;
Fig. 3 is the coding method flow chart of a kind of instant video that the embodiment of the present invention provides;
Fig. 4 is a kind of interface schematic diagram that the embodiment of the present invention provides;
Fig. 5 is a kind of interface schematic diagram that the embodiment of the present invention provides;
Fig. 6 is a kind of interface schematic diagram that the embodiment of the present invention provides;
Fig. 7 is a kind of interface schematic diagram that the embodiment of the present invention provides;
Fig. 8 is a kind of instant video display packing flow chart that the embodiment of the present invention provides;
Fig. 9 is a kind of interface schematic diagram that the embodiment of the present invention provides;
Figure 10 is the coding method flow chart of a kind of instant video that the embodiment of the present invention provides;
Figure 11 is a kind of interface schematic diagram that the embodiment of the present invention provides;
Figure 12 is a kind of instant video display packing flow chart that the embodiment of the present invention provides;
Figure 13 is a kind of interface schematic diagram that the embodiment of the present invention provides;
Figure 14 is a kind of electronic devices structure schematic diagram that the embodiment of the present invention provides;
Figure 15 is a kind of electronic devices structure schematic diagram that the embodiment of the present invention provides;
Figure 16 is a kind of electronic devices structure schematic diagram that the embodiment of the present invention provides;
Figure 17 is a kind of electronic devices structure schematic diagram that the embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of coding method of instant video, the method is used for a kind of interactive system at least comprising two electronic equipments, wherein, in this interactive system, these at least two electronic equipments realize the mutual of instant video by running the application program self stored, electronic equipment at least comprises transmission/reception module, video input module and there is the display module of touch controllable function, this video input module comprises camera, display module can comprise display screen, electronic equipment realizes transmission and the reception of instant video by transmission/reception module, the input of instant video is realized by video input module, realize the display of instant video by the display module with touch controllable function and obtain the instruction of user's triggering.
It should be noted that above-mentioned interactive system is only exemplary, being the method provided to further illustrate the embodiment of the present invention, not refering in particular to, the embodiment of the present invention is not limited concrete interactive system.
The coding method of a kind of instant video that embodiment one provides for the embodiment of the present invention, shown in figure 1, the method specifically comprises:
101, obtain the selection instruction that user triggers, selection instruction is used to indicate user-selected preset shape.
102, in current instant video frame, determine the region indicated by preset shape.
Concrete, selection instruction comprises at least one in the special effect parameters of the size parameter of preset shape, the location parameter of preset shape, the frame parameter of preset shape and preset shape, by any one in following operation, in current instant video frame, determine the region indicated by preset shape:
The location parameter of preset shape comprises coordinate parameters, according to coordinate parameters, determines the region indicated by preset shape in current instant video frame; Or,
The location parameter of preset shape comprises characteristic parameter, the details in current instant video frame indicated by recognition feature parameter;
According to details, in current instant video frame, determine the region indicated by preset shape.
If 103 network bandwidths meet pre-conditioned, the quantization parameter corresponding at least one macro block of the current instant video frame in the region indicated by preset shape is then comprised according to composition, at least one macro block is encoded, generates the current instant video frame after coding.
Concrete, comprise the quantization parameter corresponding at least one macro block of the current instant video frame in the region indicated by preset shape according to composition, encode at least one macro block, the current instant video frame generated after coding comprises:
Current instant video frame after process is divided at least one macro block;
The quantization parameter arranging the macro block in the region comprised indicated by all or part of preset shape is the first numerical value;
The quantization parameter arranging the macro block in the region do not comprised indicated by all or part of preset shape is second value;
According to the first numerical value and second value, at least one macro block is encoded, generate the current instant video frame after coding.
104, the current instant video frame after coding is sent.
Optionally, determine the region indicated by preset shape in current instant video frame after, method also comprises:
Region indicated by preset shape, generates the importance matrix corresponding with current instant video frame;
According to importance matrix, current instant video frame is processed, obtain the current instant video frame after process.
Optionally, method also comprises:
Send selection instruction.
Embodiments provide a kind of coding method of instant video, by the quantization parameter corresponding at least one macro block of comprising the current instant video frame in region indicated by preset shape according to composition, at least one macro block is encoded, generate the current instant video frame after coding, meet the demand that user in instant video process wishes to be greater than the definition in selected region and details reserved other regions, further increase Consumer's Experience.In addition, by obtaining the selection instruction that user triggers, adding the mode that user selects this region, adding the interaction mode of user in instant video interactive process, meet the diversified demand of user further, improve Consumer's Experience.In addition, due to pre-conditioned by judging whether the network bandwidth meets, so when decision network bandwidth is low, instant video is processed, not only can improve the utilance of the network bandwidth, save Internet resources, improve the efficiency of transmission of instant video, can also when the network bandwidth be low, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, further increase Consumer's Experience.
The display packing of a kind of instant video that embodiment two provides for the embodiment of the present invention, with reference to shown in Fig. 2, the method comprises:
201, the current instant video frame after coding is obtained.
202, the current instant video frame after code displaying.
Optionally, method also comprises:
Obtain selection instruction;
The preset shape of display indicated by selection instruction.
Optionally, selection instruction at least comprises the location parameter of preset shape, and location parameter comprises the coordinate parameters of preset shape and the characteristic parameter of preset shape region, and by any one in following operation, the instant video frame after Graphics Processing comprises:
Location parameter comprises the coordinate parameters of preset shape, according to coordinate parameters, and the current instant video frame after code displaying; Or,
Location parameter comprises the characteristic parameter of preset shape region, the details in current instant video frame in encoded indicated by recognition feature parameter;
According to details, the current instant video frame after code displaying.
Wherein, current instant video frame after coding is in the selection instruction being used to indicate user-selected preset shape obtaining user's triggering, and the network bandwidth meet pre-conditioned after, comprise the quantization parameter corresponding at least one macro block of the current instant video frame in region indicated by preset shape according to composition, carrying out encoding at least one macro block generates.
Embodiments provide a kind of display packing of instant video, by the quantization parameter corresponding at least one macro block of comprising the current instant video frame in region indicated by preset shape according to composition, at least one macro block is carried out to the current instant video frame after the coding of coding generation, meet the demand that user in instant video process wishes to be greater than the definition in selected region and details reserved other regions, further increase Consumer's Experience.In addition, by obtain and show user trigger selection instruction, add the mode that user selects this region, add the interaction mode of user in instant video interactive process, meet the diversified demand of user further, improve Consumer's Experience.
The coding method of a kind of instant video that embodiment three provides for the embodiment of the present invention, with reference to shown in Fig. 3, in embodiments of the present invention, the location parameter of preset shape comprises coordinate parameters, and the method specifically comprises:
301, obtain the selection instruction that user triggers, selection instruction is used to indicate user-selected preset shape.
Concrete, selection instruction comprises at least one in the special effect parameters of the size parameter of preset shape, the location parameter of preset shape, the frame parameter of preset shape and preset shape; This location parameter comprises coordinate parameters, and this coordinate parameters is the coordinate of the geometric center of preset shape, or this coordinate parameters is the coordinate of any three points in preset shape.
This process can be:
When user triggers the first selection interface comprising at least one preset shape in instant video clip, select at least one preset shape at this first selection interface, and show this preset shape in instant video clip, obtain this preset shape;
When user is after instant video clip stretches this preset shape, obtain the size parameter of this preset shape when user stops stretching;
When user is after instant video clip drags this preset shape, obtain the location parameter of this preset shape in instant video clip when user stops dragging;
When user triggers the second selection interface comprising at least one frame in instant video clip, select at least one frame at this second selection interface after, obtain the frame parameter of this frame; Wherein, this frame parameter comprises the color etc. of element included by frame and frame;
When user triggers the 3rd selection interface comprising at least one special efficacy in instant video clip, select at least one special efficacy at the 3rd selection interface after, obtain the special effect parameters of this special efficacy, this special efficacy comprises animation effect corresponding to multiple special efficacy element, and this special effect parameters comprises the displaying time etc. of the multiple special efficacy elements included by this special efficacy, the special efficacy animation corresponding with all special efficacy elements and this animation;
In actual applications, in the process of above-mentioned user's triggering selection instruction, step selects interface when user comprises first of at least one preset shape in instant video clip triggering, select at least one preset shape at this first selection interface after, the execution sequence obtaining each step after this preset shape is exemplary, user can after selecting one at least one preset shape, to stretch this preset shape in instant video clip, this preset shape is dragged again in instant video clip, comprise second of at least one frame in instant video clip triggering more afterwards select interface and trigger the 3rd selection interface comprising at least one special efficacy user in instant video clip, can also according to other orders, the embodiment of the present invention is not limited concrete order.
In order to the method making those skilled in the art further understand the embodiment of the present invention, be further described below in conjunction with the method for accompanying drawing to the embodiment of the present invention, suppose that instant video interface is with reference to shown in a in Fig. 4, the interface of user after the first selection interface comprising at least one preset shape is triggered at this instant video interface can with reference to shown in the b in Fig. 4; User is after selected preset shape, and stretching the interface of this preset shape in instant video clip can with reference to shown in the c in Fig. 4; User is after selected preset shape, and the interface dragging this preset shape in instant video clip can with reference to shown in the d in Fig. 4; User is after selected preset shape, and the interface after instant video clip triggers the second selection interface comprising at least one frame can with reference to shown in the e in Fig. 4; User is after selected preset shape, and the interface after instant video clip triggers the 3rd selection interface comprising at least one special efficacy can with reference to shown in the f in Fig. 4.Suppose that the operating sequence of user is: trigger first and select interface, stretching preset shape, drag preset shape, trigger second and select interface, trigger the 3rd and select interface, corresponding, the DISPLAY ORDER at interface is: a, b, c, d, e, f, can with reference to shown in Fig. 5; Wherein, the operating sequence of above-mentioned user is exemplary, in actual applications, the operating sequence of user can also be other orders, as: trigger first and select interface, dragging preset shape draws, stretch preset shape, trigger second and select interface, trigger the 3rd and select interface etc., can also comprise other operating sequences, the embodiment of the present invention is not limited concrete operating sequence.
Under the scene of instant video interactive, when the attention rate of user to a certain region in instant video is greater than other regions, or, when the requirement of user to the definition in a certain region and details reserved is greater than other regions, or, when user wishes the region that attention rate to migrate to specified by user by mutual other participants of instant video, by obtaining the selection instruction that user triggers, determine that user-selected preset shape determines user-selected region according to this selection instruction, not only meet the demand that user in instant video process wishes to be greater than the definition in selected region and details reserved other regions, further add the mode that user selects this region, add the interaction mode of user in instant video interactive process, meet the diversified demand of user further, improve Consumer's Experience.In addition, because selection instruction comprises at least one in the special effect parameters of the size parameter of preset shape, the location parameter of preset shape, the frame parameter of preset shape and preset shape, so add the display format of preset shape, meet the diversified demand of user further, improve Consumer's Experience.
302, in current instant video frame, determine the region indicated by preset shape.
Concrete, coordinate parameters, determines the region indicated by preset shape in current instant video frame.
This process can be:
At least one point indicated by this coordinate parameters is determined in current instant video frame;
Arranging this at least one point is at least one point that this preset shape comprises preset shape center.
303, judge whether the network bandwidth meets pre-conditioned; If so, then step 304 is performed; If not, then terminate.
Concrete, judge the network bandwidth and the numerical relation between the first preset value and the second preset value, the embodiment of the present invention is not limited concrete judgment mode.
If the network bandwidth is greater than or equal to the first preset value, be less than the second preset value, then perform step 206;
If the network bandwidth meets be less than the first preset value and be greater than or equal in the second preset value any one, then terminate.
Wherein, in actual applications, the first preset value is 50kb/s, and the second preset value can be 100kb/s.
Optionally, due to the unsteadiness of network bandwidth during Internet Transmission, so whether the mean value of the network bandwidth meets pre-conditioned in the preset time period before can judging current time, if so, then perform step 304; If not, then terminate.
Wherein, in actual applications, preset time period can be 0.2 second.
By judging whether the mean value of the network bandwidth in the preset time period between current time meets pre-conditioned, eliminates the unsteadiness of network bandwidth during Internet Transmission, ensure that and the reliability that instant video is encoded further increase Consumer's Experience.
Due to pre-conditioned by judging whether the network bandwidth meets, so when decision network bandwidth is low, instant video is processed, the utilance of the network bandwidth can be improved, save Internet resources, improve the efficiency of transmission of instant video, meet the attention rate of user to a certain region in instant video further and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, improve Consumer's Experience.
304, the region indicated by preset shape, generates the importance matrix corresponding with current instant video frame.
Concrete, the importance measures value of all pixels in current instant video frame is set;
Low-pass filtering treatment is carried out to the region indicated by preset shape, the current instant video frame after generating process;
According to the importance measures value of all pixels in the current instant video frame after process, generate the importance matrix corresponding with current instant video frame;
Wherein, this importance matrix is used to indicate the importance measures value of all pixels in the current instant video after according to process.
Because the embodiment of the present invention processes current instant video according to importance matrix, and importance matrix indicates the importance measures value of each pixel in current instant video, thus each pixel is processed, improve the image quality of the instant video after process, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, thus further increase Consumer's Experience.
305, according to importance matrix, current instant video frame is processed, obtain the current instant video frame after process.
Concrete, according to filtered current instant video frame, current instant video frame and importance matrix, obtain the instant video frame after process.
By the generating algorithm preset, on the basis of importance matrix, can merge current instant video frame and filtered current instant video frame, obtain the instant video frame after process, this algorithm can be:
o u t = ∂ * s r c + ( 1 - ∂ ) * l o w
Wherein, out is the instant video frame after process, and src is current instant video frame, and low is filtered current instant video frame, for importance matrix.
The region indicated by the preset shape in instant video frame and the region indicated by non-preset shape is indicated due to importance matrix, so, by importance matrix, region indicated by preset shape indicated by importance matrix is retained, utilize the region indicated by non-preset shape in the replacement of the region indicated by the non-preset shape instant video frame in the instant video frame after low-pass filtering, the image making the region in the instant video frame after the process exported indicated by preset shape is distortionless original image, the image in the region indicated by non-preset shape is the image not comprising high-frequency signal, thus when making the instant video frame after transmitting this process, bandwidth resources required when not only reducing transmission, improve the efficiency of transmission of instant video, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, further increase Consumer's Experience.
It should be noted that step 304 to step 305 is optional steps, in actual applications, after step 303, directly can perform step 306, and without the need to performing step 304 to step 305.
By the importance matrix in the region indicated by preset shape, the current instant video frame at least comprising region is processed, obtain the current instant video frame after process, the image quality in the region in the instant video after processing indicated by preset shape is made to be better than other regions, thus meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, further increase Consumer's Experience.
306, the current instant video frame after process is divided at least one macro block.
Concrete, according to the division rule preset, the current instant video frame after process can be divided at least one macro block, the embodiment of the present invention is not limited concrete division rule.
Because the current instant video frame after process comprises the region indicated by preset shape, so correspondence, comprise the macro block in the region comprised indicated by all or part of preset shape in this at least one macro block.
307, the quantization parameter arranging the macro block in the region comprised indicated by all or part of preset shape is the first numerical value.
Concrete, from least one macro block, detect the macro block in the region comprised indicated by all or part of preset shape;
Can by being used to indicate the characteristic parameter in the region indicated by preset shape, from least one macro block, detect the macro block in the region comprised indicated by all or part of preset shape, the embodiment of the present invention is not limited concrete detection mode;
Arranging this quantization parameter comprising the macro block in the region indicated by all or part of preset shape is the first numerical value.
Wherein, the quantization parameter of macro block is used to indicate this macro block fine degree in an encoding process, if this macro block fineness is in an encoding process higher, then the image detail of this macro block be retained maximum; If this macro block fineness is in an encoding process lower, then the image detail of this macro block be retained minimum;
Due in actual applications, the span of quantization parameter is between 0 to 51, so this first numerical value can for any one any number defined in user between 0 to 25 or system.
Due under the scene of instant video interactive, mutual both sides require to be greater than other regions for the attention rate in the region in instant video indicated by the preset shapes such as face region and image quality, so, can be the first numerical value by arranging this quantization parameter comprising the macro block in the region indicated by all or part of preset shape, in an encoding process, the details in the region indicated by this preset shape of more reservation, make the image quality that can ensure the region indicated by preset shape in instant video process, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, improve Consumer's Experience.
308, the quantization parameter arranging the macro block in the region do not comprised indicated by all or part of preset shape is second value.
Concrete, after the macro block detecting the region comprised indicated by all or part of preset shape from least one macro block, obtain the macro block in the region do not comprised indicated by all or part of preset shape;
Arranging this quantization parameter not comprising the macro block in the region indicated by all or part of preset shape is second value.
This second value can for any one any number defined in user between 25 to 51 or system.
Due under the scene of instant video interactive, mutual both sides require to be greater than other regions for the attention rate in the region in instant video indicated by the preset shapes such as face region and image quality, so, the quantization parameter that can arrange the macro block in the region do not comprised indicated by all or part of preset shape is second value, in an encoding process, the details that this does not comprise the macro block in the region indicated by all or part of preset shape is not retained, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, improve Consumer's Experience.In addition, the bandwidth that the macro block in the region do not comprised indicated by all or part of preset shape is shared when transmitting can also be reduced, make compared to traditional instant video transmission method, bandwidth resources needed for the method are less, thus can bandwidth resources be saved, improve the efficiency of instant video transmission, further increase Consumer's Experience.
309, according to the first numerical value and second value, at least one macro block is encoded, generate the current instant video frame after coding.
Concrete, the embodiment of the present invention is not limited concrete cataloged procedure.
It should be noted that, step 306 to step 309 is the quantization parameters corresponding at least one macro block of the current instant video frame forming the region comprised indicated by preset shape, at least one macro block is encoded, generate the process of the current instant video frame after coding, except the mode described in above-mentioned steps, can also realize this process by other means, the embodiment of the present invention is not limited concrete mode.
The quantization parameter being comprised the macro block in the region indicated by all or part of preset shape by setting is the first numerical value, the quantization parameter arranging the macro block in the region do not comprised indicated by all or part of preset shape is second value, make in an encoding process, remain the details in the region indicated by preset shape, the details in the region indicated by non-preset shape is not retained, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, improve Consumer's Experience.Make carrying out on the basis of undistorted transmission to the region indicated by preset shape simultaneously, further reduce the bandwidth that region indicated by non-preset shape is shared when transmitting, make compared to traditional instant video transmission method, the method can not only ensure the image quality in the region indicated by preset shape, and required bandwidth resources are less, thus can bandwidth resources be saved, improve the efficiency of instant video transmission, further increase Consumer's Experience.
310, the current instant video frame after coding is sent.
Concrete, the instant video frame after coding is sent to other electronic equipments.
The embodiment of the present invention is not limited concrete send mode.
Optionally, method also comprises:
311, selection instruction is sent.
Concrete, selection instruction is sent to other electronic equipments.
The embodiment of the present invention is not limited concrete send mode.
By this selection instruction is sent to other electronic equipments, make other electronic equipments can show preset shape indicated by this selection instruction, add the interactive form of instant video, meet the diversified demand of user in instant video process, further increase Consumer's Experience.In addition, by this selection instruction is sent to other electronic equipments, other electronic equipments are sent to compared to by the data of this preset shape, decrease data volume during transmission, save Internet resources, improve the efficiency of transmission of instant video, further increase Consumer's Experience.
The effect that the method provided to further illustrate the embodiment of the present invention reaches, below in conjunction with sending out figure, the method that the embodiment of the present invention provides is further illustrated, suppose that user-selected fixed preset shape is for the shape shown in Fig. 6, after method described in the embodiment of the present invention is performed to a in Fig. 7, the interface generated can with reference to shown in the b in Fig. 7, in the figure 7, definition indicated by second display effect and details reserved are greater than or equal to definition indicated by the first display effect and details reserved, definition indicated by 3rd display effect and details reserved are less than definition indicated by the first display effect and details reserved.
Under the scene of instant video interactive, the method that the embodiment of the present invention provides meets that the attention rate of user to a certain region in instant video is greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, add interactivity and the interest of instant video, further increase Consumer's Experience.
Embodiments provide a kind of coding method of instant video, by the quantization parameter corresponding at least one macro block of comprising the current instant video frame in region indicated by preset shape according to composition, at least one macro block is encoded, generate the current instant video frame after coding, meet the demand that user in instant video process wishes to be greater than the definition in selected region and details reserved other regions, further increase Consumer's Experience.In addition, by obtaining the selection instruction that user triggers, adding the mode that user selects this region, adding the interaction mode of user in instant video interactive process, meet the diversified demand of user further, improve Consumer's Experience.In addition, due to pre-conditioned by judging whether the network bandwidth meets, so when decision network bandwidth is low, instant video is processed, not only can improve the utilance of the network bandwidth, save Internet resources, improve the efficiency of transmission of instant video, can also when the network bandwidth be low, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, further increase Consumer's Experience.
The display packing of a kind of instant video that embodiment four provides for the embodiment of the present invention, with reference to shown in Fig. 8, in embodiments of the present invention, the location parameter of preset shape comprises coordinate parameters, and the method specifically comprises:
801, the current instant video frame after coding is obtained.
Concrete, electronic equipment can receive the current instant video frame after the coding of other electronic equipments transmission, also the selection instruction being used to indicate user-selected preset shape of user's triggering can be obtained at this electronic equipment, and the network bandwidth meet pre-conditioned after, the quantization parameter corresponding at least one macro block of the current instant video frame in the region indicated by preset shape is comprised according to composition, at least one macro block is encoded, after generating the current instant video frame after coding, obtain the instant video frame after this coding.
802, the current instant video frame after code displaying.
Concrete, the embodiment of the present invention is not limited concrete display mode.
Because the image quality in the region in the current instant video frame after coding indicated by preset shape is better than other regions, thus meet region user's attention rate of this electronic equipment migrated in instant video indicated by preset shape, thus meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, improve Consumer's Experience.
Optionally, method also comprises:
803, selection instruction is obtained.
Concrete, selection instruction at least comprises the location parameter of preset shape, and location parameter comprises the coordinate parameters of preset shape.
Electronic equipment can receive the selection instruction that other electronic equipments send, also the selection instruction being used to indicate user-selected preset shape of user's triggering can be obtained at this electronic equipment, and the network bandwidth meet pre-conditioned after, the importance matrix in the region indicated by preset shape, the current instant video frame at least comprising region is processed, after obtaining the current instant video frame after process, obtain this selection instruction.
804, the preset shape of display indicated by selection instruction.
Concrete, according to coordinate parameters, the current instant video frame after code displaying;
By display preset shape, region user's attention rate of this electronic equipment migrated in instant video indicated by preset shape can be realized further, thus meet that the attention rate of user to a certain region in instant video is greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, improve Consumer's Experience.In addition, because selection instruction comprises at least one in the special effect parameters of the size parameter of preset shape, the location parameter of preset shape, the frame parameter of preset shape and preset shape, so add the display format of instant video, meet the diversified demand of user further, improve Consumer's Experience.
In the embodiment of the present invention, current instant video frame after coding is in the selection instruction being used to indicate user-selected preset shape obtaining user's triggering, and the network bandwidth meet pre-conditioned after, comprise the quantization parameter corresponding at least one macro block of the current instant video frame in region indicated by preset shape according to composition, carrying out encoding at least one macro block generates.
The effect that the method provided to further illustrate the embodiment of the present invention reaches, below in conjunction with sending out figure, the method that the embodiment of the present invention provides is further illustrated, suppose that user-selected fixed preset shape is for the shape shown in Fig. 6, the interface obtaining the current instant video frame display after process can with reference to shown in the b in Fig. 9, a in Fig. 9 is the interface shown after obtaining current instant video frame, in fig .9, definition indicated by second display effect and details reserved are greater than or equal to definition indicated by the first display effect and details reserved, definition indicated by 3rd display effect and details reserved are less than definition indicated by the first display effect and details reserved.
Embodiments provide a kind of display packing of instant video, by the quantization parameter corresponding at least one macro block of comprising the current instant video frame in region indicated by preset shape according to composition, at least one macro block is carried out to the current instant video frame after the coding of coding generation, meet the demand that user in instant video process wishes to be greater than the definition in selected region and details reserved other regions, further increase Consumer's Experience.In addition, by obtain and show user trigger selection instruction, add the mode that user selects this region, add the interaction mode of user in instant video interactive process, meet the diversified demand of user further, improve Consumer's Experience.
The coding method of a kind of instant video that embodiment five provides for the embodiment of the present invention, with reference to shown in Figure 10, shown in, in embodiments of the present invention, the location parameter of preset shape comprises characteristic parameter, this characteristic parameter is for describing the details in instant video frame in region indicated by user-selected fixed preset shape, exemplary, if at least comprise face in region indicated by user-selected fixed preset shape, then this details can be the eyes of user, nose, mouth and eyebrow etc., and the method specifically comprises:
1001, obtain the selection instruction that user triggers, selection instruction is used to indicate user-selected preset shape.
Concrete, this step is identical with step 301, is or else repeated herein.
Under the scene of instant video interactive, when the attention rate of user to a certain region in instant video is greater than other regions, or, when the requirement of user to the definition in a certain region and details reserved is greater than other regions, or, when user wishes the region that attention rate to migrate to specified by user by mutual other participants of instant video, by obtaining the selection instruction that user triggers, determine that user-selected preset shape determines user-selected region according to this selection instruction, not only meet the demand that user in instant video process wishes to be greater than the definition in selected region and details reserved other regions, further add the mode that user selects this region, add the interaction mode of user in instant video interactive process, meet the diversified demand of user further, improve Consumer's Experience.In addition, because selection instruction comprises at least one in the special effect parameters of the size parameter of preset shape, the location parameter of preset shape, the frame parameter of preset shape and preset shape, so add the display format of preset shape, meet the diversified demand of user further, improve Consumer's Experience.
1002, the details in current instant video frame indicated by recognition feature parameter.
Concrete, obtain the characteristic parameter of all characteristic points in current instant video frame;
The similarity obtained between characteristic parameter included in characteristic parameter and selection instruction is greater than or equal to all characteristic points of predetermined threshold value;
Determine the details of details indicated by characteristic parameter that this all characteristic point forms.
The attention rate of user to a certain region in instant video is greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, that other regions are greater than to the attention rate of the details in this region, other regions are greater than to the definition of the details in this region and the requirement of details reserved and wish that attention rate is migrated to the details in the region specified by user by mutual other participants of instant video, by the details in current instant video frame indicated by recognition feature parameter, meet the attention rate of user to the details in this region and be greater than other regions, other regions are greater than to the definition of the details in this region and the requirement of details reserved and wish that attention rate is migrated to the diversified demand of the details in the region specified by user by mutual other participants of instant video.
1003, according to details, in current instant video frame, the region indicated by preset shape is determined.
Concrete, the coordinate of the characteristic point of this this details of composition is set to the coordinate of the point in the region indicated by preset shape.
In addition, can also by other means, realize according to details, in current instant video frame, determine the region indicated by preset shape, the embodiment of the present invention be limited concrete mode.
The position of the details in the region indicated by preset shape can change, so determine the region indicated by preset shape according to details in current instant video frame, further meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, add interactivity and the interest of instant video, further increase Consumer's Experience.
It should be noted that, step 1002 to step 1003 is the processes realizing determining the region indicated by preset shape in current instant video frame, except the mode described in above-mentioned steps, can also realize this process by other means, the embodiment of the present invention is not limited concrete process.
By the details in current instant video frame indicated by recognition feature parameter, and according to details, the region indicated by preset shape is determined in current instant video frame, details position in region in instant frame of video indicated by preset shape changes, meet the attention rate of user to the details in the region indicated by preset shape and be greater than other regions, other regions are greater than to the definition of the details in the region indicated by preset shape and the requirement of details reserved and wish instant video mutual other participants attention rate is migrated to indicated by preset shape the details in region, thus meet the attention rate of user to a certain region in instant video further and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, add interactivity and the interest of instant video, further increase Consumer's Experience.
1004, judge whether the network bandwidth meets pre-conditioned; If so, then step 1005 is performed; If not, then terminate.
Concrete, this step is identical with step 303, is or else repeated herein.
Optionally, due to the unsteadiness of network bandwidth during Internet Transmission, so whether the mean value of the network bandwidth meets pre-conditioned in the preset time period before can judging current time, if so, then perform step 1005; If not, then terminate.
Wherein, in actual applications, preset time period can be 0.2 second.
By judging whether the mean value of the network bandwidth in the preset time period between current time meets pre-conditioned, eliminates the unsteadiness of network bandwidth during Internet Transmission, ensure that and the reliability that instant video is encoded further increase Consumer's Experience.
Due to pre-conditioned by judging whether the network bandwidth meets, so when decision network bandwidth is low, instant video is processed, the utilance of the network bandwidth can be improved, save Internet resources, improve the efficiency of transmission of instant video, meet the attention rate of user to a certain region in instant video further and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, improve Consumer's Experience.
1005, the region indicated by preset shape, generates the importance matrix corresponding with current instant video frame;
Concrete, this step is identical with step 304, is or else repeated herein.
Because the embodiment of the present invention processes current instant video according to importance matrix, and importance matrix indicates the importance measures value of each pixel in current instant video, thus each pixel is processed, improve the image quality of the instant video after process, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, thus further increase Consumer's Experience.
1006, according to importance matrix, current instant video frame is processed, obtain the current instant video frame after process.
Concrete, this step is identical with step 305, is or else repeated herein.
The region indicated by the preset shape in instant video frame and the region indicated by non-preset shape is indicated due to importance matrix, so, by importance matrix, region indicated by preset shape indicated by importance matrix is retained, utilize the region indicated by non-preset shape in the replacement of the region indicated by the non-preset shape instant video frame in the instant video frame after low-pass filtering, the image making the region in the instant video frame after the process exported indicated by preset shape is distortionless original image, the image in the region indicated by non-preset shape is the image not comprising high-frequency signal, thus when making the instant video frame after transmitting this process, bandwidth resources required when not only reducing transmission, improve the efficiency of transmission of instant video, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, further increase Consumer's Experience.
It should be noted that step 1005 to step 1006 is optional steps, in actual applications, after step 1004, directly can perform step 1007, and without the need to performing step 1005 to step 1006.
By the importance matrix in the region indicated by preset shape, the current instant video frame at least comprising region is processed, obtain the current instant video frame after process, the image quality in the region in the instant video after processing indicated by preset shape is made to be better than other regions, thus meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, further increase Consumer's Experience.
1007, the current instant video frame after process is divided at least one macro block;
Concrete, this step is identical with step 306, is or else repeated herein.
1008, the quantization parameter arranging the macro block in the region comprised indicated by all or part of preset shape is the first numerical value;
Concrete, this step is identical with step 307, is or else repeated herein.
Due under the scene of instant video interactive, mutual both sides require to be greater than other regions for the attention rate in the region in instant video indicated by the preset shapes such as face region and image quality, so, can be the first numerical value by arranging this quantization parameter comprising the macro block in the region indicated by all or part of preset shape, in an encoding process, the details in the region indicated by this preset shape of more reservation, make the image quality that can ensure the region indicated by preset shape in instant video process, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, improve Consumer's Experience.
1009, the quantization parameter arranging the macro block in the region do not comprised indicated by all or part of preset shape is second value;
Concrete, this step is identical with step 308, is or else repeated herein.
Due under the scene of instant video interactive, mutual both sides require to be greater than other regions for the attention rate in the region in instant video indicated by the preset shapes such as face region and image quality, so, the quantization parameter that can arrange the macro block in the region do not comprised indicated by all or part of preset shape is second value, in an encoding process, the details that this does not comprise the macro block in the region indicated by all or part of preset shape is not retained, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, improve Consumer's Experience.In addition, the bandwidth that the macro block in the region do not comprised indicated by all or part of preset shape is shared when transmitting can also be reduced, make compared to traditional instant video transmission method, bandwidth resources needed for the method are less, thus can bandwidth resources be saved, improve the efficiency of instant video transmission, further increase Consumer's Experience.
1010, according to the first numerical value and second value, at least one macro block is encoded, generate the current instant video frame after coding.
Concrete, this step is identical with step 309, is or else repeated herein.
It should be noted that, step 1007 to step 1010 is the quantization parameters corresponding at least one macro block of the current instant video frame forming the region comprised indicated by preset shape, at least one macro block is encoded, generate the process of the current instant video frame after coding, except the mode described in above-mentioned steps, can also realize this process by other means, the embodiment of the present invention is not limited concrete mode.
The quantization parameter being comprised the macro block in the region indicated by all or part of preset shape by setting is the first numerical value, the quantization parameter arranging the macro block in the region do not comprised indicated by all or part of preset shape is second value, make in an encoding process, remain the details in the region indicated by preset shape, the details in the region indicated by non-preset shape is not retained, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, improve Consumer's Experience.Make carrying out on the basis of undistorted transmission to the region indicated by preset shape simultaneously, further reduce the bandwidth that region indicated by non-preset shape is shared when transmitting, make compared to traditional instant video transmission method, the method can not only ensure the image quality in the region indicated by preset shape, and required bandwidth resources are less, thus can bandwidth resources be saved, improve the efficiency of instant video transmission, further increase Consumer's Experience.
1011, the current instant video frame after coding is sent.
Concrete, the instant video frame after coding is sent to other electronic equipments.
The embodiment of the present invention is not limited concrete send mode.
Optionally, method also comprises:
1011, selection instruction is sent.
Concrete, selection instruction is sent to other electronic equipments.
By this selection instruction is sent to other electronic equipments, make other electronic equipments can show preset shape indicated by this selection instruction, add the interactive form of instant video, meet the diversified demand of user in instant video process, further increase Consumer's Experience.In addition, by this selection instruction is sent to other electronic equipments, other electronic equipments are sent to compared to by the data of this preset shape, decrease data volume during transmission, save Internet resources, improve the efficiency of transmission of instant video, further increase Consumer's Experience.
The effect that the method provided to further illustrate the embodiment of the present invention reaches, below in conjunction with sending out figure, the method that the embodiment of the present invention provides is further illustrated, suppose that user-selected fixed preset shape is for the shape shown in Fig. 6, after method described in the embodiment of the present invention is performed to a in Figure 11, the interface generated can with reference to shown in the b in Figure 11, if the position of the user in instant video interface in picture changes, then interface can with reference to shown in the c in Figure 11, in fig. 11, definition indicated by second display effect and details reserved are greater than or equal to definition indicated by the first display effect and details reserved, definition indicated by 3rd display effect and details reserved are less than definition indicated by the first display effect and details reserved.
Under the scene of instant video interactive, the method that the embodiment of the present invention provides meets that the attention rate of user to a certain region in instant video is greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, add interactivity and the interest of instant video, further increase Consumer's Experience.In addition, the position of the details in the region indicated by preset shape can change, so determine the region indicated by preset shape according to details in current instant video frame, details position in region in instant frame of video indicated by preset shape is changed, still can ensure the image quality of this details region, thus further meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, add interactivity and the interest of instant video, further increase Consumer's Experience.Such as, face is comprised, by performing the method described in the embodiment of the present invention, when face location changes in region indicated by preset shape, the position in the region indicated by preset shape also can change along with face, thus ensures the image quality of this face region.
Embodiments provide a kind of coding method of instant video, by the quantization parameter corresponding at least one macro block of comprising the current instant video frame in region indicated by preset shape according to composition, at least one macro block is encoded, generate the current instant video frame after coding, meet the demand that user in instant video process wishes to be greater than the definition in selected region and details reserved other regions, further increase Consumer's Experience.In addition, by obtaining the selection instruction that user triggers, adding the mode that user selects this region, adding the interaction mode of user in instant video interactive process, meet the diversified demand of user further, improve Consumer's Experience.In addition, due to pre-conditioned by judging whether the network bandwidth meets, so when decision network bandwidth is low, instant video is processed, not only can improve the utilance of the network bandwidth, save Internet resources, improve the efficiency of transmission of instant video, can also when the network bandwidth be low, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, further increase Consumer's Experience.In addition, by determining the region indicated by preset shape in current instant video frame according to details, details position in region in instant frame of video indicated by preset shape is changed, still can ensure the image quality of this details region, thus further meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, add interactivity and the interest of instant video, further increase Consumer's Experience.
The display packing of a kind of instant video that embodiment six provides for the embodiment of the present invention, with reference to shown in Figure 12, in embodiments of the present invention, the location parameter of preset shape comprises characteristic parameter, this characteristic parameter is for describing the details in instant video frame in region indicated by user-selected fixed preset shape, exemplary, if at least comprise face in region indicated by user-selected fixed preset shape, then this details can be the eyes of user, nose, mouth and eyebrow etc., and the method specifically comprises:
1201, the current instant video frame after coding is obtained.
Concrete, this step is identical with step 801, is or else repeated herein.
1202, the current instant video frame after code displaying.
Concrete, this step is identical with step 802, is or else repeated herein.
Because the image quality in the region in the current instant video frame after coding indicated by preset shape is better than other regions, thus meet region user's attention rate of this electronic equipment migrated in instant video indicated by preset shape, thus meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, improve Consumer's Experience.
Optionally, method also comprises:
1203, selection instruction is obtained.
Concrete, selection instruction at least comprises the location parameter of preset shape, and location parameter comprises the characteristic parameter of preset shape.
In addition, this step is identical with step 803, is or else repeated herein.
1204, the details in current instant video frame in encoded indicated by recognition feature parameter.
Concrete, this step is identical with the process of the details in current instant video frame indicated by recognition feature parameter described in step 1002, is or else repeated herein.
The attention rate of user to a certain region in instant video is greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, that other regions are greater than to the attention rate of the details in this region, other regions are greater than to the definition of the details in this region and the requirement of details reserved and wish that attention rate is migrated to the details in the region specified by user by mutual other participants of instant video, by the details in current instant video frame after treatment indicated by recognition feature parameter, region user's attention rate of this electronic equipment migrated in instant video indicated by preset shape can be realized further, meet the attention rate of user to the details in this region and be greater than other regions, other regions are greater than to the definition of the details in this region and the requirement of details reserved and wish that attention rate is migrated to the diversified demand of the details in the region specified by user by mutual other participants of instant video.
1205, according to details, the current instant video frame after code displaying.
Concrete, according to details, in current instant video frame, determine the position of preset shape;
Show this comprise the process of preset shape after instant video frame.
The position of the details in the region indicated by preset shape can change, so according to details, current instant video frame after Graphics Processing, further meet that the attention rate of user to a certain region in instant video is greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, add interactivity and the interest of instant video, further increase Consumer's Experience.
It should be noted that, step 1204 to step 1205 is the processes realizing the preset shape of display indicated by selection instruction, except the mode described in above-mentioned steps, can also realize this process according to other modes, the embodiment of the present invention is not limited concrete process.
By display preset shape, region user's attention rate of this electronic equipment migrated in instant video indicated by preset shape can be realized further, thus meet that the attention rate of user to a certain region in instant video is greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, improve Consumer's Experience.In addition, because selection instruction comprises at least one in the special effect parameters of the size parameter of preset shape, the location parameter of preset shape, the frame parameter of preset shape and preset shape, so add the display format of instant video, meet the diversified demand of user further, improve Consumer's Experience.In addition, by according to details, current instant video frame after Graphics Processing, details position in region in instant frame of video indicated by preset shape changes, meet the attention rate of user to the details in the region indicated by preset shape and be greater than other regions, other regions are greater than to the definition of the details in the region indicated by preset shape and the requirement of details reserved and wish instant video mutual other participants attention rate is migrated to indicated by preset shape the details in region, thus meet the attention rate of user to a certain region in instant video further and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, add interactivity and the interest of instant video, further increase Consumer's Experience.In addition, the position of the details in the region indicated by preset shape can change, so determine the region indicated by preset shape according to details in current instant video frame, details position in region in instant frame of video indicated by preset shape is changed, still can ensure the image quality of this details region, thus further meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, add interactivity and the interest of instant video, further increase Consumer's Experience.Such as, face is comprised, by performing the method described in the embodiment of the present invention, when face location changes in region indicated by preset shape, the position in the region indicated by preset shape also can change along with face, thus ensures the image quality of this face region.
In embodiments of the present invention, current instant video frame after coding is in the selection instruction being used to indicate user-selected preset shape obtaining user's triggering, and the network bandwidth meet pre-conditioned after, comprise the quantization parameter corresponding at least one macro block of the current instant video frame in region indicated by preset shape according to composition, carrying out encoding at least one macro block generates.
The effect that the method provided to further illustrate the embodiment of the present invention reaches, below in conjunction with sending out figure, the method that the embodiment of the present invention provides is further illustrated, suppose that user-selected fixed preset shape is for the shape shown in Fig. 6, the interface obtaining the current instant video frame display after process can with reference to shown in the b in Figure 13, a in Figure 13 is the interface shown after obtaining current instant video frame, if the position of the user in instant video interface in picture changes, then interface can with reference to shown in the c in Figure 13, in fig. 13, definition indicated by second display effect and details reserved are greater than or equal to definition indicated by the first display effect and details reserved, definition indicated by 3rd display effect and details reserved are less than definition indicated by the first display effect and details reserved.
Embodiments provide a kind of display packing of instant video, by the quantization parameter corresponding at least one macro block of comprising the current instant video frame in region indicated by preset shape according to composition, at least one macro block is carried out to the current instant video frame after the coding of coding generation, meet the demand that user in instant video process wishes to be greater than the definition in selected region and details reserved other regions, further increase Consumer's Experience.In addition, by obtain and show user trigger selection instruction, add the mode that user selects this region, add the interaction mode of user in instant video interactive process, meet the diversified demand of user further, improve Consumer's Experience.In addition, by according to the current instant video frame after details code displaying, details position in region in instant frame of video indicated by preset shape is changed, still can ensure the image quality of this details region, thus further meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, add interactivity and the interest of instant video, further increase Consumer's Experience.
A kind of electronic equipment 14 that embodiment seven provides for the embodiment of the present invention, with reference to shown in Figure 14, this electronic equipment 14 comprises:
Acquisition module 1401, for obtaining the selection instruction that user triggers, selection instruction is used to indicate user-selected preset shape;
First processing module 1402, for determining the region indicated by preset shape in current instant video frame;
Coding module 1403, for when the network bandwidth meets pre-conditioned, comprise the quantization parameter corresponding at least one macro block of the current instant video frame in the region indicated by preset shape according to composition, at least one macro block is encoded, generate the current instant video frame after coding;
Sending module 1404, for sending the current instant video frame after coding.
Optionally, selection instruction comprises at least one in the special effect parameters of the size parameter of preset shape, the location parameter of preset shape, the frame parameter of preset shape and preset shape, and the first processing module 1402 is for performing any one in following operation:
The location parameter of preset shape comprises coordinate parameters, according to coordinate parameters, determines the region indicated by preset shape in current instant video frame; Or,
The location parameter of preset shape comprises characteristic parameter, the details in current instant video frame indicated by recognition feature parameter;
According to details, in current instant video frame, determine the region indicated by preset shape.
Optionally, electronic equipment also comprises the second processing module, for:
Obtain the importance matrix in the region indicated by preset shape;
Low-pass filtering is carried out to current instant video frame, obtains filtered current instant video frame;
According to importance matrix, current instant video frame and filtered current instant video frame are merged, the current instant video frame after generating process.
Optionally, coding module 1403 specifically for:
Current instant video frame after process is divided at least one macro block;
The quantization parameter arranging the macro block in the region comprised indicated by all or part of preset shape is the first numerical value;
The quantization parameter arranging the macro block in the region do not comprised indicated by all or part of preset shape is second value;
According to the first numerical value and second value, at least one macro block is encoded, generate the current instant video frame after coding.
Optionally, sending module 1404 also for:
Send selection instruction.
Embodiments provide a kind of electronic equipment, this electronic equipment passes through the quantization parameter corresponding at least one macro block of the current instant video frame forming the region comprised indicated by preset shape, at least one macro block is encoded, generate the current instant video frame after coding, meet the demand that user in instant video process wishes to be greater than the definition in selected region and details reserved other regions, further increase Consumer's Experience.In addition, by obtaining the selection instruction that user triggers, adding the mode that user selects this region, adding the interaction mode of user in instant video interactive process, meet the diversified demand of user further, improve Consumer's Experience.In addition, due to pre-conditioned by judging whether the network bandwidth meets, so when decision network bandwidth is low, instant video is processed, not only can improve the utilance of the network bandwidth, save Internet resources, improve the efficiency of transmission of instant video, can also when the network bandwidth be low, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, further increase Consumer's Experience.
A kind of electronic equipment 15 that embodiment eight provides for the embodiment of the present invention, with reference to shown in Figure 15, the processor 1504 that this electronic equipment 15 comprises display screen 1501, sending module 1502, memory 1503 and is connected with display screen 1501, sending module 1502, memory 1503, wherein, memory 1503 is for storing batch processing code, and processor 1504 calls the program code of memory 1503 storage for performing following operation:
Obtain the selection instruction that user triggers on display screen 1501, selection instruction is used to indicate user-selected preset shape;
The region indicated by preset shape is determined in current instant video frame;
If the network bandwidth meets pre-conditioned, then comprise the quantization parameter corresponding at least one macro block of the current instant video frame in the region indicated by preset shape according to composition, at least one macro block is encoded, generate the current instant video frame after coding;
Send the current instant video frame after coding.
Optionally, processor 1504 calls the program code of memory 1503 storage for performing following operation:
The location parameter of preset shape comprises coordinate parameters, according to coordinate parameters, determines the region indicated by preset shape in current instant video frame; Or,
The location parameter of preset shape comprises characteristic parameter, the details in current instant video frame indicated by recognition feature parameter;
According to details, in current instant video frame, determine the region indicated by preset shape.
Optionally, processor 1504 calls the program code of memory 1503 storage for performing following operation:
Region indicated by preset shape, generates the importance matrix corresponding with current instant video frame;
According to importance matrix, current instant video frame is processed, obtain the current instant video frame after process.
Optionally, processor 1504 calls the program code of memory 1503 storage for performing following operation:
Current instant video frame after process is divided at least one macro block;
The quantization parameter arranging the macro block in the region comprised indicated by all or part of preset shape is the first numerical value;
The quantization parameter arranging the macro block in the region do not comprised indicated by all or part of preset shape is second value;
According to the first numerical value and second value, at least one macro block is encoded, generate the current instant video frame after coding.
Optionally, processor 1504 calls the program code of memory 1503 storage for performing following operation:
Send selection instruction.
Embodiments provide a kind of electronic equipment, this electronic equipment passes through the quantization parameter corresponding at least one macro block of the current instant video frame forming the region comprised indicated by preset shape, at least one macro block is encoded, generate the current instant video frame after coding, meet the demand that user in instant video process wishes to be greater than the definition in selected region and details reserved other regions, further increase Consumer's Experience.In addition, by obtaining the selection instruction that user triggers, adding the mode that user selects this region, adding the interaction mode of user in instant video interactive process, meet the diversified demand of user further, improve Consumer's Experience.In addition, due to pre-conditioned by judging whether the network bandwidth meets, so when decision network bandwidth is low, instant video is processed, not only can improve the utilance of the network bandwidth, save Internet resources, improve the efficiency of transmission of instant video, can also when the network bandwidth be low, meet the attention rate of user to a certain region in instant video and be greater than other regions, the requirement of user to the definition in a certain region and details reserved is greater than other regions and user and wishes that attention rate is migrated to the diversified demand in the region specified by user by mutual other participants of instant video, further increase Consumer's Experience.
A kind of electronic equipment 16 that embodiment nine provides for the embodiment of the present invention, with reference to shown in Figure 16, this electronic equipment 16 comprises:
Acquisition module 1601, for obtaining the current instant video frame after coding;
Display module 1602, for showing the current instant video frame after described coding;
Wherein, current instant video frame after described coding is in the selection instruction being used to indicate described user-selected preset shape obtaining user's triggering, and the network bandwidth meet pre-conditioned after, comprise the quantization parameter corresponding at least one macro block of the described current instant video frame in region indicated by described preset shape according to composition, carrying out encoding at least one macro block described generates.
Optionally,
Described acquisition module 1601 is also for obtaining described selection instruction;
Described display module 1602 is also for showing the preset shape indicated by described selection instruction.
Optionally, described display module 1602 is also for performing any one in following operation:
Described location parameter comprises the coordinate parameters of described preset shape, according to described coordinate parameters, shows the current instant video frame after described coding; Or,
Described location parameter comprises the characteristic parameter of described preset shape region, identifies the details indicated by described characteristic parameter in the current instant video frame after described coding;
According to described details, show the current instant video frame after described coding.
Embodiments provide a kind of electronic equipment, this electronic equipment passes through the quantization parameter corresponding at least one macro block of the current instant video frame forming the region comprised indicated by preset shape, at least one macro block is carried out to the current instant video frame after the coding of coding generation, meet the demand that user in instant video process wishes to be greater than the definition in selected region and details reserved other regions, further increase Consumer's Experience.In addition, by obtain and show user trigger selection instruction, add the mode that user selects this region, add the interaction mode of user in instant video interactive process, meet the diversified demand of user further, improve Consumer's Experience.
A kind of electronic equipment 17 that embodiment ten provides for the embodiment of the present invention, with reference to shown in Figure 17, the processor 1703 that this electronic equipment 17 comprises display screen 1701, memory 1702 and display screen 1701, memory 1702 connects, memory 1702 stores batch processing code, and processor 1703 calls program code that memory 1702 stores for performing following operation:
Obtain the current instant video frame after coding;
Control display screen 1701 shows the current instant video frame after described coding;
Wherein, current instant video frame after described coding is in the selection instruction being used to indicate described user-selected preset shape obtaining user's triggering, and the network bandwidth meet pre-conditioned after, comprise the quantization parameter corresponding at least one macro block of the described current instant video frame in region indicated by described preset shape according to composition, carrying out encoding at least one macro block described generates.
Optionally, processor 1703 calls program code that memory 1702 stores for performing following operation:
Obtain described selection instruction;
Control display screen 1701 shows the preset shape indicated by described selection instruction.
Optionally, processor 1703 calls program code that memory 1702 stores for performing any one in following operation:
Described location parameter comprises the coordinate parameters of described preset shape, controls display screen 1701 according to described coordinate parameters, shows the current instant video frame after described coding; Or,
Described location parameter comprises the characteristic parameter of described preset shape region, identifies the details indicated by described characteristic parameter in the current instant video frame after described coding;
Control display screen 1701 according to described details, show the current instant video frame after described coding.
Embodiments provide a kind of electronic equipment, this electronic equipment passes through the quantization parameter corresponding at least one macro block of the current instant video frame forming the region comprised indicated by preset shape, at least one macro block is carried out to the current instant video frame after the coding of coding generation, meet the demand that user in instant video process wishes to be greater than the definition in selected region and details reserved other regions, further increase Consumer's Experience.In addition, by obtain and show user trigger selection instruction, add the mode that user selects this region, add the interaction mode of user in instant video interactive process, meet the diversified demand of user further, improve Consumer's Experience.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
It should be noted that: the electronic equipment that above-described embodiment provides is when carrying out the coding of instant video, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by equipment is divided into different functional modules, to complete all or part of function described above.In addition, the coding method embodiment of the electronic equipment that above-described embodiment provides and instant video belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
These are only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. a coding method for instant video, is characterized in that, described method comprises:
Obtain the selection instruction that user triggers, described selection instruction is used to indicate described user-selected preset shape;
The region indicated by described preset shape is determined in current instant video frame;
If the network bandwidth meets pre-conditioned, the quantization parameter corresponding at least one macro block of the described current instant video frame in the region indicated by described preset shape is then comprised according to composition, at least one macro block described is encoded, generates the current instant video frame after coding;
Send the current instant video frame after described coding.
2. method according to claim 1, it is characterized in that, described selection instruction comprises the special effect parameters of the size parameter of described preset shape, the location parameter of described preset shape, the frame parameter of described preset shape and described preset shape, the location parameter of described preset shape comprises coordinate parameters, describedly in current instant video frame, determines that the region indicated by described preset shape comprises:
According to described coordinate parameters, in current instant video frame, determine the region indicated by described preset shape.
3. method according to claim 1, it is characterized in that, described selection instruction comprises the special effect parameters of the size parameter of described preset shape, the location parameter of described preset shape, the frame parameter of described preset shape and described preset shape, the location parameter of described preset shape comprises characteristic parameter, describedly in current instant video frame, determines that the region indicated by described preset shape comprises:
The details indicated by described characteristic parameter is identified in described current instant video frame;
According to described details, in described current instant video frame, determine the region indicated by described preset shape.
4. according to the method in claim 2 or 3, it is characterized in that, after the described region determined in current instant video frame indicated by described preset shape, described method also comprises:
According to the region indicated by described preset shape, generate the importance matrix corresponding with described current instant video frame;
According to described importance matrix, described current instant video frame is processed, obtain the current instant video frame after process.
5. method according to claim 4, it is characterized in that, quantization parameter corresponding to described at least one macro block comprising the described current instant video frame in the region indicated by described preset shape according to composition, encode at least one macro block described, the current instant video frame generated after coding comprises:
Current instant video frame after described process is divided at least one macro block;
The quantization parameter arranging the macro block in the region comprised indicated by all or part of described preset shape is the first numerical value;
The quantization parameter arranging the macro block in the region do not comprised indicated by described all or part of described preset shape is second value;
According to described first numerical value and described second value, at least one macro block described is encoded, generate the current instant video frame after coding.
6. method according to claim 5, is characterized in that, described method also comprises:
Send described selection instruction.
7. an instant video display packing, is characterized in that, described method comprises:
Obtain the current instant video frame after coding;
Show the current instant video frame after described coding;
Wherein, current instant video frame after described coding is in the selection instruction being used to indicate described user-selected preset shape obtaining user's triggering, and the network bandwidth meet pre-conditioned after, comprise the quantization parameter corresponding at least one macro block of the described current instant video frame in region indicated by described preset shape according to composition, carrying out encoding at least one macro block described generates.
8. method according to claim 7, is characterized in that, described method also comprises:
Obtain described selection instruction;
Show the preset shape indicated by described selection instruction.
9. method according to claim 8, it is characterized in that, described selection instruction at least comprises the location parameter of described preset shape, described location parameter comprises the coordinate parameters of described preset shape and the characteristic parameter of described preset shape region, by any one in following operation, show the instant video frame after described process and comprise:
Described location parameter comprises the coordinate parameters of described preset shape, according to described coordinate parameters, shows the current instant video frame after described coding; Or,
Described location parameter comprises the characteristic parameter of described preset shape region, identifies the details indicated by described characteristic parameter in the current instant video frame after described coding;
According to described details, show the current instant video frame after described coding.
10. an electronic equipment, is characterized in that, described electronic equipment comprises:
Acquisition module, for obtaining the selection instruction that user triggers, described selection instruction is used to indicate described user-selected preset shape;
First processing module, for determining the region indicated by described preset shape in current instant video frame;
Coding module, for when the network bandwidth meets pre-conditioned, the quantization parameter corresponding at least one macro block of the described current instant video frame in the region indicated by described preset shape is comprised according to composition, at least one macro block described is encoded, generates the current instant video frame after coding;
Sending module, for sending the current instant video frame after described coding.
11. 1 kinds of electronic equipments, is characterized in that, described electronic equipment comprises:
Acquisition module, for obtaining the current instant video frame after coding;
Display module, for showing the current instant video frame after described coding;
Wherein, current instant video frame after described coding is in the selection instruction being used to indicate described user-selected preset shape obtaining user's triggering, and the network bandwidth meet pre-conditioned after, comprise the quantization parameter corresponding at least one macro block of the described current instant video frame in region indicated by described preset shape according to composition, carrying out encoding at least one macro block described generates.
CN201510346212.XA 2015-06-19 2015-06-19 Real-time video coding method and electronic equipment Pending CN105163199A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510346212.XA CN105163199A (en) 2015-06-19 2015-06-19 Real-time video coding method and electronic equipment
PCT/CN2016/086140 WO2016202286A1 (en) 2015-06-19 2016-06-17 Real-time video transmission method and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510346212.XA CN105163199A (en) 2015-06-19 2015-06-19 Real-time video coding method and electronic equipment

Publications (1)

Publication Number Publication Date
CN105163199A true CN105163199A (en) 2015-12-16

Family

ID=54803939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510346212.XA Pending CN105163199A (en) 2015-06-19 2015-06-19 Real-time video coding method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105163199A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016202285A1 (en) * 2015-06-19 2016-12-22 美国掌赢信息科技有限公司 Real-time video transmission method and electronic apparatus
WO2016202287A1 (en) * 2015-06-19 2016-12-22 美国掌赢信息科技有限公司 Real-time video transmission method and electronic apparatus
WO2016202286A1 (en) * 2015-06-19 2016-12-22 美国掌赢信息科技有限公司 Real-time video transmission method and electronic apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110258288A1 (en) * 2006-04-06 2011-10-20 General Electric Company Adaptive Selection of Image Streaming Mode
CN102984495A (en) * 2012-12-06 2013-03-20 北京小米科技有限责任公司 Video image processing method and device
WO2014000238A1 (en) * 2012-06-28 2014-01-03 宇龙计算机通信科技(深圳)有限公司 Terminal and video image compression method
CN104469253A (en) * 2015-01-05 2015-03-25 掌赢信息科技(上海)有限公司 Face beautification method in real-time video and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110258288A1 (en) * 2006-04-06 2011-10-20 General Electric Company Adaptive Selection of Image Streaming Mode
WO2014000238A1 (en) * 2012-06-28 2014-01-03 宇龙计算机通信科技(深圳)有限公司 Terminal and video image compression method
CN102984495A (en) * 2012-12-06 2013-03-20 北京小米科技有限责任公司 Video image processing method and device
CN104469253A (en) * 2015-01-05 2015-03-25 掌赢信息科技(上海)有限公司 Face beautification method in real-time video and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016202285A1 (en) * 2015-06-19 2016-12-22 美国掌赢信息科技有限公司 Real-time video transmission method and electronic apparatus
WO2016202287A1 (en) * 2015-06-19 2016-12-22 美国掌赢信息科技有限公司 Real-time video transmission method and electronic apparatus
WO2016202286A1 (en) * 2015-06-19 2016-12-22 美国掌赢信息科技有限公司 Real-time video transmission method and electronic apparatus

Similar Documents

Publication Publication Date Title
CN105049949A (en) Coding method of instant video and electronic equipment
CN104574306A (en) Face beautifying method for real-time video and electronic equipment
CN104780339A (en) Method and electronic equipment for loading expression effect animation in instant video
CN105049948A (en) Coding method of instant video and electronic equipment
CN111163318B (en) Human-machine vision coding method and device based on feedback optimization
CN102984495A (en) Video image processing method and device
CN105163195A (en) Real-time video coding method and electronic equipment
CN104869346A (en) Method and electronic equipment for processing image in video call
CN106971399B (en) Image-mosaics detection method and device
CN104469253A (en) Face beautification method in real-time video and electronic equipment
CN105554430A (en) Video call method, system and device
CN105049947A (en) Transmission method of instant video and electronic equipment
CN104967914A (en) Instant video coding method and electronic device
CN105163199A (en) Real-time video coding method and electronic equipment
CN108810610A (en) screen sharing method and device
CN105163194A (en) Real-time video coding method and electronic equipment
CN104967917A (en) Instant video coding method and electronic device
CN104052992B (en) A kind of image processing method and electronic equipment
CN105163196A (en) Real-time video coding method and electronic equipment
CN105163125A (en) Real-time video coding method and electronic equipment
CN105163197A (en) Real-time video coding method and electronic equipment
CN105163198A (en) Real-time video coding method and electronic equipment
CN104994405A (en) Instant-video transmission method and electronic equipment
WO2021079592A1 (en) Information processing device, 3d data generation method, and program
CN106921840B (en) Face beautifying method, device and system in instant video

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151216

WD01 Invention patent application deemed withdrawn after publication