WO2022262536A1 - 一种视频处理方法及电子设备 - Google Patents

一种视频处理方法及电子设备 Download PDF

Info

Publication number
WO2022262536A1
WO2022262536A1 PCT/CN2022/094792 CN2022094792W WO2022262536A1 WO 2022262536 A1 WO2022262536 A1 WO 2022262536A1 CN 2022094792 W CN2022094792 W CN 2022094792W WO 2022262536 A1 WO2022262536 A1 WO 2022262536A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
video
electronic device
duration
user
Prior art date
Application number
PCT/CN2022/094792
Other languages
English (en)
French (fr)
Inventor
韩笑
易婕
Original Assignee
荣耀终端有限公司
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 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Priority to EP22824017.2A priority Critical patent/EP4336849A1/en
Priority to US18/570,379 priority patent/US20240223840A1/en
Publication of WO2022262536A1 publication Critical patent/WO2022262536A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47205End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/02Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
    • G11B27/031Electronic editing of digitised analogue information signals, e.g. audio or video signals
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/34Indicating arrangements 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/4223Cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4318Generation of visual interfaces for content selection or interaction; Content or additional data rendering by altering the content in the rendering process, e.g. blanking, blurring or masking an image region
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • H04N5/77Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
    • H04N5/772Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera the recording apparatus and the television camera being placed in the same enclosure

