CN109729408B - Mobile terminal high-definition online video scaling method - Google Patents

Mobile terminal high-definition online video scaling method Download PDF

Info

Publication number
CN109729408B
CN109729408B CN201811556010.8A CN201811556010A CN109729408B CN 109729408 B CN109729408 B CN 109729408B CN 201811556010 A CN201811556010 A CN 201811556010A CN 109729408 B CN109729408 B CN 109729408B
Authority
CN
China
Prior art keywords
video
point
recording
zooming
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811556010.8A
Other languages
Chinese (zh)
Other versions
CN109729408A (en
Inventor
周欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Kun He Technology Co ltd
Original Assignee
Sichuan Kun He Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Kun He Technology Co ltd filed Critical Sichuan Kun He Technology Co ltd
Priority to CN201811556010.8A priority Critical patent/CN109729408B/en
Publication of CN109729408A publication Critical patent/CN109729408A/en
Application granted granted Critical
Publication of CN109729408B publication Critical patent/CN109729408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a mobile terminal high-definition online video zooming method, which comprises the following steps: s101: selecting a picture area needing zooming in the video; s102: acquiring an initial point coordinate on a zooming area; s103: acquiring the coordinate of the final point on the zooming area; s104: calculating the zoom factor of the video picture according to the initial point coordinate and the final point coordinate; s105: zooming the selected video picture according to the calculated zoom multiple; s106: shifting the zoomed video picture to the center of the screen; the invention effectively realizes the function of arbitrarily and accurately zooming the video picture in the playing process of the video, so that a user can amplify more detailed parts in the video according to the requirement when watching the high-definition video, thereby carefully watching and improving the user experience; the video clip can be recorded, edited and shared in real time, and interactivity of users in the process of watching videos is improved.

Description

Mobile terminal high-definition online video scaling method
Technical Field
The invention relates to the field of data services, in particular to a high-definition online video zooming method for a mobile terminal.
Background
At present, mobile terminals such as mobile phones and tablet computers are used more and more frequently in life of people, especially in the coming 5G era, people rely more on the mobile terminals, and watching videos through the mobile terminals is one of the projects which are frequently used for entertainment by people at present; with the increasing speed of mobile networks, many 4K or 8K high-definition videos also gradually appear in the selection of online videos, and when watching such high-definition videos, due to the limitation of the resolution of a mobile phone, the pictures of a certain detailed part in the videos cannot be seen clearly because of small display, so that the video pictures can be reduced or the videos can be judged and shared at any time in the process of watching the videos, and more free and good experience can be brought to people when watching the videos.
In the prior art, a technology for zooming a video exists, the technical scheme is that a video picture is amplified by identifying a moving track and parameters of a finger on a screen of a mobile terminal, and the technical problem mainly solved is that the video adapts to the resolution of a mobile phone, but the detail is clear after the high-definition video is amplified, the technical scheme cannot accurately calculate the magnification of the video picture to be amplified, cannot ensure the smoothness of video playing in the zooming process, and cannot record, edit and share a certain segment in the video in real time.
Disclosure of Invention
The invention aims to: aiming at the existing problems, a high-definition online video zooming method for a mobile terminal is provided; the invention solves the problem that the video cannot be accurately zoomed in the video playing process; the problem that video playing is influenced when a video picture is zoomed is solved; the problem that video clips cannot be recorded, edited and shared in real time is solved.
The technical scheme adopted by the invention is as follows:
a method for zooming a high-definition online video at a mobile terminal is characterized by comprising the following steps:
s101: selecting a picture area needing zooming in the video;
s102: acquiring an initial point coordinate on a zooming area;
s103: acquiring the coordinate of the final point on the zooming area;
s104: calculating the zoom factor of the video picture according to the initial point coordinate and the final point coordinate;
s105: zooming the selected video picture according to the calculated zoom multiple;
s106: and shifting the zoomed video picture to the center of the screen.
Further, the initial point in step S2 is 2 points; the final point described in step S3 is 2 points.
Further, the formula for calculating the scaling factor in step S4 is as follows:
Figure 445507DEST_PATH_IMAGE002
where α is the zoom factor, A and B are the initial points, A1And B1As the final point, Ax is the abscissa of the point A at the initial point, Ay is the ordinate of the point A at the initial point, A1x is the final point A1Dot abscissa, A1y is the final point A1Point ordinate, B1x is the final point B1Point abscissa, B1y is the final point B1The point ordinate.
Further, in step S6, when the video frame is enlarged, the enlarged frame is shifted to the center of the screen; when the enlarged video picture is reduced to the original size, the whole picture of the video is shifted to the center of the screen.
Further, during the zooming process of the video picture, the video can be kept in a normal playing state.
Further, after the video is zoomed, the zoom area can be selectively recorded, and the recording method includes:
s201: selecting a first time point of video recording and starting recording;
s202: judging whether recording is suspended; if the recording is suspended, executing S203, if the recording is not suspended, continuously recording and executing S205;
s203: pausing video recording;
s204: selecting a second time point of video recording and continuing recording;
s205: and ending the video recording after the video recording ending time point is reached.
Furthermore, the video recording time points are several, that is, the video recording process can be paused for several times.
Furthermore, after the video recording is finished, the video can be edited and shared.
Further, the sharing includes sharing to a nearby mobile terminal and sharing to a third-party platform.
In summary, due to the adoption of the technical scheme, the invention has the beneficial effects that:
1. the invention effectively realizes the function of arbitrarily and accurately zooming the video picture in the playing process of the video, so that a user can magnify more detailed parts in the video according to the requirement of the user when watching the high-definition video, thereby carefully watching and improving the user experience.
2. According to the invention, the function that the user can record, edit and share the video clip in real time in the video watching process is realized, the user experience is improved, and the opportunity of communication and sharing with people in the video watching process is increased.
Drawings
The invention will now be described, by way of example, with reference to the accompanying drawings, in which:
fig. 1 is a flow chart of a video scaling method.
Fig. 2 is a schematic diagram of scaling coordinate point identification.
FIG. 3 is a schematic diagram of before and after scaling an image.
Fig. 4 is a flow chart of a method of recording video.
Detailed Description
All of the features disclosed in this specification, or all of the steps in any method or process so disclosed, may be combined in any combination, except combinations of features and/or steps that are mutually exclusive.
Any feature disclosed in this specification (including any accompanying claims, abstract) may be replaced by alternative features serving equivalent or similar purposes, unless expressly stated otherwise. That is, unless expressly stated otherwise, each feature is only an example of a generic series of equivalent or similar features.
Example 1
A method for scaling a high-definition online video at a mobile terminal, as shown in fig. 1, includes:
s101: selecting a picture area needing zooming in the video;
in the above steps, the picture area to be zoomed in the selected video is mainly touched on the screen of the mobile terminal through two fingers, and the picture area to be zoomed and displayed is determined through coordinates of two contact points.
S102: acquiring an initial point coordinate on a zooming area;
in the above steps, the initial point coordinates are the coordinates of two contact points that determine the area of the frame to be zoomed.
S103: acquiring the coordinate of the final point on the zooming area;
in the above steps, after the initial point coordinates are determined, the two fingers can slide in any direction, the final point coordinates can be updated in real time along with the movement of the fingers, and after the two fingers finally stop, the position where the fingers stop is the final point coordinates.
S104: calculating the zoom factor of the video picture according to the initial point coordinate and the final point coordinate;
in the above step, the formula for calculating the video image magnification specifically is as follows:
Figure 939811DEST_PATH_IMAGE002
where α is the zoom factor, A and B are the initial points, A1And B1As the final point, Ax is the abscissa of the point A at the initial point, Ay is the ordinate of the point A at the initial point, A1x is the final point A1Dot abscissa, A1y is the final point A1Point ordinate, B1x is the final point B1Point abscissa, B1y is the final point B1The point ordinate.
In practical use, when the video is in a normal size, when the two fingers move away from each other, the picture in the video can be enlarged; when the video image is in an enlarged state, when the two fingers slide towards the direction of mutual approaching, the enlarged video image can be reduced, and when the video image is reduced to the original video size, the reduction can be stopped.
As shown in FIG. 2, the two points AB are initial points, when the finger is pressed at the two points AB, the position of the video frame to be zoomed and displayed and the initial point location coordinate are determined, and at this time, the finger is slid to the position A in the direction of separating from each other1And B1When the position of the point is in the preset range, the coordinates of the 4 point locations are substituted into a formula, and the multiple of the video picture to be amplified can be calculated.
S105: zooming the selected video picture according to the calculated zoom multiple;
in the above steps, after the multiple of the selected video image to be zoomed is calculated, the overall size of the video is changed according to the calculation result, if the image is enlarged, the overall size of the video is increased, and meanwhile, the screen occupation ratio of the selected area on the mobile terminal is gradually increased.
S106: and shifting the zoomed video picture to the center of the screen.
In the above steps, after the selected video image is amplified according to the calculated multiple, the amplified image is positioned at the center of the screen and displayed in a full screen mode for the convenience of watching by a user, and the amplified image is not blurred due to too low resolution because the video is a 4K and/or 8K high-definition video; meanwhile, the method can enable the parameters of the amplified video to be more accurate by acquiring the coordinates of the starting point and the final point in real time and calculating the amplification factor in real time, and cannot cause the influence on the playing of the video caused by the amplification of the picture in the amplification process.
As shown in fig. 3, 6 regions in the original video playing picture are randomly selected, and the 5 th region is locally enlarged, in this embodiment, the 5 th region is enlarged by 2 times according to the initial point coordinates and the final point coordinates, then the original video original picture is entirely enlarged by 2 times to obtain an enlarged video picture, and then the 5 th region between two initial points is shifted to the center of the terminal screen to enable the video to be normally played.
Example 2
Embodiment 2 adds, on the basis of zooming the video in embodiment 1, a function of selectively recording, editing, and sharing the zoomed video content in real time, and the specific steps are as shown in fig. 4, and include:
s201: selecting a first time point of video recording and starting recording;
in the above steps, the user may select to start recording the video at any time when watching the video, and after selecting the time point of starting recording, the time point is the first time point.
S202: judging whether recording is suspended; if the recording is suspended, executing S203, if the recording is not suspended, continuously recording and executing S205;
in the above steps, in the video recording process, the user can select to pause the recording at any time, and when the recording is paused, the video can continue to be played normally and will not be recorded; if the user does not select to pause the recording, the video is continuously recorded until the recording time point that the user needs to stop is reached or the user autonomously stops recording.
S203: pausing video recording;
in the above steps, when the user stops recording, the video will continue to be played normally, but will not exit from recording.
S204: selecting a second time point of video recording and continuing recording;
in the above steps, when the user needs to continue recording the video in the recording suspension state, the user can select to continue recording at any time, and the time is a second time point; in this embodiment, during the video recording process, the user may pause and continue recording for several times at will until the video is finished or the user stops recording autonomously.
S205: and ending the video recording after the video recording ending time point is reached.
In the above steps, the user can stop recording autonomously, set the recording time length or finish recording the video, and after the recording is stopped, the user can edit and share the recorded video; the editing comprises cutting and combining videos, for example, a user performs recording suspension and recording continuation for a plurality of times in the process of recording videos, and a plurality of recorded video segments can be combined into a complete video during editing; if only one consecutive recording is performed, a complete video can be edited into several short videos or only one of the recorded video segments can be cut during editing.
After the video is edited, the edited video can be shared, wherein the sharing comprises sharing to a nearby mobile terminal and sharing to a third-party platform; the sharing to the nearby mobile terminal specifically includes: the nearby mobile number terminal can scan the two-dimensional code and receive and watch the shared video through a TCP (Transmission Control protocol)/UDP (user Datagram protocol) protocol; the sharing to the third party platform is mainly performed by calling a third party sharing interface and sharing to the third party platform through http (hypertext Transfer protocol).
According to the embodiment, the function of selectively recording the zoomed video is realized, so that the user can zoom the video in real time in the process of watching the video, see details which are difficult to see in the ordinary video, record and share video clips in real time, and the interactivity is also increased while the video watching experience is improved.
According to the mobile terminal high-definition online video zooming method, the zooming size of the video is calculated by recognizing the coordinate change of the contact point of the finger and the screen, so that the video can be amplified or reduced according to an accurate multiple value; meanwhile, by the method, the details which are required to be carefully watched can be amplified at any time when a user watches the 4K/8K high-definition video, and the resolution of the amplified picture is not influenced, and the normal playing of the video is not influenced; the invention can freely record, edit and share the video content while improving the video watching experience of the user, and enhances the interactivity of the user in the video watching process.
The invention is not limited to the foregoing embodiments. The invention extends to any novel feature or any novel combination of features disclosed in this specification and any novel method or process steps or any novel combination of features disclosed.

Claims (6)

1. A method for zooming a high-definition online video at a mobile terminal is characterized by comprising the following steps:
s101: selecting a picture area needing zooming in the video;
s102: acquiring an initial point coordinate on a zooming area;
s103: acquiring the coordinate of the final point on the zooming area;
s104: calculating the zoom factor of the video picture according to the initial point coordinate and the final point coordinate;
s105: zooming the selected video picture according to the calculated zoom multiple;
s106: shifting the zoomed video picture to the center of the screen;
in the zooming process of the video picture, the video can be kept in a normal playing state; the amplified parameters of the video are more accurate by acquiring the coordinates of the starting point and the final point in real time and calculating the amplification factor in real time;
the initial points in step S102 are 2 points; the final point in step S3 is 2 points;
the formula for calculating the zoom factor in step S104 is:
Figure FDF0000015157070000011
where α is the zoom factor, A and B are the initial points, A1And B1As the final point, Ax is the abscissa of the point A at the initial point, Ay is the ordinate of the point A at the initial point, A1x is the final point A1Dot abscissa, A1y is the final point A1Point ordinate, B1x is the final point B1Point abscissa, B1y is the final point B1The point ordinate.
2. The method according to claim 1, wherein in step S106, when the video frame is enlarged, the enlarged frame is shifted to the center of the screen; when the enlarged video picture is reduced to the original size, the whole picture of the video is shifted to the center of the screen.
3. The method for zooming the mobile-end high-definition online video according to claim 1, wherein when the video is zoomed, the zoom area can be selectively recorded, and the recording method comprises:
s201: selecting a first time point of video recording and starting recording;
s202: judging whether recording is suspended; if the recording is suspended, executing S203, if the recording is not suspended, continuously recording and executing S205;
s203: pausing video recording;
s204: selecting a second time point of video recording and continuing recording;
s205: and ending the video recording after the video recording ending time point is reached.
4. The method for zooming in/out high definition online video at a mobile terminal according to claim 3, wherein the video recording time points are several, that is, the video recording process can be paused several times.
5. The method for zooming the mobile-end high-definition online video according to claim 3, wherein the video can be edited and shared after the video recording is finished.
6. The method for zooming in/out high-definition online video at the mobile terminal according to claim 5, wherein the sharing comprises sharing to a nearby mobile terminal and sharing to a third-party platform.
CN201811556010.8A 2018-12-19 2018-12-19 Mobile terminal high-definition online video scaling method Active CN109729408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811556010.8A CN109729408B (en) 2018-12-19 2018-12-19 Mobile terminal high-definition online video scaling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811556010.8A CN109729408B (en) 2018-12-19 2018-12-19 Mobile terminal high-definition online video scaling method

Publications (2)

Publication Number Publication Date
CN109729408A CN109729408A (en) 2019-05-07
CN109729408B true CN109729408B (en) 2022-03-11

Family

ID=66296856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811556010.8A Active CN109729408B (en) 2018-12-19 2018-12-19 Mobile terminal high-definition online video scaling method

Country Status (1)

Country Link
CN (1) CN109729408B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311961A (en) * 2020-11-13 2021-02-02 深圳市前海手绘科技文化有限公司 Method and device for setting lens in short video
CN113593567B (en) * 2021-06-23 2022-09-09 荣耀终端有限公司 Method for converting video and sound into text and related equipment
CN115225973B (en) * 2022-05-11 2024-01-05 北京广播电视台 Ultrahigh-definition video playing interaction method, system, electronic equipment and storage medium
US20230421525A1 (en) * 2022-06-22 2023-12-28 Whatsapp Llc Facilitating pausing while recording audio and/or visual messages in social media messaging applications

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104238863B (en) * 2014-08-29 2018-02-16 广州视睿电子科技有限公司 Circle based on Android selects Zoom method and system
CN104822088B (en) * 2015-04-16 2019-03-19 腾讯科技(北京)有限公司 Video image zooming method and apparatus
EP3311582A4 (en) * 2015-06-17 2018-10-31 LG Electronics Inc. Display device and operating method thereof
CN108012101B (en) * 2017-11-30 2020-11-03 广州市百果园信息技术有限公司 Video recording method and video recording terminal

Also Published As

Publication number Publication date
CN109729408A (en) 2019-05-07

Similar Documents

Publication Publication Date Title
CN109729408B (en) Mobile terminal high-definition online video scaling method
US10896478B2 (en) Image grid with selectively prominent images
US11012727B2 (en) Predictive content delivery for video streaming services
US11521654B2 (en) Recording and playing video using orientation of device
US9215377B2 (en) Digital zoom with sensor mode change
CN102707830B (en) Display control apparatus, display control method and program
CN105190511A (en) Image processing method, image processing device and image processing program
CN105828201B (en) Method for processing video frequency and device
JP5923021B2 (en) Video viewing history analysis device, video viewing history analysis method, and video viewing history analysis program
CN111436005B (en) Method and apparatus for displaying image
JP2011504339A (en) System and method for generating photos with variable image quality
KR20140092211A (en) Method and Apparatus of Performing Virtual Camera Functions During Playback of Media Content
CN108200477B (en) Method, device and equipment for generating and playing video file
WO2021057359A1 (en) Image processing method, electronic device, and readable storage medium
CN105430471A (en) Method and device for displaying live commenting in video
CN104584536A (en) Display control apparatus, display control system, and display control method
JP2018201198A (en) Video compression method, video restoration method, and computer program
EP3799415A2 (en) Method and device for processing videos, and medium
CN107526460A (en) Output-controlling device, output control method and storage medium
US10699676B2 (en) Display apparatus, method of controlling the same, and computer program product thereof
US20230043683A1 (en) Determining a change in position of displayed digital content in subsequent frames via graphics processing circuitry
CN108156512B (en) Video playing control method and device
CN104737526A (en) Method and apparatus for recording video sequences
JP6597041B2 (en) Server apparatus and information processing system
EP2988502B1 (en) Method for transmitting data

Legal Events

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