CN114286159A - Video editing method and device and electronic equipment - Google Patents

Video editing method and device and electronic equipment Download PDF

Info

Publication number
CN114286159A
CN114286159A CN202111621911.2A CN202111621911A CN114286159A CN 114286159 A CN114286159 A CN 114286159A CN 202111621911 A CN202111621911 A CN 202111621911A CN 114286159 A CN114286159 A CN 114286159A
Authority
CN
China
Prior art keywords
video
scale
picture
background
editing
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
CN202111621911.2A
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.)
Beijing Kuailai Culture Communication Group Co ltd
Original Assignee
Beijing Kuailai Culture Communication Group 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 Beijing Kuailai Culture Communication Group Co ltd filed Critical Beijing Kuailai Culture Communication Group Co ltd
Priority to CN202111621911.2A priority Critical patent/CN114286159A/en
Publication of CN114286159A publication Critical patent/CN114286159A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a video editing method, a device and electronic equipment, wherein the video editing method comprises the steps of obtaining a background video and an insert video, splicing the insert video to any position of the background video in mobile equipment, and exporting a combined video to a server, an editing page of the mobile equipment comprises a video display area and an editing area, the insert video is displayed in the video display area and is displayed in the background video to obtain the combined video, a first scale is arranged around the background video along a row direction, a second scale is arranged around the background video along a column direction, a third scale is arranged around the insert video along the row direction, a fourth scale is arranged around the insert video along the column direction, and the third scale and the fourth scale are automatically adjusted so that the size of the third scale is not more than 1/2 of the first scale and the size of the fourth scale is not more than 1/2 of the second scale, therefore, the inserted video floating in the background video can not shield the excessive area of the background video, and the user experience is improved.

Description