Definitions

  • the present application relates to the technical field of photographing, and in particular to a video processing method and electronic equipment.
  • Electronic devices such as mobile phones and tablets provide functions such as video recording and processing.
  • a gallery application is provided in the mobile phone, and the video can be processed by using the gallery application. For example, you can add filters, soundtracks, and more to your videos.
  • Embodiments of the present application provide a video processing method and an electronic device, which can form slices with different effects for the same video, and improve the diversity of slices.
  • the embodiment of the present application provides a video shooting method, which is applied to electronic devices such as mobile phones and tablets that support video shooting.
  • the electronic device displays the first interface.
  • the first interface includes a first option, and the first option displays a thumbnail of an image frame in the first video.
  • the electronic device displays the second interface in response to the user's click operation on the first option in the first interface.
  • the second interface is an editing interface of the first video, and the second interface also includes a first control.
  • the first control is a button of "one-click filming"
  • the electronic device generates the first film in response to the user's first operation on the first control in the second interface
  • the first filming is the video added by the electronic device to the first video The resulting video after the first video effect. So far, the electronic device has added the first video effect to the video in the electronic device.
  • the electronic device can display the third interface.
  • the third interface includes a second option and a first option, and the second option displays a thumbnail of a frame of image in the first film. That is to say, after the video effect is added to the first video, the electronic device can provide two options of the first video and the first finished film for selection.
  • the electronic device displays the fourth interface in response to the user's click operation on the first option in the third interface.
  • the fourth interface is an editing interface of the first video, and the fourth interface also includes the first control.
  • the electronic device generates a second video in response to the user's first operation on the first control in the fourth interface; the second video is a video obtained by adding a second video effect to the first video by the electronic device. Wherein, the first video effect is different from the second video effect.
  • the electronic device can add video effects to the first video in response to the user's operation on the first control to form the first film. Afterwards, the electronic device still provides the option of the first video to the user. In addition, for the first video, the electronic device may add different video effects to the first video in response to the user's operation on the first control again to form a second film. Therefore, for the same video, a film with different effects can be formed, and the diversity of the film can be improved.
  • the first interface is an interface before recording a video or taking a photo in a camera application of the electronic device, or the first interface is an application interface of a gallery application in the electronic device.
  • the third interface is an application interface of a gallery application.
  • the electronic device displays the second interface in response to the user's click operation on the first option in the first interface, including: the electronic device responds to the user's click operation on the first option in the first interface For the click operation of the option, if the first video is a video without video effects added, the electronic device displays the second interface.
  • the electronic device only provides the function of adding video effects to videos without adding video effects, that is, the function of "one-click filming". In this way, it is possible to add video effects in a targeted manner and improve the effect of video processing.
  • the above method further includes: the electronic device responds to the user's click operation on the first option in the first interface, and if the first video has a video with video effects added, the electronic device displays the second video.
  • the fifth interface is an editing interface of the first video, and the fifth interface does not include the first control.
  • the electronic device no longer provides the function of adding video effects to the video to which video effects have been added, but only displays a common editing interface, that is, the fifth interface. So as to avoid video effect confusion.
  • the above further includes: the electronic device displays a sixth interface in response to the user's click operation on the second option; the sixth interface is the first In the editing interface of a piece, the sixth interface does not include the first control.
  • the electronic device since the second option corresponds to the first segment, and the first segment is a segment to which a video effect has been added, the electronic device does not provide it with a function of adding a video effect. So as to avoid video effect confusion.
  • the electronic device displays the second interface in response to the user's click operation on the first option in the first interface, including: the electronic device responds to the user's click operation on the first option in the first interface For the click operation of the option, if the video duration of the first video exceeds the first duration, and the video duration of the first video does not exceed the second duration, the electronic device displays the second interface; the first duration is less than the second duration.
  • the electronic device only provides the function of adding video effects to videos with a video duration within a certain duration range, which can improve the effect of video processing.
  • the above method further includes: when the electronic device displays the first control for the first time, the electronic device displays first prompt information at the same time, and the first prompt information is used to prompt that the function of adding video effects is applicable video duration.
  • the electronic device when the electronic device displays the first interface for the first time, it prompts the video duration applicable to the function of adding video effects. In this way, the scope of application of the function of adding video effects can be clearly indicated, and the efficiency of human-computer interaction can be improved.
  • the above method further includes: the electronic device responds to the user's click operation on the first option in the first interface, if the video duration of the first video does not exceed the first duration, or, The video duration of the first video exceeds the second duration, and the electronic device displays a seventh interface; the seventh interface is an editing interface of the first video, and the seventh interface does not include the first control.
  • the electronic device does not provide it with the function of adding video effects. In this way, the effect of video processing can be improved.
  • the video duration of the first video exceeds the second duration.
  • the electronic device generates the first slice in response to the user's first operation on the first control in the second interface, including: the electronic device displays the eighth interface in response to the user's first operation on the first control in the second interface ;
  • the eighth interface is an interface for cutting the first video by the electronic device.
  • the electronic device In response to the second operation of the user on the eighth interface, the electronic device generates a first segment; the first segment is a video obtained by adding a first video effect to the target segment by the electronic device, the target segment belongs to the first video, and segments of the target segment The duration does not exceed the second duration.
  • the electronic device may first trim the video, and then add a video effect to the trimmed video. In this way, the electronic device can provide a function of adding video effects to a relatively long video. Thereby, the applicability of the function of adding video effects can be improved.
  • the method further includes: the electronic device displays a preview interface of the first piece.
  • the electronic device can directly display a preview after generating a film, so that the video effect can be directly previewed, and the efficiency of human-computer interaction is improved.
  • the preview interface includes a second control, and the second control is used to trigger the electronic device to edit the clip.
  • the method further includes: the electronic device plays the first film on the preview interface.
  • the electronic device responds to the completion of the first piece of playback, and displays the second prompt information on the preview interface; the second prompt information is used to prompt the electronic device Edit the first film.
  • the electronic device may provide an editing prompt in the preview interface, so as to clearly instruct the user to continue editing into a piece.
  • the above-mentioned fifth interface includes a second control, and the second control is used to trigger editing of the electronic device into a piece.
  • the method further includes: the electronic device switches at least one effect among the first video effects in response to the user's third operation on the second control; the at least one effect includes One or more of background music, filters, stickers, frames, transitions, and credits.
  • the video effect added by the electronic device can be adjusted. Thereby, the video effect added by the electronic device can be broken, and a more diverse video can be formed.
  • the method further includes: the electronic device saves the first piece in response to the user's fourth operation on the preview interface.
  • the electronic device displays a ninth interface; the ninth interface is an editing interface of the first piece, and the ninth interface does not include the first control.
  • the electronic device displaying the third interface includes: the electronic device displays the third interface in response to a return operation input by the user on the ninth interface.
  • the embodiment of the present application further provides an electronic device that can support a video shooting function
  • the electronic device includes a display screen, a memory, and one or more processors.
  • the display screen, the memory and the processor are coupled.
  • the memory is used to store computer program codes, the computer program codes include computer instructions, and when the computer instructions are executed by the processor, the electronic device is made to perform the following steps: the electronic device displays a first interface;
  • the first interface includes a first option, and the first option displays a thumbnail of a frame image in the first video;
  • the electronic device responds to the user clicking on the first option in the first interface Operation, displaying a second interface;
  • the second interface is an editing interface of the first video, and the second interface also includes a first control;
  • the electronic device responds to the The first operation of the first control generates a first film;
  • the first film is a video obtained after the electronic device adds a first video effect to the first video;
  • the electronic device displays a third interface;
  • the third interface
  • the first interface is an interface before video recording or taking pictures in the camera application of the electronic device, or the first interface is a gallery in the electronic device An application interface of an application; and, the third interface is an application interface of the gallery application.
  • the electronic device when the computer instruction is executed by the processor, the electronic device is made to perform the following steps: the electronic device responds to the user's The click operation of the first option, if the first video is a video without video effects added, the electronic device displays the second interface.
  • the electronic device when the computer instruction is executed by the processor, the electronic device is made to perform the following steps: the electronic device responds to the user's The click operation of the first option, if the first video has video effects added, the electronic device displays the fifth interface; the fifth interface is the editing interface of the first video, and the fifth interface The first control is not included in .
  • the electronic device when the computer instructions are executed by the processor, the electronic device is caused to perform the following steps: the electronic device responds to the user clicking on the second option Operation, displaying a sixth interface; the sixth interface is an editing interface of the first piece, and the sixth interface does not include the first control.
  • the electronic device when the computer instruction is executed by the processor, the electronic device is caused to perform the following steps: the electronic device responds to the user's response to the The click operation of the first option, if the video duration of the first video exceeds the first duration, and the video duration of the first video does not exceed the second duration, the electronic device displays the second interface; the The first duration is less than the second duration.
  • the electronic device when the computer instructions are executed by the processor, the electronic device is caused to perform the following steps: when the electronic device displays the first control for the first time, the The electronic device displays first prompt information at the same time, and the first prompt information is used to prompt the video duration for which the function of adding video effects is applicable.
  • the electronic device when the computer instruction is executed by the processor, the electronic device is made to perform the following steps: the electronic device responds to the user's The click operation of the first option, if the video duration of the first video does not exceed the first duration, or, the video duration of the first video exceeds the second duration, the electronic device displays a seventh interface ;
  • the seventh interface is an editing interface of the first video, and the seventh interface does not include the first control.
  • the video duration of the first video exceeds the second duration; when the computer instructions are executed by the processor, the electronic device is made to perform the following steps: The electronic device displays an eighth interface in response to the user's first operation on the first control in the second interface; the eighth interface is an interface for the electronic device to crop the first video; the The electronic device generates a first film in response to the user's second operation on the eighth interface; the first film is a video obtained by adding the first video effect to the target segment by the electronic device, and the target The segment belongs to the first video, and the segment duration of the target segment does not exceed the second duration.
  • the electronic device when the computer instruction is executed by the processor, the electronic device is caused to perform the following step: the electronic device displays the preview interface of the first piece.
  • the preview interface includes a second control, and the second control is used to trigger editing of the electronic device into a piece.
  • the electronic device is made to perform the following steps: the electronic device plays the first film in the preview interface; the electronic device has not detected the user
  • the electronic device displays second prompt information on the preview interface in response to the completion of the first video playback; the second prompt information is used to prompt
  • the electronic device edits the first slice.
  • the fifth interface includes a second control, and the second control is used to trigger editing of the electronic device into slices; when the computer instruction is executed by the processor When executed, the electronic device is made to perform the following steps: the electronic device switches at least one effect in the first video effect in response to the user's third operation on the second control; the at least one effect include one or more of background music, filters, stickers, frames, transitions, and credits.
  • the electronic device when the computer instructions are executed by the processor, the electronic device is made to perform the following steps: the electronic device responds to the fourth operation, saving the first piece; the electronic device displays a ninth interface in response to the completion of saving the first piece; the ninth interface is the editing interface of the first piece, and the ninth The interface does not include the first control; the electronic device displays the third interface in response to a return operation input by the user on the ninth interface.
  • an embodiment of the present application provides a chip system, which is applied to an electronic device including a display screen and a memory; the chip system includes one or more interface circuits and one or more processors; the interface The circuit and the processor are interconnected by a line; the interface circuit is configured to receive a signal from a memory of the electronic device and send the signal to the processor, the signal including computer instructions stored in the memory; When the processor executes the computer instruction, the electronic device executes the method described in the first aspect and any possible design manner thereof.
  • the present application provides a computer storage medium, the computer storage medium includes computer instructions, and when the computer instructions are run on the electronic device, the electronic device executes the first aspect and any possible design method thereof. the method described.
  • the present application provides a computer program product.
  • the computer program product runs on a computer, the computer executes the method described in the first aspect and any possible design manner thereof.
  • FIG. 1 is a schematic diagram of a hardware structure of a mobile phone provided by an embodiment of the present application
  • Fig. 2 is one of the interface diagrams of a mobile phone provided by the embodiment of the present application.
  • FIG. 3A is the second schematic diagram of the interface of a mobile phone provided by the embodiment of the present application.
  • FIG. 3B is the third schematic diagram of the interface of a mobile phone provided by the embodiment of the present application.
  • FIG. 4 is the fourth schematic diagram of the interface of a mobile phone provided by the embodiment of the present application.
  • Fig. 5A is a schematic diagram of a sheeting effect provided by the embodiment of the present application.
  • FIG. 5B is the fifth schematic diagram of the interface of a mobile phone provided by the embodiment of the present application.
  • FIG. 6A is a schematic diagram of a video duration provided by an embodiment of the present application.
  • FIG. 6B is the sixth schematic diagram of the interface of a mobile phone provided by the embodiment of the present application.
  • FIG. 6C is the seventh schematic diagram of the interface of a mobile phone provided by the embodiment of the present application.
  • FIG. 6D is the eighth schematic diagram of the interface of a mobile phone provided by the embodiment of the present application.
  • Fig. 7A is the ninth schematic diagram of the interface of a mobile phone provided by the embodiment of the present application.
  • FIG. 7B is a schematic diagram of a music desalination process provided by the embodiment of the present application.
  • Fig. 8 is the tenth schematic diagram of the interface of a mobile phone provided by the embodiment of the present application.
  • FIG. 9 is the eleventh schematic diagram of the interface of a mobile phone provided by the embodiment of the present application.
  • FIG. 10 is the twelveth schematic diagram of the interface of a mobile phone provided by the embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a chip system provided by an embodiment of the present application.
  • An embodiment of the present application provides a video processing method, which can be applied to electronic devices supporting video processing, such as mobile phones and tablets.
  • the electronic device can provide a quick editing entry for the video in the electronic device.
  • the electronic device can receive a user's preset operation on the shortcut editing entry, such as a click operation, a slide operation, and the like.
  • the electronic device can add a set of video effects such as background music, filters, special effects (such as twinkling stars), transitions, photo frames, and stickers to the video to generate a movie.
  • the electronic device may add different sets of video effects to the video in response to multiple preset operations by the user, thereby generating films with different effects.
  • the electronic device can quickly add a set of effects to the video in response to the user's preset operation, and improve the intelligence and efficiency of video processing. Moreover, for the same video, in response to multiple preset operations by the user, films with different effects can be formed to increase the diversity of the films.
  • the electronic equipment in the embodiment of the present application can be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, and a cellular Phones, personal digital assistants (personal digital assistant, PDA), augmented reality (augmented reality, AR) ⁇ virtual reality (virtual reality, VR) equipment and other equipment that support video processing, the embodiment of the present application does not make any reference to the specific form of the electronic equipment special restrictions.
  • PDA personal digital assistant
  • AR augmented reality
  • VR virtual reality
  • the mobile phone may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power supply Management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, An indicator 192, a camera 193, a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the structure shown in this embodiment does not constitute a specific limitation on the electronic device.
  • the electronic device may include more or fewer components than shown, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the interface connection relationship among the modules shown in this embodiment is only a schematic illustration, and does not constitute a structural limitation of the electronic device.
  • the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 191 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the electronic device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the electronic device realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the electronic device can realize the shooting function through ISP, camera 193 , video codec, GPU, display screen 194 and application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device by executing instructions stored in the internal memory 121 .
  • the processor 110 may display different content on the display screen 184 in response to the user's operation of expanding the display screen 194 by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the electronic device.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to realize contact and separation with the electronic device.
  • the electronic device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the method in the embodiment of the present application will be described in detail below with reference to the accompanying drawings and taking the electronic device as a mobile phone as an example.
  • the method in the embodiment of the present application may be applied to a scene of video processing.
  • the video to be processed (also referred to as the first video) may be a video captured by a mobile phone, or may be a video downloaded from the Internet or stored in a cloud.
  • the solution of this application is mainly described by taking the video to be processed as a video captured by a mobile phone as an example.
  • the mobile phone can capture a video to be processed in a single-lens video mode.
  • the single-lens video mode is an ordinary video mode in the conventional sense.
  • the mobile phone only uses one camera to shoot video.
  • the interface 201 shown in (a) in FIG. 2 is a viewfinder interface before recording in single-lens recording mode.
  • the interface 201 only includes an image 202 captured by a single camera (such as a front camera). In this case, the shooting starts, and the mobile phone shoots in the single-lens video mode.
  • the mobile phone can capture a video to be processed in a multi-camera recording mode.
  • the mobile phone can use two or more cameras to shoot video at the same time.
  • the interface 203 shown in (b) in FIG. 2 is a viewfinder interface before recording in multi-lens recording mode.
  • the interface 203 includes an image 204 and an image 205 captured by two cameras (such as a rear main camera and a front camera). In this case, the shooting starts, and the mobile phone shoots in the multi-lens video mode.
  • the solution of the present application will be described mainly in the multi-mirror video recording mode.
  • a switching operation for example, clicking the switching button 206 in the interface 203, can trigger the mobile phone to switch to using a single camera to shoot video.
  • a mode in which a single camera is used to shoot video can be recorded as a multi-mirror mode.
  • the mobile phone in the multi-mirror video recording mode, in the viewfinder interface before video shooting, such as in interface 301, the mobile phone can receive the user's operation 1, which is used to Trigger the phone to start video recording.
  • the viewfinder interface before shooting includes a control 1, such as the button 302 in the interface 301 shown in (a) of FIG. 3A .
  • Control 1 is used to trigger the mobile phone to start video shooting, and operation 1 may be a user's click operation on control 1 .
  • the mobile phone may start video shooting, and display a viewfinder interface during video shooting, such as interface 303 shown in (b) of FIG. 3A .
  • the mobile phone can receive the user's operation 2, and the operation 2 is used to trigger the mobile phone to end the video shooting.
  • the viewfinder interface during shooting includes the control 2, such as the button 304 in the interface 303 .
  • Control 2 is used to trigger the mobile phone to end video shooting, and operation 2 may be a user's click operation on control 2 .
  • the mobile phone can end the video shooting, and store the shot video (which can be recorded as video 1, which belongs to the first video).
  • operation 1 and operation 2 are not limited to the forms in the above examples.
  • operation 1 may also be a user's sliding operation from the right edge of the viewfinder interface before video shooting to the left.
  • operation 2 may also be a user's double-click operation on the viewfinder interface during video shooting, or the like. The embodiments of the present application do not specifically limit this.
  • the mobile phone can resume displaying the viewfinder interface (also called the first interface) before shooting.
  • the viewfinder interface before video shooting includes a gallery resource control, and the gallery resource control can display a thumbnail of an image frame in video 1 (it can be referred to as the thumbnail of video 1).
  • the mobile phone may display an interface 311 shown in (a) in FIG. 3B , which is a viewfinder interface before video shooting.
  • the button 312 at the bottom left of the interface 311 is a gallery resource control, and the thumbnail 313 of the video 1 is displayed in the button 312 .
  • the thumbnail may be called an option, for example, the thumbnail of Video 1 is called the first option.
  • the gallery resource control can be used to trigger the mobile phone to display the video corresponding to the thumbnail.
  • the mobile phone can receive the user's click operation, long press operation, slide operation, etc. on the gallery resource control.
  • the following will mainly use the click operation as an example to illustrate.
  • the mobile phone may display an interface 1 (also referred to as a second interface), where interface 1 is an editing interface for video 1 .
  • interface 1 also referred to as a second interface
  • the mobile phone may display the interface 316 shown in (c) in FIG. 3B , that is, interface 1 .
  • the video corresponding to the thumbnail 313 in the button 312 can be edited.
  • the mobile phone can synchronize the video 1 to the gallery application, and then in the application interface of the gallery application (also The thumbnail of video 1 will also be displayed in the first interface).
  • the mobile phone may display an interface 314 shown in (b) of FIG. 3B , and the interface 314 is an application interface of the gallery application.
  • Interface 314 includes a thumbnail 315 of Video 1 .
  • the thumbnail of Video 1 may be referred to as the first option.
  • the mobile phone may receive a user's click operation on the thumbnail in the application interface.
  • the mobile phone may also display Interface 1 (also referred to as a second interface), where Interface 1 is an editing interface for Video 1 .
  • Interface 1 is an editing interface for Video 1 .
  • the mobile phone may display ( c) Interface 316 is shown, ie interface 1 .
  • Interface 316 Video 1 may be edited.
  • the interface 1 may include share controls, favorite controls, edit controls, delete controls and the like.
  • the sharing control may be a "Share” button
  • the collection control may be a "Favorite” button and so on. This allows basic video editing to be done.
  • the interface 1 includes a control 3 (that is, the quick editing entry, which may also be referred to as the first control), such as the "one-key blockbuster” button in the interface 316 shown in (c) of FIG. 3B .
  • Control 3 is used to trigger the mobile phone to use an effect template (such as template 1) to process the video to be processed (such as video 1).
  • this processing function may be called “one-key blockbuster”.
  • the scheme of this application will be described below mainly by taking template 1 as an example of the effect template used in "One Click Blockbuster".
  • Each effect template has a combination of background music, filters, special effects (such as twinkling stars), transitions, photo frames, stickers and other effects, which can be referred to as video effects for short. That is, each effect template corresponds to a set of video effects.
  • each effect template corresponds to a set of video effects.
  • the mobile phone uses an effect template, it can add a corresponding video effect to the video.
  • a group of video effects corresponding to template 1 may be referred to as a first video effect.
  • the mobile phone may receive the user's operation 3 (also referred to as the first operation) on the control 3 . Operation 3 is used to trigger the mobile phone to use template 1 to process the video to be processed (such as video 1).
  • the operation 3 may be a click operation, a long press operation, a slide operation, etc. of the control 3 by the user.
  • the operation 3 may be the user's sliding up operation on the control 3 and so on.
  • the present application does not specifically limit the form of operation 3.
  • the solution of this application is mainly described by taking operation 3 as an example where the user clicks on the control 3 .
  • the mobile phone may use template 1 to process the video to be processed (such as video 1) to form a piece (also called the first piece).
  • the mobile phone can add a set of video effects corresponding to template 1 to video 1, such as background music, filters, special effects, transitions, photo frames, stickers and other effects, so that the formed film effect is the same as that of the video corresponding to template 1
  • the effect is exactly the same.
  • the effect of the film can be as shown in (d) in FIG. 3B , and the film has effects such as a dark gray filter and a "Happy Hour" sticker.
  • the video in the mobile phone may not be processed with an effect template, such as video 1, or may be processed with an effect template.
  • the video processed using the effect template can be recorded as video 2 (belonging to the first video).
  • effect templates including the following two cases: the first one is processed by "one-click film”.
  • One-click filming please refer to the previous description, so I won't repeat it here.
  • the second is to select an effect template (such as template 2) before starting video shooting, and automatically process the captured video according to template 2 after the video shooting ends, and save it in the mobile phone after generating a film.
  • the following uses a specific example to illustrate the second case:
  • the mobile phone may display an interface 401 shown in (a) in FIG. Mobile phone selection effect template.
  • the mobile phone can receive the user's click operation on the "micro movie” button 402 .
  • the mobile phone can display template options of multiple effect templates, such as “Hello Summer”, “Beautiful”, “Good Mood” as shown in (b) in Figure 4 , "Xiaomeimei” a total of 4 template options.
  • the mobile phone may receive the user's selection operation on template option 1 (such as the option of "Hello Summer"), wherein template option 1 is any one of multiple template options.
  • the mobile phone can select a corresponding effect template, such as "Hello Summer". Afterwards, the mobile phone may receive an operation to start shooting, such as the user's click operation on the button 403 in (b) in FIG. 4 . In response to the operation of starting shooting, the mobile phone may start video shooting. After the video shooting is over, the mobile phone can automatically use the effect template selected before shooting to process the captured video, form a film (such as video 2) and save it in the mobile phone. For example, video 2 can be shown in (c) in Figure 4, with effects such as a light gray filter and "summer love, we are together in the most beautiful summer" stickers.
  • the filming effect is not good.
  • the effect shown in (a) in FIG. 5A and the effect shown in (b) in FIG. 5A are superimposed, and the effect shown in (c) in FIG. 5A can be obtained.
  • the superimposition of light gray filters and dark gray filters causes the color of the filters in the finished film to be too dark, affecting the picture of the original video content.
  • the superimposition of the two stickers "Happy Hour” and “Summer Love, We Are Together in the Most Beautiful Summer” leads to inconsistencies in the theme of the video.
  • the mobile phone can add a processing identifier to the video in the mobile phone, add the first identifier to the video (such as video 1) that has not been processed by using the effect template, and/or add the first identifier to the video obtained after processing using the effect template.
  • the mobile phone may display the application interface 501 of the gallery application shown in (a) in FIG. .
  • the upper right corners of the thumbnails 503 and 504 are marked with a five-pointed star, which is used to indicate that the video corresponding to the thumbnail 503 and the thumbnail 504 is a video processed using an effect template. That is, the five-pointed star is the second logo. If there is no five-pointed star in the upper right corner of the thumbnail 502, it indicates that the video corresponding to the thumbnail 502 is a video that has not been processed with an effect template.
  • the mobile phone responds to the user's click operation on any thumbnail (which can be recorded as the target thumbnail, and can also be called the first option) in the viewfinder interface before video shooting or in the application interface of the gallery application.
  • the processing identifier of the video corresponding to the thumbnail is the first identifier, or the processing identifier of the target video is not the second identifier, and the mobile phone can display the interface 1 .
  • the interface 1 reference may be made to the descriptions in the foregoing embodiments, and details are not repeated here.
  • the target thumbnail is the thumbnail 503 shown in (a) in FIG. video.
  • the mobile phone may display the interface 505 shown in (b) in FIG. 5B.
  • the interface 505 includes a control 3, such as a "one-click-to-film" button. That is, interface 505 is interface 1 .
  • the mobile phone may Display interface 2.
  • the interface 2 in this embodiment may be referred to as the fifth interface.
  • Interface 2 is also a video editing interface, but interface 2 does not include control 3 .
  • video 3 is the video corresponding to the thumbnail image 504 shown in (a) in FIG. Effect template processed video.
  • the mobile phone may display the interface 506 shown in (c) in FIG. 5B in response to the user's click operation on the thumbnail image 504 .
  • the interface 506 includes the target video, but does not include the control 3, such as the "one-click-to-film" button. That is, interface 506 is interface 2 .
  • the mobile phone responds to the user's click operation on the target thumbnail in the viewfinder interface before video shooting or in the application interface of the gallery application, if the target video is not the video obtained by the mobile phone after adding video effects according to the effect template (such as video 1) , the mobile phone can display interface 1, and control 3 is provided in interface 1. If the target video is a video (such as video 2) obtained after the mobile phone adds video effects according to the effect template, the mobile phone can display interface 2, and control 3 is not provided in interface 2.
  • the target video is a video (such as video 2) obtained after the mobile phone adds video effects according to the effect template
  • control 3 is only provided for videos that have not been processed with an effect template, so as to realize "one-click filming".
  • "one-click filming" can be realized in a targeted manner, and the effect of video processing can be improved.
  • the mobile phone can provide controls 3 for all videos, and record each video (such as video 2) obtained after the mobile phone adds video effects according to the effect template and the corresponding original video (such as video 1). Correspondence. Then, when the mobile phone "one-clicks" the video (such as video 2) obtained after the video effect is added according to the effect template, it can search for the corresponding original video, and obtain it by adding the video effect on the basis of the original video. new video.
  • the mobile phone when the mobile phone "one-clicks into a video" obtained by adding video effects according to the effect template, the mobile phone can avoid the superposition of video effects by searching for the original video and then processing it. Thereby improving the effect of video processing.
  • the video durations of videos in mobile phones are different.
  • the video duration of the video is 00:15, that is, 15s; the video duration of the video corresponding to the thumbnail 504 is 00:08, that is, 8s.
  • the video duration is "one-click into a film" according to the effect template, if the video is "one-click into a film" according to the effect template, if the video duration is too short, the effect corresponding to the effect template may not be well presented.
  • template 1 includes transitions, effects of fade-in at the beginning and fade-out at the end, and the required durations are 1.5s, 2s and 1.5s respectively.
  • the video duration is 8s. If template 1 is used to "one-click into a film" for the video shown in (a) in Figure 6A, the video frame of the first 1.5s needs to be used for For the fade-in effect, the 1.5s video frame at the end needs to be used for the fade-out effect, and the 2s video frame in the middle is used for the transition effect, then only the 3s video frame left in the whole video can be displayed normally, resulting in the "one-click film” effect not effectively.
  • the mobile phone responds to the user's click operation on the target thumbnail in the viewfinder interface before video shooting or in the application interface of the gallery application, if the video duration of the target video (that is, the video corresponding to the target thumbnail) is After the duration 1 (which may be referred to as the first duration), the mobile phone may display the interface 1 .
  • the interface 1 reference may be made to the descriptions in the foregoing embodiments, and details are not repeated here.
  • the target thumbnail is the thumbnail 602 in the application interface 601 of the camera application shown in (a) in FIG. 6B as an example, and the video corresponding to the thumbnail 602 is the video of the target video
  • the duration is 00:15, which is 15s, which exceeds the duration of 1.
  • the mobile phone may display the interface 604 shown in (b) in FIG. 6B in response to the user's click operation on the thumbnail image 602 .
  • the interface 604 includes a control 3, such as a "one-click-to-film" button.
  • the interface 604 is the interface 1, which can also be obtained after the user clicks the control 312 in the interface 311, and the interface includes the prompt information 608 "One-click blockbuster provides intelligent editing for videos with a duration of 10 to 29 seconds, automatically generated Wonderful movie", the prompt information can also be other suitable content, such as "record a video between 10 and 35 seconds, and it can be converted into a movie with one click", which is not limited in this application.
  • the mobile phone may display interface 2 .
  • the interface 2 in this embodiment may be referred to as the seventh interface.
  • Interface 2 is also a video editing interface, but interface 2 does not include control 3 .
  • the target thumbnail is the thumbnail 603 in the application interface 601 of the camera application shown in (a) in FIG. 6B as an example, and the video corresponding to the thumbnail 603 is the video of the target video
  • the duration is 00:08, which is 8s, which does not exceed duration 1.
  • the mobile phone may display the interface 605 shown in (c) in FIG. 6B in response to the user's click operation on the thumbnail image 603 .
  • the interface 605 includes the target video, but does not include the control 3 , such as the "one-click-to-film" button. That is, interface 605 is interface 2 .
  • the duration 1 may be a value set according to experience, such as 5s, 8s, 10s and so on.
  • multiple effect templates may be stored in the mobile phone, and each effect template has its own template duration.
  • the video duration of the video to be processed (such as video 1) is at least close to the duration of the template, a relatively good film effect can finally be presented.
  • the template duration of template 1 is 15s
  • template 1 includes 3 transition effects
  • the duration of each transition is 2s, so the transition effect takes 6s
  • the average interval between every two transitions is 3s. If the video duration is less than 15s, the interval between every two transitions will be shorter, resulting in a poor film effect. Based on this, the duration 1 can be set to be shorter than the shortest template duration.
  • the shortest template duration is 15s.
  • the duration 1 can be set to a value less than 15s, such as 10s. Subsequent videos that do not reach 10s may not be provided with the "one-click film" function.
  • control 3 is only provided for videos whose video duration exceeds duration 1, and is used to realize "one-click filming", so that "one-key filming" can be realized in a targeted manner, and the effect of video processing can be improved.
  • the group of effects corresponding to template 1 includes background music, and the duration of the background music is 30s. As shown in (b) in Figure 6A, the video duration is 35s.
  • the background music of template 1 can only cover the first 30s of the video frame, and the remaining 5s will not Background sound and coverage will also affect the filming effect.
  • there are multiple cameras to record video in the scene of shooting video in the multi-camera recording mode. If the video time is too long, the video file will be larger, which is not conducive to the later "one-click film” processing, and the final result will be The slices will also be very large, which is not convenient for storage, uploading and sharing.
  • the mobile phone responds to the user's click operation on the target thumbnail in the viewfinder interface before video shooting or in the application interface of the gallery application, if the target video (that is, the video corresponding to the target thumbnail)
  • the video duration does not exceed duration 2 (also called the second duration)
  • the mobile phone can display interface 1.
  • the duration 2 is the duration 2 as 29s
  • the target thumbnail is the thumbnail 602 in the application interface 601 of the camera application shown in (a) in FIG. 6B as an example. Since the video corresponding to the thumbnail 602 is the target video The video duration is 00:15, which is 15s, which does not exceed duration 2.
  • the mobile phone can display an interface 604 shown in (b) in FIG. That is, interface 604 is interface 1 .
  • the mobile phone responds to the user's click operation on the target thumbnail in the viewfinder interface before video shooting or in the application interface of the gallery application. If the video duration of the target video exceeds the duration 2, the mobile phone may display the interface 2 .
  • the interface 2 in this embodiment may be referred to as the seventh interface.
  • Interface 2 is also a video editing interface, but interface 2 does not include control 3 .
  • the mobile phone can display the interface 607 shown in (d) in Figure 6B in response to the user's click operation on the thumbnail image 606. Does not include controls 3, such as the "One-Click" button. That is, interface 607 is interface 2 .
  • the duration 2 may be a value set according to experience. For example, in the scene of shooting video in multi-camera recording mode, if the video duration exceeds 30s, the video file will be too large, which is not conducive to post-processing, storage, etc. Therefore, the video duration can be set to 30s.
  • multiple effect templates may be stored in the mobile phone, and a set of effects of each effect template includes background music. Usually, the background music needs to be able to cover the video to be processed (such as video 1) in order to present a better film effect. For example, as shown in (b) in FIG.
  • the duration 2 can be set to be longer than or equal to the longest music duration.
  • duration 2 which is the longest music duration, any effect template is used to process the video to be processed, and the background music cannot cover the entire video. In the future, it is not necessary to provide it with the "one-click filming" function.
  • the music duration of the longest background music is 30s
  • the duration 2 can be set to be greater than or equal to 30s, such as 30s.
  • a set of effects of the effect template may also include a credits, which is fixed content, such as a mobile phone merchant's trademark (logo), and usually has nothing to do with the captured video content.
  • the background music needs to be able to cover the video to be processed and the end credits in order to present a better film effect. For example, if the video is too long, the background music may not cover the credits.
  • the duration 2 can be set to be longer than or equal to the difference between the longest music duration and the ending duration. For example, if the music duration of the longest background music is 30s and the ending credit duration is 1s, then the duration 2 can be set to 29s.
  • control 3 is only provided for videos whose video duration does not exceed duration 2, and is used to realize "one-click filming", so that "one-key filming" can be realized in a targeted manner, and the effect of video processing can be improved .
  • the mobile phone may only provide control 3 for videos whose video duration exceeds duration 1 and does not exceed duration 2 .
  • duration 1 is less than duration 2.
  • the mobile phone when the mobile phone provides the control 3 for the first time, the mobile phone can also display the prompt information 1 (also called the first prompt information) at the same time. ), the prompt message 1 is used to prompt the applicable video duration of "One-Click Blockbuster".
  • the interface 1 displayed for the first time is the interface 604 shown in (b) of FIG. 6B , and the interface 604 includes a control 3 , such as a "one-key slice" button.
  • Interface 604 also includes prompt 608, the specific content of prompt 608 is "One-click blockbuster provides intelligent editing for videos with a duration of 10-29 seconds, and automatically generates wonderful movies", so as to prompt the applicable video duration of "One-click blockbuster” . That is, prompt 608 is prompt information 1 .
  • the mobile phone may provide the control 3 for videos of any length.
  • the target thumbnail is the thumbnail 606 in the interface 601 shown in (a) in FIG. 6B as an example, the video corresponding to the thumbnail 606, that is, the video duration of the target video is 00: 35, that is, 35s, exceeding the duration 2.
  • the mobile phone may display an interface 611 shown in (a) in FIG. 6C.
  • the interface 611 also includes a control 3 , that is, a "one-click-to-film" button. That is to say, if the video duration of the target video exceeds the duration 2, the mobile phone can also provide it with a control 3 to trigger the use of "one-click blockbuster".
  • the mobile phone can provide the control 3 for videos of any length, and when the control 3 is provided for the first time, the prompt information 2 can be displayed.
  • Prompt message 2 is only used to prompt the function of "one-click movie" without prompting the applicable video duration of "one-click blockbuster".
  • the interface 1 displayed for the first time is the interface 611 shown in (a) of FIG. 6C , and the interface 611 includes a control 3 , such as a "one-click-to-tablet" button.
  • the interface 611 also includes a reminder 615.
  • the specific content of the reminder 615 is "one-click blockbuster provides intelligent editing for video, and automatically generates wonderful movies", so that the function of "one-click blockbuster” can be prompted. That is, the prompt 615 is the prompt information 2 .
  • the mobile phone can receive the user's operation 3, such as the click operation on the "one-click film” button.
  • the mobile phone may use template 1 to process the target video to form a piece.
  • the mobile phone may display interface 3 (also referred to as an eighth interface).
  • the mobile phone can respond to the user's interception operation (also referred to as the second operation) to intercept a video segment that does not exceed duration 2 (which can be recorded as the target segment) from the target video, so that the effect of template 1 can match The target fragment. That is to say, interface 3 is an interface used by the mobile phone to crop the target.
  • the mobile phone may use template 1 to add video effects to the target segment to form a segment.
  • the duration 2 is 29s
  • the target thumbnail is the thumbnail 606 shown in (a) in FIG. 6B
  • the interface 3 displayed in response to the click operation on the thumbnail 606 is (a) in FIG. ) shows the interface 611 as an example, because the video corresponding to the thumbnail 606, that is, the video duration of the target video is 00:35, that is, 35s, exceeding the duration 2.
  • the mobile phone may display the interface 612 shown in (b) in FIG. 6C in response to the user's click operation on the "one-key to film" button in the interface 611 .
  • the mobile phone can intercept and select a video segment that does not exceed 29s, that is, the target segment.
  • the interface 3 includes a control 4, and the control 4 is used to trigger the mobile phone to select a video clip not exceeding the duration 2.
  • the control 4 is the selection box 613 shown in (b) in FIG. 6C , and the selection box 613 can select a video segment with a maximum duration of 2. Normally, control 4 selects the video clip with length 2 at the beginning of video 3 by default.
  • the mobile phone can receive the user's sliding operation on the video segment selected by the control 4, and in response to the user's sliding operation on the video segment selected by the control 4, the mobile phone can select a new video segment.
  • the mobile phone can receive the user's push and pull operation on the left and right edges of the control 4, and in response to the user's push and pull operation on the left and right edges of the control 4, the mobile phone can change the segment duration of the selected video segment, thereby selecting a new video fragment.
  • the mobile phone in response to the user's push and pull operation on the left and right edges of the control 4, if the length of the dragged segment exceeds the duration 2, the mobile phone can display a prompt message 3 on the interface 3, and the prompt message 3 is used to indicate that the maximum duration has been reached.
  • the video segment of 29s has been selected at this time, on this basis, as shown in (b) in Figure 6D, in response to user Push the right edge of the selection box in the direction indicated by the arrow, and the mobile phone may display a prompt 624 as shown in (c) in FIG. 6D.
  • the specific content of the prompt 624 is "the maximum adjustable duration has been reached", so that it can prompt that the maximum duration has been reached. That is, the prompt 624 is prompt information 3 .
  • the interface 3 may also include a playback progress bar, and the entire duration corresponding to the playback progress bar indicates the duration of the selected video segment.
  • the playback progress bar is the progress bar 614 shown in (b) in FIG. 14s.
  • the playback progress bar can be used to trigger the mobile phone to update the playback progress of the currently selected video segment.
  • the playback progress bar and the control 4 are set independently, so as to facilitate and accurately adjust the playback progress.
  • the mobile phone can receive the user's operation 4 (ie, the second operation) on the interface 3, and the operation 4 is used to trigger the mobile phone to crop the target video.
  • the operation 4 may be a preset gesture of the user on the interface 3 , such as an upward sliding gesture inward from the bottom edge of the interface 3 .
  • the interface 3 includes an interception control, such as the " ⁇ " button in the upper right corner of the interface 612 shown in (b) in FIG. 6C , and the interception control is used to trigger the mobile phone to intercept video clips.
  • Operation 4 may be a click operation, a long press operation, etc. of the interception control by the user.
  • the form of operation 4 is not specifically limited.
  • the mobile phone may intercept the target segment, which is the latest video segment selected by the mobile phone and not exceeding the duration 2, and add video effects to the intercepted target segment to generate a video.
  • the interface 3 may include a cancel control, such as the “ ⁇ ” button in the upper left corner of the interface 612 shown in (b) in FIG. 6C , the cancel control is used to trigger the mobile phone to intercept the default video segment. For example, the previous video segment with duration 2 in the target video.
  • the cancel control In response to the user's click operation, long press operation, etc. on the cancel control, the mobile phone can intercept a default video segment and add video effects to generate a film.
  • the "one-click blockbuster” processing can be implemented for videos of any length.
  • the target segment with the duration 2 is firstly intercepted from the target video, and then the target segment is processed by using "one-key into a film". In this way, the problem of mismatching the effect in template 1 due to the length of the video can be avoided, thereby improving the effect of the film.
  • the mobile phone can use the effect template to process the target segment after the mobile phone responds to the mobile phone intercepting the target segment. Instead of responding to operation 3, an effect template is used to process the entire video.
  • multiple effect templates are stored in the mobile phone, and different effect templates have different effects. Taking the effect including background music as an example, the background music of template 1 is dynamic music, and the background music of template 2 is cheerful music.
  • the mobile phone in response to operation 3, such as clicking on the button of "One-Click to Film", the mobile phone can select a target template from multiple effect templates to be processed.
  • the video (such as video 1) is processed.
  • the mobile phone may select a target template from multiple effect templates randomly or according to a certain rule, for example, according to the sequence of template numbers.
  • the mobile phone can use different effect templates to process the video, thereby obtaining different effects.
  • the mobile phone may receive user's first operation 3 .
  • the mobile phone can use the template 1 to process the video 1 to form a piece 1 .
  • the effect of sheet 1 is exactly the same as that of template 1.
  • the mobile phone after the mobile phone displays the interface 1 again, the mobile phone can receive the user's second operation 3 .
  • the mobile phone can use the template 2 to process the video 1 to form a piece 2 .
  • the effect of piece 2 is exactly the same as that of template 2.
  • the mobile phone uses the template 1 to process the video 1, and the film 1 can be obtained.
  • the effect of piece 1 is shown in (b) in FIG. 7A , and piece 1 has effects such as a dark gray filter and "Happy Hour” stickers.
  • the mobile phone uses the template 2 to process the video 1 to obtain a film 2 .
  • the effect of the finished piece 2 is shown in (c) in Figure 7A.
  • the finished piece 2 has effects such as a light gray filter, "summer love, we are together in the most beautiful summer” stickers, and the like.
  • the mobile phone can form films with different effects in response to operation 3 multiple times. Thereby, the diversity of the film can be improved.
  • the mobile phone After the mobile phone selects the target template (such as template 1), it can add background music, filters, fit, special effects, and photo frames to the video to be processed during the process of processing the video to be processed using the target template (such as template 1). and other effects.
  • the background music matched by each effect template has two versions (can be recorded as version 1 and version 2), the duration of version 1 is equal to the duration of the template of the effect template, and the duration of version 2 is a fixed duration, such as 30s. Wherein, the fixed duration is longer than the maximum template duration.
  • Table 2 the corresponding relationship between the effect templates stored in the mobile phone and the background music is shown in Table 2 below:
  • the template “Hello Summer” in Table 2 above is an example.
  • the matching background music is soothing music. Since the template duration of the "Hello Summer” template is 15s, version 1 of the soothing music is the 15s version. Take the "Happy Winter” template in Table 2 as an example.
  • the matching background music is winter music. Since the template duration of the "Happy Winter” template is 20s, version 1 of the winter music is the 15s version. In addition, version 2 of all music is a version with a fixed duration of 30s.
  • the mobile phone when the mobile phone adds background music to the video to be processed (such as video 1), it can match the version of the added background music according to the video duration of the video to be processed. If the video duration of the video to be processed is shorter than or equal to the template duration of the target template, the mobile phone can add version 1 of the background music matched by the target template as the background music of the video to be processed. For example, if the target template is the "Hello Summer” template in Table 2 above, assuming that the video duration of Video 1 is 14s, which is 15s shorter than that of the "Hello Summer” template, you can add the 15s version of soothing music as Background music for video 1.
  • the mobile phone can add version 2 of the background music matched by the target template as the background music of the video to be processed.
  • the target template is the "Hello Summer” template in Table 2 above
  • the video duration of Video 1 is 28s, which is 15s longer than the "Hello Summer” template, but shorter than the fixed duration of 30s
  • the soothing music of the 30s version is the background music of Video 1. In this way, the added background music can be enough to cover the entire video, improving the effect of the film.
  • the mobile phone may not provide the control 3 for the video whose video length exceeds the duration 2; or, the mobile phone may provide the control 3 for it, but it needs to first Cropping, you can choose an effect template to process after cropping. Therefore, the fixed duration can be set equal to the duration 2, so that the background music of version 2 can cover all the videos to be processed, for example, the target segment obtained after cropping that does not exceed the duration 2.
  • the set of effects of the target template does not include the credits, and correspondingly, the final film does not include the credits, and the length of the film is the video duration.
  • the mobile phone can align the beginning of the background music with the beginning of the video to be processed, and then align the end of the background music beyond the Part of the shooting duration is deleted, that is, the background music corresponding to the redundant duration 1 in (a) in 7B is deleted to obtain effective music. Adds a music fade to the end of active music to smooth out the end of background music in the finished film.
  • a set of effects of the target template includes the credits, and correspondingly, the final movie includes the credits, and the duration of the movie is equal to the sum of the video duration and the credits duration.
  • the mobile phone can align the beginning of the background music with the beginning of the video to be processed, and then align the background music Delete the part of the end of the music that exceeds the duration of the credits, that is, delete the background music corresponding to the excess duration 2 in (b) in FIG. 7B to obtain effective music. Adds a music fade to the end of active music to smooth out the end of background music in the finished film.
  • the mobile phone can display an interface 5, which is a preview interface of the film.
  • interface 5 it can be played into a film.
  • the film-forming effect can be presented to the user.
  • the interface 5 is the interface 801 shown in (a) of FIG. 8 .
  • a finished film is being played in the interface 801, and the finished film has effects such as a light gray filter and a sticker of "summer love, the most beautiful summer, we are together".
  • the mobile phone may display a prompt message 4 (also referred to as the second prompt message) on the interface 5, as shown in (b) in FIG. 8
  • the prompt 806 in the interface 802 is "click to try different movie styles".
  • the prompt information 4 is used to prompt the effect of adjusting the film, that is, to adjust the added video effect.
  • satisfying the preset condition includes: the display duration of the interface 5 reaches a duration of 3, such as 10s, and no preset operation of the user is detected.
  • the finished film can be played in the interface 5, and after the interface is displayed, the finished film starts to be played.
  • satisfying the preset condition includes: the playback of the movie in the interface 5 ends, and no preset operation by the user is detected. The above preset operations are used to trigger the effect of adjusting the mobile phone into a film.
  • the interface 5 includes an effect switching control (also referred to as a second control), and the effect switching control is used to trigger the effect of adjusting the mobile phone into a film.
  • the effect switching control may include a style switching control, such as the "style" button 803 in the interface 802 shown in (b) in FIG.
  • the overall effect other than background music such as the overall effect of various effects such as filters, stickers, and photo frames.
  • the effect switching control may include a music switching control, such as the music button 804 in the interface 802 shown in (b) of FIG.
  • the effect switching control may include an editing control, such as the editing button 805 in the interface 802 shown in (b) in FIG. Transitions, volume, credits and other effects.
  • the preset operation may be a user's click operation or long press operation (also referred to as a third operation) on the effect switching control.
  • the failure to detect the preset operation of the user means that since the first use of the mobile phone, after using the "one-click film” and entering the interface 5, the user has never been detected to input the preset operation. For example, in the process of using the mobile phone in the past, the user clicked the style switching control in interface 5 after using the "one-click film” to form a film. Prompt message 4 is not displayed. In this way, repeated prompts to users who are already familiar with the effect switching function can be avoided.
  • the mobile phone can receive a user's preset operation, and the preset operation is used to adjust the effect of the film.
  • the preset operation may be the user's click operation on the music button 902 in the interface 901 shown in (a) of FIG. 9 .
  • the mobile phone can display multiple effect options in the interface 5, such as "soothing", “summer", and “dynamic” in the pop-up window 903 shown in (b) in Figure 9 , "happy" a total of 4 music options, each music option corresponds to a background music.
  • the cover art and name of music options are not related to the corresponding effect templates.
  • the cover art of the music option may be set as the template cover of the effect template corresponding to the music.
  • the name of the music option may be set as the template name of the corresponding music matching effect template.
  • the option corresponding to the background music of the currently used effect template can be displayed as the first of the multiple music options, so as to facilitate quick restoration to the original background music.
  • the first music option may be selected by default.
  • the mobile phone may display a pop-up window 903 shown in (b) in FIG. , indicating that the option is selected by default.
  • the mobile phone may receive a user's selection operation on any music option (which may be recorded as music option 1).
  • the mobile phone can replace the background music in the movie with the background music corresponding to option 1, and play the movie from the beginning.
  • the mobile phone may receive the user's operation 5, and the operation 5 is used to trigger the mobile phone to switch background music.
  • operation 5 may be a sliding operation from top to bottom from a pop-up window displaying multiple music options (may be recorded as a music pop-up window).
  • the music pop-up window includes a confirmation control
  • operation 5 may be a click operation or a long press operation of the user on the confirmation control.
  • the music pop-up window is the pop-up window 905 shown in (d) in FIG. 9
  • the pop-up window 905 includes a " ⁇ " button.
  • the " ⁇ " button is a confirmation control.
  • Operation 5 may be the user's click operation on the " ⁇ ” button.
  • the embodiment of the present application does not specifically limit the form of operation 5.
  • the mobile phone can turn off multiple music options, and resume displaying interface 5 that does not include music options.
  • an interface 901 shown in (a) of FIG. 9 may be displayed.
  • the mobile phone can adjust at least one effect in a group of added video effects (such as the video effect of template 1) in response to the preset operation, so as to break the effect template (such as the fixed combination of background music, filters, photo frames, stickers and other effects in template 1).
  • a group of added video effects such as the video effect of template 1
  • effects such as filters, photo frames, and stickers of the template 1 can be combined with the switched background music.
  • the mobile phone can receive the user's operation 6 (also referred to as the fourth operation), and the operation 6 is used to trigger the mobile phone to save the file.
  • operation 6 may be a user's left sliding operation inward from the right edge of interface 5 .
  • the interface 5 includes a control 5, such as the " ⁇ " button 1002 in the interface 1001 shown in (a) of FIG.
  • the operation 6 may be a click operation or a long press operation on the control 5 by the user.
  • the form of operation 6 is not specifically limited in the embodiment of the present application.
  • the mobile phone can save the file, and display a saving prompt on interface 5 .
  • the saving prompt is the prompt 1003 shown in (b) in FIG. 10
  • the prompt 1003 prompts that the saving progress is 45%, and when the saving is completed, the progress is 100%.
  • the mobile phone may display interface 6 (also referred to as the ninth interface) in response to the completion of saving.
  • Interface 6 is the editing interface of the film.
  • interface 6 includes the filming of the video to be processed in interface 1, and interface 6 does not include control 3, such as the "one-key filming" button.
  • the interface 6 may be the interface 1004 shown in (c) of FIG. 10 .
  • the video in the interface 1004 has effects such as filters and stickers, and is a piece of the video in the interface 316; the interface 1004 does not include the control 3 , such as the "One-Click to Tablet" button.
  • the mobile phone in response to operation 6 , may not display the saving prompt, but directly jump to interface 6 .
  • This embodiment of the present application does not specifically limit it.
  • the mobile phone can directly save the film after filming without displaying the preview.
  • the mobile phone may receive the user's operation 7 on the interface 6 (may be referred to as a return operation), and the operation 7 is used to trigger the mobile phone to return to the application interface of the gallery application.
  • operation 7 may be a right sliding operation performed by the user from the left edge of the interface 6 inward.
  • the interface 6 includes a return control, such as the button 1005 shown in (c) in FIG. 10 .
  • Operation 7 may be the user's click operation on the return control.
  • the form of operation 7 is not specifically limited.
  • the mobile phone may display an interface 7 (also referred to as a third interface), and the interface 7 is an application interface of the gallery application.
  • thumbnail image (which may be called the second option) of one frame of the image generated this time is newly added in the application interface of the gallery application.
  • the mobile phone may display the interface 1006 shown in (d) in FIG. 10 , and the interface 1006 includes thumbnail images 1007 .
  • the thumbnail image 1007 is the latest saved thumbnail image.
  • the mobile phone can use different effect templates to process the video, so as to obtain Films with different effects. Therefore, in some embodiments, after displaying the interface 7, the mobile phone can receive the user's thumbnail (ie, the first option) of the video 1 again, such as the thumbnail 1008 in the interface 1006 shown in (d) in FIG. 10 In response to the user's click operation on the thumbnail of video 1 (ie, the first option), the mobile phone can display interface 8 (also referred to as the fourth interface). Interface 8 is an editing interface of Video 1 , and Control 3 is provided in Interface 8 .
  • the mobile phone can receive the user's operation 3 on the interface 8 , such as a click operation on the control 3 .
  • the mobile phone may add video effects to video 1 according to different effect templates (such as template 2) to generate a new film (which may be called a second film).
  • the video effect of template 2 may be referred to as a second video effect.
  • the second video effect is different from the first video effect.
  • the difference between the second video effect and the first video effect means that at least one of the second video effect is different from the first video effect, for example, background music, filters, stickers, photo frames, transitions At least one of the other effects is different. In this way, for the same video, "one-click filming" for multiple times in a row can form films with different effects.
  • the mobile phone does not need to provide the control 3 for the video (such as video 2) obtained after adding video effects to the mobile phone.
  • the interface 7 includes thumbnails of the films generated this time (ie, the second option). Therefore, in some embodiments, after the interface 7 is displayed, the mobile phone can receive the user's click operation on the generated thumbnail images this time, and in response to the user's click operation on the generated thumbnail images this time, the mobile phone can Display interface 9.
  • the interface 9 is the editing interface of the film generated this time. Since the film generated this time is recorded as a video with video effects added, the interface 9 does not include the control 3 . Therefore, it is possible to avoid confusion of video effects caused by further adding video effects to the generated film.
  • an electronic device which may include: the above-mentioned display screen (such as a touch screen), a memory, and one or more processors.
  • the display screen, memory and processor are coupled.
  • the memory is used to store computer program code comprising computer instructions.
  • the processor executes the computer instructions, the electronic device can execute various functions or steps performed by the mobile phone in the foregoing method embodiments.
  • the structure of the electronic device reference may be made to the structure of the mobile phone shown in FIG. 1 .
  • the chip system 1100 includes at least one processor 1101 and at least one interface circuit 1102 .
  • the processor 1101 and the interface circuit 1102 may be interconnected through wires.
  • interface circuitry 1102 may be used to receive signals from other devices, such as memory of an electronic device.
  • the interface circuit 1102 may be used to send signals to other devices (such as the processor 1101).
  • the interface circuit 1102 can read instructions stored in the memory, and send the instructions to the processor 1101 .
  • the electronic device may be made to execute various steps in the foregoing embodiments.
  • the chip system may also include other discrete devices, which is not specifically limited in this embodiment of the present application.
  • the embodiment of the present application also provides a computer storage medium, the computer storage medium includes computer instructions, and when the computer instructions are run on the above-mentioned electronic device, the electronic device is made to perform the various functions or steps performed by the mobile phone in the above-mentioned method embodiment .
  • the embodiment of the present application also provides a computer program product, which, when the computer program product is run on a computer, causes the computer to execute each function or step performed by the mobile phone in the method embodiment above.
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places . Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: various media that can store program codes such as U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Television Signal Processing For Recording (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

本申请实施例提供一种视频处理方法及电子设备,涉及终端技术领域,针对同一视频,可以形成具有不同效果的成片,提升成片的多样性。其中,方法包括:电子设备显示第一界面。第一界面中包括第一选项。电子设备响应于用户对第一界面中第一选项的点击操作,显示第二界面,第二界面中还包括第一控件。电子设备响应于用户对第二界面中第一控件的第一操作,生成第一成片。电子设备显示第三界面;第三界面中包括第二选项和第一选项。电子设备响应于用户对第三界面中第一选项的点击操作,显示第四界面,第四界面中还包括第一控件。电子设备响应于用户对第四界面中第一控件的第一操作,生成第二成片。其中,第一成片和第二成片具有不同的视频效果。

Description

一种视频处理方法及电子设备
本申请要求于2021年6月16日提交国家知识产权局、申请号为202110676709.3、申请名称为“一种基于故事线模式的用户视频创作方法及电子设备”的中国专利申请的优先权,请求于2021年11月29日提交国家知识产权局、申请号为202111439314.8、发明名称为“一种视频处理方法及电子设备”的中国专利申请的优先权,以及请求于2022年01月13日提交国家知识产权局、申请号为202210038856.2、发明名称为“一种视频处理方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及拍照技术领域,尤其涉及一种视频处理方法及电子设备。
背景技术
手机、平板等电子设备中都提供有视频拍摄、处理等功能。以手机为例,手机中提供有图库应用,使用图库应用,可对处理视频。例如,可以为视频添加滤镜、配乐等。
然而,发明人在实施本申请实施例的过程中发现,现有技术中提供的视频处理方案至少有如下缺陷:电子设备只能基于用户对滤镜、配乐、水印等各种效果分别的设置,完成视频处理。操作繁琐,导致视频处理的智能性不强。
发明内容
本申请实施例提供一种视频处理方法及电子设备,针对同一视频,可以形成具有不同效果的成片,提升成片的多样性。
第一方面,本申请实施例提供一种视频拍摄方法,应用于手机、平板等支持拍摄视频的电子设备。电子设备显示第一界面。第一界面中包括第一选项,第一选项显示有第一视频中一帧图像的缩略图。电子设备响应于用户对第一界面中第一选项的点击操作,显示第二界面。第二界面是第一视频的编辑界面,第二界面中还包括第一控件。例如,第一控件是“一键成片”按钮,电子设备响应于用户对第二界面中第一控件的第一操作,生成第一成片;第一成片是电子设备为第一视频添加第一视频效果后得到的视频。至此,电子设备为电子设备中的视频添加了第一视频效果。
然后,电子设备可显示第三界面。第三界面中包括第二选项和第一选项,第二选项显示有第一成片中一帧图像的缩略图。也就是说,在为第一视频添加了视频效果后,电子设备则可以提供第一视频和第一成片两个选项供选择。并且,电子设备响应于用户对第三界面中第一选项的点击操作,显示第四界面。第四界面是第一视频的编辑界面,第四界面中还包括第一控件。电子设备响应于用户对第四界面中第一控件的第一操作,生成第二成片;第二成片是电子设备为第一视频添加第二视频效果后得到的视频。其中,第一视频效果和第二视频效果不同。
综上所述,采用本申请实施例的方法,针对未添加视频效果的第一视频,电子设备响应于用户对第一控件的操作,可以为第一视频添加视频效果,形成第一成片。之后,电子设备仍然提供第一视频的选项给用户。并且,针对该第一视频,电子设备再次响应于用户对第一控件的操作,可以为第一视频添加不同的视频效果,形成第二成片。从而可以针对同一视频,形成具有不同效果的成片,提升成片的多样性。
在第一方面的一种可能的设计方式中,第一界面是电子设备的相机应用中录制视频前或者拍照前的界面,或者,第一界面是电子设备中图库应用的应用界面。以及,第三界面是图库应用的应用界面。
在第一方面的一种可能的设计方式中,上述电子设备响应于用户对第一界面中第一选项的点击操作,显示第二界面,包括:电子设备响应于用户对第一界面中第一选项的点击操作,若第一视频是未添加视频效果的视频,电子设备显示第二界面。
采用本实施例的方法,电子设备仅针对未添加视频效果的视频,提供添加视频效果的功能,即“一键成片”的功能。从而实现有针对性的添加视频效果,提升视频处理的效果。
在第一方面的一种可能的设计方式中,上述法还包括:电子设备响应于用户对第一界面中第一选项的点击操作,若第一视频已添加视频效果的视频,电子设备显示第五界面;第五界面是第一视频的编辑界面,第五界面中不包括第一控件。
采用本实施例的方法,电子设备针对已添加视频效果的视频,不再为其提供添加视频效果的功能,而仅显示普通的编辑界面,即第五界面。从而避免视频效果混乱。
在第一方面的一种可能的设计方式中,上述在电子设备显示第三界面之后,还包括:电子设备响应于用户对第二选项的点击操作,显示第六界面;第六界面是第一成片的编辑界面,第六界面中不包括第一控件。
在本实施例中,由于第二选项对应第一成片,而第一成片是已经添加了视频效果的成片,因此,电子设备不为其提供添加视频效果的功能。从而避免视频效果混乱。
在第一方面的一种可能的设计方式中,上述电子设备响应于用户对第一界面中第一选项的点击操作,显示第二界面,包括:电子设备响应于用户对第一界面中第一选项的点击操作,若第一视频的视频时长超过第一时长,且第一视频的视频时长未超过第二时长,电子设备显示第二界面;第一时长小于第二时长。
应理解,视频时长过长或者过短,在添加视频效果后,最终的成片都不会特别理想。本实施例中,电子设备仅为视频时长在一定时长范围的视频提供添加视频效果的功能,可以提升视频处理的效果。
在第一方面的一种可能的设计方式中,上述方法还包括:在电子设备首次显示第一控件时,电子设备同时显示第一提示信息,第一提示信息用于提示添加视频效果的功能适用的视频时长。
本实施例中,电子设备在首次显示第一界面时,提示添加视频效果的功能适用的视频时长。从而可以明确指示该添加视频效果的功能的适用范围,提升人机交互的效 率。
在第一方面的一种可能的设计方式中,上述方法还包括:电子设备响应于用户对第一界面中第一选项的点击操作,若第一视频的视频时长未超过第一时长,或者,第一视频的视频时长超过第二时长,电子设备显示第七界面;第七界面是第一视频的编辑界面,第七界面中不包括第一控件。
本实施例中,若视频时长过长或者过短,电子设备则不为其提供添加视频效果的功能。如此,可以提升视频处理的效果。
在第一方面的一种可能的设计方式中,上述第一视频的视频时长超过第二时长。其中,电子设备响应于用户对第二界面中第一控件的第一操作,生成第一成片,包括:电子设备响应于用户对第二界面中第一控件的第一操作,显示第八界面;第八界面是电子设备裁剪第一视频的界面。电子设备响应于用户对第八界面的第二操作,生成第一成片;第一成片是电子设备为目标片段添加第一视频效果得到的视频,目标片段属于第一视频,目标片段的片段时长未超过第二时长。
本实施例中,针对视频时长过长的视频,若检测到需要添加视频效果,电子设备可以先对该视频进行裁剪,然后针对裁剪后的视频添加视频效果。如此,电子设备可以较长的视频提供添加视频效果的功能。从而可以提升添加视频效果的功能的适用范围。
在第一方面的一种可能的设计方式中,上述在生成第一成片后,还包括:电子设备显示第一成片的预览界面。
本实施例中,电子设备在生成成片后,则可以直接显示预览,从而可以直接预览视频效果,提升人机交互效率。
在第一方面的一种可能的设计方式中,上述预览界面中包括第二控件,第二控件用于触发电子设备编辑成片。其中,在电子设备显示第一成片的预览界面之后,方法还包括:电子设备在预览界面中播放第一成片。在电子设备未检测到过用户对第二控件的第三操作的情况下,电子设备响应于第一成片播放完成,在预览界面中显示第二提示信息;第二提示信息用于提示电子设备编辑第一成片。
本实施例中,电子设备可以在预览界面中提供编辑提示,从而可以明确指示用户继续编辑成片。
在第一方面的一种可能的设计方式中,上述第五界面中包括第二控件,第二控件用于触发电子设备编辑成片。其中,在电子设备显示第一成片的预览界面之后,方法还包括:电子设备响应于用户对第二控件的第三操作,切换第一视频效果中的至少一种效果;至少一种效果包括背景音乐、滤镜、贴纸、相框、转场和片尾中的一种或多种。
本实施例中,在预览界面,可以调整电子设备添加的视频效果。从而可以打破电子设备添加的视频效果,形成更加多样化的视频。
在第一方面的一种可能的设计方式中,上述在电子设备显示第一成片的预览界面 之后,方法还包括:电子设备响应于用户对预览界面的第四操作,保存第一成片。电子设备响应于第一成片保存完成,显示第九界面;第九界面是第一成片的编辑界面,第九界面中不包括第一控件。其中,电子设备显示第三界面,包括:电子设备响应于用户在第九界面中输入的返回操作,显示第三界面。
第二方面,本申请实施例还提供一种电子设备,所述电子设备可支持视频拍摄功能,所述电子设备包括显示屏、存储器和一个或多个处理器。所述显示屏、所述存储器和所述处理器耦合。所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如下步骤:所述电子设备显示第一界面;所述第一界面中包括第一选项,所述第一选项显示有第一视频中一帧图像的缩略图;所述电子设备响应于用户对所述第一界面中所述第一选项的点击操作,显示第二界面;所述第二界面是所述第一视频的编辑界面,所述第二界面中还包括第一控件;所述电子设备响应于用户对所述第二界面中所述第一控件的第一操作,生成第一成片;所述第一成片是所述电子设备为所述第一视频添加第一视频效果后得到的视频;所述电子设备显示第三界面;所述第三界面中包括第二选项和所述第一选项,所述第二选项显示有第一成片中一帧图像的缩略图;所述电子设备响应于用户对所述第三界面中所述第一选项的点击操作,显示第四界面;所述第四界面是所述第一视频的编辑界面,所述第四界面中还包括所述第一控件;所述电子设备响应于用户对所述第四界面中所述第一控件的所述第一操作,生成第二成片;所述第二成片是所述电子设备为所述第一视频添加第二视频效果后得到的视频;其中,所述第一视频效果和所述第二视频效果不同。
在第二方面的一种可能的设计方式中,所述第一界面是所述电子设备的相机应用中录制视频前或者拍照前的界面,或者,所述第一界面是所述电子设备中图库应用的应用界面;以及,所述第三界面是所述图库应用的应用界面。
在第二方面的一种可能的设计方式中,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如下步骤:所述电子设备响应于用户对所述第一界面中所述第一选项的点击操作,若所述第一视频是未添加视频效果的视频,所述电子设备显示所述第二界面。
在第二方面的一种可能的设计方式中,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如下步骤:所述电子设备响应于用户对所述第一界面中所述第一选项的点击操作,若所述第一视频已添加视频效果的视频,所述电子设备显示第五界面;所述第五界面是所述第一视频的编辑界面,所述第五界面中不包括所述第一控件。
在第二方面的一种可能的设计方式中,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如下步骤:所述电子设备响应于用户对所述第二选项的点击操作,显示第六界面;所述第六界面是所述第一成片的编辑界面,所述第六界面中不包括所述第一控件。
在第二方面的一种可能的设计方式中,当所述计算机指令被所述处理器执行时, 使得所述电子设备执行如下步骤:所述电子设备响应于用户对所述第一界面中所述第一选项的点击操作,若所述第一视频的视频时长超过第一时长,且所述第一视频的视频时长未超过第二时长,所述电子设备显示所述第二界面;所述第一时长小于所述第二时长。
在第二方面的一种可能的设计方式中,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如下步骤:在所述电子设备首次显示所述第一控件时,所述电子设备同时显示第一提示信息,所述第一提示信息用于提示添加视频效果的功能适用的视频时长。
在第二方面的一种可能的设计方式中,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如下步骤:所述电子设备响应于用户对所述第一界面中所述第一选项的点击操作,若所述第一视频的视频时长未超过所述第一时长,或者,所述第一视频的视频时长超过所述第二时长,所述电子设备显示第七界面;所述第七界面是所述第一视频的编辑界面,所述第七界面中不包括所述第一控件。
在第二方面的一种可能的设计方式中,所述第一视频的视频时长超过第二时长;当所述计算机指令被所述处理器执行时,使得所述电子设备执行如下步骤:所述电子设备响应于用户对所述第二界面中所述第一控件的所述第一操作,显示第八界面;所述第八界面是所述电子设备裁剪所述第一视频的界面;所述电子设备响应于用户对所述第八界面的第二操作,生成第一成片;所述第一成片是所述电子设备为目标片段添加所述第一视频效果得到的视频,所述目标片段属于所述第一视频,所述目标片段的片段时长未超过所述第二时长。
在第二方面的一种可能的设计方式中,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如下步骤:所述电子设备显示所述第一成片的预览界面。
在第二方面的一种可能的设计方式中,所述预览界面中包括第二控件,所述第二控件用于触发所述电子设备编辑成片。当所述计算机指令被所述处理器执行时,使得所述电子设备执行如下步骤:所述电子设备在所述预览界面中播放所述第一成片;在所述电子设备未检测到过用户对所述第二控件的第三操作的情况下,所述电子设备响应于所述第一成片播放完成,在所述预览界面中显示第二提示信息;所述第二提示信息用于提示所述电子设备编辑所述第一成片。
在第二方面的一种可能的设计方式中,所述第五界面中包括第二控件,所述第二控件用于触发所述电子设备编辑成片;当所述计算机指令被所述处理器执行时,使得所述电子设备执行如下步骤:所述电子设备响应于用户对所述第二控件的第三操作,切换所述第一视频效果中的至少一种效果;所述至少一种效果包括背景音乐、滤镜、贴纸、相框、转场和片尾中的一种或多种。
在第二方面的一种可能的设计方式中,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如下步骤:所述电子设备响应于用户对所述预览界面的第四操作,保存所述第一成片;所述电子设备响应于所述第一成片保存完成,显示第九界面;所述第九界面是所述第一成片的编辑界面,所述第九界面中不包括所述第一控件;所 述电子设备响应于用户在所述第九界面中输入的返回操作,显示所述第三界面。
第三方面,本申请实施例提供一种芯片系统,该芯片系统应用于包括显示屏和存储器的电子设备;所述芯片系统包括一个或多个接口电路和一个或多个处理器;所述接口电路和所述处理器通过线路互联;所述接口电路用于从所述电子设备的存储器接收信号,并向所述处理器发送所述信号,所述信号包括所述存储器中存储的计算机指令;当所述处理器执行所述计算机指令时,所述电子设备执行如第一方面及其任一种可能的设计方式所述的方法。
第四方面,本申请提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得电子设备执行如第一方面及其任一种可能的设计方式所述的方法。
第五方面,本申请提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如第一方面及其任一种可能的设计方式所述的方法。
可以理解地,上述提供的第二方面所述的电子设备,第三方面所述的芯片系统,第四方面所述的计算机存储介质,第五方面所述的计算机程序产品所能达到的有益效果,可参考第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。
附图说明
图1为本申请实施例提供的一种手机的硬件结构示意图;
图2为本申请实施例提供的一种手机的界面示意图之一;
图3A为本申请实施例提供的一种手机的界面示意图之二;
图3B为本申请实施例提供的一种手机的界面示意图之三;
图4为本申请实施例提供的一种手机的界面示意图之四;
图5A为本申请实施例提供的一种成片效果的示意图;
图5B为本申请实施例提供的一种手机的界面示意图之五;
图6A为本申请实施例提供的一种视频时长的示意图;
图6B为本申请实施例提供的一种手机的界面示意图之六;
图6C为本申请实施例提供的一种手机的界面示意图之七;
图6D为本申请实施例提供的一种手机的界面示意图之八;
图7A为本申请实施例提供的一种手机的界面示意图之九;
图7B为本申请实施例提供的一种音乐淡化处理的示意图;
图8为本申请实施例提供的一种手机的界面示意图之十;
图9为本申请实施例提供的一种手机的界面示意图之十一;
图10为本申请实施例提供的一种手机的界面示意图之十二;
图11为本申请实施例提供的一种芯片系统的结构示意图。
具体实施方式
在本申请实施例的说明中,除非另有说明,“至少一个”是指一个或多个,“多个”是指两个或多于两个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项 或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,“第一”、“第二”等字样也并不限定一定不同。并且,在本申请实施例的说明中,除非另有说明,界面示意图中各个界面元素的位置和形态均为示意性的,实际实施时,可以根据实际需求灵活调整位置和形态。
本申请实施例提供一种视频处理方法,该方法可以应用于手机、平板等支持视频处理的电子设备。其中,电子设备可以对电子设备中的视频,提供快捷编辑入口。电子设备可接收用户对该快捷编辑入口的预设操作,如点击操作、滑动操作等。响应于预设操作,电子设备可以为视频添加背景音乐、滤镜、特效(如闪烁的星星)、转场、相框、贴纸等一组视频效果,生成成片。其中,针对同一视频,电子设备响应于用户的多次预设操作,可以为该视频添加不同组视频效果,从而生成具有不同效果的成片。
综上所述,采用本申请实施例的方法,电子设备响应于用户的预设操作,可以快捷的为视频添加一组效果,提高视频处理的智能性和效率。并且,针对同一视频,响应于用户多次预设操作,可以形成具有不同效果的成片,提升成片的多样性。
示例性的,本申请实施例中的电子设备可以是手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等支持视频处理的设备,本申请实施例对该电子设备的具体形态不作特殊限制。
参见图1,为本申请实施例提供的一种电子设备的硬件结构图。如图1所示,以电子设备是手机为例,手机可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
可以理解的是,本实施例示意的结构并不构成对电子设备的具体限定。在另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备的结构限定。在另一些实施例中,电子设备也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器, 也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头191,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
电子设备通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
电子设备可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。在一些实施例中,电子设备可以包括1个或N个摄像头193,N为大于1的正整数。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备的各种功能应用以及数据处理。例如,处理器110可以通过执行存储在内部存储器121中的指令,响应于用户展开显示屏194的操作,在显示屏184显示不同的内容。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部 存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备的接触和分离。电子设备可以支持1个或N个SIM卡接口,N为大于1的正整数。
下面将结合附图,并以电子设备是手机为例,来详细说明本申请实施例的方法。其中,本申请实施例的方法可以应用于视频处理的场景。待处理的视频(也可以称为第一视频)可以是手机拍摄得到的视频,也可以是从网上下载的、或者云端存储的视频。下文实施例中,主要针对待处理的视频是手机拍摄得到的视频为例来说明本申请方案。
参见图2中的(a),在一种场景中,手机可以以单镜录像模式拍摄得到待处理的视频。单镜录像模式即为常规意义上的普通录像模式,在单镜录像模式下,手机仅采用一个摄像头来拍摄视频。例如,图2中的(a)示出的界面201是以单镜录像模式、录像前的取景界面。该界面201中仅包括单个摄像头(如前置摄像头)采集的图像202。在此情况下开始拍摄,手机则是以单镜录像模式来拍摄的。
参见图2中的(b),在另一种场景中,手机可以以多镜录像模式拍摄得到待处理的视频。在多镜录像模式下,手机可以采用两个及以上的摄像头同时来拍摄视频。例如,图2中的(b)示出的界面203是以多镜录像模式、录像前的取景界面。该界面203中包括两个摄像头(如后置主摄像头和前置摄像头)采集的图像204和图像205。在此情况下开始拍摄,手机则是以多镜录像模式来拍摄的。在下文实施例中,将主要以在多镜录像模式下,来说明本申请方案。
需要注意的是,在多镜录像模式中,也可以通过切换操作,例如,点击界面203中的切换按钮206,来触发手机切换到采用单个摄像头拍摄视频。为了与单镜录像模式区别开,可以将多镜录像模式下,采用单个摄像头拍摄视频的模式记为多镜子模式。
参见图3A中的(a)和图3A中的(b),在多镜录像模式下,在视频拍摄前的取景界面,如界面301中,手机可接收用户的操作1,该操作1用于触发手机开始视频拍摄。示例性的,拍摄前的取景界面中包括控件1,如图3A中的(a)示出的界面301中的按钮302。控件1用于触发手机开始视频拍摄,操作1可以是用户对控件1的点击操作。响应于操作1,手机可以开始视频拍摄,并显示视频拍摄中的取景界面,如图3A中的(b)示出的界面303。在开始视频拍摄后,手机可接收用户的操作2,操作2用于触发手机结束视频拍摄。示例性的,拍摄中的取景界面中包括控件2,如界面303中的按钮304。控件2用于触发手机结束视频拍摄,操作2可以是用户对控件2的点击操作。响应于操作2,手机可以结束视频拍摄,并存储拍摄的视频(可记为视 频1,属于第一视频)。
应注意,操作1和操作2的形式并不局限于上述举例中的形式。例如,操作1还可以是用户从视频拍摄前的取景界面的右侧边缘向左的滑动操作。又例如,操作2还可以是用户对视频拍摄中的取景界面的双击操作等。本申请实施例对此不做具体的限定。
继续参见图3B中的(a)和图3B中的(c),在一些实施例中,在视频存储完成后,手机可以恢复显示拍摄前的取景界面(也可以称为第一界面)。视频拍摄前的取景界面中包括图库资源控件,图库资源控件中可显示视频1中一帧图像的缩略图(可简称视频1的缩略图)。示例性的,在视频存储完成后,手机可以显示图3B中的(a)示出的界面311,该界面311是视频拍摄前的取景界面。该界面311的左下方位置的按钮312即为图库资源控件,按钮312中显示有视频1的缩略图313。为了方便说明,可以将缩略图称为选项,如将视频1的缩略图称为第一选项。并且,图库资源控件可用于触发手机显示缩略图对应的视频。手机可接收用户对图库资源控件的点击操作、长按操作、滑动操作等,下文将主要以点击操作为例来说明。响应于用户对图库资源控件的点击操作,手机可显示界面1(也可以称为第二界面),界面1是视频1的编辑界面。例如,响应于用户对图3B中的(a)所示的按钮312,即图库资源控件的点击操作,手机可显示图3B中的(c)示出的界面316,即界面1。在界面316中,可编辑按钮312中缩略图313对应的视频。
参见图3B中的(b)和图3B中的(c),在另一些实施例中,在视频存储完成后,手机可将视频1同步到图库应用中,而后在图库应用的应用界面(也可以称为第一界面)中也会显示视频1的缩略图。示例性的,在将视频1同步到图库应用中后,手机可显示图3B中的(b)示出的界面314,界面314是图库应用的应用界面。界面314中包括视频1的缩略图315。同样的,可以将视频1的缩略图称为第一选项。在显示图库应用的应用界面的过程中,手机可接收用户对应用界面中缩略图的点击操作。响应于用户对应用界面中视频1的缩略图的点击操作,手机也可显示界面1(也可以称为第二界面),界面1是视频1的编辑界面。示例性的,以图3B中的(b)示出的界面314中的缩略图315是视频1的缩略图为例,手机响应于用户对缩略图315的点击操作,可显示图3B中的(c)示出的界面316,即界面1。在界面316中,可编辑视频1。
在一些实施例中,界面1中可以包括分享控件,收藏控件,编辑控件,删除控件等。示例性的,以界面1是图3B中的(c)示出的界面316为例,分享控件可以“分享”按钮、收藏控件可以是“收藏”按钮等等。从而可以完成基础的视频编辑。
本申请实施例中,界面1中包括控件3(即快捷编辑入口,也可以称为第一控件),如图3B中的(c)示出的界面316中的“一键大片”按钮。控件3用于触发手机使用效果模板(如模板1)对待处理的视频(如视频1)进行处理。为了方便说明,可以将该处理功能称为“一键大片”。并且,下文中将主要以“一键大片”使用的效果模板是模板1为例来说明本申请方案。其中,每个效果模板具有背景音乐、滤镜、特效(如闪烁的星星)、转场、相框、贴纸等效果的组合,可以简称为视频效果。也就是说,每个效果模板对应一组视频效果。相应的,手机使用效果模板,则可以为视频添加对 应的视频效果。为了方便说明,可以将模板1对应的一组视频效果称为第一视频效果。手机可接收用户对控件3的操作3(也可以称为第一操作)。操作3用于触发手机使用模板1对待处理的视频(如视频1)进行处理。其中,操作3可以是用户对控件3的点击操作、长按操作、滑动操作等。或者,操作3可以是用户对控件3的上滑操作等等。本申请对操作3的形式不作具体限定。下文实施例中,主要以操作3是用户对控件3的点击操作为例,来说明本申请方案。响应于操作3,手机可使用模板1对待处理的视频(如视频1)进行处理,形成成片(也可以称为第一成片)。示例性的,手机可以为视频1添加模板1对应的一组视频效果,如背景音乐、滤镜、特效、转场、相框、贴纸等效果,使形成的成片的效果与模板1对应的视频效果完全一致。例如,成片的效果可以如图3B中的(d)所示,成片具有深灰色的滤镜和“欢乐时光”贴纸等效果。
在一些场景中,手机中的视频可能是未使用效果模板处理过的,如视频1,也可能是使用效果模板处理过的。为便于说明,可以将使用效果模板处理过的视频记为视频2(属于第一视频)。其中,使用效果模板处理过,包括以下两种情况:第一种,通过“一键成片”处理过。关于“一键成片”,可参见前文中的说明,此处不再赘述。第二种,在开始视频拍摄前选择效果模板(如模板2),并在结束视频拍摄后自动按照模板2来处理拍摄的视频,生成成片后保存在手机中。为便于理解,下面以一个具体的示例来说明第二种情况:
参见图4,示例性的,在开始视频拍摄前,手机可显示图4中的(a)示出的界面401,界面401中包括“微电影”按钮402,“微电影”按钮402用于触发手机选择效果模板。手机可接收用户对“微电影”按钮402的点击操作。响应于用户对“微电影”按钮402的点击操作,手机可显示多个效果模板的模板选项,如图4中的(b)所示的“你好夏天”、“美好”、“好心情”、“小美好”共4个模板的模板选项。而后,手机可接收用户对模板选项1(如“你好夏天”的选项)的选择操作,其中,模板选项1是多个模板选项中的任一个。响应于用户对模板选项1的选择操作,手机可选中对应的效果模板,如“你好夏天”。再后,手机可接收开始拍摄的操作,如用户对图4中的(b)中按钮403的点击操作。响应于开始拍摄的操作,手机可开始视频拍摄。在视频拍摄结束后,手机可自动使用拍摄前选中的效果模板来处理拍摄的视频,形成成片(如视频2)并保存在手机中。例如,视频2可以如图4中的(c)所示,具有浅灰色滤镜和“夏日情愫,最美的夏天我们在一起”贴纸等效果。
对于上述两种情况下得到的视频2,其已经具有背景音乐、滤镜、贴纸等效果,在此基础上,若进一步对其使用“一键成片”,则可能会有两组效果叠加,从而导致成片效果不佳。示例性的,在图5A中的(a)所示的效果和图5A中的(b)所示的效果叠加,可以得到图5A中的(c)所示的效果。一方面,浅灰色的滤镜和深灰色的滤镜叠加,导致成片中的滤镜颜色过深,影响原始视频内容的画面。另一方面,两种贴纸“欢乐时光”和“夏日情愫,最美的夏天我们在一起”叠加,导致视频主题不一致。
基于此,在一些实施例中,手机可以为手机中的视频添加处理标识,为未使用效果模板处理过的视频(如视频1)添加第一标识,和/或,为使用效果模板处理过后得到的视频(如视频2)添加第二标识。示例性的,在为视频添加处理标识后,手机可 显示图5B中的(a)示出的图库应用的应用界面501,该应用界面501中显示有缩略图502、缩略图503和缩略图504。其中,缩略图503和缩略图504的右上角标记有五角星,用于指示缩略图503和缩略图504对应的视频是使用效果模板处理过的视频。即,五角星是第二标识。缩略图502的右上角未标记五角星,则表明缩略图502对应的视频是未使用效果模板处理过的视频。
在本实施例中,手机响应于用户对视频拍摄前的取景界面中或者图库应用的应用界面中任一缩略图(可记为目标缩略图,也可以称为第一选项)的点击操作,若该缩略图对应的视频(记为目标视频,也属于第一视频)的处理标识为第一标识,或者该目标视频的处理标识不是第二标识,手机可以显示界面1。关于界面1,可参见前文实施例中的说明,此处不再赘述。示例性的,目标缩略图是图5B中的(a)所示的缩略图503,缩略图503的右上角未标记五角星(即第二标识),表明目标视频是未使用效果模板处理过的视频。手机响应于用户对缩略图503的点击操作,可显示图5B中的(b)示出的界面505。界面505中包括有控件3,如“一键成片”按钮。即界面505是界面1。
手机响应于用户对视频拍摄前的取景界面中或者图库应用的应用界面中目标缩略图的点击操作,若目标视频的处理标识为第二标识,或者该视频的处理标识不是第一标识,手机可以显示界面2。为了方便说明,可以将本实施例中的界面2称为第五界面。界面2也是视频的编辑界面,但是界面2中不包括控件3。示例性的,视频3是图5B中的(a)所示的缩略图504对应的视频,缩略图504的右上角标记有五角星(即第二标识),表明缩略图504对应的视频是使用效果模板处理过的视频。手机响应于用户对缩略图504的点击操作,可显示图5B中的(c)示出的界面506。界面506中包括目标视频,但不包括控件3,如“一键成片”按钮。即界面506是界面2。
也就是说,手机响应于用户对视频拍摄前的取景界面中或者图库应用的应用界面中目标缩略图的点击操作,若目标视频不是手机根据效果模板添加视频效果后得到的视频(如视频1),则手机可以显示界面1,界面1中提供控件3。若目标视频是手机根据效果模板添加视频效果后得到的视频(如视频2),则手机可显示界面2,界面2中不提供控件3。
采用本实施例,仅为未使用效果模板处理过的视频提供控件3,用于实现“一键成片”。从而可以有针对性的实现“一键成片”,提升视频处理的效果。
在另一些实施例中,手机可以为所有的视频均提供控件3,同时记录每个被手机根据效果模板添加视频效果后得到的视频(如视频2)和对应的原始视频(如视频1)的对应关系。而后,手机在对被手机根据效果模板添加视频效果后得到的视频(如视频2)“一键成片”时,可以查找对应的原始视频,并通过在原始视频的基础上添加视频效果来得到新的视频。
采用本实施例,手机针对被手机根据效果模板添加视频效果后得到的视频“一键成片”时,可以通过查找原始视频而后处理的方式,避免视频效果的叠加。从而提升视频处理的效果。
另外,手机中视频的视频时长各有不同,例如,图5B中的(a)中,缩略图502对应的视频的视频时长是00:10,即10秒(s);缩略图503对应的视频的视频时长是 00:15,即15s;缩略图504对应的视频的视频时长是00:08,即8s。在一些场景中,在按照效果模板对视频“一键成片”时,若视频时长太短,则可能导致效果模板对应的效果无法很好的呈现出来。
示例性的,模板1包括转场,开头淡入和结尾淡出的效果,分别所需的时长是1.5s、2s和1.5s。如图6A中的(a)所示,视频时长是8s,若使用模板1来对图6A中的(a)所示的视频“一键成片”,则开头1.5s的视频帧需要用于淡入效果,结尾1.5s的视频帧需要用于淡出效果,中间2s的视频帧要用于转场效果,则整段视频仅剩3s的视频帧可以正常显示,从而导致“一键成片”的效果不佳。
基于此,在一些实施例中,手机响应于用户对视频拍摄前的取景界面中或者图库应用的应用界面中目标缩略图的点击操作,若目标视频(即目标缩略图对应的视频)的视频时长超过时长1(可以称为第一时长),手机可以显示界面1。关于界面1,可参见前文实施例中的说明,此处不再赘述。
示例性的,以时长1是10s,目标缩略图是图6B中的(a)示出的相机应用的应用界面601中的缩略图602为例,缩略图602对应的视频,即目标视频的视频时长为00:15,即15s,超过了时长1。手机响应于用户对缩略图602的点击操作,可显示图6B中的(b)示出的界面604。界面604中包括控件3,如“一键成片”按钮。即界面604是界面1,该界面也可以是在用户点击界面311中的控件312之后得到的,界面中包括提示信息608“一键大片为时长在10~29秒的视频提供智能编辑,自动生成精彩影片”,提示信息也可以是其他合适的内容,比如“录制10~35秒之间的视频,可一键成片”,本申请对此不做限定。
手机响应于用户对视频拍摄前的取景界面中或者图库应用的应用界面中目标缩略图的点击操作,若目标视频的视频时长未超过时长1,手机可以显示界面2。为了方便说明,可以将本实施例中的界面2称为第七界面。界面2也是视频的编辑界面,但是界面2中不包括控件3。示例性的,以时长1是10s,目标缩略图是图6B中的(a)示出的相机应用的应用界面601中的缩略图603为例,缩略图603对应的视频,即目标视频的视频时长为00:08,即8s,未超过时长1。手机响应于用户对缩略图603的点击操作,可显示图6B中的(c)示出的界面605。界面605中包括目标视频,但是不包括控件3,如“一键成片”按钮。即界面605是界面2。
在本实施例中,时长1可以是根据经验设置的值,如5s、8s、10s等。或者,手机中可以保存多个效果模板,每个效果模板具有各自的模板时长。通常情况下,当待处理的视频(如视频1)的视频时长至少接近于模板时长时,最终才能呈现比较好的成片效果。例如,模板1的模板时长是15s,模板1中包括3次转场效果,每次转场的时长是2s,则转场效果需要6s,平均每两个转场之间的间隔是3s。若视频时长少于15s,则每两个转场之间的间隔会更短,导致成片的效果会不好。基于此,可以设置时长1小于最短的模板时长。
示例性的,手机中保存的多个效果模板的模板时长如下表1所示:
表1
Figure PCTCN2022094792-appb-000001
Figure PCTCN2022094792-appb-000002
上表1中,最短的模板时长是15s,当视频1的模板时长短于15s时,则使用上表1中的任何效果模板对视频1进行处理,都无法得到比较好的成片效果。因此,可将时长1设置为小于15s的值,如10s。后续针对未达到10s的视频,则可以不为其提供“一键成片”功能。
在本实施例中,仅为视频时长超过时长1的视频提供控件3,用于实现“一键成片”,从而可以有针对性的实现“一键成片”,提升视频处理的效果。
在一些场景中,在按照模板效果对视频“一键成片”时,若视频时长太长,则可能导致效果模板对应的效果难以匹配该视频。例如,模板1对应的一组效果中包括背景音乐,并且背景音乐的音乐时长为30s。如图6A中的(b)所示,视频时长是35s,若使用模板1来对该视频“一键成片”,则模板1的背景音乐只能覆盖前30s的视频帧,剩余5s则没有背景音与覆盖,从而也会影响成片效果。或者,在以多镜录像模式拍摄视频的场景中,有多个摄像头来录像,若视频时长太长,会导致视频文件较大,不利于后期“一键成片”处理,并且最终形成的成片也会很大,不便于存储和上传分享等。
基于此,在一些实施例中,手机响应于用户对视频拍摄前的取景界面中或者图库应用的应用界面中目标缩略图的点击操作,若目标视频(即目标缩略如图对应的视频)的视频时长未超过时长2(也可以称为第二时长),手机可以显示界面1。示例性的,以时长2是29s,目标缩略图是图6B中的(a)示出的相机应用的应用界面601中的缩略图602为例,由于缩略图602对应的视频,即目标视频的视频时长为00:15,即15s,未超过时长2。手机响应于用户对缩略图602的点击操作,可显示图6B中的(b)示出的界面604,界面604中包括目标视频,还包括控件3,如“一键成片”按钮。即界面604是界面1。
手机响应于用户对视频拍摄前的取景界面中或者图库应用的应用界面中目标缩略图的点击操作,若目标视频的视频时长超过时长2,手机可以显示界面2。为了方便说明,可以将本实施例中的界面2称为第七界面。界面2也是视频的编辑界面,但是界面2中不包括控件3。示例性的,以时长2是29s,目标缩略图是图6B中的(a)示出的相机应用的应用界面601中的缩略图606为例,由于缩略图606对应的视频,即目标视频的视频时长为00:35,即35s,超过了时长2,手机响应于用户对缩略图606的点击操作,可显示图6B中的(d)示出的界面607,界面607中包括目标视频,但不包括控件3,如“一键成片”按钮。即界面607是界面2。
在本实施例中,时长2可以是根据经验设置的值。示例性的,在以多镜录像模式拍摄视频的场景中,视频时长超过30s,会导致视频文件过大,不利于后期处理、存 储等,因此可设置视频时长为30s。或者,手机中可以保存多个效果模板,每个效果模板的一组效果中包括背景音乐。通常情况下,背景音乐需要能覆盖待处理的视频(如视频1),才能呈现比较好的成片效果。例如,如图6A中的(b)所示,视频时长长于音乐时长,则成片中有一部分会没有背景音乐,导致成片的效果会不好。基于此,可以设置时长2长于或者等于最长的音乐时长。当待处理的视频的视频时长超过时长2,即最长的音乐时长时,使用任何效果模板对该待处理的视频进行处理,背景音乐都无法覆盖整个视频。后续可以不为其提供“一键成片”功能。例如,最长的背景音乐的音乐时长为30s,则可设置时长2为大于或等于30s的时长,如30s。进一步的,效果模板的一组效果中可能还包括片尾,片尾为固定的内容,如手机商家的商标(logo),通常与拍摄的视频内容无关。通常情况下,背景音乐需要能覆盖待处理的视频和片尾,才能呈现比较好的成片效果。例如,视频时长太长,则可能导致背景音乐无法覆盖片尾。基于此,可以设置时长2长于或等于最长的音乐时长与片尾时长的差值。例如,最长的背景音乐的音乐时长为30s,片尾时长为1s,则可设置时长2为29s。
在本实施例中,仅为视频时长未超过时长2的视频提供控件3,用于实现“一键成片”,从而可以有针对性性的实现“一键成片”,提升视频处理的效果。
应理解,在实际实施时,上述仅为视频时长超过时长1的视频提供控件3的实施方式,和仅为视频时长未超过时长2的视频提供控件3的实施方式,可以结合使用。也就是说,在另一些实施例中,手机可以仅为视频时长超过时长1,且未超过时长2的视频提供控件3。其中,时长1小于时长2。
在上述针对视频时长过长,或者视频时时长过短导致的问题而提出的实施例中,在手机首次提供控件3时,手机还可以在同时显示提示信息1(也可以称为第一提示信息),提示信息1用于提示“一键大片”适用的视频时长。例如,首次显示的界面1是图6B中的(b)示出的界面604,界面604中包括控件3,如“一键成片”按钮。界面604中还包括提示608,提示608的具体内容为“一键大片为时长在10-29秒的视频提供智能编辑,自动生成精彩成片”,从而可以提示“一键大片”适用的视频时长。即,提示608是提示信息1。
另外,针对上述视频时长过长导致的问题,在另一些实施例中,针对任意时长的视频,手机均可提供控件3。示例性的,以时长2是29s,目标缩略图是图6B中的(a)示出的界面601中的缩略图606为例,缩略图606对应的视频,即目标视频的视频时长是00:35,即35s,超过时长2。响应于用户对缩略图606的点击操作,手机可显示图6C中的(a)示出的界面611。界面611中也包括控件3,即“一键成片”按钮。也就是说,目标视频的视频时长超过时长2,手机也可以为其提供控件3,以触发使用“一键大片”。
在本实施例中,手机可以为任意时长的视频均提供控件3,则在首次提供控件3,可以显示提示信息2。提示信息2仅用于提示“一键成片”的功能,而无需提示“一键大片”适用的视频时长。例如,首次显示的界面1是图6C中的(a)示出的界面611,该界面611中包括控件3,如“一键成片”按钮。界面611中还包括提示615,提示615的具体内容为“一键大片为视频提供智能编辑,自动生成精彩成片”,从而可以提示“一键大片”的功能。即,提示615是提示信息2。
后续,手机可接收用户的操作3,如对“一键成片”按钮的点击操作。响应于操作3,若目标视频的视频时长未超过时长2,手机可使用模板1对目标视频进行处理,形成成片。响应于操作3,若目标视频的视频时长超过时长2,手机可显示界面3(也可以称为第八界面)。在界面3中,手机可响应于用户的截取操作(也可以称为第二操作)从目标视频中截取出不超过时长2的视频片段(可记为目标片段),使模板1的效果可以匹配该目标片段。也就是说,界面3是手机用来裁剪目标的界面。手机响应于截取出目标片段,手机可使用模板1对目标片段添加视频效果,形成成片。
示例性的,以时长2是29s,目标缩略图是前述图6B中的(a)所示的缩略图606,响应于对缩略图606的点击操作而显示的界面3是图6C中的(a)示出的界面611为例,由于缩略图606对应的视频,即目标视频的视频时长为00:35,即35s,超过了时长2。手机响应于用户对界面611中“一键成片”按钮的点击操作,可显示图6C中的(b)示出的界面612。在界面3中,手机可以截选出不超过29s的视频片段,即目标片段。
界面3中包括控件4,控件4用于触发手机选中不超过时长2的视频片段。例如,控件4是图6C中的(b)中所示的选择框613,该选择框613可最长选中时长2的视频片段。通常情况下,控件4默认选中的是视频3开头时长2的视频片段。在界面3中,手机可接收用户对控件4选中的视频片段的滑动操作,响应于用户对控件4选中的视频片段的滑动操作,手机可选中新的视频片段。
另外,在界面3中,手机可接收用户对控件4的左右边缘的推拉操作,响应于用户对控件4的左右边缘的推拉操作,手机可改变选中的视频片段的片段时长,从而选中新的视频片段。并且,响应于用户对控件4的左右边缘的推拉操作,若拖拽后的片段长度超过时长2,手机可在界面3中显示提示信息3,提示信息3用于提示已达到最大时长。例如,以时长2是29s为例,如图6D中的(a)所示,此时已经选中了29s的视频片段,在此基础上,如图6D中的(b)所示,响应于用户对选择框的右边缘向箭头所示的方向推送,手机可显示图6D中的(c)所示的提示624。提示624的具体内容为“已达到最大可调节时长”,从而可提示已达到最大时长。即提示624是提示信息3。
进一步的,界面3中还可以包括播放进度条,播放进度条对应的整个时长表示选中的视频片段的时长。例如,播放进度条是图6C中的(b)示出的进度条614,其中进度条614右侧的00:29标识视频片段的片段时长是29s,左侧的00:14表示当前播放到第14s。播放进度条可用于触发手机更新当前选中的视频片段的播放进度。并且,播放进度条与控件4独立设置,从而方便准确调整播放进度。
在选中到用户满意的视频片段后,手机可接收用户对界面3的操作4(即第二操作),操作4用于触发手机裁剪目标视频。其中,操作4可以是用户对界面3的预设手势,如从界面3的底部边缘向内的上滑手势。或者,界面3中包括截取控件,如图6C中的(b)示出的界面612右上角的“√”按钮,截取控件用于触发手机截取视频片段。操作4可以是用户对截取控件的点击操作、长按操作等。本申请实施例中,对操作4的形式不作具体限定。响应于操作4,手机可截取目标片段,该目标片段即为手机最新选中的、不超过时长2的视频片段,并对截取的目标片段添加视频效果,生成成片。
另外,界面3中可以包括取消控件,如图6C中的(b)示出的界面612左上角的“×”按钮,取消控件用于触发手机截取默认的视频片段。如,目标视频中前面时长2的视频片段。响应于用户对取消控件的点击操作、长按操作等,手机可截取默认的视频片段添加视频效果,生成成片。
在本实施例中,可以针对任意时长的视频实现“一键大片”处理。其中,针对视频时长超过时长2的目标视频,先从目标视频中截取时长2的目标片段,再使用“一键成片”对目标片段进行处理。如此,可以避免视频时长过长而导致与模板1中的效果不匹配的问题,从而提升成片效果。
应注意,在本实施例中,针对视频时长超过时长2的情况,手机响应于手机截取目标片段后,才可以使用效果模板来处理目标片段。而不是响应于操作3,则使用效果模板来处理整段视频。
在一些场景中,手机中保存有多个效果模板,不同效果模板具有不同的效果。以效果包括背景音乐为例,模板1的背景音乐为动感音乐,模板2的背景音乐为欢快音乐。在一些实施例中,在手机中保存有多个效果音乐的场景中,响应于操作3,如对“一键成片”按钮的点击操作,手机可从多个效果模板中选择目标模板对待处理的视频(如视频1)进行处理。其中,手机可以随机或者按照一定的规律,例如,按照模板编号的顺序,从多个效果模板中选择目标模板。
并且,针对同一待处理的视频(如视频1),若手机多次提供控件3并多次接收到用户的操作3,手机可以使用不同的效果模板对该视频进行处理,从而得到具有不同效果的成片。以视频1为例,也就是说,针对视频1,手机在第一次显示界面1后,可接收用户第一次的操作3。响应于用户第一次的操作3,手机可使用模板1对视频1进行处理,形成成片1。成片1的效果与模板1的效果完全一致。后续,针对视频1,手机再次显示界面1后,手机可接收用户第二次的操作3。响应于用户第二次的操作3,手机可以使用模板2对视频1进行处理,形成成片2。成片2的效果与模板2的效果完全一样。
示例性的,以界面1是图7A中的(a)示出的界面701为例,界面701中包括视频1和控件3,如“一键成片”按钮702。在第一次显示界面701后,响应于用户对“一键成片”按钮702的点击操作,手机使用模板1对视频1处理后,可得到成片1。例如,成片1的效果如图7A中的(b)所示,成片1具有深灰色的滤镜,“欢乐时光”贴纸等效果。在第二次显示界面701后,响应于用户对“一键成片”按钮702的点击操作,手机使用模板2对视频1处理后,可得到成片2。例如,成片2的效果如图7A中的(c)所示,成片2具有浅灰色的滤镜,“夏日情愫,最美的夏天我们在一起”贴纸等效果。
采用本实施例,针对同一视频,多次响应于操作3,手机可形成具有不同效果的成片。从而可以提升成片的多样性。
手机在选择出目标模板(如模板1)后,使用目标模板(如模板1)对待处理的视频进行处理的过程中,可以为待处理的视频添加背景音乐、滤镜、贴合、特效、相框等效果。在一些实施例中,每个效果模板匹配的背景音乐有两个版本(可记为版本1和版本2),版本1的时长与效果模板的模板时长相等,版本2的时长为固定时长, 如30s。其中,固定时长长于最大的模板时长。示例性的,手机中存储的效果模板和背景音乐的对应关系如下表2所示:
表2
Figure PCTCN2022094792-appb-000003
以上表2中“你好夏天”模板为例,其匹配的背景音乐是舒缓音乐,由于“你好夏天”模板的模板时长是15s,因此舒缓音乐的版本1是15s版本。又以上表2中“冬天快乐”模板为例,其匹配的背景音乐是冬天音乐,由于“冬天快乐”模板的模板时长是20s,因此冬天音乐的版本1是15s版本。另外,所有音乐的版本2均为固定时长为30s的版本。
在本实施例中,手机在为待处理的视频(如视频1)添加背景音乐时,可根据待处理的视频的视频时长来匹配添加的背景音乐的版本。若待处理的视频的视频时长短于或等于目标模板的模板时长,手机可添加目标模板匹配的背景音乐的版本1为待处理的视频的背景音乐。例如,以目标模板是上表2中“你好夏天”模板为例,假设视频1的视频时长是14s,短于“你好夏天”模板的模板时长15s,则可以添加15s版本的舒缓音乐为视频1的背景音乐。若待处理的视频的视频时长长于目标模板的模板时长,但短于或等于固定时长,手机可添加目标模板匹配的背景音乐的版本2为待处理的视频的背景音乐。例如,以目标模板是上表2中“你好夏天”模板为例,假设视频1的视频时长是28s,长于“你好夏天”模板的模板时长15s,但短于固定时长30s,则可以添加30s版本的舒缓音乐为视频1的背景音乐。从而可以使添加的背景音乐足以覆盖整段视频,提升成片的效果。
应注意,前文针对视频时长过长而导致的问题提出的实施例中,对于视频时长超过时长2的视频,手机可以不为其提供控件3;或者,手机可以为其提供控件3,但需要先裁剪,裁剪后才可以选择效果模板来处理。因此,可以设置固定时长等于时长2,从而可以使得版本2的背景音乐可以覆盖所有待处理的视频,例如,裁剪后得到的不超过时长2的目标片段。
进一步的,在一种场景中,目标模板的一组效果中不包括片尾,相应的,最终形成的成片中不包括片尾,则成片时长即为视频时长。参见图7B中的(a),在该场景中,若添加的背景音乐的音乐时长长于视频时长,手机可以将背景音乐的开头和待处 理的视频的开头对齐,而后将背景音乐的结尾中超出拍摄时长的部分删除,即将7B中的(a)中多余时长1对应的背景音乐删除,得到有效音乐。在有效音乐的末尾添加音乐淡化效果,使成片中背景音乐的结尾更平滑。在另一种场景中,目标模板的一组效果中包括片尾,相应的,最终形成的成片中包括片尾,则成片时长等于视频时长和片尾时长之和。参见图7B中的(a),在该场景中,若添加的背景音乐的音乐时长长于视频时长和片尾时长之和,手机可以将背景音乐的开头和待处理的视频的开头对齐,而后将背景音乐的结尾中超出片尾时长的部分删除,即将图7B中的(b)中多余时长2对应的背景音乐删除,得到有效音乐。在有效音乐的末尾添加音乐淡化效果,使成片中背景音乐的结尾更平滑。
在形成成片后,手机可以显示界面5,界面5是成片的预览界面。在界面5中,可播放成片。从而可以将成片效果呈现给用户。示例性的,界面5是图8中的(a)示出的界面801。界面801中正在播放成片,该成片具有浅灰色的滤镜、“夏日情愫,最美的夏天,我们在一起”的贴纸等效果。
在一些实施例中,在显示界面5后,若满足预设条件,手机可以在界面5中显示提示信息4(也可以称为第二提示信息),如图8中的(b)示出的界面802中的提示806“点击尝试不同影片风格”。提示信息4用于提示调整成片的效果,即:调整添加的视频效果。其中,满足预设条件包括:界面5的显示时长达到时长3,如10s,且未检测到用户的预设操作。或者,界面5中可以播放成片,在显示界面后,则开始播放成片。相应的,满足预设条件包括:界面5中的成片播放结束,且未检测到用户的预设操作。上述预设操作用于触发手机调整成片的效果。
示例性的,界面5中包括效果切换控件(也可以称为第二控件),效果切换控件用于触发手机调整成片的效果。例如,效果切换控件可以包括风格切换控件,如图8中的(b)中示出的界面802中的“风格”按钮803,风格切换控件用于触发手机切换成片的风格,风格是指除背景音乐外的整体效果,如滤镜、贴纸、相框等多种效果的整体效果。又例如,效果切换控件可以包括音乐切换控件,如图8中的(b)示出的界面802中的音乐按钮804,音乐切换控件用于触发手机切换成片的背景音乐。再例如,效果切换控件可以包括编辑控件,如图8中的(b)示出的界面802中的编辑按钮805,编辑控件用于触发手机切换成片的背景音乐、滤镜、贴纸、相框、转场、音量、片尾等各种效果。预设操作可以是用户对效果切换控件的点击操作或者长按操作(也可以称为第三操作)。
进一步的,未检测到用户的预设操作是指:从首次使用手机开始,在使用“一键成片”并进入到界面5中后,从未检测到用户输入预设操作。例如,用户在历史使用手机的过程中,在使用“一键成片”并形成成片后,在界面5中点击过风格切换控件,在此次显示界面5时,在成片播放完毕后也不显示提示信息4。如此,可以避免给效果切换的功能已熟知的用户反复提示。
在一些实施例中,在显示界面5后,手机可接收用户的预设操作,预设操作用于调整成片的效果。关于预设操作,可参见前文实施例中的说明,此处不再赘述。以背景音乐的切换为例,预设操作可以是用户对图9中的(a)示出的界面901中的音乐按钮902的点击操作。响应于预设操作,手机可在界面5中显示多个效果选项,如多个 效果选项是图9中的(b)所示的弹窗903中的“舒缓”、“夏天”、“动感”、“愉快”共4个音乐选项,每个音乐选项对应一个背景音乐。
应注意,在前述关于音乐选项的说明中,为了区分音乐和效果模板,音乐选项的封面和名称与对应的效果模板并无任何关联。在另一些实施例中,为了体现出音乐和效果模板的关联,在显示多个音乐选项时,可以将音乐选项的封面设置为对应的音乐匹配的效果模板的模板封面。或者,可以将音乐选项的名称设置为对应的音乐匹配的效果模板的模板名称。
在一些实施例中,可以将当前使用的效果模板的背景音乐对应的选项,显示在多个音乐选项中的第一个,从而便于快捷的恢复到原始的背景音乐。并且,可以默认选中第一个音乐选项。示例性的,以成片当前使用的背景音乐是舒缓音乐为例,则手机可以显示图9中的(b)所示的弹窗903,在弹窗903中,将舒缓音乐的选项加粗显示,表明默认选中该选项。
在显示多个音乐选项后,手机可接收用户对任一音乐选项(可记为音乐选项1)的选择操作。响应于对音乐选项1的选择操作,手机可以将成片中的背景音乐替换成选项1对应的背景音乐,并从头开始播放成片。示例性的,以音乐选项1是图9中的(c)示出的选项904为例,手机响应于用户对选项904的选择操作,可将成片中的背景音乐替换为选项904对应的音乐,而后从头开始播放成片。如此,可以方便预览将选择的音乐应用到成片中的效果。后续,手机可接收用户的操作5,操作5用于触发手机切换背景音乐。其中,操作5可以是从显示多个音乐选项的弹窗(可记为音乐弹窗)从上至下的下滑操作。或者,音乐弹窗中包括确认控件,操作5可以是用户对确认控件的点击操作或者长按操作。例如,音乐弹窗是图9中的(d)所示的弹窗905,弹窗905中包括“√”按钮。该“√”按钮是确认控件。操作5可以是用户对“√”按钮的点击操作。本申请实施例对操作5的形式不作具体限定。响应于操作5,手机可关闭多个音乐选项,恢复显示不包括音乐选项的界面5。例如,可显示图9中的(a)示出的界面901。
在上述实施例中,手机响应于预设操作,可调整添加的一组视频效果(如模板1的视频效果)中的至少一种效果,从而可以打破“一键成片”选择的效果模板(如模板1)中背景音乐、滤镜、相框、贴纸等效果的固定组合。例如,在切换背景音乐后,则可以将模板1的滤镜、相框、贴纸等效果,与切换后的背景音乐组合。从而可以提升成片效果的多样性。
并且,在显示界面5后,手机可接收用户的操作6(也可以称为第四操作),操作6用于触发手机保存成片。其中,操作6可以是用户从界面5的右侧边缘向内的左滑操作。或者,界面5中包括控件5,如图10中的(a)示出的界面1001中的“√”按钮1002,控件5用于触发手机保存成片。操作6可以是用户对控件5的点击操作或者长按操作等。本申请实施例中对操作6的形式不作具体限定。响应于操作6,手机可保存成片,并在界面5中显示保存提示。例如,保存提示是图10中的(b)所示的提示1003,该提示1003提示保存进度为45%,保存完成则进度为100%。
而后,手机响应于保存完成,可显示界面6(也可以称为第九界面)。界面6是成片的编辑界面。与界面1的区别在于:界面6中包括界面1中待处理的视频的成片, 并且界面6中不包括控件3,如“一键成片”按钮。例如,界面6可以是图10中的(c)示出的界面1004。与图3B中的(c)示出的界面316(即界面1)相比:界面1004中的视频具有滤镜、贴纸等效果,是界面316中视频的成片;界面1004中不包括控件3,如“一键成片”按钮。
应注意,在一些实施例中,响应于操作6,手机可以不显示保存提示,而直接跳转到界面6。本申请实施例对此不作具体限定。
前文关于成片后的说明中,主要是先预览后保存,而在另一些实施例中,手机在成片后,也可以直接保存,而不显示预览。
在一些实施例中,手机可接收用户对界面6的操作7(可以称为返回操作),操作7用于触发手机返回图库应用的应用界面。其中,操作7可以是用户从界面6的左侧边缘向内的右滑操作。或者,界面6中包括返回控件,如图10中的(c)所示的按钮1005。操作7可以是用户对返回控件的点击操作。本申请实施例中,对操作7的形式不作具体限定。响应于操作7,手机可显示界面7(也可以称为第三界面),界面7是图库应用的应用界面。此时,图库应用的应用界面中新增了此次生成的成片中一帧图像的缩略图(可以称为第二选项)。例如,响应于操作7,手机可显示图10中的(d)示出的界面1006,界面1006中包括缩略图1007。该缩略图1007是最新保存的成片的缩略图。
基于前文说明可知:针对同一待处理的视频(如视频1),若手机多次提供控件3而后多次接收到用户的操作3,手机可以使用不同的效果模板对该视频进行处理,从而得到具有不同效果的成片。因此,在一些实施例中,在显示界面7后,手机可以再次接收用户对视频1的缩略图(即第一选项),如图10中的(d)示出的界面1006中的缩略图1008的点击操作,响应于用户对视频1的缩略图(即第一选项)的点击操作,手机可以显示界面8(也可以称为第四界面)。界面8是视频1的编辑界面,并且界面8中提供有控件3。而后,手机可接收用户对界面8的操作3,如对控件3的点击操作。响应于操作3,手机可根据不同的效果模板(如模板2)对视频1添加视频效果,生成新的成片(可以称为第二成片)。为了方便说明,可以将模板2的视频效果称为第二视频效果。其中,第二视频效果和第一视频效果不同。需要说明的是,第二视频效果和第一视频效果不同,是指:第二视频效果和第一视频效果中的至少一种效果不同,例如,背景音乐、滤镜、贴纸、相框、转场等效果中的至少一种不同。如此,针对同一视频,连续多次对其“一键成片”,可以形成具有不同效果的成片。
基于前文陈述可知:针对手机添加视频效果后得到的视频(如视频2),手机可以不为其提供控件3。同时,界面7中包括此次生成的成片的缩略图(即第二选项)。因此,在一些实施例,在显示界面7后,手机可接收用户对此次生成的成片的缩略图的点击操作,响应于用户对此次生成的成片的缩略图的点击操作,手机可以显示界面9。该界面9是此次生成的成片的编辑界面,由于此次生成的成片记为添加了视频效果的视频,则界面9中不包括控件3。从而可以避免因进一步对该生成的成片添加视频效果,而导致视频效果混乱。
本申请另一些实施例提供了一种电子设备,该电子设备可以包括:上述显示屏(如触摸屏)、存储器和一个或多个处理器。该显示屏、存储器和处理器耦合。该存储器 用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,电子设备可执行上述方法实施例中手机执行的各个功能或者步骤。该电子设备的结构可以参考图1所示的手机的结构。
本申请实施例还提供一种芯片系统,如图11所示,该芯片系统1100包括至少一个处理器1101和至少一个接口电路1102。处理器1101和接口电路1102可通过线路互联。例如,接口电路1102可用于从其它装置(例如电子设备的存储器)接收信号。又例如,接口电路1102可用于向其它装置(例如处理器1101)发送信号。示例性的,接口电路1102可读取存储器中存储的指令,并将该指令发送给处理器1101。当所述指令被处理器1101执行时,可使得电子设备执行上述实施例中的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。
本申请实施例还提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在上述电子设备上运行时,使得该电子设备执行上述方法实施例中手机执行的各个功能或者步骤。
本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中手机执行的各个功能或者步骤。
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘 等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (15)

  1. 一种视频处理方法,其特征在于,应用于电子设备,包括:
    所述电子设备显示第一界面;所述第一界面中包括第一选项,所述第一选项显示有第一视频中一帧图像的缩略图;
    所述电子设备响应于用户对所述第一界面中所述第一选项的点击操作,显示第二界面;所述第二界面是所述第一视频的编辑界面,所述第二界面中还包括第一控件;
    所述电子设备响应于用户对所述第二界面中所述第一控件的第一操作,生成第一成片;所述第一成片是所述电子设备为所述第一视频添加第一视频效果后得到的视频;
    所述电子设备显示第三界面;所述第三界面中包括第二选项和所述第一选项,所述第二选项显示有第一成片中一帧图像的缩略图;
    所述电子设备响应于用户对所述第三界面中所述第一选项的点击操作,显示第四界面;所述第四界面是所述第一视频的编辑界面,所述第四界面中还包括所述第一控件;
    所述电子设备响应于用户对所述第四界面中所述第一控件的所述第一操作,生成第二成片;所述第二成片是所述电子设备为所述第一视频添加第二视频效果后得到的视频;
    其中,所述第一视频效果和所述第二视频效果不同。
  2. 根据权利要求1所述的方法,其特征在于,所述第一界面是所述电子设备的相机应用中录制视频前或者拍照前的界面,或者,所述第一界面是所述电子设备中图库应用的应用界面;
    以及,所述第三界面是所述图库应用的应用界面。
  3. 根据权利要求1或2所述的方法,其特征在于,所述电子设备响应于用户对所述第一界面中所述第一选项的点击操作,显示第二界面,包括:
    所述电子设备响应于用户对所述第一界面中所述第一选项的点击操作,若所述第一视频是未添加视频效果的视频,所述电子设备显示所述第二界面。
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:
    所述电子设备响应于用户对所述第一界面中所述第一选项的点击操作,若所述第一视频已添加视频效果的视频,所述电子设备显示第五界面;所述第五界面是所述第一视频的编辑界面,所述第五界面中不包括所述第一控件。
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,在所述电子设备显示第三界面之后,所述方法还包括:
    所述电子设备响应于用户对所述第二选项的点击操作,显示第六界面;所述第六界面是所述第一成片的编辑界面,所述第六界面中不包括所述第一控件。
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述电子设备响应于用户对所述第一界面中所述第一选项的点击操作,显示第二界面,包括:
    所述电子设备响应于用户对所述第一界面中所述第一选项的点击操作,若所述第一视频的视频时长超过第一时长,且所述第一视频的视频时长未超过第二时长,所述电子设备显示所述第二界面;所述第一时长小于所述第二时长。
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    在所述电子设备首次显示所述第一控件时,所述电子设备同时显示第一提示信息,所述第一提示信息用于提示添加视频效果的功能适用的视频时长。
  8. 根据权利要求6或7所述的方法,其特征在于,所述方法还包括:
    所述电子设备响应于用户对所述第一界面中所述第一选项的点击操作,若所述第一视频的视频时长未超过所述第一时长,或者,所述第一视频的视频时长超过所述第二时长,所述电子设备显示第七界面;所述第七界面是所述第一视频的编辑界面,所述第七界面中不包括所述第一控件。
  9. 根据权利要求1-5中任一项所述的方法,其特征在于,所述第一视频的视频时长超过第二时长;
    其中,所述电子设备响应于用户对所述第二界面中所述第一控件的第一操作,生成第一成片,包括:
    所述电子设备响应于用户对所述第二界面中所述第一控件的所述第一操作,显示第八界面;所述第八界面是所述电子设备裁剪所述第一视频的界面;
    所述电子设备响应于用户对所述第八界面的第二操作,生成第一成片;所述第一成片是所述电子设备为目标片段添加所述第一视频效果得到的视频,所述目标片段属于所述第一视频,所述目标片段的片段时长未超过所述第二时长。
  10. 根据权利要求1-9中任一项所述的方法,其特征在于,在所述生成第一成片后,所述方法还包括:
    所述电子设备显示所述第一成片的预览界面。
  11. 根据权利要求10所述的方法,其特征在于,所述预览界面中包括第二控件,所述第二控件用于触发所述电子设备编辑成片;
    其中,在所述电子设备显示所述第一成片的预览界面之后,所述方法还包括:
    所述电子设备在所述预览界面中播放所述第一成片;
    在所述电子设备未检测到过用户对所述第二控件的第三操作的情况下,所述电子设备响应于所述第一成片播放完成,在所述预览界面中显示第二提示信息;所述第二提示信息用于提示所述电子设备编辑所述第一成片。
  12. 根据权利要求10或11所述的方法,其特征在于,所述第五界面中包括第二控件,所述第二控件用于触发所述电子设备编辑成片;
    其中,在所述电子设备显示所述第一成片的预览界面之后,所述方法还包括:
    所述电子设备响应于用户对所述第二控件的第三操作,切换所述第一视频效果中的至少一种效果;所述至少一种效果包括背景音乐、滤镜、贴纸、相框、转场和片尾中的一种或多种。
  13. 根据权利要求10-12中任一项所述的方法,其特征在于,在所述电子设备显示所述第一成片的预览界面之后,所述方法还包括:
    所述电子设备响应于用户对所述预览界面的第四操作,保存所述第一成片;
    所述电子设备响应于所述第一成片保存完成,显示第九界面;所述第九界面是所述第一成片的编辑界面,所述第九界面中不包括所述第一控件;
    其中,所述电子设备显示第三界面,包括:
    所述电子设备响应于用户在所述第九界面中输入的返回操作,显示所述第三界面。
  14. 一种电子设备,其特征在于,所述电子设备中安装有多个应用,所述电子设备包括显示屏、存储器和一个或多个处理器;所述显示屏、所述存储器和所述处理器耦合;所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如权利要求1-13中任一项所述的方法。
  15. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-13中任一项所述的方法。
PCT/CN2022/094792 2021-06-16 2022-05-24 一种视频处理方法及电子设备 WO2022262536A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP22824017.2A EP4336849A1 (en) 2021-06-16 2022-05-24 Video processing method and electronic device
US18/570,379 US20240223840A1 (en) 2021-06-16 2022-05-24 Video processing method and electronic device

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN202110676709.3 2021-06-16
CN202110676709 2021-06-16
CN202111439314.8 2021-11-29
CN202111439314 2021-11-29
CN202210038856.2A CN115484395A (zh) 2021-06-16 2022-01-13 一种视频处理方法及电子设备
CN202210038856.2 2022-01-13

Publications (1)

Publication Number Publication Date
WO2022262536A1 true WO2022262536A1 (zh) 2022-12-22

Family

ID=84420543

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/094792 WO2022262536A1 (zh) 2021-06-16 2022-05-24 一种视频处理方法及电子设备

Country Status (4)

Country Link
US (1) US20240223840A1 (zh)
EP (1) EP4336849A1 (zh)
CN (1) CN115484395A (zh)
WO (1) WO2022262536A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116347009A (zh) * 2023-02-24 2023-06-27 荣耀终端有限公司 视频生成方法及电子设备

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150113408A1 (en) * 2013-10-18 2015-04-23 Apple Inc. Automatic custom sound effects for graphical elements
CN108769562A (zh) * 2018-06-29 2018-11-06 广州酷狗计算机科技有限公司 生成特效视频的方法和装置
CN109040615A (zh) * 2018-08-10 2018-12-18 北京微播视界科技有限公司 视频特效添加方法、装置、终端设备及计算机存储介质
CN110049266A (zh) * 2019-04-10 2019-07-23 北京字节跳动网络技术有限公司 视频数据发布方法、装置、电子设备和存储介质
CN111209438A (zh) * 2020-01-14 2020-05-29 上海摩象网络科技有限公司 视频处理方法、装置、设备及计算机存储介质
CN111541936A (zh) * 2020-04-02 2020-08-14 腾讯科技(深圳)有限公司 视频及图像处理方法、装置、电子设备、存储介质
CN111656347A (zh) * 2018-06-01 2020-09-11 华为技术有限公司 一种项目的显示方法及终端
CN111835986A (zh) * 2020-07-09 2020-10-27 腾讯科技(深圳)有限公司 视频编辑处理方法、装置及电子设备
CN112261416A (zh) * 2020-10-20 2021-01-22 广州博冠信息科技有限公司 基于云的视频处理方法、装置、存储介质与电子设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9131192B2 (en) * 2012-03-06 2015-09-08 Apple Inc. Unified slider control for modifying multiple image properties
CN107896306A (zh) * 2017-12-11 2018-04-10 深圳市欧唯科技有限公司 一种滤镜拍照的方法及系统
CN111930994A (zh) * 2020-07-14 2020-11-13 腾讯科技(深圳)有限公司 视频编辑的处理方法、装置、电子设备及存储介质
CN111954058B (zh) * 2020-08-13 2023-11-21 北京达佳互联信息技术有限公司 图像处理方法、装置、电子设备以及存储介质

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150113408A1 (en) * 2013-10-18 2015-04-23 Apple Inc. Automatic custom sound effects for graphical elements
CN111656347A (zh) * 2018-06-01 2020-09-11 华为技术有限公司 一种项目的显示方法及终端
CN108769562A (zh) * 2018-06-29 2018-11-06 广州酷狗计算机科技有限公司 生成特效视频的方法和装置
CN109040615A (zh) * 2018-08-10 2018-12-18 北京微播视界科技有限公司 视频特效添加方法、装置、终端设备及计算机存储介质
CN110049266A (zh) * 2019-04-10 2019-07-23 北京字节跳动网络技术有限公司 视频数据发布方法、装置、电子设备和存储介质
CN111209438A (zh) * 2020-01-14 2020-05-29 上海摩象网络科技有限公司 视频处理方法、装置、设备及计算机存储介质
CN111541936A (zh) * 2020-04-02 2020-08-14 腾讯科技(深圳)有限公司 视频及图像处理方法、装置、电子设备、存储介质
CN111835986A (zh) * 2020-07-09 2020-10-27 腾讯科技(深圳)有限公司 视频编辑处理方法、装置及电子设备
CN112261416A (zh) * 2020-10-20 2021-01-22 广州博冠信息科技有限公司 基于云的视频处理方法、装置、存储介质与电子设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116347009A (zh) * 2023-02-24 2023-06-27 荣耀终端有限公司 视频生成方法及电子设备
CN116347009B (zh) * 2023-02-24 2023-12-15 荣耀终端有限公司 视频生成方法及电子设备

Also Published As

Publication number Publication date
CN115484395A (zh) 2022-12-16
US20240223840A1 (en) 2024-07-04
EP4336849A1 (en) 2024-03-13

Similar Documents

Publication Publication Date Title
WO2020057661A1 (zh) 一种拍照方法、装置与设备
KR101871364B1 (ko) 카메라 스위칭 동안 계속적으로 비디오를 캡쳐하는 방법 및 그 장치
US11895399B2 (en) Photographing processing method and apparatus, terminal device, and storage medium
KR102449670B1 (ko) 복수의 카메라를 이용하여 영상 데이터를 생성하는 방법 및 서버
US20170068380A1 (en) Mobile terminal and method for controlling the same
WO2023020006A1 (zh) 基于可折叠屏的拍摄控制方法及电子设备
WO2022252660A1 (zh) 一种视频拍摄方法及电子设备
CN106303293B (zh) 视频处理方法、装置及移动终端
CN112449099A (zh) 一种图像处理方法、电子设备及云服务器
CN111741366A (zh) 音频播放方法、装置、终端及存储介质
CN104503675A (zh) 一种在Android系统下设置开关机动画和/或音乐的方法
US20240064346A1 (en) Video Switching Method and Apparatus, Storage Medium, and Device
WO2022088823A1 (zh) 图像处理方法及装置
WO2023160241A1 (zh) 一种视频处理方法及相关装置
CN114827342A (zh) 视频处理方法、电子设备及可读介质
WO2022262536A1 (zh) 一种视频处理方法及电子设备
CN112417180A (zh) 生成影集视频的方法、装置、设备及介质
WO2022088926A1 (zh) 一种拍摄方法和终端设备
WO2022237317A1 (zh) 显示方法及电子设备
US20230412535A1 (en) Message display method and electronic device
CN114466101B (zh) 显示方法及电子设备
CN105430260B (zh) 获取视频图像的方法及装置
CN115484396B (zh) 一种视频处理方法及电子设备
CN115484398B (zh) 一种视频拍摄方法及电子设备
EP4345650A1 (en) Human-machine interaction method and apparatus, and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22824017

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022824017

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 18570379

Country of ref document: US

ENP Entry into the national phase

Ref document number: 2022824017

Country of ref document: EP

Effective date: 20231208

NENP Non-entry into the national phase

Ref country code: DE