EP-4195658-B1 - VIDEO PROCESSING METHOD AND ELECTRONIC DEVICE
Inventors
- HOU, Weilong
- DONG, Zhen
- ZHU, Shiyu
- ZHANG, Zuochao
- ZHANG, DONG
Dates
- Publication Date
- 20260506
- Application Date
- 20220909
Claims (9)
- A video processing method, comprising: recording (S701) a first video in response to a first operation of a user; displaying a third interface in response to a third operation of the user, wherein the third interface is an interface of a gallery application, and the third interface comprises a second control, a first area and a first prompt window, and the first prompt window is used to prompt the user that a first photo and a second photo have been generated; displaying (S702) a first interface in response to a fourth operation with respect to the second control, wherein the first interface is a play interface of the first video, the first interface comprises a first control and the first area, the first area displays a thumbnail of the first photo and a thumbnail of the second photo, the first photo is automatically snapshotted at a first moment, the second photo is automatically snapshotted at a second moment, a resolution of the first photo is greater than the resolution of an image frame captured from the first video at the first moment, and the resolution of the second photo is greater than the resolution of an image frame captured from the first video at the second moment; and wherein a brightness of the first prompt window and a brightness of the first area are higher than a brightness of an area except the first area and the first prompt window in the third interface; displaying (S703) a second interface in response to a second operation with respect to the first control when the first video is playing, wherein the second interface is a play interface of a second video, duration of the second video is less than duration of the first video, and the second video comprises at least the first photo; and wherein the gallery application comprises a first album, and the first album comprises the first photo and the second photo; and wherein the first album further comprises a virtual video of the second video and the virtual video refers to a data file for which no video file is generated; and wherein the second interface further comprises a share control or a save control, and the method further comprises: generating a video file of the second video in response to a tenth operation of the user with respect to the share control or the save control; and storing the video file in the first album; and wherein storage space occupied by the second video is larger than storage space occupied by the virtual video of the second video.
- The method according to claim 1, further comprising: stopping recording of the first video in response to a fifth operation of the user, and displaying a fourth interface, wherein the fourth interface comprises a thumbnail previewing option; and the displaying a third interface in response to a third operation of the user comprises: displaying the third interface in response to a sixth operation of the user with respect to the thumbnail previewing option.
- The method according to claim 2, wherein the fourth interface further comprises a second prompt window, and the second prompt window is used to prompt the user that the first photo, the second photo, and the second video have been generated.
- The method according to any one of claims 1 to 3, wherein before recording the first video, the method further comprises: enabling a "one record for multiple gains" function in response to a seventh operation of the user.
- The method according to any one of claims 1 to 4, wherein the first interface further comprises a playing progress bar, and the playing progress bar is used to display playing progress of the first video.
- The method according to any one of claims 1 to 5, wherein the second interface further comprises a music control, and the method further comprises: displaying a plurality of different music options in response to an eighth operation of the user with respect to the music control.
- The method according to any one of claims 1 to 6, wherein the second interface further comprises a style control, and the method further comprises: displaying a plurality of different style options in response to a ninth operation of the user with respect to the style control.
- An electronic device (100), comprising a processor (110) and a memory, wherein the processor (110) is coupled to the memory, the memory is configured to store a computer program, and when the computer program is executed by the processor, the electronic device (100) performs the method according to any one of claims 1 to 7.
- A chip, comprising a processor, wherein when the processor executes instructions, the processor performs the method according to any one of claims 1 to 7.
Description
Priorities are claimed to Chinese Patent Application No. 202111236237.6, filed with the China National Intellectual Property Administration on October 22, 2021 and entitled "VIDEO RECORDING METHOD AND ELECTRONIC DEVICE", and Chinese Patent Application No. 202210114564.2, filed with the China National Intellectual Property Administration on January 30, 2022 and entitled "VIDEO PROCESSING METHOD AND ELECTRONIC DEVICE". TECHNICAL FIELD This disclosure relates to the field of electronic devices, and the invention more specifically relates to a video processing method and an electronic device. BACKGROUND With continuous development of intelligent terminals, photographing and video recording are essential functions of the intelligent terminals. Users' needs and experience for recording and photographing are continuously increasing. In some shooting scenes, users expect to simultaneously capture memorable photos of magic moments and wonderful videos. However, in existing technologies of intelligent terminal cameras, image quality of magic moments obtained in a video shooting process is poor, resulting in poor user experience. WO2021/196903A1 discloses a video processing method, comprising: obtaining a first highlight segment (that comprises multiple sub-highlight segments) obtained by highlight recognition of a target video. According to disclosure, the time information in the target video may be the number of minutes of the sub-highlight segment in the target video. US2016/027476A1 discloses a digital image processing apparatus. According to disclosure, when a moving image highlight related to a dual capture image is generated, a state bar may display a time interval including the moving image highlight. A location of display of the time interval may be determined by using start pointers SP1 through SP3 and end pointers EP1 through EP3. EP3859561A1 discloses a video file processing method to intelligently extract a clip and/or a picture of a specific element in a video. SUMMARY The object of the present invention is to provide a video processing method, an electronic device, a computer-readable storage medium, and a computer program product, so that a user can simultaneously obtain a high-quality photo of a magic moment and a wonderful video during video recording, thereby greatly improving user experience. This object is solved by the attached independent claims and further embodiments and improvements of the invention are listed in the attached dependent claims. Hereinafter, up to the "brief description of the drawings", expressions like "...aspect according to the invention", "according to the invention", or "the present invention", relate to technical teaching of the broadest embodiment as claimed with the independent claims. Expressions like "implementation", "design", "optionally", "preferably", "scenario", "aspect" or similar relate to further embodiments as claimed, and expressions like "example", "...aspect according to an example", "the disclosure describes", or "the disclosure" describe technical teaching which relates to the understanding of the invention or its embodiments, which, however, is not claimed as such. According to a first aspect according to the invention, a video processing method is provided, including: recording a first video in response to a first operation of a user;displaying a first interface, where the first interface is a play interface of the first video, the first interface includes a first control and a first area, the first area displays a thumbnail of a first photo and a thumbnail of a second photo, the first photo is automatically taken at a first moment, the second photo is automatically taken at a second moment, and a recording process of the first video includes the first moment and the second moment; anddisplaying a second interface in response to a second operation with respect to the first control, where the second interface is a play interface of a second video, duration of the second video is less than duration of the first video, and the second video includes at least the first photo. The foregoing method may be performed by a terminal device or a chip in the terminal device. Based on the foregoing technical solution, in the process of recording a video, by automatically identifying a magic moment and triggering photographing at the magic moment, it is possible to obtain a high-quality photo of the magic moment and a wonderful video. A user can view photos (a first photo and a second photo) of magic moments associated with a recorded original video (a first video) and a selected short video (a second video), improving user experience. According to the invention, the method further includes: displaying a third interface in response to a third operation of the user, where the third interface is an interface of a gallery application, and the third interface includes a second control; andthe displaying a first interface includes displaying the first interface in respon