Video editing method and device and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a video editing method and apparatus, and an electronic device.
Background
With the continuous development of internet technology, various video software appears on terminal equipment, and a video splicing technology becomes an important link of a video processing technology as a common video data processing means.
In the video splicing software in the prior art, a video can be subjected to more functional processing, for example, another video segment is inserted at a suitable position and floats in a background video to become a picture-in-picture video, and CN111294611A discloses a video insertion method, a device, an electronic device and a computer-readable storage medium, and specifically discloses receiving a video insertion request, wherein the video insertion request includes a video to be inserted; acquiring an original video sequence, wherein the original video sequence comprises a first type of video and a second type of video; determining the video type to be brought into the video: if the video type is the second type, inserting the in-out video into the original video sequence, and inserting each video of the second type into the new video sequence which is not adjacent, but in the process of forming the picture-in-picture, the size of the inserted picture is not adjusted in a self-adaptive manner, and if the inserted picture is too large, the picture of the original video is shielded, so that the user experience is poor.
Therefore, it is desirable to provide a video editing method, apparatus and electronic device for adaptively adjusting the size of an inserted video picture.
Disclosure of Invention
In view of the above, the present invention provides a video editing method, apparatus and electronic device for adaptively adjusting the size of an inserted video frame.
In one aspect, the present invention provides a video editing method applied to a mobile device and a server, including:
acquiring a background video and at least one insert video, wherein the duration of the background video is more than 15 minutes;
triggering a splicing event, splicing the insertion video to any position of the background video in the mobile device, wherein an editing page of the mobile device comprises a video display area and an editing area which are arranged in a column direction, the video display area displays the insertion video and displays a combined video in the background video, a first scale is arranged around the background video in a row direction, a second scale is arranged around the background video in the column direction, a third scale is arranged around the insertion video in the row direction, a fourth scale is arranged around the insertion video in the column direction, and the third scale and the fourth scale are automatically adjusted so that the size of the third scale is not larger than 1/2 of the first scale and the size of the fourth scale is not larger than 1/2 of the second scale;
the step of combining video exports to the server includes triggering an export format selection event, the export format including a first video mode and a second video mode, the second video mode having a storage space less than a storage space of the first video mode.
Optionally, the background video includes a plurality of frames of first pictures, the second picture is displayed in the first picture, the first scale and the second scale are included around each frame of first picture, the insertion video includes a plurality of frames of second pictures, the third scale and the fourth scale are included around each frame of second picture, and the method further includes:
automatically calculating the length of a background image in the first picture in the row direction and the length of the background image in the column direction;
automatically adjusting the third scale and the fourth scale, wherein the length of the third scale is not greater than the length of the background image in the row direction; the length of the fourth scale is not greater than the length of the background image in the column direction.
Optionally, the outer edge of the second frame is adjusted according to the outer edge of the background image in the first frame, so that the outer edge of the second frame is located within the outer edge of the background image.
Optionally, an outer edge of the second frame is circular or elliptical.
Optionally, when the derivation format is the second video mode, each frame of picture in the combined video is determined, and when the percentage of the same pixels in the consecutive 1 st to nth frame of pictures is greater than a preset threshold, the 1 st frame of picture is retained in the combined video, and the 2 nd to nth frame of pictures are deleted.
The invention also provides a video splicing device which is arranged on the mobile equipment and comprises a video acquisition unit, a video editing unit and a video export unit, wherein,
the video acquiring unit is coupled with the video editing unit and is used for acquiring a background video and at least one insert video, and the duration of the background video is more than 15 minutes;
the video editing unit is respectively coupled with the video acquiring unit and the video exporting unit, the editing page of the mobile device comprises a video display area and an editing area which are arranged along the column direction, displaying the insertion video in the video display area to obtain a combined video in the background video, wherein a first scale is arranged around the background video along a row direction, a second scale is arranged around the background video along a column direction, a third scale is arranged around the insertion video along the row direction, a fourth scale is arranged around the insertion video along the column direction, and the third scale and the fourth scale are automatically adjusted, such that the third scale is no larger in size than 1/2 of the first scale and the fourth scale is no larger in size than 1/2 of the second scale;
the video exporting unit is coupled with the video editing unit and used for exporting the combined video to the server, and the video exporting unit triggers an exporting format selection event, wherein the exporting format comprises a first video mode and a second video mode, and the storage space of the second video mode is smaller than that of the first video mode.
Optionally, the background video includes a plurality of frames of first pictures, the second picture is displayed in the first picture, the first scale and the second scale are included around each frame of first picture, the insertion video includes a plurality of frames of second pictures, and the third scale and the fourth scale are included around each frame of second picture;
the video editing unit is further used for automatically calculating the length of the background image in the first picture in the row direction and the length of the background image in the column direction; automatically adjusting the third scale and the fourth scale, wherein the length of the third scale is not greater than the length of the background image in the row direction; the length of the fourth scale is not greater than the length of the background image in the column direction.
Optionally, the video editing unit is further configured to adjust an outer edge of the second picture according to an outer edge of the background image in the first picture, so that the outer edge of the second picture is located within the outer edge of the background image.
Optionally, when the derivation format in the video derivation unit is the second video mode, each frame of picture in the combined video is determined, and when the percentage of the same pixels in consecutive 1 st to nth frame of pictures is greater than a preset threshold, the 1 st frame of picture is retained in the combined video, and the 2 nd to nth frame of pictures are deleted.
The invention also provides an electronic device comprising a memory storing computer executable instructions and a processor configured to execute the instructions to implement the video editing method of any of the above.
Compared with the prior art, the video editing method, the video editing device and the electronic equipment provided by the invention at least realize the following beneficial effects:
the editing page of the mobile device comprises a video display area and an editing area which are arranged along the column direction, an insertion video is displayed in the video display area and displayed in a background video to obtain a combined video, a first scale is arranged around the background video along the row direction, a second scale is arranged around the background video along the column direction, a third scale is arranged around the insertion video along the row direction, a fourth scale is arranged around the insertion video along the column direction, and the third scale and the fourth scale are automatically adjusted, so that the size of the third scale is not larger than 1/2 of the first scale, and the size of the fourth scale is not larger than 1/2 of the second scale, and therefore the insertion video floating in the background video can be ensured not to shield the excessive area of the background video, the playing of the background video can not be influenced, and the user experience feeling is improved; in addition, the second video mode can be selected when the combined video is exported, the storage space of the second video mode is smaller than that of the first video mode, so that the storage space can be saved, the combined video is exported to a server, the space of the mobile device is not occupied, and the user experience is further improved.
Of course, it is not necessary for any product in which the present invention is practiced to specifically achieve all of the above technical effects simultaneously.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart of a video editing method provided by the present invention;
FIG. 2 is a schematic diagram of an edit page in a mobile device;
FIG. 3 is a schematic structural diagram of a video stitching apparatus according to the present invention;
fig. 4 is a block diagram of an electronic device according to the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Referring to fig. 1 and 2, fig. 1 is a flowchart of a video editing method provided by the present invention, and fig. 2 is a schematic diagram of an editing page in a mobile device. The video editing method in fig. 1 is applied to a mobile device and a server, and the mobile device in the present invention may be any one of a mobile phone, an IPAD, and a computer, which is not limited herein.
The video editing method of the embodiment comprises the following steps:
s1: acquiring a background video and at least one insert video, wherein the duration of the background video is more than 15 minutes;
it should be noted that the background video in the present invention is a background video with a duration greater than 15 minutes, only a video with a duration within 3 minutes can be edited in the prior art, and a video with a longer duration can be edited in the present invention, for example, a movie segment and the like, and the content of the background video is not specifically limited here.
S2: triggering a splicing event, splicing the insertion video to any position of a background video in the mobile equipment, wherein an editing page of the mobile equipment comprises a video display area and an editing area which are arranged along the column direction, the insertion video is displayed in the video display area and is displayed in the background video to obtain a combined video, a first scale is arranged around the background video along the row direction, a second scale is arranged around the background video along the column direction, a third scale is arranged around the insertion video along the row direction, a fourth scale is arranged around the insertion video along the column direction, and the third scale and the fourth scale are automatically adjusted so that the size of the third scale is not larger than 1/2 of the first scale and the size of the fourth scale is not larger than 1/2 of the second scale;
referring to fig. 2, fig. 2 only schematically shows that the editing page of the mobile device includes a video display area and an editing area, and of course, control keys may also be provided in the editing page, where the control keys in the editing page are not specifically limited. The column-wise editing page includes a video display area 21 and an editing area 22, and optionally, an editing tool option 23 is further provided in the editing area 22, such as volume, audio separation, filter, beauty, chroma, opacity, noise reduction, reverse playing, sound change, editing, music addition, and the like, which is not specifically limited herein.
Displaying the insert video in the video display area to obtain the combined video in the background video, wherein a first scale is arranged around the background video along the row direction, a second scale is arranged around the background video along the column direction, a third scale is arranged around the insert video along the row direction, and a fourth scale is arranged around the insert video along the column direction, and fig. 2 only schematically shows the lengths of the first scale, the second scale, the third scale and the third scale, and the lengths are not specifically limited herein. It can be understood that picture-in-picture can be formed when the inserted video floats on the background video, but the size of the inserted video needs to be manually adjusted to a proper size in the related art, the inserted video needs to be selected, the inserted video is dragged to a proper size by two fingers, the operation is inconvenient, the user experience is poor, in the embodiment, the third scale and the fourth scale can be automatically adjusted, the size of the third scale is not larger than 1/2 of the first scale, and the size of the fourth scale is not larger than 1/2 of the second scale, so that the inserted video floating in the background video can not shield an excessive area of the background video, the playing of the background video cannot be influenced, and the user experience is improved.
S3: the step of exporting the combined video to the server comprises triggering an export format selection event, wherein the export format comprises a first video mode and a second video mode, and the storage space of the second video mode is smaller than that of the first video mode.
The second video mode can be selected when the combined video is exported, and the storage space of the second video mode is smaller than that of the first video mode, so that the storage space can be saved, the combined video is exported to a server, the space of the mobile device is not occupied, and the user experience is further improved.
Compared with the prior art, the video editing method of the embodiment has at least the following beneficial effects:
the editing page of the mobile device comprises a video display area and an editing area which are arranged along the column direction, an insertion video is displayed in the video display area and displayed in a background video to obtain a combined video, a first scale is arranged around the background video along the row direction, a second scale is arranged around the background video along the column direction, a third scale is arranged around the insertion video along the row direction, a fourth scale is arranged around the insertion video along the column direction, and the third scale and the fourth scale are automatically adjusted, so that the size of the third scale is not larger than 1/2 of the first scale, and the size of the fourth scale is not larger than 1/2 of the second scale, and therefore the insertion video floating in the background video can be ensured not to shield the excessive area of the background video, the playing of the background video can not be influenced, and the user experience feeling is improved; in addition, the invention can select the second video mode when the combined video is exported, and the storage space of the second video mode is smaller than that of the first video mode, thereby saving the storage space.
In some optional embodiments, the background video includes a plurality of frames of the first picture, the second picture is displayed in the first picture, each frame of the first picture includes the first scale and the second scale around the first picture, the insertion video includes a plurality of frames of the second picture, each frame of the second picture includes the third scale and the fourth scale around the second picture, and the method further includes:
automatically calculating the length of a background image in a first picture in the row direction and the length of the background image in the column direction;
automatically adjusting a third scale and a fourth scale, wherein the length of the third scale is not more than the length of the background image in the row direction; the length of the fourth scale is not greater than the length of the background image in the column direction.
The background image in the present invention refers to a portion of the first screen excluding the portrait.
It can be understood that, in the related art, if the size of the inserted video in the first frame is manually adjusted, all other frame frames will use the same size window, and if the portrait in the background video is larger than the background image and smaller than the background image, the inserted video will inevitably block the portrait in the background video, thereby greatly reducing the user experience.
Specifically, the background video includes a plurality of frames of first pictures, the second pictures are displayed in the first pictures, the periphery of each frame of the first pictures includes a first scale and a second scale, the insertion video includes a plurality of frames of second pictures, the periphery of each frame of the second pictures includes a third scale and a fourth scale, and the length of the background image in each first picture in the row direction and the length in the column direction are automatically calculated; automatically adjusting a third scale and a fourth scale, wherein the length of the third scale is not more than the length of the background image in the row direction; the length of the fourth scale is not greater than the length of the background image in the column direction.
Optionally, the method for calculating the size of the background image in each first picture in the background video may adopt a method in the related art, for example, an intelligent cutout method is adopted to cutout the background image, and then the lengths of the background image in the row direction and the column direction are calculated, it should be noted that, here, the length of the background image in the row direction and the length of the background image in the column direction may use the size of a part of the regular graph, for example, the background image is an irregular image, a rectangle in which the area can reach the maximum may be used as the size of the irregular image, and the irregular part of the edge is omitted, as long as it is ensured that the second picture is located in the background image.
In some optional embodiments, the outer edge of the second picture is adjusted according to the outer edge of the background image in the first picture, so that the outer edge of the second picture is located within the outer edge of the background image.
In order to enable the second picture to be in the background image of the first picture, the outer edge of the second picture can be adjusted according to the outer edge of the background image in the first picture, and the outer edge of the second picture is enabled to be located within the outer edge of the background image, so that the second picture can be prevented from blocking the portrait of the first picture, and the user experience is further improved.
Optionally, the outer edge of the second frame is circular or elliptical.
Of course, the outer edge of the second picture can be circular or elliptical, as long as the outer edge of the second picture is located within the outer edge of the background image, so that the second picture can be prevented from blocking the portrait of the first picture, and the user experience is further improved.
In some optional embodiments, when the derived format is the second video mode, each frame of picture in the combined video is determined, and when the percentage of the same pixels in the consecutive 1 st to nth frame of picture is greater than a preset threshold, the 1 st frame of picture is retained in the combined video, and the 2 nd to nth frame of picture is deleted.
It is understood that, the preset threshold value herein may be any value between 95% and 100%, that is, the elements in the adjacent 1 st to nth frame pictures are substantially the same, and it is understood that the actions or backgrounds in the adjacent 1 st to nth frame pictures are the same, so that the 2 nd to nth frame pictures may be deleted when the combined video is derived, thereby reducing the storage space of the combined video.
Based on the same inventive concept, the present invention further provides a video splicing apparatus, which is disposed in the mobile device 30, referring to fig. 3, where fig. 3 is a video splicing apparatus provided by the present invention, and includes a video obtaining unit 31, a video editing unit 32, and a video exporting unit 33;
the video acquiring unit 31 is coupled with the video editing unit 32 and is used for acquiring a background video and at least one insert video, wherein the duration of the background video is more than 15 minutes;
the background video in the invention is the background video with the time length of more than 15 minutes, the video with the time length within 3 minutes can be edited in the prior art, the video with longer time length can be edited in the invention, for example, the video can be a movie film segment, and the content of the background video is not specifically limited.
A video editing unit 32, coupled to the video acquiring unit 31 and the video deriving unit 33, respectively, for splicing the insertion video to any position of the background video, where an editing page of the mobile device 30 includes a video display area and an editing area arranged in a column direction, the video display area displays the insertion video and displays the insertion video in the background video to obtain a combined video, a first scale is arranged around the background video in a row direction, a second scale is arranged around the background video in the column direction, a third scale is arranged around the insertion video in the row direction, a fourth scale is arranged around the insertion video in the column direction, and the third scale and the fourth scale are automatically adjusted so that the size of the third scale is not greater than 1/2 of the first scale and the size of the fourth scale is not greater than 1/2 of the second scale;
with continued reference to fig. 2, fig. 2 only schematically shows that the editing page of the mobile device 30 includes a video display area and an editing area, and of course, control keys may also be provided in the editing page, and the control keys in the editing page are not specifically limited herein. The column-wise editing page includes a video display area 21 and an editing area 22, and optionally, an editing tool option 23 is further provided in the editing area 22, such as volume, audio separation, filter, beauty, chroma, opacity, noise reduction, reverse playing, sound change, editing, music addition, and the like, which is not specifically limited herein. The editing tool options 23 may be provided as one or more lines.
The video editing unit 32 is configured to splice the insertion video to any position of the background video, display the insertion video in the video display area, and display the insertion video in the background video to obtain a combined video, where a first scale is arranged around the background video in the row direction, a second scale is arranged around the background video in the column direction, a third scale is arranged around the insertion video in the row direction, a fourth scale is arranged around the insertion video in the column direction, and fig. 2 only schematically shows lengths of the first scale, the second scale, the third scale and the third scale, where no specific limitation is made here. It can be understood that picture-in-picture can be formed when the inserted video floats on the background video, but the size of the inserted video needs to be manually adjusted to a proper size in the related art, the inserted video needs to be selected, the inserted video is dragged to a proper size by two fingers, the operation is inconvenient, the user experience is poor, in the embodiment, the third scale and the fourth scale can be automatically adjusted, the size of the third scale is not larger than 1/2 of the first scale, and the size of the fourth scale is not larger than 1/2 of the second scale, so that the inserted video floating in the background video can not shield an excessive area of the background video, the playing of the background video cannot be influenced, and the user experience is improved.
A video exporting unit 33, coupled to the video editing unit 32, for exporting the combined video to the server 34, including triggering an export format selection event, the export format including a first video mode and a second video mode, a storage space of the second video mode being smaller than a storage space of the first video mode.
When the combined video is exported, the second video mode can be selected, and the storage space of the second video mode is smaller than that of the first video mode, so that the storage space can be saved, and certainly, the combined video is exported to the server 34, and does not occupy the space of the mobile device 30, so that the user experience is further improved.
Compared with the prior art, the video editing device of the embodiment has at least the following beneficial effects:
the editing page of the mobile device 30 of the video editing apparatus of the present invention includes a video display area and an editing area arranged along a column direction, an insert video is displayed in the video display area and displayed in a background video to obtain a combined video, a first scale is arranged around the background video along a row direction, a second scale is arranged around the background video along the column direction, a third scale is arranged around the insert video along the row direction, a fourth scale is arranged around the insert video along the column direction, the third scale and the fourth scale are automatically adjusted, so that the size of the third scale is not greater than 1/2 of the first scale, and the size of the fourth scale is not greater than 1/2 of the second scale, thereby ensuring that the insert video floating in the background video does not block too much area of the background video, not affecting the playing of the background video, and improving the user experience; in addition, the invention can select the second video mode when the combined video is exported, and the storage space of the second video mode is smaller than that of the first video mode, thereby saving the storage space.
In some optional embodiments, the background video includes a plurality of frames of the first picture, the second picture is displayed in the first picture, a periphery of each frame of the first picture includes the first scale and the second scale, the insertion video includes a plurality of frames of the second picture, a periphery of each frame of the second picture includes the third scale and the fourth scale;
the video editing unit 32 is also configured to automatically calculate the length of the background image in the first screen in the row direction and the length in the column direction; automatically adjusting a third scale and a fourth scale, wherein the length of the third scale is not more than the length of the background image in the row direction; the length of the fourth scale is not greater than the length of the background image in the column direction.
The background image in the present invention refers to a portion of the first screen excluding the portrait.
It can be understood that, in the related art, if the size of the inserted video in the first frame is manually adjusted, all other frame frames will use the same size window, and if the portrait in the background video is smaller than the background image, the inserted video will inevitably block the portrait in the background video, thereby greatly reducing the user experience.
Specifically, the background video includes a plurality of frames of first pictures, the second picture is displayed in the first picture, the periphery of each frame of the first picture includes a first scale and a second scale, the insertion video includes a plurality of frames of second pictures, the periphery of each frame of the second picture includes a third scale and a fourth scale, and the video editing unit 32 automatically calculates the length of the background image in the row direction and the length in the column direction in each first picture; automatically adjusting a third scale and a fourth scale, wherein the length of the third scale is not more than the length of the background image in the row direction; the length of the fourth scale is not greater than the length of the background image in the column direction.
In some optional embodiments, the video editing unit 32 is further configured to adjust an outer edge of the second picture according to an outer edge of the background image in the first picture, so that the outer edge of the second picture is located within the outer edge of the background image.
In order to make the second frame in the background image of the first frame, the video editing unit 32 may adjust the outer edge of the second frame according to the outer edge of the background image in the first frame, so that the outer edge of the second frame is located within the outer edge of the background image, which can prevent the second frame from blocking the portrait of the first frame, and further improve the user experience.
Optionally, the outer edge of the second frame is circular or elliptical.
Of course, the outer edge of the second picture can be circular or elliptical, as long as the outer edge of the second picture is located within the outer edge of the background image, so that the second picture can be prevented from blocking the portrait of the first picture, and the user experience is further improved.
In some optional embodiments, when the derivation format in the video derivation unit 33 is the second video mode, each frame of picture in the combined video is determined, and when the percentage of the same pixels in the consecutive 1 st to nth frame of pictures is greater than the preset threshold, the 1 st frame of picture is retained in the combined video, and the 2 nd to nth frame of picture is deleted.
It is understood that, the preset threshold value herein may be any value between 95% and 100%, that is, the elements in the adjacent 1 st to nth frame pictures are substantially the same, and it is understood that the actions or backgrounds in the adjacent 1 st to nth frame pictures are the same, so that the 2 nd to nth frame pictures may be deleted when the combined video is derived, thereby reducing the storage space of the combined video.
Based on the same inventive concept, the present invention also provides an electronic device comprising a memory storing computer-executable instructions and a processor configured to execute the instructions to implement the video editing method of any one of the above embodiments.
Referring to fig. 4, fig. 4 is a block diagram of an electronic device according to the present invention. The electronic device 400 provided by the present embodiment includes a memory 440 and a processor 410 storing computer executable instructions, the memory 440 storing one or more programs; when executed by the one or more processors 410, cause the one or more processors 410 to implement the video editing method of any of the above embodiments.
Continuing with FIG. 4, electronic device 400 may include a processor 410 (e.g., central processing unit, graphics processor, etc.) which may perform various appropriate actions and processes in accordance with programs stored in a institutional memory (ROM)420 or loaded from a memory 440 into a Random Access Memory (RAM) 430. In the RAM 430, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. Processor 410, ROM 420, and RAM 430 are coupled to each other via bus 460. An input/output (I/O) interface 450 is also connected to bus 460.
The following components are connected to the I/O interface 450: an input portion 480 including a keyboard, a mouse, and the like; an output portion 490 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker and the like; a storage section including a hard disk and the like; and a communication section 470 including a network interface card such as a LAN card, a modem, or the like. The communication section 470 performs communication processing via a network such as the internet. The drives are also connected to the I/O interface 450 as needed. A removable medium such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive as necessary, so that a computer program read out therefrom is mounted into the storage section as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 470, and/or installed from a removable medium. The computer program performs the above-described functions defined in the system of the present invention when executed by a Central Processing Unit (CPU).
The electronic device 400 provided in the above embodiment may execute the video editing method provided in any embodiment disclosed in the present invention, and has corresponding functional units and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments may be referred to a video editing method provided by any embodiment of the present disclosure.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer.
The units described in the present embodiment may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the video editing method in any of the above embodiments.
As can be seen from the foregoing embodiments, the video editing method, apparatus and electronic device provided by the present invention at least achieve the following beneficial effects:
the editing page of the mobile device comprises a video display area and an editing area which are arranged along the column direction, an insertion video is displayed in the video display area and displayed in a background video to obtain a combined video, a first scale is arranged around the background video along the row direction, a second scale is arranged around the background video along the column direction, a third scale is arranged around the insertion video along the row direction, a fourth scale is arranged around the insertion video along the column direction, and the third scale and the fourth scale are automatically adjusted, so that the size of the third scale is not larger than 1/2 of the first scale, and the size of the fourth scale is not larger than 1/2 of the second scale, and therefore the insertion video floating in the background video can be ensured not to shield the excessive area of the background video, the playing of the background video can not be influenced, and the user experience feeling is improved; in addition, the second video mode can be selected when the combined video is exported, the storage space of the second video mode is smaller than that of the first video mode, so that the storage space can be saved, the combined video is exported to a server, the space of the mobile device is not occupied, and the user experience is further improved.
Although some specific embodiments of the present invention have been described in detail by way of examples, it should be understood by those skilled in the art that the above examples are for illustrative purposes only and are not intended to limit the scope of the present invention. It will be appreciated by those skilled in the art that modifications may be made to the above embodiments without departing from the scope and spirit of the invention. The scope of the invention is defined by the appended claims.

