WO2023103949A1 - 视频处理方法、装置、电子设备及介质 - Google Patents

视频处理方法、装置、电子设备及介质 Download PDF

Info

Publication number
WO2023103949A1
WO2023103949A1 PCT/CN2022/136533 CN2022136533W WO2023103949A1 WO 2023103949 A1 WO2023103949 A1 WO 2023103949A1 CN 2022136533 W CN2022136533 W CN 2022136533W WO 2023103949 A1 WO2023103949 A1 WO 2023103949A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
edited
image
target
thumbnails
Prior art date
Application number
PCT/CN2022/136533
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 维沃移动通信有限公司
Publication of WO2023103949A1 publication Critical patent/WO2023103949A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • 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
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • 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

Definitions

  • the present application belongs to the technical field of video processing, and in particular relates to a video processing method, device, electronic equipment and media.
  • the user can first trigger the electronic device to edit some video frames in the video, and then trigger the electronic device to play the processed video to determine the processed video. Whether some video frames are required by the user. In this way, when the processed partial video frames do not meet the needs of the user, the user can trigger the electronic device to edit the processed partial video frames again to obtain the video required by the user.
  • the purpose of the embodiment of the present application is to provide a video processing method, device, electronic device and medium, which can solve the problem of cumbersome operations when the electronic device edits and processes the video.
  • an embodiment of the present application provides a video processing method, the method comprising: displaying an editing interface of an image to be edited in a first screen area, where the image to be edited is a video frame in a video to be edited; A first input on the interface; in response to the first input, displaying a target preview image in the second screen area, where the target preview image is generated according to the image to be edited and the first input.
  • the embodiment of the present application provides a video processing device, and the video processing device includes: a display module and a receiving module.
  • the display module is configured to display an editing interface of an image to be edited in the first screen area, where the image to be edited is a video frame in the video to be edited.
  • the receiving module is configured to receive the user's first input to the editing interface displayed by the display module.
  • the display module is further configured to display a target preview image in the second screen area in response to the first input received by the receiving module, where the target preview image is generated according to the image to be edited and the first input.
  • the embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, the memory stores programs or instructions that can run on the processor, and the programs or instructions are processed by the The steps of the method described in the first aspect are realized when the controller is executed.
  • an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
  • an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method described in the first aspect.
  • the electronic device may first display the editing interface of the image to be edited in the video to be edited in the first screen area of the electronic device, and then, according to the first input of the user to the editing interface, display the editing interface on the second screen area of the electronic device.
  • the second screen area displays the target preview image generated according to the image to be edited and the first input.
  • the electronic device can first display the editing interface of the image to be edited in the video to be edited in the first screen area, and then display the target preview image generated according to the image to be edited and the first input in the second screen area according to the user's input, That is, the electronic device can simultaneously display the image to be edited and the target preview image obtained after editing the image to be edited in different screen areas, so the user can directly determine whether the target preview image is what the user needs without The electronic device is triggered to play the processed video to be edited, thereby simplifying user operations and reducing the time-consuming electronic device for editing the video, thus improving the efficiency of the electronic device for editing the video.
  • Fig. 1 is one of the schematic diagrams of the video processing method provided by the embodiment of the present application.
  • Fig. 2 is the second schematic diagram of the video processing method provided by the embodiment of the present application.
  • Fig. 3 is one of the example schematic diagrams of the interface of a mobile phone provided by the embodiment of the present application.
  • Fig. 4 is the second schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application.
  • Fig. 5 is the third schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application.
  • Fig. 6 is the third schematic diagram of the video processing method provided by the embodiment of the present application.
  • FIG. 7 is the fourth schematic diagram of the video processing method provided by the embodiment of the present application.
  • Fig. 8 is the fourth schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application.
  • FIG. 9 is the fifth schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application.
  • FIG. 10 is the fifth schematic diagram of the video processing method provided by the embodiment of the present application.
  • Fig. 11 is the sixth schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a video processing device provided by an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 14 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present application.
  • the video processing method provided in the embodiment of the present application may be applied to a scene where part of video frames are optimized during video editing.
  • the electronic device may first display the editing interface of the video frame in the video to be edited in a screen area of the display screen, and then edit the video frame according to the user's input in the editing interface.
  • another screen area of the electronic device displays a preview image generated according to the video frame and input. Therefore, the user can directly determine whether the preview image is what the user needs without triggering the electronic device to play the edited video, thereby reducing the time-consuming electronic device for editing the video.
  • FIG. 1 shows a flowchart of a video processing method provided by an embodiment of the present application.
  • the video processing method provided by the embodiment of the present application may include the following steps 101 to 103 .
  • Step 101 the video processing device displays an editing interface of an image to be edited in a first screen area.
  • the video processing apparatus may include one display screen or multiple display screens.
  • the one display screen may specifically be a scrolling screen.
  • the image to be edited is a video frame in the video to be edited.
  • the image to be edited may specifically be the first video frame or the last video frame in the video to be edited, or a video frame determined according to user input.
  • the video processing device may display the interface of the target application according to the user's click input on the application icon of the target application, so that the video processing device may display the interface of the target application according to the user's
  • the input in the interface displays all the video frames of the video to be edited, so that the video processing device can display the editing interface of the image to be edited according to the user's click input on the image to be edited in all the video frames.
  • the target application may be any of the following: a shooting application, a short video interactive application, a video processing application, a multimedia file storage application, and the like.
  • the multimedia file storage application may be: an "album" application.
  • At least one video identification (such as a thumbnail) is included in the interface of the target application, and the video processing device may display the video to be edited according to the user's click input on the identification of the video to be edited in the at least one video. All video frames of the video.
  • the video to be edited may be a video captured by the user in advance.
  • the interface of the target application includes at least one multimedia file identifier
  • the video processing device may synthesize the video to be edited according to the user's click input on at least one multimedia file identifier in the at least one multimedia file , and display all video frames of the video to be edited.
  • the multimedia file may be at least one of the following: video, image and so on.
  • the video to be edited may also be a video synthesized by the video processing device triggered by the user.
  • the first screen area may specifically be: a newly added screen area after the scrolling screen is unfolded.
  • the video processing device may firstly control the scrolling screen to unfold, and then display an editing interface of the image to be edited in the newly added first screen area after unfolding.
  • the first screen area may specifically be: a screen area in the main display screen.
  • the editing interface includes an image to be edited.
  • the editing interface may include a first window, and the first window includes an image to be edited.
  • the video processing method provided by the embodiment of this application may further include the following steps 201 to 204, and the above Step 101 may specifically be implemented through the following step 101a.
  • Step 201 the video processing device displays M object images in a first screen area.
  • each of the above M object images corresponds to an object in the video to be edited, and M is a positive integer.
  • the video processing device may display M object images in the first screen area, so that the video processing device may display M object images according to the user's
  • the input of the object image in the object image displays the editing interface of the image to be edited.
  • the video processing device may first identify the video to be edited to obtain M groups of images, each group of images corresponds to a subject in the video to be edited, and then each group of images Any image in the image is cropped to obtain an object image, so that M object images can be obtained, so that the video processing device can display the M object images in the first screen area.
  • the shooting object may be any of the following: people, animals, food, and so on.
  • the video processing device may adopt an artificial intelligence (AI) identification method to identify the video to be edited, so as to obtain M groups of images matching the characteristics of the object.
  • AI artificial intelligence
  • the cropped image may be: the first image, or the last image, or any image in the group of images.
  • the first image can be understood as: the first image sorted according to the storage time from far to near
  • the last image can be understood as: the last image sorted according to the storage time from far to near.
  • the video processing device may display the first window in the first area of the first screen area of the one display screen, and display the first window on the first screen area of the display screen.
  • the second area of a display screen displays M object images.
  • the second area may be: an adjacent display area of the first area.
  • the scroll screen mobile phone displays an editing interface (such as interface 10) of an image to be edited, which includes a first window (such as window 11) and M object images (such as object image 12, object image 13 and Object image 14), wherein, the window 11 includes an image to be edited, the window 11 is displayed on the first area (such as area 16) of the display screen of the scroll screen mobile phone, and the object image 12, object image 13 and object image 14 display
  • the second area and the first area may be part of the area 16
  • the area 16 is an adjacent display area of the area 15 .
  • the video processing device when the video processing device includes multiple display screens, the video processing device may display the first window on one of the multiple display screens, and display the first window on the multiple display screens. M object images are displayed on another display screen of the display screen.
  • step 202 the video processing apparatus receives a second input from a user on a first object image among the M object images.
  • the foregoing first object image may include one image or multiple images.
  • the above-mentioned second input is used to trigger the video processing device to display the video frame of the video to be edited.
  • the second input may specifically be the user's click input on the first object image, or a voice command input by the user, or a specific gesture input by the user, which may be specifically determined according to actual usage requirements , which is not limited in this embodiment of the present application.
  • the specific gesture in the embodiment of the present application may be any one of a click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture;
  • the click input can be single-click input, double-click input, or any number of click inputs, etc., and can also be long-press input or short-press input.
  • step 203 the video processing device displays N first thumbnail images in the first screen area in response to the second input.
  • each of the first thumbnails in the above N first thumbnails is a thumbnail of a video frame that includes the first object in the video to be edited, and the first object is the image corresponding to the first object.
  • Shooting object, N is a positive integer.
  • the video processing apparatus may display a second window in the first screen sub-area in the first screen area, and the second window includes N first thumbnail images.
  • the user can perform a second input on the first object image (such as the object image 13) among the object image 12, the object image 13 and the object image 14, so that the video processing device can display the first object (that is, the object image 13).
  • the video processing device can display the second window (such as window 17) in the area 16, the window 17 includes N first thumbnails.
  • step 204 the video processing device receives a third input from the user on the first target thumbnail among the N first thumbnails.
  • the above-mentioned third input may specifically be the user’s click input on the first target thumbnail, or a voice command input by the user, or a specific gesture input by the user. Requirements are determined, which is not limited in this embodiment of the application.
  • Step 101a the video processing apparatus responds to the third input, and displays the editing interface of the image corresponding to the first target thumbnail in the first screen area.
  • the first target thumbnail is the thumbnail of the image to be edited.
  • the video processing device may update the editing interface of the image displayed in the first screen area to the editing interface of the image to be edited.
  • the video processing device can first display M object images corresponding to M objects in the video to be edited, and then display the first object image including the first object image according to the user's input of the first object image among the M object images.
  • the N thumbnails of the video frame corresponding to the shooting object that is, fewer thumbnails are displayed, so the user can quickly select the first target thumbnail required by the user from the fewer thumbnails to quickly trigger the video
  • the processing device displays the editing interface of the image to be edited required by the user, so that the video editing efficiency of the video processing device can be improved.
  • the video processing method provided in the embodiment of the present application may further include the following steps 301 and 302.
  • Step 301 The video processing apparatus receives a fourth input from a user on a second object image among M object images.
  • the foregoing second object image may include one image or multiple images.
  • the above fourth input is used to trigger the video processing device to display a thumbnail of a video frame including the second subject in the video to be edited.
  • the above-mentioned fourth input may specifically be a click input by the user on the second object image, or a voice command input by the user, or a specific gesture input by the user, and may specifically be based on actual usage requirements.
  • this embodiment of the present application does not limit it.
  • step 302 the video processing device displays Q second thumbnail images in the first screen area in response to the fourth input.
  • the above-mentioned second thumbnail is a thumbnail of a video frame including a second object in the video to be edited, the second object is an object corresponding to the second object image, and Q is a positive integer.
  • the video processing apparatus may update the N first thumbnail images in the second window to Q second thumbnail images.
  • the user can perform a fourth input on the second object image, so that the video processing device can update Thumbnails displayed.
  • the video processing device can display Q second thumbnails including video frames of the second object according to the user's fourth input to the second object image, the user can search for the user in the Q second thumbnails. There is no need to search the thumbnails of all the video frames of the video to be edited, so the efficiency of the video processing device to edit the video can be improved.
  • Step 102 the video processing device receives a first input from a user on an editing interface.
  • the above-mentioned first input is used for editing the image to be edited.
  • the editing processing includes at least one of the following: deleting processing, adding text processing, adding mark processing, and adjusting image parameters.
  • the above “deletion processing” can be understood as: a processing manner of deleting an image (that is, a video frame in the video to be edited).
  • processing of adding text can be understood as a processing method of adding text required by the user (such as text input by the user or text selected by the user, etc.) on the image.
  • marking processing can be understood as: a processing method of adding a mark symbol on the image.
  • the above image parameters may include at least one of the following: color saturation, brightness, and transparency.
  • the above-mentioned first input is used to trigger the video processing device to perform image processing on the image to be edited.
  • the above-mentioned first input may specifically be a click input by the user on the image to be edited, or a voice command input by the user, or a specific gesture input by the user, and may be specifically based on actual usage requirements.
  • this embodiment of the present application does not limit it.
  • the editing interface further includes at least one processing control, and each processing control corresponds to a kind of editing processing, and the first input may specifically be: A click input by the user on a target processing control in the at least one processing control, and/or an input of an image to be edited.
  • Step 103 the video processing device responds to the first input, and displays the target preview image in the second screen area.
  • the second screen area may specifically be: a screen area adjacent to the first screen area.
  • the second screen area may specifically be a screen area before the scrolling screen is unfolded.
  • the mobile phone includes a display screen, and the display screen is a scroll screen, then the first screen area can be a newly added screen area (such as area 18) after the scroll screen is expanded, and the second screen area It may be the screen area (for example, area 19 ) before the scrolling screen is unfolded.
  • the first screen area can be a newly added screen area (such as area 18) after the scroll screen is expanded, and the second screen area It may be the screen area (for example, area 19 ) before the scrolling screen is unfolded.
  • the second screen area may specifically be: any display screen in other display screens (that is, any display screen except the main display screen). screen area.
  • the target preview image is generated according to the image to be edited and the first input.
  • the above-mentioned target preview image is specifically generated according to the image to be edited and the input parameters of the first input.
  • the input parameter may include at least one of the following: input position, input track, input object, and the like.
  • the video processing device may perform editing processing on the image to be edited according to the first input input object (for example, a target processing control), so as to generate a target preview image.
  • the first input input object for example, a target processing control
  • the video processing device may perform image parameter adjustment processing on the image to be edited according to the first input input object, so as to generate an adjusted target preview image.
  • the video processing device may determine the manner of editing the image to be edited according to the first input input object (such as a target processing control), and based on the first input Input trajectory, the way to determine the editing process of the image to be edited, so as to generate the target preview image.
  • the first input input object such as a target processing control
  • the video processing device may determine to perform marking processing on the image to be edited according to the input object of the first input, and add The input trajectory corresponds to the marker to generate the target preview image.
  • the video processing apparatus may display a third window in the second screen area, where the third window includes the target preview image.
  • the video processing method provided in the embodiment of this application may further include the following step 401 .
  • Step 401 the video processing device generates a target video according to the target preview image and video frames in the video to be edited except for the image to be edited.
  • the video processing device may splice the target preview image and video frames in the video to be edited except for the image to be edited to generate the target video.
  • the video processing device may replace the image to be edited in the video to be edited with the target preview image.
  • the video processing device can directly obtain the target video according to the target preview image and video frames in the video to be edited except for the image to be edited, the user does not need to perform multiple operations to trigger the video processing device to obtain the target video, therefore, The user's operation can be simplified and time-consuming can be reduced.
  • the video processing device may first display the editing interface of the image to be edited in the video to be edited in the first screen area of the video processing device, and then according to the user's first input to the editing interface, The target preview image generated according to the image to be edited and the first input is displayed on the second screen area of the video processing device. Because the video processing device can first display the editing interface of the image to be edited in the video to be edited in the first screen area, and then display the target preview image generated according to the image to be edited and the first input in the second screen area according to the user's input.
  • the video processing device can simultaneously display the image to be edited and the target preview image obtained after editing the image to be edited in different screen areas, so the user can directly determine whether the target preview image is what the user needs, There is no need to trigger the video processing device to play the processed video to be edited. Therefore, user operations can be simplified and time-consuming for the video processing device to edit the video can be reduced. In this way, the efficiency of video editing by the video processing device can be improved.
  • the video processing method provided by the embodiment of this application is applied to a video processing device with a scrolling screen, and the video processing method can also be The following steps 501 to 503 are included.
  • Step 501 when L third thumbnail images are displayed on the album interface, the video processing device receives a fifth input from the user on T third target thumbnail images among the L third thumbnail images.
  • the video processing device may display L third thumbnail images according to the user's pressing input on the photo album interface.
  • a "video clip” control is included in the album interface, so that the video processing device can display a first interface according to the user's click input on the "video clip” control, and the first interface includes L third thumbnail.
  • the video processing device displays an album interface (such as interface 20), which includes a "video clip” control, so that the user can click on the "video clip” control to input ;
  • an album interface such as interface 20
  • the video processing device may display a first interface (for example, interface 21), which includes L third thumbnail images.
  • At least one group identifier is included in the album interface, and each group identifier corresponds to a group of multimedia files, so that the video processing device can click and input a target group identifier in the at least one group identifier, A first interface is displayed, and the first interface includes L third thumbnail images.
  • the interface 20 also includes at least one group identification (such as "freeze time 1" group identification, "freeze time 2" group identification and "good day” group identification), so that the user The "good day” group logo can be clicked and input; as shown in Figure 9, after the user clicks and input, the video processing device can display a first interface (such as interface 22), which includes L third thumbnail.
  • group identification such as "freeze time 1" group identification, "freeze time 2" group identification and "good day” group identification
  • each third thumbnail is used to indicate a multimedia file, and both L and T are positive integers.
  • the fifth input is used to trigger the video processing device to select a multimedia file.
  • the above-mentioned fifth input may specifically be: the user sequentially clicks on T multimedia files, or is a voice command input by the user, or is a specific gesture input by the user. Specifically, it may be based on The actual use requirements are determined, and this embodiment of the present application does not limit it.
  • Step 502 In the case that the number of the third target thumbnails is greater than the preset number, the video processing device responds to the fifth input and controls the scrolling screen to expand to the target state according to the number of the third target thumbnails, and the expanded scroll screen T thumbnail images of the third target are displayed on the screen.
  • the above-mentioned target state may specifically be: a state in which the scrolling screen is expanded to the target size.
  • the video The processing device may control the scrolling screen to expand to a target size according to the number T of third target thumbnail images, and display T third target thumbnail images on the expanded scrolling screen.
  • the video processing device may select T multimedia files indicated by the third target thumbnails, and control the scrolling screen to expand to target size.
  • the video processing device may first use the target algorithm to calculate the target size according to the number T of the third target thumbnails, and then control the scrolling screen to expand to the target size to expand to the target size. state.
  • the target algorithm can specifically be:
  • m is the target size (that is, the expansion ratio)
  • floor is a function of rounding down
  • X is a preset value
  • n is the number of selected third target thumbnails.
  • the video processing device may select T multimedia files indicated by the third thumbnails in response to the fifth input.
  • the display screen can completely display T third target thumbnails. Therefore, video processing The device may select the multimedia file indicated by the T third target thumbnails without controlling the scrolling screen to unfold.
  • the video processing method provided in the embodiment of the present application may further include the following Step 504, and the above step 502 may specifically be implemented through the following step 502a.
  • Step 504 when the number of the third target thumbnails is greater than the preset number, the video processing device responds to the fifth input, and controls the scrolling screen to expand to the target state according to the number of the third target thumbnails, and the target state is scrolling In the case of the maximum expanded state of the screen, the video processing device adjusts the size of the third target thumbnails according to the number of the third target thumbnails.
  • the target size is the maximum expanded size of the scrolling screen.
  • the video processing device may determine the first ratio according to the difference between the number T of the third target thumbnail and the preset number, and adjust the size of the third target thumbnail according to the first ratio. display size.
  • At least one association relationship may be pre-stored in the video processing apparatus, and each association relationship is an association relationship of a value and a ratio, so that the video processing apparatus can calculate the number of thumbnail images according to the third target thumbnail image according to the number T and the preset number. For the difference, a corresponding target value is determined from at least one value, and a ratio corresponding to the target value is determined as a first ratio.
  • the first ratio is less than or equal to a preset ratio.
  • the preset ratio may specifically be: the minimum ratio of the thumbnail size set by the video processing device.
  • step 502a the video processing device displays the adjusted T thumbnail images of the third target on the unfolded scrolling screen.
  • the video processing device can reduce the display size of the T third target thumbnails and display the reduced T third target thumbnails, so , can avoid the situation that the fully unfolded scroll screen cannot display T thumbnails of the third target, so that the user can directly check whether the T thumbnails of the third target after the adjustment are the thumbnails of the multimedia files required by the user, without requiring the user to Multiple operations are performed, therefore, the user's operations can be simplified and time-consuming can be reduced.
  • Step 503 the video processing device generates a video to be edited based on the T multimedia files indicated by the T third target thumbnails.
  • the video processing device may splice the i-th multimedia file and the i+1-th multimedia file among the T multimedia files to obtain a video to be edited.
  • i is a positive integer.
  • the i-th multimedia file may specifically be: the i-th multimedia file sorted according to the storage time from the farthest to the nearest, or the i-th multimedia file sorted according to the user input time from the farthest to the latest.
  • the video processing device can control the scrolling screen to expand to the target size according to the number T of the third target thumbnails according to the fifth input of the user to the T third target thumbnails, and shrink the scrolling screen according to the T third target thumbnails.
  • the multimedia file indicated by the thumbnail obtains the video to be edited. Therefore, the user can directly check whether the T third target thumbnails are the thumbnails of the multimedia files required by the user in the unfolded scroll screen, so as to obtain the video to be edited according to the user's needs.
  • the video does not require the user to perform multiple operations, so the efficiency of obtaining the video required by the user can be improved.
  • the video processing method provided in the embodiment of the present application may further include the following step 601 .
  • Step 601 the video processing device displays a progress bar of the video to be edited in the second screen area, and displays a first identifier of the image to be edited on the progress bar of the video to be edited.
  • the first identifier is used to indicate the location information of the image to be edited in the video to be edited.
  • the video processing device may mark the image to be edited on the progress bar of the video to be edited in a target marking manner.
  • the target marking method may include at least one of the following: dotted frame marking, highlight marking, color marking, gray scale marking, marking with preset transparency, and flashing marking.
  • the video processing device can mark on the progress bar (for example, progress bar 23) of the video to be edited
  • the image to be edited (for example, the image to be edited is marked with a color mark, and the figure is indicated by a shaded box), and a first window (such as window 24) is displayed in the first screen area, and the window 24 includes the image to be edited .
  • the video processing device can display the progress bar of the video to be edited in the second screen area, and display the first identification of the image to be edited on the progress bar, that is, the video processing device can mark on the progress bar of the video to be edited The corresponding position of the image to be edited in the video to be edited, therefore, the user can quickly find the image to be edited from the video to be edited.
  • Fig. 12 shows a possible structural diagram of the video processing device involved in the embodiment of the present application, and the video processing device has a scrolling screen.
  • the video processing device 60 may include: a display module 61 and a receiving module 62 .
  • the display module 61 is configured to display an editing interface of an image to be edited in the first screen area, where the image to be edited is a video frame in the video to be edited.
  • the receiving module 62 is configured to receive the user's first input on the editing interface displayed by the display module 61 .
  • the display module 61 is further configured to display a target preview image in the second screen area in response to the first input received by the receiving module 62, where the target preview image is generated according to the image to be edited and the first input.
  • the video processing device can first display the editing interface of the image to be edited in the video to be edited in the first screen area, and then display the image to be edited in the second screen area according to the user's input.
  • the image and the target preview image generated by the first input that is, the video processing device can simultaneously display the image to be edited and the target preview image obtained after editing the image to be edited in different screen areas, so the user can directly determine the Whether the target preview image is what the user needs, without triggering the video processing device to play the processed video to be edited, thereby simplifying user operations and reducing the time-consuming video processing device to edit the video, so that the video processing device can be improved. Efficiency in the editing process for video.
  • the first input is used to perform editing processing on the image to be edited; wherein, the editing processing includes at least one of the following: deletion processing, text adding processing, tag adding processing, and image parameter adjustment processing.
  • the display module 61 is further configured to display M object images in the first screen area, each object image corresponds to a subject in the video to be edited, and M is a positive integer;
  • the module 62 is also used to receive the user's second input on the first object image among the M object images displayed by the display module 61; the above-mentioned display module 61 is also used to respond to the second input received by the receiving module 62.
  • One screen area displays N first thumbnails
  • the first thumbnails are thumbnails of video frames including the first subject in the video to be edited, the first subject is the subject corresponding to the first subject image, and N is a positive integer
  • the above-mentioned receiving module 62 is also used to receive the user's third input to the first target thumbnail in the N first thumbnails displayed by the display module 61; the display module 61 is specifically used to respond to the first received by the receiving module 62 Three inputs, the editing interface of the image corresponding to the first target thumbnail is displayed in the first screen area.
  • the video processing device can first display M object images corresponding to M objects in the video to be edited, and then display the first object image including the first object image according to the user's input of the first object image among the M object images.
  • the N thumbnails of the video frame corresponding to the shooting object that is, fewer thumbnails are displayed, so the user can quickly select the first target thumbnail required by the user from the fewer thumbnails to quickly trigger the video
  • the processing device displays the editing interface of the image to be edited required by the user, so that the video editing efficiency of the video processing device can be improved.
  • the receiving module 62 is further configured to receive a fourth input from the user on the second object image among the M object images; the display module 61 is also configured to respond to the input received by the receiving module 62
  • the fourth input is to display Q second thumbnails in the first screen area, the second thumbnails are thumbnails of video frames including the second subject in the video to be edited, and the second subject is the shooting corresponding to the second subject image Object, Q is a positive integer.
  • the video processing device can display Q second thumbnails including video frames of the second object according to the user's fourth input to the second object image, the user can search for the user in the Q second thumbnails. There is no need to search the thumbnails of all the video frames of the video to be edited, so the efficiency of the video processing device for editing the video can be improved.
  • the video processing device 60 has a scroll screen, and the video processing device 60 further includes: a control module 63 .
  • the above-mentioned receiving module 62 is also used to receive the user's fifth input to the T third target thumbnails among the L third thumbnails when the L third thumbnails are displayed on the album interface, and each third The thumbnail is used to indicate a multimedia file, and L and T are both positive integers;
  • the above-mentioned control module 63 is used to respond to the fifth input received by the receiving module 62 when the number of the third target thumbnail is greater than the preset number , according to the number of third target thumbnails, control the scroll screen to expand to the target state;
  • the display module 61 is also used to display T third target thumbnails in the scroll screen after the control module 63 controls expansion;
  • the control module 63 is also used It is used for generating a video to be edited based on the T multimedia files indicated by the T third target thumbnails.
  • the video processing device can control the scrolling screen to expand to the target size according to the number T of the third target thumbnails according to the fifth input of the user to the T third target thumbnails, and shrink the scrolling screen according to the T third target thumbnails.
  • the multimedia file indicated by the thumbnail obtains the video to be edited. Therefore, the user can directly check whether the T third target thumbnails are the thumbnails of the multimedia files required by the user in the unfolded scroll screen, so as to obtain the video to be edited according to the user's needs.
  • the video does not require the user to perform multiple operations, so the efficiency of obtaining the video required by the user can be improved.
  • control module 63 is further configured to adjust the size of the third target thumbnails according to the number of third target thumbnails when the target state is the maximum unfolded state of the scrolling screen.
  • the video processing device can reduce the display size of the T third target thumbnails and display the reduced T third target thumbnails, so , can avoid the situation that the fully unfolded scroll screen cannot display T thumbnails of the third target, so that the user can directly check whether the T thumbnails of the third target after the adjustment are the thumbnails of the multimedia files required by the user, without requiring the user to Multiple operations are performed, therefore, the user's operations can be simplified and time-consuming can be reduced.
  • the video processing device 60 has a scrolling screen
  • the first screen area is a newly added screen area after the scrolling screen is unfolded
  • the second screen area is a screen area before the scrolling screen is unfolded.
  • the above-mentioned display module 61 is further configured to display a progress bar of the video to be edited in the second screen area, and display the first logo of the image to be edited on the progress bar of the video to be edited, the first The identifier is used to indicate position information of the image to be edited in the video to be edited.
  • the video processing device can display the progress bar of the video to be edited in the second screen area, and display the first identification of the image to be edited on the progress bar, that is, the video processing device can mark on the progress bar of the video to be edited The corresponding position of the image to be edited in the video to be edited, therefore, the user can quickly find the image to be edited from the video to be edited.
  • control module 63 is further configured to generate the target video according to the target preview image and video frames in the video to be edited except for the image to be edited.
  • the video processing device can directly obtain the target video according to the target preview image and video frames in the video to be edited except for the image to be edited, the user does not need to perform multiple operations to trigger the video processing device to obtain the target video, therefore, The user's operation can be simplified and time-consuming can be reduced.
  • the video processing apparatus in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip.
  • the electronic device may be a terminal, or other devices other than the terminal.
  • the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (Augmented Reality, AR)/virtual reality (Virtual Reality, VR ) devices, robots, wearable devices, ultra-mobile personal computers (Ultra-mobile Personal Computer, UMPC), netbooks or personal digital assistants (Personal Digital Assistant, PDA), etc., can also serve as servers, network attached storage (Network Attached Storage, NAS), personal computer (Personal Computer, PC), television (Television, TV), teller machine or self-service machine, etc., which are not specifically limited in this embodiment of the present application.
  • Network Attached Storage Network Attached Storage,
  • the video processing device in this embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the video processing device provided in the embodiment of the present application can implement various processes implemented by the method embodiments in FIG. 1 to FIG. 12 , and details are not repeated here to avoid repetition.
  • the embodiment of the present application also provides an electronic device 70, including a processor 71 and a memory 72, which are stored in the memory 72 and can be stored on the processor 71.
  • the running program or instruction when the program or instruction is executed by the processor 71, implements the various processes of the above video processing method embodiment, and can achieve the same technical effect, so to avoid repetition, it is not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 14 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application, and the electronic device includes a target display chip.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
  • the electronic device 100 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 110 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 14 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, and details will not be repeated here. .
  • the display unit 106 is configured to display an editing interface of an image to be edited in the first screen area, where the image to be edited is a video frame in the video to be edited.
  • the user input unit 107 is configured to receive the first input from the user on the editing interface.
  • the display unit 106 is further configured to display a target preview image in the second screen area in response to the first input, where the target preview image is generated according to the image to be edited and the first input.
  • the electronic device since the electronic device can first display the editing interface of the image to be edited in the video to be edited in the first screen area, and then display the image to be edited and the editing interface in the second screen area according to the user's input
  • the target preview image generated by the first input that is, the electronic device can simultaneously display the image to be edited and the target preview image obtained after editing the image to be edited in different screen areas, so the user can directly determine the target preview image Whether it is what the user needs, without triggering the electronic device to play the processed video to be edited, thereby simplifying user operations and reducing the time-consuming electronic device for editing the video, thus improving the efficiency of the electronic device for editing the video efficiency.
  • the display unit 106 is further configured to display M object images in the first screen area, each object image corresponds to an object in the video to be edited, and M is a positive integer.
  • the user input unit 107 is further configured to receive a second input from the user on the first object image in the M object images.
  • the display unit 106 is further configured to display N first thumbnails in the first screen area in response to the second input, the first thumbnails are thumbnails of video frames including the first subject in the video to be edited, and the first shooting The object is a shooting object corresponding to the first object image, and N is a positive integer.
  • the user input unit 107 is further configured to receive a third input from the user on the first target thumbnail among the N first thumbnails.
  • the display unit 106 is specifically configured to display an editing interface of the image to be edited corresponding to the first target thumbnail in the first screen area in response to the third input.
  • the electronic device can first display M object images corresponding to M objects in the video to be edited, and then display the first object image corresponding to the first object image according to the user's input of the first object image among the M object images.
  • N thumbnails of the video frames of the shooting object that is, fewer thumbnails are displayed. Therefore, the user can quickly select the first target thumbnail required by the user from the fewer thumbnails to quickly trigger the electronic device
  • the editing interface of the image to be edited required by the user is displayed, so that the efficiency of editing and processing the video by the electronic device can be improved.
  • the user input unit 107 is further configured to receive a fourth input from the user on the second object image in the M object images.
  • the display unit 106 is further configured to display Q second thumbnails in the first screen area in response to the fourth input, the second thumbnails are thumbnails of video frames including the second subject in the video to be edited, and the second shooting The object is a shooting object corresponding to the second object image, and Q is a positive integer.
  • the electronic device can display Q second thumbnails including video frames of the second object according to the user's fourth input on the second object image, the user can find user needs in the Q second thumbnails. thumbnails of the video to be edited without searching the thumbnails of all the video frames of the video to be edited, therefore, the efficiency of editing the video by the electronic device can be improved.
  • the user input unit 107 is further configured to receive the user's input of the T third target thumbnails among the L third thumbnails when the L third thumbnails are displayed on the album interface.
  • the fifth input of thumbnails, each third thumbnail is used to indicate a multimedia file, and both L and T are positive integers.
  • the processor 110 is configured to, when the number of the third target thumbnails is greater than a preset number, respond to a fifth input, and control the scrolling screen to expand to a target state according to the third target number of thumbnails;
  • the display unit 106 is further configured to display T third target thumbnail images in the unfolded scrolling screen.
  • the processor 110 is further configured to generate a video to be edited based on the T multimedia files indicated by the T third target thumbnails.
  • the electronic device can control the scrolling screen to expand to the target size according to the fifth input of the T third target thumbnails by the user, according to the number T of the third target thumbnails, and according to the T third target thumbnails Indicate the multimedia file to obtain the video to be edited, therefore, the user can directly check whether the T third target thumbnails are the thumbnails of the multimedia files required by the user in the unfolded scroll screen, so as to obtain the video to be edited according to the user's needs , without requiring the user to perform multiple operations, so the efficiency of obtaining the video required by the user can be improved.
  • the processor 110 is further configured to adjust the size of the third target thumbnails according to the number of third target thumbnails when the target state is the maximum unfolded state of the scrolling screen.
  • the electronic device can reduce the display size of T third target thumbnails and display the reduced T third target thumbnails, therefore, It can avoid the situation that the fully unfolded scroll screen cannot display T third target thumbnails, so that the user can directly check whether the adjusted T third target thumbnails are the thumbnails of the multimedia files required by the user, without the need for the user to perform Multiple operations, therefore, the user's operation can be simplified and time-consuming can be reduced.
  • the display unit 106 is further configured to display a progress bar of the video to be edited in the second screen area, and display a first logo of the image to be edited on the progress bar of the video to be edited, the first The identifier is used to indicate position information of the image to be edited in the video to be edited.
  • the electronic device can display the progress bar of the video to be edited in the second screen area, and display the first identification of the image to be edited on the progress bar, that is, the electronic device can mark the video to be edited on the progress bar of the video to be edited. The corresponding position of the image in the video to be edited, so the user can quickly find the image to be edited from the video to be edited.
  • the processor 110 is further configured to generate the target video according to the target preview image and video frames in the video to be edited except for the image to be edited.
  • the electronic device can directly obtain the target video according to the target preview image and the video frames in the video to be edited except for the image to be edited, the user does not need to perform multiple operations to trigger the electronic device to obtain the target video, therefore, it can be simplified User's operation, and reduce time-consuming.
  • the input unit 104 may include a graphics processing unit (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processing unit 1041 is used by the image capturing device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072 .
  • the touch panel 1071 is also called a touch screen.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 109 can be used to store software programs as well as various data.
  • the memory 109 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area can store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc.
  • memory 109 may include volatile memory or nonvolatile memory, or, memory 109 may include both volatile and nonvolatile memory.
  • the non-volatile memory can be read-only memory (Read-only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash.
  • Read-only Memory ROM
  • PROM programmable read-only memory
  • Erasable PROM Erasable PROM
  • EPROM electrically programmable Erase Programmable Read-Only Memory
  • Flash Flash.
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch Link DRAM , SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM enhanced synchronous dynamic random access memory
  • Synch Link DRAM , SLDRAM
  • Direct Memory Bus Random Access Memory Direct Rambus
  • the processor 110 may include one or more processing units; optionally, in this embodiment of the application, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and For the operation of application programs, etc., the modem processor mainly processes wireless communication signals, such as the baseband processor. It can be understood that the foregoing modem processor may not be integrated into the processor 110 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned video processing method embodiment is realized, and the same To avoid repetition, the technical effects will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk, and the like.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above video processing method embodiment Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above video processing method embodiment, and can achieve the same technical effect , to avoid repetition, it will not be repeated here.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

本申请公开了一种视频处理方法、装置、电子设备及介质,属于视频处理技术领域。其中,该方法包括:在第一屏幕区域显示待编辑图像的编辑界面,该待编辑图像为待编辑视频中的视频帧;接收用户对编辑界面的第一输入;响应于第一输入,在第二屏幕区域显示目标预览图像,该目标预览图像是根据待编辑图像和第一输入生成的。

Description

视频处理方法、装置、电子设备及介质
本申请要求于2021年12月06日提交国家知识产权局、申请号为202111478316.8、申请名称为“视频处理方法、装置、电子设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于视频处理技术领域,具体涉及一种视频处理方法、装置、电子设备及介质。
背景技术
通常,在用户使用电子设备对视频进行编辑处理的过程中,用户可以先触发电子设备对该视频中的部分视频帧进行编辑处理,然后再触发电子设备播放处理后的视频,以确定处理后的部分视频帧是否为用户所需要的。这样,在处理后的部分视频帧不满足用户需要的情况下,用户可以再次触发电子设备对处理后的部分视频帧进行编辑处理,以得到用户所需要的视频。
但是,采用相关技术进行视频编辑处理时,其操作过程繁琐,需要反复进行编辑调试才能得到让用户满意的视频,耗时较长。
发明内容
本申请实施例的目的是提供一种视频处理方法、装置、电子设备及介质,能够解决电子设备对视频进行编辑处理时操作繁琐的问题。
第一方面,本申请实施例提供了一种视频处理方法,该方法包括:在第一屏幕区域显示待编辑图像的编辑界面,该待编辑图像为待编辑视频中的视频帧;接收用户对编辑界面的第一输入;响应于第一输入,在第二屏幕区域显示目标预览图像,该目标预览图像是根据待编辑图像和第一输入生成的。
第二方面,本申请实施例提供了一种视频处理装置,该视频处理装置包括:显示模块和接收模块。其中,显示模块,用于在第一屏幕区域显示待编辑图像的编辑界面,该待编辑图像为待编辑视频中的视频帧。接收模块,用于接收用户对显示模块显示的编辑界面的第一输入。显示模块,还用于响应于接收模块接收的第一输入,在第二屏幕区域显示目标预览图像,该目标预览图像是根据待编辑图像和第一输入生成的。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。
在本申请实施例中,电子设备可以先在电子设备的第一屏幕区域显示待编辑视频中的待 编辑图像的编辑界面,然后再根据用户对该编辑界面的第一输入,在电子设备的第二屏幕区域显示根据待编辑图像和第一输入生成的目标预览图像。由于电子设备可以先在第一屏幕区域显示待编辑视频中的待编辑图像的编辑界面,然后再根据用户的输入,在第二屏幕区域显示根据待编辑图像和第一输入生成的目标预览图像,即电子设备可以在不同屏幕区域中,同时显示待编辑图像和对该待编辑图像进行编辑处理后得到的目标预览图像,因此,用户可以直接确定该目标预览图像是否为用户所需求的,而无需触发电子设备播放处理后的待编辑视频,从而可以简化用户操作,减少电子设备对视频进行编辑处理的耗时,如此,可以提高电子设备对视频进行编辑处理的效率。
附图说明
图1是本申请实施例提供的视频处理方法的示意图之一;
图2是本申请实施例提供的视频处理方法的示意图之二;
图3是本申请实施例提供的一种手机的界面的实例示意图之一;
图4是本申请实施例提供的一种手机的界面的实例示意图之二;
图5是本申请实施例提供的一种手机的界面的实例示意图之三;
图6是本申请实施例提供的视频处理方法的示意图之三;
图7是本申请实施例提供的视频处理方法的示意图之四;
图8是本申请实施例提供的一种手机的界面的实例示意图之四;
图9是本申请实施例提供的一种手机的界面的实例示意图之五;
图10是本申请实施例提供的视频处理方法的示意图之五;
图11是本申请实施例提供的一种手机的界面的实例示意图之六;
图12是本申请实施例提供的视频处理装置的结构示意图;
图13是本申请实施例提供的电子设备的结构示意图;
图14是本申请实施例提供的电子设备的硬件示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的视频处理方法、装置、电子设备及介质进行详细地说明。
本申请实施例提供的视频处理方法,可以应用于在编辑视频过程中对其中的部分视频帧进行优化的场景。
本申请实施例中,电子设备可以先在显示屏的一个屏幕区域显示待编辑处理视频中的视频帧的编辑界面,然后再根据用户在该编辑界面中的输入,在对该视频帧进行编辑处理的同时,在该电子设备的另一个屏幕区域显示根据该视频帧和输入生成的预览图像。因此,用户可以直接确定该预览 图像是否为用户所需求的,而无需触发电子设备播放编辑处理后的视频,从而可以减少电子设备对视频进行编辑处理的耗时。
图1示出了本申请实施例提供的一种视频处理方法的流程图。如图1所示,本申请实施例提供的视频处理方法可以包括下述的步骤101至步骤103。
步骤101、视频处理装置在第一屏幕区域显示待编辑图像的编辑界面。
可选地,本申请实施例中,视频处理装置可以包括一个显示屏或多个显示屏。
进一步可选地,本申请实施例中,在视频处理装置包括一个显示屏的情况下,该一个显示屏具体可以为卷轴屏。
本申请实施例中,上述待编辑图像为待编辑视频中的视频帧。
可选地,本申请实施例中,待编辑图像具体可以为待编辑视频中的第一个视频帧,或者最后一个视频帧,或者根据用户输入确定的视频帧。
可选地,本申请实施例中,在显示桌面的应用图标的情况下,视频处理装置可以根据用户对目标应用的应用图标的点击输入,显示目标应用的界面,这样视频处理装置可以根据用户在该界面中的输入,显示待编辑视频的全部视频帧,从而视频处理装置可以根据用户对该全部视频帧中的待编辑图像的点击输入,显示待编辑图像的编辑界面。
其中,目标应用可以为以下任一项:拍摄类应用、短视频交互类应用、视频处理类应用、多媒体文件存储类应用等。该多媒体文件存储类应用具体可以为:“相册”应用。
在一种示例中,在目标应用的界面中包括至少一个视频的标识(例如缩略图),视频处理装置可以根据用户对该至少一个视频中的待编辑视频的标识的点击输入,显示该待编辑视频的全部视频帧。
可以理解,在此示例中,待编辑视频可以是用户预先拍摄得到的视频。
在另一种示例中,在目标应用的界面中包括至少一个多媒体文件的标识,视频处理装置可以根据用户对该至少一个多媒体文件中的至少一个多媒体文件的标识的点击输入,合成得到待编辑视频,并显示该待编辑视频的全部视频帧。
其中,多媒体文件可以为以下至少一项:视频、图像等。
可以理解,在此示例中,待编辑视频也可以是用户触发视频处理装置合成得到的视频。
可选地,本申请实施例中,在视频处理装置包括一个显示屏、且该一个显示屏为卷轴屏的情况下,第一屏幕区域具体可以为:卷轴屏展开后新增的屏幕区域。
其中,视频处理装置可以先控制卷轴屏展开,然后再在展开后新增的第一屏幕区域中显示待编辑图像的编辑界面。
可选地,本申请实施例中,在视频处理装置包括多个显示屏的情况下,第一屏幕区域具体可以为:主显示屏中的屏幕区域。
本申请实施例中,上述编辑界面中包括待编辑图像。
可选地,本申请实施例中,上述编辑界面中可以包括第一窗口,该第一窗口中包括待编辑图像。
可选地,本申请实施例中,结合图1,如图2所示,在上述步骤101之前,本申请实施例提供的视频处理方法还可以包括下述的步骤201至步骤204,并且上述的步骤101具体可以通过下述的步骤101a实现。
步骤201、视频处理装置在第一屏幕区域显示M个对象图像。
本申请实施例中,上述M个对象图像中的每个对象图像分别对应待编辑视频中的一个拍摄对 象,M为正整数。
进一步可选地,本申请实施例中,在显示待编辑视频的全部视频帧的情况下,视频处理装置可以在第一屏幕区域显示M个对象图像,从而视频处理装置可以根据用户对该M个对象图像中的对象图像的输入,显示待编辑图像的编辑界面。
进一步可选地,本申请实施例中,视频处理装置可以先对待编辑视频进行识别,以得到M组图像,每组图像分别对应待编辑视频中的一个拍摄对象,然后再将每组图像中任意一张图像进行裁切,得到一个对象图像,从而可以得到M个对象图像,从而视频处理装置可以在第一屏幕区域显示该M个对象图像。
具体地,拍摄对象可以为以下任一项:人物、动物、食物等。
具体地,视频处理装置可以采用人工智能(Artificial Intelligence,AI)识别方式,对待编辑视频进行识别,以得到与对象特征相匹配的M组图像。
具体地,针对M组图像中的每组图像,进行裁切的图像可以为:该一组图像中的第一个图像,或最后一个图像,或任意一个图像。该第一个图像可以理解为:按照存储时间由远至近排序的第一个图像,该最后一个图像可以理解为:按照存储时间由远至近排序的最后一个图像。
进一步可选地,本申请实施例中,在视频处理装置包括一个显示屏的情况下,视频处理装置可以在该一个显示屏的第一屏幕区域中的第一区域显示第一窗口,并在该一个显示屏的第二区域显示M个对象图像。
其中,第二区域可以为:第一区域的相邻显示区域。
举例说明,以视频处理装置为卷轴屏手机为例进行说明。如图3所示,卷轴屏手机显示待编辑图像的编辑界面(例如界面10),该界面10中包括第一窗口(例如窗口11)和M个对象图像(例如对象图像12、对象图像13和对象图像14),其中,该窗口11中包括待编辑图像,该窗口11显示于卷轴屏手机的显示屏的第一区域(例如区域16),该对象图像12、对象图像13和对象图像14显示于卷轴屏手机的显示屏的第二区域,第二区域与第一区域可以为区域16中的部分区域,该区域16为区域15的相邻显示区域。
进一步可选地,本申请实施例中,在视频处理装置包括多个显示屏的情况下,视频处理装置可以在该多个显示屏中的一个显示屏中显示第一窗口,并在该多个显示屏的另一个显示屏中显示M个对象图像。
步骤202、视频处理装置接收用户对M个对象图像中的第一对象图像的第二输入。
可选地,本申请实施例中,上述第一对象图像可以包括一个图像或多个图像。
本申请实施例中,上述第二输入用于触发视频处理装置显示待编辑视频的视频帧。
可选地,本申请实施例中,第二输入具体可以为用户对第一对象图像的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
本申请实施例中的特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种;本申请实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。
步骤203、视频处理装置响应于第二输入,在第一屏幕区域显示N个第一缩略图。
本申请实施例中,上述N个第一缩略图中的每个第一缩略图为待编辑视频中包括第一拍摄对象的视频帧的缩略图,该第一拍摄对象为第一对象图像对应的拍摄对象,N为正整数。
进一步可选地,本申请实施例中,视频处理装置可以在第一屏幕区域中的的第一屏幕子区域中,显示第二窗口,该第二窗口中包括N个第一缩略图。
举例说明,用户可以对对象图像12、对象图像13和对象图像14中的第一对象图像(例如对象图像13)进行第二输入,以使得视频处理装置可以显示第一拍摄对象(即对象图像13对应的拍摄对象)对应的视频帧的缩略图;如图4所示,在用户进行第二输入之后,视频处理装置可以在区域16中显示第二窗口(例如窗口17),该窗口17中包括N个第一缩略图。
步骤204、视频处理装置接收用户对N个第一缩略图中的第一目标缩略图的第三输入。
可选地,本申请实施例中,上述第三输入具体可以为用户对第一目标缩略图的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
步骤101a、视频处理装置响应于第三输入,在第一屏幕区域显示第一目标缩略图对应的图像的编辑界面。
可以理解,第一目标缩略图为待编辑图像的缩略图。
进一步可选地,本申请实施例中,视频处理装置可以将第一屏幕区域中显示的图像的编辑界面,更新为待编辑图像的编辑界面。
如此可知,由于视频处理装置可以先显示待编辑视频中的M个拍摄对象对应的M个对象图像,再根据用户对该M个对象图像中的第一对象图像的输入,显示包括第一对象图像对应的拍摄对象的视频帧的N个缩略图,即显示较少的缩略图,因此,用户可以快速地从该较少的缩略图中,选择用户需求的第一目标缩略图,以快速触发视频处理装置显示用户需求的待编辑图像的编辑界面,如此,可以提高视频处理装置对视频进行编辑处理的效率。
可选地,本申请实施例中,在上述步骤203之后,本申请实施例提供的视频处理方法还可以包括下述的步骤301和步骤302。
步骤301、视频处理装置接收用户对M个对象图像中的第二对象图像的第四输入。
可选地,本申请实施例中,上述第二对象图像可以包括一个图像或多个图像。
本申请实施例中,上述第四输入用于触发视频处理装置显示待编辑视频中包含第二拍摄对象的视频帧的缩略图。
可选地,本申请实施例中,上述第四输入具体可以为用户对第二对象图像的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
步骤302、视频处理装置响应于第四输入,在第一屏幕区域显示Q个第二缩略图。
本申请实施例中,上述第二缩略图为待编辑视频中包括第二拍摄对象的视频帧的缩略图,该第二拍摄对象为第二对象图像对应的拍摄对象,Q为正整数。
进一步可选地,本申请实施例中,视频处理装置可以将第二窗口中的N个第一缩略图,更新为Q个第二缩略图。
本申请实施例中,由于可能出现N个第一缩略图中不包括用户需求的视频帧的缩略图的情况,因此,用户可以对第二对象图像进行第四输入,以使得视频处理装置可以更新显示的缩略图。
如此可知,由于视频处理装置可以根据用户对第二对象图像的第四输入,显示包括第二拍摄对象的视频帧的Q个第二缩略图,从而用户可以在Q个第二缩略图中查找用户需求的缩略图,而无需在待编辑视频的全部视频帧的缩略图中查找,因此,可以提高视频处理装置对视频进行编辑处理 的效率。
步骤102、视频处理装置接收用户对编辑界面的第一输入。
可选地,本申请实施例中,上述第一输入用于对待编辑图像进行编辑处理。其中,编辑处理包括以下至少一项:删除处理、添加文本处理、添加标记处理、调整图像参数处理。
需要说明的是,上述“删除处理”可以理解为:将图像(即待编辑视频中的视频帧)删除的处理方式。上述“添加文本处理”可以理解为:在图像上添加用户需求的文本(例如用户输入的文本,或用户选择的文本等)的处理方式。上述“添加标记处理”可以理解为:在图像上添加标记符号的处理方式。
进一步可选地,本申请实施例中,上述图像参数可以包括以下至少一项:色彩饱和度、亮度和透明度等。
本申请实施例中,上述第一输入用于触发视频处理装置对待编辑图像进行图像处理。
进一步可选地,本申请实施例中,上述第一输入具体可以为用户在待编辑图像的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
具体地,在第一输入为用户在待编辑图像中的点击输入的情况下,编辑界面中还包括至少一个处理控件,每个处理控件分别对应一种编辑处理,该第一输入具体可以为:用户对该至少一个处理控件中的目标处理控件的点击输入,和/或待编辑图像的输入。
步骤103、视频处理装置响应于第一输入,在第二屏幕区域显示目标预览图像。
可选地,本申请实施例中,上述第二屏幕区域具体可以为:与第一屏幕区域相邻的屏幕区域。
进一步可选地,本申请实施例中,在视频处理装置包括一个显示屏、且该一个显示屏为卷轴屏的情况下,第二屏幕区域具体可以为卷轴屏展开前的屏幕区域。
举例说明,如图5所示,手机包括一个显示屏、且该一个显示屏为卷轴屏,则第一屏幕区域可以为卷轴屏展开后新增的屏幕区域(例如区域18),第二屏幕区域可以为卷轴屏展开前的屏幕区域(例如区域19)。
进一步可选地,本申请实施例中,在视频处理装置包括多个显示屏的情况下,第二屏幕区域具体可以为:其他显示屏(即除主显示屏外的任意一个显示屏)中的屏幕区域。
本申请实施例中,上述目标预览图像是根据待编辑图像和第一输入生成的。
可选地,本申请实施例中,上述目标预览图像具体是根据待编辑图像和第一输入的输入参数生成的。其中,该输入参数可以包括以下至少一项:输入位置、输入轨迹、输入对象等。
具体地,在输入参数包括输入对象的情况下,视频处理装置可以根据第一输入的输入对象(例如目标处理控件),对待编辑图像进行编辑处理,以生成目标预览图像。
示例性地,假设目标处理控件对应调整图像参数处理,则视频处理装置可以根据第一输入的输入对象,对待编辑图像进行调整图像参数处理,以生成调整后的目标预览图像。
具体地,在输入参数包括输入轨迹和输入对象的情况下,视频处理装置可以根据第一输入的输入对象(例如目标处理控件),确定对待编辑图像进行编辑处理的方式,并根据第一输入的输入轨迹,对待编辑图像进行确定的编辑处理的方式,以生成目标预览图像。
示例性地,假设目标处理控件对应添加标记处理,则视频处理装置可以根据第一输入的输入对象,确定对待编辑图像进行添加标记处理,并根据第一输入的输入轨迹,在待编辑图像上添加该输入轨迹对应的标记,以生成目标预览图像。
可选地,本申请实施例中,视频处理装置可以在第二屏幕区域中显示第三窗口,该第三窗口中包括目标预览图像。
可选地,本申请实施例中,结合图1,如图6所示,在上述步骤103之后,本申请实施例提供的视频处理方法还可以包括下述的步骤401。
步骤401、视频处理装置根据目标预览图像和待编辑视频中除待编辑图像外的视频帧,生成目标视频。
进一步可选地,本申请实施例中,视频处理装置可以将目标预览图像和待编辑视频中除待编辑图像外的视频帧进行拼接,以生成目标视频。
可以理解,视频处理装置可以将待编辑视频中的待编辑图像,替换为目标预览图像。
如此可知,由于视频处理装置可以根据目标预览图像和待编辑视频中除待编辑图像外的视频帧,直接得到目标视频,而无需用户进行多次操作,以触发视频处理装置得到目标视频,因此,可以简化用户的操作、且减少耗时。
本申请实施例提供的视频处理方法,视频处理装置可以先在视频处理装置的第一屏幕区域显示待编辑视频中的待编辑图像的编辑界面,然后再根据用户对该编辑界面的第一输入,在视频处理装置的第二屏幕区域显示根据待编辑图像和第一输入生成的目标预览图像。由于视频处理装置可以先在第一屏幕区域显示待编辑视频中的待编辑图像的编辑界面,然后再根据用户的输入,在第二屏幕区域显示根据待编辑图像和第一输入生成的目标预览图像,即视频处理装置可以在不同屏幕区域中,同时显示待编辑图像和对该待编辑图像进行编辑处理后得到的目标预览图像,因此,用户可以直接确定该目标预览图像是否为用户所需求的,而无需触发视频处理装置播放处理后的待编辑视频,因此,可以简化用户操作,减少视频处理装置对视频进行编辑处理的耗时,如此,可以提高视频处理装置对视频进行编辑处理的效率。
可选地,本申请实施例中,结合图1,如图7所示,在上述步骤101之前,本申请实施例提供的视频处理方法应用于具有卷轴屏的视频处理装置,视频处理方法还可以包括下述的步骤501至步骤503。
步骤501、在相册界面中显示L个第三缩略图的情况下,视频处理装置接收用户对L个第三缩略图中的T个第三目标缩略图的第五输入。
可以理解,上述目标应用为:“相册”应用。
可选地,本申请实施例中,在显示相册界面的情况下,视频处理装置可以根据用户在该相册界面中的按压输入,显示L个第三缩略图。
在一种示例中,在相册界面中包括“视频剪辑”控件,从而视频处理装置可以根据用户对该“视频剪辑”控件的点击输入,显示第一界面,该第一界面中包括L个第三缩略图。
举例说明,如图8中的(A)所示,视频处理装置显示相册界面(例如界面20),该界面20中包括“视频剪辑”控件,从而用户可以对该“视频剪辑”控件进行点击输入;如图8中的(B)所示,在用户进行点击输入之后,视频处理装置可以显示第一界面(例如界面21),该界面21中包括L个第三缩略图。
在另一种示例中,在相册界面中包括至少一个分组标识,每个分组标识分别对应一组多媒体文件,从而视频处理装置可以根据用户对该至少一个分组标识中的目标分组标识的点击输入,显示第一界面,该第一界面中包括L个第三缩略图。
举例说明,结合图8中的(A),界面20中还包括至少一个分组标识(例如“定格时光1”分 组标识、“定格时光2”分组标识和“美好的一天”分组标识),从而用户可以对该“美好的一天”分组标识进行点击输入;如图9所示,在用户进行点击输入之后,视频处理装置可以显示第一界面(例如界面22),该界面22中包括L个第三缩略图。
本申请实施例中,每个第三缩略图用于指示一个多媒体文件,L、T均为正整数。
可以理解,L>T。
本申请实施例中,上述第五输入用于触发视频处理装置选中多媒体文件。
进一步可选地,本申请实施例中,上述第五输入具体可以为:用户依次对T个多媒体文件的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
步骤502、在第三目标缩略图的数量大于预设数量的情况下,视频处理装置响应于第五输入,根据第三目标缩略图的数量控制卷轴屏展开至目标状态,并在展开后的卷轴屏中显示T个第三目标缩略图。
进一步可选地,本申请实施例中,上述目标状态具体可以为:卷轴屏展开至目标尺寸的状态。
本申请实施例中,若第三目标缩略图的数量T大于预设数量,则可以认为第三目标缩略图的数量较大,显示屏可能不能完全显示T个第三目标缩略图,因此,视频处理装置可以按照第三目标缩略图的数量T,控制卷轴屏展开至目标尺寸,并在展开后的卷轴屏中显示T个第三目标缩略图。
进一步可选地,本申请实施例中,视频处理装置响应于第五输入,可以选中T个第三目标缩略图指示的多媒体文件,并按照第三目标缩略图的数量T,控制卷轴屏展开至目标尺寸。
进一步可选地,本申请实施例中,视频处理装置可以先根据第三目标缩略图的数量T,采用目标算法,计算得到目标尺寸,然后再控制卷轴屏展开至该目标尺寸,以展开至目标状态。
具体地,目标算法具体可以为:
m=floor((n-X)/7)×25%
其中,m为目标尺寸(即展开比例),floor为向下取整函数,X为预设值,n为选中的第三目标缩略图的数量。
进一步可选地,本申请实施例中,在第三目标缩略图的数量T小于预设数量的情况下,视频处理装置响应于第五输入,可以选中T个第三缩略图指示的多媒体文件。
本申请实施例中,若第三目标缩略图的数量T小于预设数量,则可以认为第三目标缩略图的数量较小,显示屏可以完全显示T个第三目标缩略图,因此,视频处理装置可以选中该T个第三目标缩略图指示的多媒体文件,而并不控制卷轴屏展开。
可选地,本申请实施例中,在上述步骤502中的“在展开后的卷轴屏中显示T个第三目标缩略图”之前,本申请实施例提供的视频处理方法还可以包括下述的步骤504,并且上述步骤502具体可以通过下述的步骤502a实现。
步骤504、在第三目标缩略图的数量大于预设数量的情况下,视频处理装置响应于第五输入,根据第三目标缩略图的数量控制卷轴屏展开至目标状态,并在目标状态为卷轴屏的最大展开状态的情况下,视频处理装置根据第三目标缩略图的数量调节第三目标缩略图的尺寸。
可以理解,在目标状态为卷轴屏的最大展开状态的情况下,目标尺寸即为卷轴屏的最大展开尺寸。
可选地,本申请实施例中,视频处理装置可以根据第三目标缩略图的数量T和预设数量间的差值,确定第一比例,并按照第一比例,调小第三目标缩略图的显示尺寸。
具体地,视频处理装置中可以预存有至少一个关联关系,每个关联关系分别为一个值和一个比例的关联关系,从而视频处理装置可以根据第三目标缩略图的数量T和预设数量间的差值,从至少一个值中确定出对应的目标值,并将该目标值对应的一个比例,确定为第一比例。
进一步可选地,本申请实施例中,第一比例小于或等于预设比例。其中,预设比例具体可以为:视频处理装置设定的缩略图大小的最小比例。
步骤502a、视频处理装置在展开后的卷轴屏中显示调节后的T个第三目标缩略图。
如此可知,由于在目标尺寸为卷轴屏的最大展开尺寸的情况下,视频处理装置可以调小T个第三目标缩略图的显示尺寸,并显示调小后的T个第三目标缩略图,因此,可以避免完全展开的卷轴屏无法显示T个第三目标缩略图的情况,从而用户可以直接查阅调小后的T个第三目标缩略图是否为用户需求的多媒体文件的缩略图,而无需用户进行多次操作,因此,可以简化用户的操作,且减少耗时。
步骤503、视频处理装置基于T个第三目标缩略图指示的T个多媒体文件,生成待编辑视频。
可选地,本申请实施例中,视频处理装置可以将T个多媒体文件中的第i个多媒体文件和第i+1个多媒体文件进行拼接,以得到待编辑视频。其中,i为正整数。
可以理解,i≤T。
具体地,第i个多媒体文件具体可以为:按照存储时间由远至近排序的第i个多媒体文件,或者,按照用户输入时间由远至近排序的第i个多媒体文件。
如此可知,由于视频处理装置可以根据用户对T个第三目标缩略图的第五输入,按照第三目标缩略图的数量T,控制卷轴屏展开至目标尺寸,并根据该T个第三目标缩略图指示的多媒体文件,得到待编辑视频,因此,用户可以在展开的卷轴屏中,直接查阅该T个第三目标缩略图是否为用户需求的多媒体文件的缩略图,以得到用户需求的待编辑视频,而无需用户进行多次操作,因此,可以提高得到用户需求的视频的效率。
可选地,本申请实施例中,结合图1,如图10所示,在上述步骤101之后,本申请实施例提供的视频处理方法还可以包括下述的步骤601。
步骤601、视频处理装置在第二屏幕区域显示待编辑视频的进度条,并在待编辑视频的进度条上显示待编辑图像的第一标识。
本申请实施例中,上述第一标识用于指示待编辑图像在待编辑视频中的位置信息。
可选地,本申请实施例中,视频处理装置可以采用目标标记方式,在待编辑视频的进度条上标记待编辑图像。
其中,目标标记方式可以包括以下至少一项:虚线框标记方式、高亮标记方式、彩色标记方式、灰度标记方式、以预设透明度标记方式以及闪烁标记方式等。
举例说明,如图11所示,在用户对N个第一缩略图中的第一目标缩略图进行第三输入之后,视频处理装置可以在待编辑视频的进度条(例如进度条23)上标记待编辑图像(例如采用彩色标记方式标记待编辑图像,图中是以阴影框进行示意的),并在第一屏幕区域中显示第一窗口(例如窗口24),该窗口24中包括待编辑图像。
如此可知,由于视频处理装置可以在第二屏幕区域显示待编辑视频的进度条,并在该进度条上显示待编辑图像的第一标识,即视频处理装置可以在待编辑视频的进度条上标记待编辑图像在待编辑视频中对应的位置,因此,用户可以快速地从待编辑视频中查找待编辑图像。
图12示出了本申请实施例中涉及的视频处理装置的一种可能的结构示意图,该视频处理装置 具有卷轴屏。如图12所示,视频处理装置60可以包括:显示模块61和接收模块62。
其中,显示模块61,用于在第一屏幕区域显示待编辑图像的编辑界面,待编辑图像为待编辑视频中的视频帧。接收模块62,用于接收用户对显示模块61显示的编辑界面的第一输入。上述显示模块61,还用于响应于接收模块62接收的第一输入,在第二屏幕区域显示目标预览图像,目标预览图像是根据待编辑图像和第一输入生成的。
本申请实施例提供的视频处理装置,由于视频处理装置可以先在第一屏幕区域显示待编辑视频中的待编辑图像的编辑界面,然后再根据用户的输入,在第二屏幕区域显示根据待编辑图像和第一输入生成的目标预览图像,即视频处理装置可以在不同屏幕区域中,同时显示待编辑图像和对该待编辑图像进行编辑处理后得到的目标预览图像,因此,用户可以直接确定该目标预览图像是否为用户所需求的,而无需触发视频处理装置播放处理后的待编辑视频,从而可以简化用户操作,减少视频处理装置对视频进行编辑处理的耗时,如此,可以提高视频处理装置对视频进行编辑处理的效率。
在一种可能的实现方式中,第一输入用于对待编辑图像进行编辑处理;其中,编辑处理包括以下至少一项:删除处理、添加文本处理、添加标记处理、调整图像参数处理。
在一种可能的实现方式中,上述显示模块61,还用于在第一屏幕区域显示M个对象图像,每个对象图像分别对应待编辑视频中的一个拍摄对象,M为正整数;上述接收模块62,还用于接收用户对显示模块61显示的M个对象图像中的第一对象图像的第二输入;上述显示模块61,还用于响应于接收模块62接收的第二输入,在第一屏幕区域显示N个第一缩略图,第一缩略图为待编辑视频中包括第一拍摄对象的视频帧的缩略图,第一拍摄对象为第一对象图像对应的拍摄对象,N为正整数;上述接收模块62,还用于接收用户对显示模块61显示的N个第一缩略图中的第一目标缩略图的第三输入;显示模块61,具体用于响应于接收模块62接收的第三输入,在第一屏幕区域显示第一目标缩略图对应的图像的编辑界面。
如此可知,由于视频处理装置可以先显示待编辑视频中的M个拍摄对象对应的M个对象图像,再根据用户对该M个对象图像中的第一对象图像的输入,显示包括第一对象图像对应的拍摄对象的视频帧的N个缩略图,即显示较少的缩略图,因此,用户可以快速地从该较少的缩略图中,选择用户需求的第一目标缩略图,以快速触发视频处理装置显示用户需求的待编辑图像的编辑界面,如此,可以提高视频处理装置对视频进行编辑处理的效率。
在一种可能的实现方式中,上述接收模块62,还用于接收用户对M个对象图像中的第二对象图像的第四输入;上述显示模块61,还用于响应于接收模块62接收的第四输入,在第一屏幕区域显示Q个第二缩略图,第二缩略图为待编辑视频中包括第二拍摄对象的视频帧的缩略图,第二拍摄对象为第二对象图像对应的拍摄对象,Q为正整数。
如此可知,由于视频处理装置可以根据用户对第二对象图像的第四输入,显示包括第二拍摄对象的视频帧的Q个第二缩略图,从而用户可以在Q个第二缩略图中查找用户需求的缩率图,而无需在待编辑视频的全部视频帧的缩略图中查找,因此,可以提高视频处理装置对视频进行编辑处理的效率。
在一种可能的实现方式中,视频处理装置60具有卷轴屏,且该视频处理装置60还包括:控制模块63。上述接收模块62,还用于在相册界面中显示L个第三缩略图的情况下,接收用户对L个第三缩略图中的T个第三目标缩略图的第五输入,每个第三缩略图用于指示一个多媒体文件,L、T均为正整数;上述控制模块63,用于在第三目标缩略图的数量大于预设数量的情况下,响应于接收模块62接收的第五输入,根据第三目标缩略图数量控制卷轴屏展开至目标状态;上述显示模 块61,还用于在控制模块63控制展开后的卷轴屏中显示T个第三目标缩略图;上述控制模块63,还用于基于T个第三目标缩略图指示的T个多媒体文件,生成待编辑视频。
如此可知,由于视频处理装置可以根据用户对T个第三目标缩略图的第五输入,按照第三目标缩略图的数量T,控制卷轴屏展开至目标尺寸,并根据该T个第三目标缩略图指示的多媒体文件,得到待编辑视频,因此,用户可以在展开的卷轴屏中,直接查阅该T个第三目标缩略图是否为用户需求的多媒体文件的缩略图,以得到用户需求的待编辑视频,而无需用户进行多次操作,因此,可以提高得到用户需求的视频的效率。
在一种可能的实现方式中,上述控制模块63,还用于在目标状态为卷轴屏的最大展开状态的情况下,根据第三目标缩略图的数量调节第三目标缩略图的尺寸。
如此可知,由于在目标尺寸为卷轴屏的最大展开尺寸的情况下,视频处理装置可以调小T个第三目标缩略图的显示尺寸,并显示调小后的T个第三目标缩略图,因此,可以避免完全展开的卷轴屏无法显示T个第三目标缩略图的情况,从而用户可以直接查阅调小后的T个第三目标缩略图是否为用户需求的多媒体文件的缩略图,而无需用户进行多次操作,因此,可以简化用户的操作,且减少耗时。
在一种可能的实现方式中,视频处理装置60具有卷轴屏,第一屏幕区域为卷轴屏展开后新增的屏幕区域,第二屏幕区域为卷轴屏展开前的屏幕区域。
在一种可能的实现方式中,上述显示模块61,还用于在第二屏幕区域显示待编辑视频的进度条,并在待编辑视频的进度条上显示待编辑图像的第一标识,第一标识用于指示待编辑图像在待编辑视频中的位置信息。
如此可知,由于视频处理装置可以在第二屏幕区域显示待编辑视频的进度条,并在该进度条上显示待编辑图像的第一标识,即视频处理装置可以在待编辑视频的进度条上标记待编辑图像在待编辑视频中对应的位置,因此,用户可以快速地从待编辑视频中查找待编辑图像。
在一种可能的实现方式中,上述控制模块63,还用于根据目标预览图像和待编辑视频中除待编辑图像外的视频帧,生成目标视频。
如此可知,由于视频处理装置可以根据目标预览图像和待编辑视频中除待编辑图像外的视频帧,直接得到目标视频,而无需用户进行多次操作,以触发视频处理装置得到目标视频,因此,可以简化用户的操作、且减少耗时。
本申请实施例中的视频处理装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性地,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(Augmented Reality,AR)/虚拟现实(Virtual Reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、上网本或者个人数字助理(Personal Digital Assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(Personal Computer,PC)、电视机(Television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的视频处理装置可以为具有操作***的装置。该操作***可以为安卓(Android)操作***,可以为iOS操作***,还可以为其他可能的操作***,本申请实施例不作具体限定。
本申请实施例提供的视频处理装置能够实现图1至图12的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,本申请实施例中,如图13所示,本申请实施例还提供一种电子设备70,包括处理器71,存储器72,存储在存储器72上并可在所述处理器71上运行的程序或指令,该程序或指令被处理器71执行时实现上述视频处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图14为实现本申请实施例的一种电子设备的硬件结构示意图,该电子设备包括目标显示芯片。
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理***与处理器110逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。图14中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,显示单元106,用于在第一屏幕区域显示待编辑图像的编辑界面,待编辑图像为待编辑视频中的视频帧。
用户输入单元107,用于接收用户对编辑界面的第一输入。
显示单元106,还用于响应于第一输入,在第二屏幕区域显示目标预览图像,目标预览图像是根据待编辑图像和第一输入生成的。
本申请实施例提供的电子设备,由于电子设备可以先在第一屏幕区域显示待编辑视频中的待编辑图像的编辑界面,然后再根据用户的输入,在第二屏幕区域显示根据待编辑图像和第一输入生成的目标预览图像,即电子设备可以在不同屏幕区域中,同时显示待编辑图像和对该待编辑图像进行编辑处理后得到的目标预览图像,因此,用户可以直接确定该目标预览图像是否为用户所需求的,而无需触发电子设备播放处理后的待编辑视频,从而可以简化用户操作,减少电子设备对视频进行编辑处理的耗时,如此,可以提高电子设备对视频进行编辑处理的效率。
可选地,本申请实施例中,显示单元106,还用于在第一屏幕区域显示M个对象图像,每个对象图像分别对应待编辑视频中的一个拍摄对象,M为正整数。
用户输入单元107,还用于接收用户对M个对象图像中的第一对象图像的第二输入。
显示单元106,还用于响应于第二输入,在第一屏幕区域显示N个第一缩略图,第一缩略图为待编辑视频中包括第一拍摄对象的视频帧的缩略图,第一拍摄对象为第一对象图像对应的拍摄对象,N为正整数。
用户输入单元107,还用于接收用户对N个第一缩略图中的第一目标缩略图的第三输入。
显示单元106,具体用于响应于第三输入,在第一屏幕区域显示第一目标缩略图对应的待编辑图像的编辑界面。
如此可知,由于电子设备可以先显示待编辑视频中的M个拍摄对象对应的M个对象图像,再根据用户对该M个对象图像中的第一对象图像的输入,显示包括第一对象图像对应的拍摄对象的视频帧的N个缩略图,即显示较少的缩略图,因此,用户可以快速地从该较少的缩略图中,选择用户需求的第一目标缩略图,以快速触发电子设备显示用户需求的待编辑图像的编辑界面,如此,可以提高电子设备对视频进行编辑处理的效率。
可选地,本申请实施例中,用户输入单元107,还用于接收用户对M个对象图像中的第二对 象图像的第四输入。
显示单元106,还用于响应于第四输入,在第一屏幕区域显示Q个第二缩略图,第二缩略图为待编辑视频中包括第二拍摄对象的视频帧的缩略图,第二拍摄对象为第二对象图像对应的拍摄对象,Q为正整数。
如此可知,由于电子设备可以根据用户对第二对象图像的第四输入,显示包括第二拍摄对象的视频帧的Q个第二缩略图,从而用户可以在Q个第二缩略图中查找用户需求的缩率图,而无需在待编辑视频的全部视频帧的缩略图中查找,因此,可以提高电子设备对视频进行编辑处理的效率。
可选地,本申请实施例中,用户输入单元107,还用于在相册界面中显示L个第三缩略图的情况下,接收用户对L个第三缩略图中的T个第三目标缩略图的第五输入,每个第三缩略图用于指示一个多媒体文件,L、T均为正整数。
处理器110,用于在第三目标缩略图的数量大于预设数量的情况下,响应于第五输入,根据第三目标缩略图数量控制卷轴屏展开至目标状态;
显示单元106,还用于在展开后的卷轴屏中显示T个第三目标缩略图。
处理器110,还用于基于T个第三目标缩略图指示的T个多媒体文件,生成待编辑视频。
如此可知,由于电子设备可以根据用户对T个第三目标缩略图的第五输入,按照第三目标缩略图的数量T,控制卷轴屏展开至目标尺寸,并根据该T个第三目标缩略图指示的多媒体文件,得到待编辑视频,因此,用户可以在展开的卷轴屏中,直接查阅该T个第三目标缩略图是否为用户需求的多媒体文件的缩略图,以得到用户需求的待编辑视频,而无需用户进行多次操作,因此,可以提高得到用户需求的视频的效率。
可选地,本申请实施例中,处理器110,还用于在目标状态为卷轴屏的最大展开状态的情况下,根据第三目标缩略图的数量调节第三目标缩略图的尺寸。
如此可知,由于在目标尺寸为卷轴屏的最大展开尺寸的情况下,电子设备可以调小T个第三目标缩略图的显示尺寸,并显示调小后的T个第三目标缩略图,因此,可以避免完全展开的卷轴屏无法显示T个第三目标缩略图的情况,从而用户可以直接查阅调小后的T个第三目标缩略图是否为用户需求的多媒体文件的缩略图,而无需用户进行多次操作,因此,可以简化用户的操作,且减少耗时。
可选地,本申请实施例中,显示单元106,还用于在第二屏幕区域显示待编辑视频的进度条,并在待编辑视频的进度条上显示待编辑图像的第一标识,第一标识用于指示待编辑图像在待编辑视频中的位置信息。
如此可知,由于电子设备可以在第二屏幕区域显示待编辑视频的进度条,并在该进度条上显示待编辑图像的第一标识,即电子设备可以在待编辑视频的进度条上标记待编辑图像在待编辑视频中对应的位置,因此,用户可以快速地从待编辑视频中查找待编辑图像。
可选地,本申请实施例中,处理器110,还用于根据目标预览图像和待编辑视频中除待编辑图像外的视频帧,生成目标视频。
如此可知,由于电子设备可以根据目标预览图像和待编辑视频中除待编辑图像外的视频帧,直接得到目标视频,而无需用户进行多次操作,以触发电子设备得到目标视频,因此,可以简化用户的操作、且减少耗时。
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置 (如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072中的至少一种。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作***、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器109可以包括易失性存储器或非易失性存储器,或者,存储器109可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch Link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器109包括但不限于这些和任意其它适合类型的存储器。
处理器110可包括一个或多个处理单元;可选地,本申请实施例中,处理器110集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作***、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述视频处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述视频处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为***级芯片、***芯片、芯片***或片上***芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述视频处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置 中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (23)

  1. 一种视频处理方法,所述方法包括:
    在第一屏幕区域显示待编辑图像的编辑界面,所述待编辑图像为待编辑视频中的视频帧;
    接收用户对所述编辑界面的第一输入;
    响应于所述第一输入,在第二屏幕区域显示目标预览图像,所述目标预览图像是根据所述待编辑图像和所述第一输入生成的。
  2. 根据权利要求1所述的方法,其中,所述第一输入用于对所述待编辑图像进行编辑处理;
    其中,所述编辑处理包括以下至少一项:删除处理、添加文本处理、添加标记处理、调整图像参数处理。
  3. 根据权利要求1所述的方法,其中,所述方法还包括:
    在所述第一屏幕区域显示M个对象图像,每个对象图像分别对应所述待编辑视频中的一个拍摄对象,M为正整数;
    接收用户对所述M个对象图像中的第一对象图像的第二输入;
    响应于所述第二输入,在所述第一屏幕区域显示N个第一缩略图,所述第一缩略图为所述待编辑视频中包括第一拍摄对象的视频帧的缩略图,所述第一拍摄对象为所述第一对象图像对应的拍摄对象,N为正整数;
    接收用户对所述N个第一缩略图中的第一目标缩略图的第三输入;
    所述在第一屏幕区域显示待编辑图像的编辑界面,包括:
    响应于所述第三输入,在所述第一屏幕区域显示所述第一目标缩略图对应的图像的编辑界面。
  4. 根据权利要求3所述的方法,其中,所述在所述第一屏幕区域显示N个第一缩略图之后,所述方法还包括:
    接收用户对所述M个对象图像中的第二对象图像的第四输入;
    响应于所述第四输入,在所述第一屏幕区域显示Q个第二缩略图,所述第二缩略图为所述待编辑视频中包括第二拍摄对象的视频帧的缩略图,所述第二拍摄对象为所述第二对象图像对应的拍摄对象,Q为正整数。
  5. 根据权利要求1所述的方法,其中,应用于具有卷轴屏的视频处理装置,所述在第一屏幕区域显示待编辑图像的编辑界面之前,所述方法还包括:
    在相册界面中显示L个第三缩略图的情况下,接收用户对所述L个第三缩略图中的T个第三目标缩略图的第五输入,每个第三缩略图用于指示一个多媒体文件,L、T均为正整数;
    在所述第三目标缩略图的数量大于预设数量的情况下,响应于所述第五输入,根据所述第三目标缩略图的数量控制所述卷轴屏展开至目标状态,并在展开后的卷轴屏中显示所述T个第三目标缩略图;
    基于所述T个第三目标缩略图指示的T个多媒体文件,生成待编辑视频。
  6. 根据权利要求5所述的方法,其中,在所述目标状态为所述卷轴屏的最大展开状态的情况下,所述在展开后的卷轴屏中显示所述T个第三目标缩略图之前,所述方法还包括:
    根据所述第三目标缩略图的数量调节所述第三目标缩略图的尺寸。
  7. 根据权利要求1所述的方法,其中,应用于具有卷轴屏的视频处理装置,所述第一屏 幕区域为所述卷轴屏展开后新增的屏幕区域,所述第二屏幕区域为所述卷轴屏展开前的屏幕区域。
  8. 根据权利要求1所述的方法,其中,所述方法还包括:
    在所述第二屏幕区域显示所述待编辑视频的进度条,并在所述待编辑视频的进度条上显示所述待编辑图像的第一标识,所述第一标识用于指示所述待编辑图像在所述待编辑视频中的位置信息。
  9. 根据权利要求1所述的方法,其中,所述在第二屏幕区域显示目标预览图像之后,所述方法还包括:
    根据所述目标预览图像和所述待编辑视频中除所述待编辑图像外的视频帧,生成目标视频。
  10. 一种视频处理装置,所述视频处理装置包括:显示模块和接收模块;
    所述显示模块,用于在第一屏幕区域显示待编辑图像的编辑界面,所述待编辑图像为待编辑视频中的视频帧;
    所述接收模块,用于接收用户对所述显示模块显示的所述编辑界面的第一输入;
    所述显示模块,还用于响应于所述接收模块接收的所述第一输入,在第二屏幕区域显示目标预览图像,所述目标预览图像是根据所述待编辑图像和所述第一输入生成的。
  11. 根据权利要求10所述的视频处理装置,其中,所述第一输入用于对所述待编辑图像进行编辑处理;
    其中,所述编辑处理包括以下至少一项:删除处理、添加文本处理、添加标记处理、调整图像参数处理。
  12. 根据权利要求10所述的视频处理装置,其中,
    所述显示模块,还用于在所述第一屏幕区域显示M个对象图像,每个对象图像分别对应所述待编辑视频中的一个拍摄对象,M为正整数;
    所述接收模块,还用于接收用户对所述显示模块显示的所述M个对象图像中的第一对象图像的第二输入;
    所述显示模块,还用于响应于所述接收模块接收的所述第二输入,在所述第一屏幕区域显示N个第一缩略图,所述第一缩略图为所述待编辑视频中包括第一拍摄对象的视频帧的缩略图,所述第一拍摄对象为所述第一对象图像对应的拍摄对象,N为正整数;
    所述接收模块,还用于接收用户对所述显示模块显示的所述N个第一缩略图中的第一目标缩略图的第三输入;
    所述显示模块,具体用于响应于所述接收模块接收的所述第三输入,在所述第一屏幕区域显示所述第一目标缩略图对应的所述图像的编辑界面。
  13. 根据权利要求12所述的视频处理装置,其中,
    所述接收模块,还用于接收用户对所述M个对象图像中的第二对象图像的第四输入;
    所述显示模块,还用于响应于所述接收模块接收的所述第四输入,在所述第一屏幕区域显示Q个第二缩略图,所述第二缩略图为所述待编辑视频中包括第二拍摄对象的视频帧的缩略图,所述第二拍摄对象为所述第二对象图像对应的拍摄对象,Q为正整数。
  14. 根据权利要求10所述的视频处理装置,其中,所述视频处理装置具有卷轴屏,所述视频处理装置还包括:控制模块;
    所述接收模块,还用于在相册界面中显示L个第三缩略图的情况下,接收用户对所述L个第三缩略图中的T个第三目标缩略图的第五输入,每个第三缩略图用于指示一个多媒体文件,L、T均为正整数;
    所述控制模块,用于在所述第三目标缩略图的数量大于预设数量的情况下,响应于所述接收模块接收的所述第五输入,根据所述第三目标缩略图的数量控制所述卷轴屏展开至目标状态;
    所述显示模块,还用于在所述控制模块控制展开后的卷轴屏中显示所述T个第三目标缩略图;
    所述控制模块,还用于基于所述T个第三目标缩略图指示的T个多媒体文件,生成待编辑视频。
  15. 根据权利要求14所述的视频处理装置,其中,
    所述控制模块,还用于在所述目标状态为所述卷轴屏的最大展开状态的情况下,根据所述第三目标缩略图的数量调节所述第三目标缩略图的尺寸。
  16. 根据权利要求10所述的视频处理装置,其中,所述视频处理装置具有卷轴屏,所述第一屏幕区域为所述卷轴屏展开后新增的屏幕区域,所述第二屏幕区域为所述卷轴屏展开前的屏幕区域。
  17. 根据权利要求10所述的视频处理装置,其中,
    所述显示模块,还用于在所述第二屏幕区域显示所述待编辑视频的进度条,并在所述待编辑视频的进度条上显示所述待编辑图像的第一标识,所述第一标识用于指示所述待编辑图像在所述待编辑视频中的位置信息。
  18. 根据权利要求10所述的视频处理装置,其中,
    所述控制模块,还用于根据所述目标预览图像和所述待编辑视频中除所述待编辑图像外的视频帧,生成目标视频。
  19. 一种电子设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至9中任一项所述的视频处理方法的步骤。
  20. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至9中任一项所述的视频处理方法的步骤。
  21. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至9中任一项所述的视频处理方法的步骤。
  22. 一种计算机程序产品,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如权利要求1至9中任一项所述的视频处理方法的步骤。
  23. 一种电子设备,所述电子设备被配置成用于执行如权利要求1至9中任一项所述的视频处理方法的步骤。
PCT/CN2022/136533 2021-12-06 2022-12-05 视频处理方法、装置、电子设备及介质 WO2023103949A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111478316.8 2021-12-06
CN202111478316.8A CN114302009A (zh) 2021-12-06 2021-12-06 视频处理方法、装置、电子设备及介质

Publications (1)

Publication Number Publication Date
WO2023103949A1 true WO2023103949A1 (zh) 2023-06-15

Family

ID=80966389

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/136533 WO2023103949A1 (zh) 2021-12-06 2022-12-05 视频处理方法、装置、电子设备及介质

Country Status (2)

Country Link
CN (1) CN114302009A (zh)
WO (1) WO2023103949A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114302009A (zh) * 2021-12-06 2022-04-08 维沃移动通信有限公司 视频处理方法、装置、电子设备及介质
CN115334242B (zh) * 2022-08-19 2024-06-18 维沃移动通信有限公司 视频录制方法、装置、电子设备及介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080247726A1 (en) * 2007-04-04 2008-10-09 Nhn Corporation Video editor and method of editing videos
CN111159983A (zh) * 2019-12-31 2020-05-15 维沃移动通信有限公司 一种编辑方法及电子设备
CN112367551A (zh) * 2020-10-30 2021-02-12 维沃移动通信有限公司 视频编辑的方法及装置、电子设备和可读存储介质
CN112836086A (zh) * 2020-12-31 2021-05-25 维沃移动通信有限公司 一种视频处理方法、装置和电子设备
CN112887794A (zh) * 2021-01-26 2021-06-01 维沃移动通信有限公司 视频剪辑方法及装置
CN114302009A (zh) * 2021-12-06 2022-04-08 维沃移动通信有限公司 视频处理方法、装置、电子设备及介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111612873B (zh) * 2020-05-29 2023-07-14 维沃移动通信有限公司 Gif图片生成方法、装置及电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080247726A1 (en) * 2007-04-04 2008-10-09 Nhn Corporation Video editor and method of editing videos
CN111159983A (zh) * 2019-12-31 2020-05-15 维沃移动通信有限公司 一种编辑方法及电子设备
CN112367551A (zh) * 2020-10-30 2021-02-12 维沃移动通信有限公司 视频编辑的方法及装置、电子设备和可读存储介质
CN112836086A (zh) * 2020-12-31 2021-05-25 维沃移动通信有限公司 一种视频处理方法、装置和电子设备
CN112887794A (zh) * 2021-01-26 2021-06-01 维沃移动通信有限公司 视频剪辑方法及装置
CN114302009A (zh) * 2021-12-06 2022-04-08 维沃移动通信有限公司 视频处理方法、装置、电子设备及介质

Also Published As

Publication number Publication date
CN114302009A (zh) 2022-04-08

Similar Documents

Publication Publication Date Title
WO2023103949A1 (zh) 视频处理方法、装置、电子设备及介质
WO2023155885A1 (zh) 图标整理方法、装置和电子设备
WO2024037418A1 (zh) 显示方法、装置、电子设备及可读存储介质
CN112269522A (zh) 图像处理方法、装置、电子设备和可读存储介质
WO2023083158A1 (zh) 文本选择方法、文本选择装置和电子设备
WO2021233291A1 (zh) 截屏方法、装置和电子设备
WO2024061285A1 (zh) 视频播放方法和装置
WO2024001966A1 (zh) 图标管理方法和图标管理装置
WO2023174328A1 (zh) 屏幕控制方法、装置、电子设备及存储介质
WO2023155858A1 (zh) 文档编辑方法及其装置
WO2023185701A1 (zh) 一种显示方法及其装置、电子设备和可读存储介质
WO2023155874A1 (zh) 应用图标管理方法、装置和电子设备
WO2023093669A1 (zh) 视频拍摄方法、装置、电子设备及存储介质
WO2022247830A1 (zh) 图片管理方法、装置及电子设备
CN115729544A (zh) 桌面组件生成方法、装置、电子设备和可读存储介质
CN115437736A (zh) 一种笔记记录方法和装置
CN115576463A (zh) 后台应用的管理方法、装置、电子设备及介质
CN115454365A (zh) 图片处理方法、装置、电子设备及介质
CN113139367A (zh) 文档生成方法、装置和电子设备
CN115278378B (zh) 信息显示方法、信息显示装置、电子设备和存储介质
CN114519859A (zh) 文本识别方法、装置、电子设备及介质
CN115278378A (zh) 信息显示方法、信息显示装置、电子设备和存储介质
CN114390205A (zh) 拍摄方法、装置和电子设备
CN117312595A (zh) 图片显示方法和装置
CN117311885A (zh) 图片查看方法、装置

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: 22903371

Country of ref document: EP

Kind code of ref document: A1