CN106973331A - A kind of video broadcasting method and device - Google Patents
A kind of video broadcasting method and device Download PDFInfo
- Publication number
- CN106973331A CN106973331A CN201710159807.3A CN201710159807A CN106973331A CN 106973331 A CN106973331 A CN 106973331A CN 201710159807 A CN201710159807 A CN 201710159807A CN 106973331 A CN106973331 A CN 106973331A
- Authority
- CN
- China
- Prior art keywords
- video frame
- angle
- angle value
- target
- equipment
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/482—End-user interface for program selection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4858—End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/647—Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
- H04N21/64746—Control signals issued by the network directed to the server or the client
- H04N21/64753—Control signals issued by the network directed to the server or the client directed to the client
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/65—Transmission of management data between client and server
- H04N21/654—Transmission by server directed to the client
- H04N21/6547—Transmission by server directed to the client comprising parameters, e.g. for client setup
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The embodiments of the invention provide a kind of video broadcasting method and device, applied to the first equipment, methods described includes:Receive the initial video frame of the second equipment transmission;The angle value of the angle value of the screen of first equipment and the screen of second equipment is obtained, as first angle value and second angle value, wherein, the angle value is:The angle of angle between the default side and preset reference face of equipment;Judge whether first equipment is consistent with the laying state of second equipment according to the first angle value and the second angle value;If it has not, calculating the angle difference between the first angle value and the second angle value, the third angle angle value is used as;The initial video frame is adjusted according to the third angle angle value, target video frame is obtained;Show the target video frame.Video is played by implementing scheme provided in an embodiment of the present invention, preferably video display effect can be obtained.
Description
Technical field
The present invention relates to technical field of video processing, more particularly to a kind of video broadcasting method and device.
Background technology
Raising with user to Information Communication rate request, the live software live for new media is gradually by popular joyous
Meet.The user of live software carries out live or watched live usually using portable equipments such as mobile phones.
When carrying out live, live promoter (main broadcaster) can both select transverse screen live, it is also an option that portrait layout is live.For
For spectators, only when the screen state of its equipment and the screen state of main broadcaster are consistent, it can just watch complete
Live picture.If the screen state of viewer apparatus and main broadcaster's is inconsistent, picture can be caused to show incomplete problem.Example
Such as:Assuming that main broadcaster's equipment is identical with the screen size of viewer apparatus, main broadcaster's equipment portrait layout is played, shown in such as Fig. 1 (a), frame of video
Full of whole screen, screen edge and frame of video imbricate, if viewer apparatus selection transverse screen viewing, shown in such as Fig. 1 (b), is erected
The frame of video of screen is played on the screen of transverse screen, and frame of video can exceed the indication range of screen, therefore picture can be shown not exclusively,
Namely video display effect is not good.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of video broadcasting method and device, to obtain preferably video playback
Effect.Concrete technical scheme is as follows:
In a first aspect, the embodiments of the invention provide a kind of video broadcasting method, applied to the first equipment, methods described bag
Include:
Receive the initial video frame of the second equipment transmission;
The angle value of the angle value of the screen of first equipment and the screen of second equipment is obtained, first is used as
Angle value and second angle value, wherein, the angle value is:The angle of angle between the default side and preset reference face of equipment
Degree;
Putting for first equipment and second equipment is judged according to the first angle value and the second angle value
Whether configuration state is consistent;
If it has not, calculating the angle difference between the first angle value and the second angle value, third angle is used as
Value;
The initial video frame is adjusted according to the third angle angle value, target video frame is obtained;
Show the target video frame.
Optionally, it is described that the initial video frame is adjusted according to the third angle angle value, the step of obtaining target video frame,
Including:
Target component is obtained according to the third angle angle value, wherein, the target component is used to determine the target video
The size of frame;
The initial video frame is adjusted according to the target component and the third angle angle value, target video frame is obtained.
Optionally, the step of acquisition target component according to the third angle angle value, including:
The target component m is obtained according to below equation:
M=(a+r) %4, wherein, a is the first angle value, and r is the third angle angle value, and % is remainder symbol.
Optionally, it is described that the initial video frame is adjusted according to the target component and the third angle angle value, obtain
The step of target video frame, including:
The initial video frame is rotated into the third angle angle value, intermediate video frame is obtained;
According to the target component, reference edge is determined from the side of first device screen;
The target width for determining target video frame is the numerical value of no more than described reference edge lengths;
According to the ratio of width to height of the target width and the initial video frame, the target for calculating the target video frame is high
Degree;
The width of the target width and the intermediate video frame is inconsistent or the object height and the Intermediate View
In the case that the height of frequency frame is inconsistent, the intermediate video frame is contracted according to the target width and the object height
Processing is put, target video frame is obtained.
Optionally, it is described according to the target component, the step of determining reference edge from the side of first device screen,
Including:
When the target component is odd number, the shorter edge of screen is defined as the reference edge;Otherwise
The longer sides of screen are defined as the reference edge.
Second aspect, the embodiments of the invention provide a kind of video play device, applied to the first equipment, described device bag
Include:
Receiving module, for receiving the initial video frame that the second equipment is sent;
Obtain module, for the screen that obtains first equipment angle value and second equipment screen angle
Angle value, as first angle value and second angle value, wherein, the angle value is:The default side of equipment and preset reference face it
Between angle angle;
Judge module, for judging first equipment and described according to the first angle value and the second angle value
Whether the laying state of the second equipment is consistent;
Computing module, for if it has not, calculate the angle difference between the first angle value and the second angle value,
It is used as the third angle angle value;
Adjusting module, for adjusting the initial video frame according to the third angle angle value, obtains target video frame;
Display module, for showing the target video frame.
Optionally, the adjusting module, including:
Submodule is obtained, for obtaining target component according to the third angle angle value, wherein, the target component is used for true
The size of the fixed target video frame;
Submodule is adjusted, for adjusting the initial video frame according to the target component and the third angle angle value,
Obtain target video frame.
Optionally, the acquisition submodule, specifically for:
The target component m is obtained according to below equation:
M=(a+r) %4, wherein, a is the first angle value, and r is the third angle angle value, and % is remainder symbol.
Optionally, the adjustment submodule, including:
Submodule is rotated, for the initial video frame to be rotated into the third angle angle value, intermediate video frame is obtained;
First determination sub-module, for according to the target component, reference to be determined from the side of first device screen
Side;
Second determination sub-module, for determining that the target width of target video frame is the number of no more than described reference edge lengths
Value;
Calculating sub module, for the ratio of width to height according to the target width and the initial video frame, calculates the target
The object height of frame of video;
Submodule is scaled, it is inconsistent or the target is high for the width in the target width and the intermediate video frame
In the case that degree and the height of the intermediate video frame are inconsistent, according to the target width and the object height in described
Between frame of video zoom in and out processing, obtain target video frame.
Optionally, first determination sub-module, specifically for:
When the target component is odd number, the shorter edge of screen is defined as the reference edge;Otherwise
The longer sides of screen are defined as the reference edge.
A kind of video broadcasting method and device provided in an embodiment of the present invention, when the screen shape of the first equipment and the second equipment
When state is inconsistent, the initial video frame that the second equipment is sent is adjusted according to the third angle angle value, and then acquisition can be in the first equipment
On the target video frame that completely shows.The factor that can not be completely shown on the first device due to causing original video frame includes two
Angle value between the screen of equipment is different, therefore, and the angle value (the third angle angle value) of two equipment rooms difference can reflect initially
Difference between frame of video and the target video frame for needing acquisition.So, according to obtained by the third angle angle value adjusts initial video frame
The target video frame arrived, can completely show on the first device, and then obtain preferably video display effect.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 (a) is in portrait layout state for the equipment of main broadcaster and carries out live broadcast state schematic diagram;
Spectators' transverse screen watches live broadcast state schematic diagram when Fig. 1 (b) is main broadcaster's portrait layout state plays;
Fig. 2 is a kind of schematic flow sheet of video broadcasting method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of video play device provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
The embodiments of the invention provide a kind of video broadcasting method and device, it is described in detail individually below.
First, a kind of video broadcasting method provided in an embodiment of the present invention is introduced, methods described is applied to the first equipment.The
One equipment can be portable electric appts, such as smart mobile phone, tablet personal computer.In a kind of application scenarios, the first equipment
Can be the video recipient in live video, such as equipment that spectators are held in studio.
As shown in Fig. 2 a kind of video broadcasting method that the embodiment of the present invention is provided, the above method comprises the following steps:
S201:Receive the initial video frame of the second equipment transmission;
After the second equipment and the first equipment, which are set up, to be connected, video requency frame data is sent to the first equipment, by frame of video
Transmit to the first equipment.Above-mentioned second equipment can be portable electric appts, such as smart mobile phone, tablet personal computer.It is optional
, the equipment that the second equipment can be held for the main broadcaster in studio.
Because initial video frame is gathered by the camera of the second equipment, the parameter of camera determines point of initial video frame
Resolution.Under actual conditions, exist the first equipment for playing frame of video screen resolution and initial video frame resolution ratio not
Situation about matching somebody with somebody, accordingly, it would be desirable to which initial video frame is adjusted, that is, performs subsequent step, to cause the first equipment smoothly to play
Frame of video.
S202:The angle value of the angle value of the screen of first equipment and the screen of second equipment is obtained, is made
For first angle value and second angle value, wherein, the angle value is:Angle between the default side and preset reference face of equipment
Angle;
The angle value of the screen of first equipment is the angle value between the default side and preset reference face of local screen, also
It is to say that the angle value between the default side and preset reference face using local screen is used as first angle value.The screen angle of second equipment
Angle value for the second equipment default side and preset reference face between angle, can receive and obtain at the second equipment, and by its
It is used as second angle value.
, can be by developer's Uniform provisions for presetting side, preset reference face.Specifically, default side can be mobile phone
Any one side in top margin, base, left side or right edge when vertical upright state is placed.Preset reference face can be water
Plane, vertical plane.The default side and preset reference face of second equipment can be identical with the first equipment.
S203:First equipment and second equipment are judged according to the first angle value and the second angle value
Laying state it is whether consistent;
The angle value of equipment is to determine the foundation of mobile phone laying state, and in actual use, mobile phone can be any with 0-360 °
Angle value is placed, but provides a laying state if each angle value, is born without heavy calculating is carried out suspected of equipment belt
Load.Therefore, it can by the laying state of mobile phone be divided into it is upright, right fall, stand upside down, it is left fall four kinds of states.In a kind of implementation
In, it is upright, right fall, stand upside down, it is left fall four kinds of states, respectively corresponding angle value be 0,90 °, 180 ° and 270 °, that is to say, that when
Mobile phone from upright state be rotated clockwise to 90 ° when, by mobile phone be set to it is right fall state;When mobile phone is rotated to 180 °, by mobile phone
It is set to handstand state;When mobile phone rotation refers to 270 °, mobile phone is set to left state.
Or, in another implementation, upright state corresponding angles angle value is that 0, the left corresponding angles of falling state angle value is
90 °, handstand state corresponding angles angle value be 180 °, the right corresponding angles of falling state angle value be 270 °.
When first angle value same state corresponding with second angle value, i.e. the screen of the first equipment and the second equipment
Screen is in same state, then can carry out normal play;Otherwise, the screen state between the first equipment and the second equipment differs
Cause, then need, according to the difference between two device screen states, can just play out after adjusting initial video frame, reach preferably
Result of broadcast, that is, perform step S204.
S204:If it has not, calculating the angle difference between the first angle value and the second angle value, the 3rd is used as
Angle value;
When S203 judged result is no, angle difference is calculated.When calculating angle difference, it can be subtracted with first angle value
Second angle value is gone, first angle value can also be subtracted with second angle value, when the angle value calculated is negative, will be taken definitely
Angle value after value is used as angle difference.
It is understood that under normal circumstances, the angle value of mobile phone is 0,90 °, 180 °, 270 ° or be worth in aforementioned four attached
It is near to float, i.e., first angle value (or second angle value) generally 0,90 °, 180 °, fluctuate near 270 ° or aforementioned four value, because
The angle difference of this two angle, usually 0,90 °, 180 °, 270 °, in such cases, third angle is defined as by angle difference
Value.If angle difference is for during any value, selection is nearest with angle difference from aforementioned four numerical value in aforementioned four numerical value
An angle value be defined as the third angle angle value.
S205:The initial video frame is adjusted according to the third angle angle value, target video frame is obtained;
For the zoom operations that operation can be including rotation process, frame of video that adjust of initial video frame., wherein it is desired to say
Bright, above-mentioned rotation process does not imply that the rotation process relative to equipment, for example, as shown in Fig. 1 (a) (b)
Two video frame images and without rotation processing.
It should be noted that the angle reacted due to the third angle angle value between the first equipment and the second device screen differs journey
Degree, above-mentioned two device screens angle difference degree is different, causes the first equipment different from the difference of the second device screen state, because
The size of this target video frame that can be shown in the first equipment indication range is different, and then, two device screen angles difference
Degree is one of influence target video frame angle, the factor of size.Therefore according to the third angle angle value by after initial video framing control
Play on the first device, preferable result of broadcast can be obtained.For example, the screen angle of the first equipment and the second equipment is distinguished
As shown in Fig. 1 (a), (b), the second equipment differs 90 ° with the first device screen, then needs just may be used initial video frame size reduction
Normal display, to reach preferable result of broadcast;If the screen angle of two equipment is conversely, the second equipment and the first device screen phase
Poor 270 ° (turning clockwise) then need to amplify initial video frame, to obtain more preferable result of broadcast.
Specifically, target component can be obtained according to the third angle angle value, wherein, target component is used to determine target video frame
Size;According to target component and the third angle angle value adjustment initial video frame, target video frame is obtained.That is, according to
The third angle angle value rotates initial video frame, and video frame size is zoomed in and out to initial video frame according to determined by target component,
And then obtain target video frame.
Optionally, the mode of adjustment initial video frame can include:Initial video frame is rotated into the third angle angle value, in acquisition
Between frame of video;According to target component, reference edge is determined from the side of first device screen;Determine the target of target video frame
Width is no more than with reference to the numerical value of edge lengths;According to the ratio of width to height of target width and initial video frame, target video frame is calculated
Object height;It is inconsistent or height of object height and intermediate video frame differs in the width of target width and intermediate video frame
In the case of cause, processing is zoomed in and out to middle frame of video according to target width and object height, target video frame is obtained.
The acquisition process of target video frame illustrated below.Assuming that the width of initial video frame high respectively 9cm, 14cm,
The third angle angle value is 90 °, and before display, initial video frame is rotated by 90 ° by preset direction, obtains intermediate video frame (wide high score
Wei 14cm*9cm), then obtain and refer to edge lengths, it is assumed that with reference to edge lengths be 10cm, then target width can be determined
For 10cm, further according to the wide high proportion (9 of initial video frame:14) object height is calculated, the size of target video frame is obtained, when
When above-mentioned size and inconsistent initial reference frame size, initial video frame is adjusted according to above-mentioned size.Wherein, reference edge
For the side of the first equipment, therefore using reference edge as foundation, initial video frame is adjusted according to aforesaid way, it is ensured that identified
Size can be adapted to play on the first device screen, and then obtain preferable result of broadcast.
Optionally, target component m can be obtained according to below equation:M=(a+r) %4, wherein, a is first angle value, r
For the third angle angle value, % is remainder symbol.For the determination of reference edge, it may comprise steps of:When target component is odd number
When, the shorter edge of screen is defined as reference edge;Otherwise the longer sides of screen are defined as reference edge.
Assuming that first angle value is 90 °, second angle value is 0, i.e. the first equipment (local device) right side, which is put upside down, puts, and second sets
Standby upright placement.The third angle angle value then be can be calculated for 90 °, and then understand that target component is even number for 0,0 according to above-mentioned formula,
Therefore, the longer sides of local device screen are defined as reference edge.
S206:Show the target video frame.
Display target frame of video, to be played out to video.
A kind of video broadcasting method provided in an embodiment of the present invention, when the screen state of the first equipment and the second equipment differs
During cause, the initial video frame that the second equipment is sent is adjusted according to the third angle angle value, and then acquisition can be complete on the first device
The target video frame of display.The factor that can not be completely shown on the first device due to causing original video frame is to include two equipment
Screen between angle value it is different, therefore, the angle value (the third angle angle value) of two equipment rooms difference can reflect initial video
Difference between frame and the target video frame for needing acquisition.So, obtained by the third angle angle value adjustment initial video frame
Target video frame, can completely show on the first device, and then obtain preferably video display effect.
A concrete application scene is exemplified below, the method provided the embodiment of the present invention is further described.At this
In scene, the first equipment is the viewer apparatus of spectators in studio, and the second equipment is to initiate the master of live main broadcaster in studio
Broadcast equipment.Main broadcaster's equipment sends the initial video frame of recording to viewer apparatus, and viewer apparatus is obtained and carried out after initial video frame
Preserve, and obtain the screen angle value (second angle value) and local screen angle value (first angle value) of main broadcaster's equipment to judge
Whether the state of local screen is consistent with main broadcaster's device screen state, when two device screen states are inconsistent, calculates two equipment
Difference value (the third angle angle value) between difference value between screen, i.e. first angle value and second angle value, by initial video
Frame rotates the third angle angle value.Then, viewer apparatus is determined to the mesh shown on viewer apparatus screen according to the third angle angle value
The size of frame of video is marked, when the high width beyond target video frame of the width of postrotational initial video frame is high, to postrotational initial
Frame of video zooms in and out processing.
It is determined that target video frame width and height dimensions when, it is first determined the width larger compared to numerical value for height, then
Height is determined according to wide high proportion.In order to make target video frame be shown completely in viewer apparatus, the width of target video frame
Degree is not more than the reference edge of the screen of viewer apparatus.For the selected of reference edge, it can be determined according to the horizontal/vertical screen state of screen;
Target component can also be obtained according to the third angle angle value, be determined according to target component.
Corresponding to above method embodiment, as shown in figure 3, the embodiment of the present invention also includes a kind of video play device, should
For the first equipment, described device includes:
Receiving module 310, for receiving the initial video frame that the second equipment is sent;
Module 320 is obtained, for the angle value and the screen of second equipment of the screen for obtaining first equipment
Angle value, as first angle value and second angle value, wherein, the angle value is:The default side of equipment and preset reference
The angle of angle between face;
Judge module 330, for judging first equipment and described according to the first angle value and second angle value
Whether the laying state of the second equipment is consistent;
Computing module 340, for if it has not, calculating the differential seat angle between the first angle value and the second angle value
Value, is used as the third angle angle value;
Adjusting module 350, for adjusting the initial video frame according to the third angle angle value, obtains target video frame;
Display module 360, for showing the target video frame.
Optionally, the adjusting module 350, including:
Submodule is obtained, for obtaining target component according to the third angle angle value, wherein, the target component is used for true
The size of the fixed target video frame;
Submodule is adjusted, for adjusting the initial video frame according to the target component and the third angle angle value,
Obtain target video frame.
Optionally, the acquisition submodule, specifically for:
The target component m is obtained according to below equation:
M=(a+r) %4, wherein, a is the first angle value, and r is the third angle angle value, and % is remainder symbol.
Optionally, the adjustment submodule, including:
Submodule is rotated, for the initial video frame to be rotated into the third angle angle value, intermediate video frame is obtained;
First determination sub-module, for according to the target component, reference to be determined from the side of first device screen
Side;
Second determination sub-module, for determining that the target width of target video frame is the number of no more than described reference edge lengths
Value;
Calculating sub module, for the ratio of width to height according to the target width and the initial video frame, calculates the target
The object height of frame of video;
Submodule is scaled, for the width in the target width and the intermediate video to be inconsistent or the object height
With the height of the intermediate video frame it is inconsistent in the case of, according to the target width and object height to the intermediate video
Frame zooms in and out processing, obtains target video frame.
Optionally, first determination sub-module, specifically for:
When the target component is odd number, the shorter edge of screen is defined as the reference edge;Otherwise
The longer sides of screen are defined as the reference edge.
A kind of video play device provided in an embodiment of the present invention, for when the screen state of the first equipment and the second equipment
When inconsistent, the initial video frame that the second equipment is sent is adjusted according to the third angle angle value, and then acquisition can be on the first device
The target video frame completely shown.The factor that can not be completely shown on the first device due to causing original video frame is to include two
Angle value between the screen of equipment is different, therefore, and the angle value (the third angle angle value) of two equipment rooms difference can reflect initially
Difference between frame of video and the target video frame for needing acquisition.So, according to obtained by the third angle angle value adjusts initial video frame
The target video frame arrived, can completely show on the first device, and then obtain preferably video display effect.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment
Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.It is real especially for device
Apply for example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of video broadcasting method, it is characterised in that applied to the first equipment, methods described includes:
Receive the initial video frame of the second equipment transmission;
The angle value of the angle value of the screen of first equipment and the screen of second equipment is obtained, first angle is used as
Value and second angle value, wherein, the angle value is:The angle of angle between the default side and preset reference face of equipment;
The placement shape of first equipment and second equipment is judged according to the first angle value and the second angle value
Whether state is consistent;
If it has not, calculating the angle difference between the first angle value and the second angle value, the third angle angle value is used as;
The initial video frame is adjusted according to the third angle angle value, target video frame is obtained;
Show the target video frame.
2. according to the method described in claim 1, it is characterised in that described initially to be regarded according to the third angle angle value adjustment is described
Frequency frame, the step of obtaining target video frame, including:
Target component is obtained according to the third angle angle value, wherein, the target component is used to determine the target video frame
Size;
The initial video frame is adjusted according to the target component and the third angle angle value, target video frame is obtained.
3. method according to claim 2, it is characterised in that described that target component is obtained according to the third angle angle value
Step, including:
The target component m is obtained according to below equation:
M=(a+r) %4, wherein, a is the first angle value, and r is the third angle angle value, and % is remainder symbol.
4. according to the method in claim 2 or 3, it is characterised in that described according to the target component and the described 3rd
Angle value adjusts the initial video frame, the step of obtaining target video frame, including:
The initial video frame is rotated into the third angle angle value, intermediate video frame is obtained;
According to the target component, reference edge is determined from the side of first device screen;
The target width for determining target video frame is the numerical value of no more than described reference edge lengths;
According to the ratio of width to height of the target width and the initial video frame, the object height of the target video frame is calculated;
The width of the target width and the intermediate video frame is inconsistent or the object height and the intermediate video frame
Height it is inconsistent in the case of, place is zoomed in and out to the intermediate video frame according to the target width and the object height
Reason, obtains target video frame.
5. method according to claim 4, it is characterised in that described according to the target component, from first equipment
The step of reference edge being determined in the side of screen, including:
When the target component is odd number, the shorter edge of screen is defined as the reference edge;Otherwise
The longer sides of screen are defined as the reference edge.
6. a kind of video play device, it is characterised in that applied to the first equipment, described device includes:
Receiving module, for receiving the initial video frame that the second equipment is sent;
Obtain module, for the screen that obtains first equipment angle value and second equipment screen angle
Value, as first angle value and second angle value, wherein, the angle value is:Between the default side and preset reference face of equipment
Angle angle;
Judge module, for judging first equipment and described second according to the first angle value and the second angle value
Whether the laying state of equipment is consistent;
Computing module, for if it has not, calculate the angle difference between the first angle value and the second angle value, as
The third angle angle value;
Adjusting module, for adjusting the initial video frame according to the third angle angle value, obtains target video frame;
Display module, for showing the target video frame.
7. device according to claim 6, it is characterised in that the adjusting module, including:
Submodule is obtained, for obtaining target component according to the third angle angle value, wherein, the target component is used to determine institute
State the size of target video frame;
Submodule is adjusted, for adjusting the initial video frame according to the target component and the third angle angle value, is obtained
Target video frame.
8. device according to claim 7, it is characterised in that the acquisition submodule, specifically for:
The target component m is obtained according to below equation:
M=(a+r) %4, wherein, a is the first angle value, and r is the third angle angle value, and % is remainder symbol.
9. the device according to claim 7 or 8, it is characterised in that the adjustment submodule, including:
Submodule is rotated, for the initial video frame to be rotated into the third angle angle value, intermediate video frame is obtained;
First determination sub-module, for according to the target component, reference edge to be determined from the side of first device screen;
Second determination sub-module, for determining that the target width of target video frame is the numerical value of no more than described reference edge lengths;
Calculating sub module, for the ratio of width to height according to the target width and the initial video frame, calculates the target video
The object height of frame;
Scale submodule, for the width in the target width and the intermediate video frame is inconsistent or the object height with
In the case that the height of the intermediate video frame is inconsistent, according to the target width and the object height to the Intermediate View
Frequency frame zooms in and out processing, obtains target video frame.
10. device according to claim 9, it is characterised in that first determination sub-module, specifically for:
When the target component is odd number, the shorter edge of screen is defined as the reference edge;Otherwise
The longer sides of screen are defined as the reference edge.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710159807.3A CN106973331A (en) | 2017-03-17 | 2017-03-17 | A kind of video broadcasting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710159807.3A CN106973331A (en) | 2017-03-17 | 2017-03-17 | A kind of video broadcasting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106973331A true CN106973331A (en) | 2017-07-21 |
Family
ID=59328957
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710159807.3A Pending CN106973331A (en) | 2017-03-17 | 2017-03-17 | A kind of video broadcasting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106973331A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108965711A (en) * | 2018-07-27 | 2018-12-07 | 广州酷狗计算机科技有限公司 | Method for processing video frequency and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102843496A (en) * | 2011-06-21 | 2012-12-26 | 联想(北京)有限公司 | Video collecting processing method and portable electronic device |
US20150226934A1 (en) * | 2014-02-07 | 2015-08-13 | Canon Kabushiki Kaisha | Focus adjustment apparatus having frame-out preventive control, and control method therefor |
CN105068774A (en) * | 2015-07-24 | 2015-11-18 | 福州瑞芯微电子股份有限公司 | WFD (Wifi Display) based video sharing method and system |
CN105227963A (en) * | 2015-08-31 | 2016-01-06 | 北京暴风科技股份有限公司 | Streaming Media collection is carried out to terminal and automatically identifies direction and the method and system of adjustment |
CN105554549A (en) * | 2015-12-03 | 2016-05-04 | 青岛海信移动通信技术股份有限公司 | VoLTE network video display method and device |
CN106484349A (en) * | 2016-09-26 | 2017-03-08 | 腾讯科技(深圳)有限公司 | The treating method and apparatus of live information |
-
2017
- 2017-03-17 CN CN201710159807.3A patent/CN106973331A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102843496A (en) * | 2011-06-21 | 2012-12-26 | 联想(北京)有限公司 | Video collecting processing method and portable electronic device |
US20150226934A1 (en) * | 2014-02-07 | 2015-08-13 | Canon Kabushiki Kaisha | Focus adjustment apparatus having frame-out preventive control, and control method therefor |
CN105068774A (en) * | 2015-07-24 | 2015-11-18 | 福州瑞芯微电子股份有限公司 | WFD (Wifi Display) based video sharing method and system |
CN105227963A (en) * | 2015-08-31 | 2016-01-06 | 北京暴风科技股份有限公司 | Streaming Media collection is carried out to terminal and automatically identifies direction and the method and system of adjustment |
CN105554549A (en) * | 2015-12-03 | 2016-05-04 | 青岛海信移动通信技术股份有限公司 | VoLTE network video display method and device |
CN106484349A (en) * | 2016-09-26 | 2017-03-08 | 腾讯科技(深圳)有限公司 | The treating method and apparatus of live information |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108965711A (en) * | 2018-07-27 | 2018-12-07 | 广州酷狗计算机科技有限公司 | Method for processing video frequency and device |
CN108965711B (en) * | 2018-07-27 | 2020-12-11 | 广州酷狗计算机科技有限公司 | Video processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10530979B2 (en) | Panoramic digital photographic apparatus including a user interface indicating in real time a suggested direction of movement for the apparatus based on a central portion of a current image | |
EP3149624B1 (en) | Photo-video-camera with dynamic orientation lock and aspect ratio. | |
US7952596B2 (en) | Electronic devices that pan/zoom displayed sub-area within video frames in response to movement therein | |
EP1903786A1 (en) | Apparatus and method for photographing panoramic image | |
EP2579572A1 (en) | A mobile terminal and method for generating an out-of-focus image | |
EP1870854A2 (en) | Apparatus and method for panoramic photography in portable terminal | |
US20090058991A1 (en) | Method for photographing panoramic picture | |
CN101242474A (en) | A dynamic video browse method for phone on small-size screen | |
CN111586431B (en) | Method, device and equipment for live broadcast processing and storage medium | |
US20200272399A1 (en) | Image processing method and apparatus | |
CN111083371A (en) | Shooting method and electronic equipment | |
CN106250081A (en) | A kind of display packing based on double screen terminal and device | |
CN112616078A (en) | Screen projection processing method and device, electronic equipment and storage medium | |
CN106973331A (en) | A kind of video broadcasting method and device | |
RU2632215C2 (en) | Method and system for stabilization and image centering | |
CN111835972A (en) | Shooting method and device and electronic equipment | |
CN108391050B (en) | Image processing method and mobile terminal | |
KR101838271B1 (en) | Portable video contents playback device and operating method thereof | |
CN112203020B (en) | Method, device and system for configuring camera configuration parameters of terminal equipment | |
EP1863259A1 (en) | Mobile terminal having wide viewing function digital broadcasting | |
CN101447178B (en) | Display device | |
US8073249B2 (en) | Image adjustment apparatus and method thereof | |
US8237857B1 (en) | System and method for adjusting aspect ratios | |
US9378539B1 (en) | Image processing method and mobile electronic device | |
JP2010041441A (en) | Mobile terminal and volume control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170721 |