Claims (10)

1. A video editing method applied to a mobile device and a server includes:
acquiring a background video and at least one insert video, wherein the duration of the background video is more than 15 minutes;
triggering a splicing event, splicing the insertion video to any position of the background video in the mobile device, wherein an editing page of the mobile device comprises a video display area and an editing area which are arranged in a column direction, the video display area displays the insertion video and displays a combined video in the background video, a first scale is arranged around the background video in a row direction, a second scale is arranged around the background video in the column direction, a third scale is arranged around the insertion video in the row direction, a fourth scale is arranged around the insertion video in the column direction, and the third scale and the fourth scale are automatically adjusted so that the size of the third scale is not larger than 1/2 of the first scale and the size of the fourth scale is not larger than 1/2 of the second scale;
the step of combining video exports to the server includes triggering an export format selection event, the export format including a first video mode and a second video mode, the second video mode having a storage space less than a storage space of the first video mode.
2. The video editing method according to claim 1, wherein the background video includes a plurality of frames of first pictures, the second picture is displayed in the first picture, a periphery of each frame of first pictures includes the first scale and the second scale, the insertion video includes a plurality of frames of second pictures, a periphery of each frame of second pictures includes the third scale and the fourth scale, and further comprising:
automatically calculating the length of a background image in the first picture in the row direction and the length of the background image in the column direction;
automatically adjusting the third scale and the fourth scale, wherein the length of the third scale is not greater than the length of the background image in the row direction; the length of the fourth scale is not greater than the length of the background image in the column direction.
3. The video editing method according to claim 2, wherein an outer edge of the second picture is adjusted so as to be located within an outer edge of the background image in accordance with an outer edge of the background image in the first picture.
4. The video editing method according to claim 2, wherein an outer edge of the second picture is circular or elliptical.
5. The video editing method according to claim 1, wherein when the derived format is the second video mode, each frame picture in the combined video is determined, and when the percentage of the same pixels in consecutive 1 st to nth frame pictures is greater than a preset threshold, the 1 st frame picture is retained in the combined video, and the 2 nd to nth frame pictures are deleted.
6. A video splicing device is arranged on a mobile device and comprises a video acquisition unit, a video editing unit and a video export unit, wherein,
the video acquiring unit is coupled with the video editing unit and is used for acquiring a background video and at least one insert video, and the duration of the background video is more than 15 minutes;
the video editing unit is respectively coupled with the video acquiring unit and the video exporting unit, the editing page of the mobile device comprises a video display area and an editing area which are arranged along the column direction, displaying the insertion video in the video display area to obtain a combined video in the background video, wherein a first scale is arranged around the background video along a row direction, a second scale is arranged around the background video along a column direction, a third scale is arranged around the insertion video along the row direction, a fourth scale is arranged around the insertion video along the column direction, and the third scale and the fourth scale are automatically adjusted, such that the third scale is no larger in size than 1/2 of the first scale and the fourth scale is no larger in size than 1/2 of the second scale;
the video exporting unit is coupled with the video editing unit and used for exporting the combined video to the server, and the video exporting unit triggers an exporting format selection event, wherein the exporting format comprises a first video mode and a second video mode, and the storage space of the second video mode is smaller than that of the first video mode.
7. The video splicing apparatus according to claim 6, wherein the background video includes a plurality of frames of first pictures, the second picture is displayed in the first pictures, each frame of the first pictures includes the first scale and the second scale around the first picture, the insertion video includes a plurality of frames of the second pictures, each frame of the second pictures includes the third scale and the fourth scale around the second picture;
the video editing unit is further used for automatically calculating the length of the background image in the first picture in the row direction and the length of the background image in the column direction; automatically adjusting the third scale and the fourth scale, wherein the length of the third scale is not greater than the length of the background image in the row direction; the length of the fourth scale is not greater than the length of the background image in the column direction.
8. The video splicing apparatus according to claim 7, wherein the video editing unit is further configured to adjust an outer edge of the second picture according to an outer edge of the background image in the first picture, so that the outer edge of the second picture is located within the outer edge of the background image.
9. The video splicing apparatus according to claim 6, wherein when the derived format in the video deriving unit is the second video mode, each frame of picture in the combined video is determined, and when the percentage of the same pixels in the consecutive 1 st to nth frame of pictures is greater than a preset threshold, the 1 st frame of picture is retained in the combined video, and the 2 nd to nth frame of picture is deleted.
10. An electronic device, comprising a memory storing computer-executable instructions and a processor configured to execute the instructions to implement the video editing method of any of claims 1-5.
CN202111621911.2A 2021-12-28 2021-12-28 Video editing method and device and electronic equipment Pending CN114286159A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111621911.2A CN114286159A (en) 2021-12-28 2021-12-28 Video editing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111621911.2A CN114286159A (en) 2021-12-28 2021-12-28 Video editing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114286159A true CN114286159A (en) 2022-04-05

Family

ID=80876835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111621911.2A Pending CN114286159A (en) 2021-12-28 2021-12-28 Video editing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114286159A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708696A (en) * 2022-11-22 2023-09-05 荣耀终端有限公司 Video processing method and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104010151A (en) * 2014-06-13 2014-08-27 深圳市景阳科技股份有限公司 Method for compressing monitoring video file
EP2821997A1 (en) * 2013-07-04 2015-01-07 Thomson Licensing Method and device for editing a video sequence
CN109525880A (en) * 2018-11-08 2019-03-26 北京微播视界科技有限公司 Synthetic method, device, equipment and the storage medium of video data
CN111666527A (en) * 2020-08-10 2020-09-15 北京美摄网络科技有限公司 Multimedia editing method and device based on web page
CN112291627A (en) * 2020-10-12 2021-01-29 广州市百果园网络科技有限公司 Video editing method and device, mobile terminal and storage medium
CN113365133A (en) * 2021-06-02 2021-09-07 北京字跳网络技术有限公司 Video sharing method, device, equipment and medium
CN113473204A (en) * 2021-05-31 2021-10-01 北京达佳互联信息技术有限公司 Information display method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2821997A1 (en) * 2013-07-04 2015-01-07 Thomson Licensing Method and device for editing a video sequence
CN104010151A (en) * 2014-06-13 2014-08-27 深圳市景阳科技股份有限公司 Method for compressing monitoring video file
CN109525880A (en) * 2018-11-08 2019-03-26 北京微播视界科技有限公司 Synthetic method, device, equipment and the storage medium of video data
CN111666527A (en) * 2020-08-10 2020-09-15 北京美摄网络科技有限公司 Multimedia editing method and device based on web page
CN112291627A (en) * 2020-10-12 2021-01-29 广州市百果园网络科技有限公司 Video editing method and device, mobile terminal and storage medium
CN113473204A (en) * 2021-05-31 2021-10-01 北京达佳互联信息技术有限公司 Information display method and device, electronic equipment and storage medium
CN113365133A (en) * 2021-06-02 2021-09-07 北京字跳网络技术有限公司 Video sharing method, device, equipment and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708696A (en) * 2022-11-22 2023-09-05 荣耀终端有限公司 Video processing method and electronic equipment

Similar Documents

Publication Publication Date Title
WO2021082639A1 (en) Method and apparatus for operating user interface, electronic device, and storage medium
CN107371062B (en) Method for automatically zooming video picture
CN111583886A (en) Screen refresh rate adjusting method, device, equipment and medium
CN109345490B (en) Method and system for enhancing real-time video image quality of mobile playing terminal
US9892537B2 (en) Seamless compositing using a soft selection
CN110633380B (en) Control method and device for picture processing interface, electronic equipment and readable medium
WO2017096854A1 (en) Picture preview method and device for smart terminal
CN109286835A (en) Direct broadcasting room interactive element display methods, storage medium, equipment and system
CN111459601A (en) Data processing method and device, electronic equipment and computer readable medium
WO2019109889A1 (en) Web page display method, browser, terminal, and computer readable storage medium
CN112596843A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN114286159A (en) Video editing method and device and electronic equipment
US9875521B2 (en) Image output apparatus, image output method, and program
US7500190B1 (en) Visual feedback to illustrate effects of editing operations
EP3993383A1 (en) Method and device for adjusting image quality, and readable storage medium
CN111506241A (en) Special effect display method and device for live broadcast room, electronic equipment and computer medium
CN111190665A (en) Full-screen image display method, intelligent terminal and storage medium
CN111045576A (en) Display control method, display control device, terminal device and electronic device
CN117319736A (en) Video processing method, device, electronic equipment and storage medium
CN110267085A (en) A kind of method and device of video processing
CN113379768A (en) Image processing method, image processing device, storage medium and computer equipment
KR102146557B1 (en) Method and apparatus for rendering data of web application and recording medium thereof
CN114286176A (en) Video editing method and device and electronic equipment
JP4179810B2 (en) Display data creation device, display data creation method, display data creation program, and computer-readable recording medium on which display data creation program is recorded
AU2015271981A1 (en) Method, system and apparatus for modifying a perceptual attribute for at least a part of an image

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