WO2023061414A1 - 一种文件生成方法、装置及电子设备 - Google Patents

一种文件生成方法、装置及电子设备 Download PDF

Info

Publication number
WO2023061414A1
WO2023061414A1 PCT/CN2022/124926 CN2022124926W WO2023061414A1 WO 2023061414 A1 WO2023061414 A1 WO 2023061414A1 CN 2022124926 W CN2022124926 W CN 2022124926W WO 2023061414 A1 WO2023061414 A1 WO 2023061414A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
video
input
file
thumbnail
Prior art date
Application number
PCT/CN2022/124926
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 WO2023061414A1 publication Critical patent/WO2023061414A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support

Definitions

  • the present application belongs to the technical field of video processing, and in particular relates to a video-based file generation method, device and electronic equipment.
  • the purpose of the embodiments of the present application is to provide a file generation method, device, and electronic device, which can solve the problem of cumbersome operations in the related art when intercepting part of the video or image in the video.
  • the embodiment of the present application provides a method for generating a file, wherein the method includes:
  • a target file In response to the first input, output a target file, the target file includes a target video frame, and the target video frame is a video image frame corresponding to the target thumbnail.
  • the embodiment of the present application provides a file generating device, wherein the device includes:
  • the first receiving module is configured to receive the user's first input of target thumbnails in at least two video image thumbnails, the at least two video image thumbnails are thumbnails of at least two video image frames in the first video Sketch map;
  • the first output module is configured to output a target file in response to the first input, the target file includes a target video frame, and the target video frame is a video image frame corresponding to the target thumbnail.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when 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 non-volatile storage medium, and the program product is executed by at least one processor to implement the computer program product described in the first aspect. method steps.
  • the embodiment of the present application provides a device for generating a file, and the device is configured to execute the method as described in the first aspect.
  • the first input from the user on target thumbnails in at least two video image thumbnails is received, and the at least two video image thumbnails are thumbnails of at least two video image frames in the first video ;
  • output a target file the target file includes a target video frame, and the target video frame is a video image frame corresponding to the target thumbnail.
  • the user can determine and output the target file including the video image frame corresponding to the above-mentioned target thumbnail by first inputting the target thumbnail in at least two video image thumbnails corresponding to the first video, Therefore, it is convenient to intercept video clips or images from the first video, thus solving the problem of cumbersome operations in the related art when intercepting part of video or images in the video.
  • Fig. 1 is a flow chart of the steps of the file generation method provided by the embodiment of the present application.
  • Fig. 2 is a schematic diagram of the chat interface of the social software in the embodiment of the present application.
  • FIG. 3 is a schematic diagram of a first interface for selecting a first video in an embodiment of the present application
  • Fig. 4 is a schematic diagram of the interface after the first video is directly shared in the embodiment of the present application.
  • FIG. 5 is a schematic diagram of an interface for sharing the first video currently shot in the embodiment of the present application.
  • FIG. 6 is a schematic diagram of a second interface for selecting a first video in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a third interface for selecting a first video in an embodiment of the present application.
  • Fig. 8 is a schematic diagram of the interface display of the selected first video in the embodiment of the present application.
  • FIG. 9 is a schematic diagram of an interface display for determining a target contact in an embodiment of the present application.
  • Fig. 10 is a first display schematic diagram of the video editing interface in the embodiment of the present application.
  • Fig. 11 is a second display schematic diagram of the video editing interface in the embodiment of the present application.
  • Fig. 12 is a third schematic display of the video editing interface in the embodiment of the present application.
  • Fig. 13 is a schematic diagram of the first interface of the object to be shared in the embodiment of the present application.
  • Fig. 14 is a fourth display schematic diagram of the video editing interface in the embodiment of the present application.
  • Fig. 15 is a schematic diagram of the second interface of the object to be shared in the embodiment of the present application.
  • Fig. 16 is a schematic diagram of the animation production interface in the embodiment of the present application.
  • Fig. 17 is a schematic diagram of the animation browsing interface in the embodiment of the present application.
  • Fig. 18 is a schematic diagram of a static picture wall in the embodiment of the present application.
  • Fig. 19 is a schematic diagram of the combination effect of the target video and the target image in the embodiment of the present application.
  • Fig. 20 is a schematic structural diagram of a file generation device provided by an embodiment of the present application.
  • Fig. 21 is a structural block diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 22 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 1 shows a flowchart of steps of a method for generating a file provided by an embodiment of the present application, wherein the method may include steps 100-200.
  • the method is applied to the main device, and the main device is an electronic device, and the electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted electronic device, a wearable device, an ultra mobile personal computer (ultra -mobile personal computer (UMPC), netbook or personal digital assistant (personal digital assistant, PDA) and other mobile electronic devices, or personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc.
  • UMPC ultra mobile personal computer
  • PDA personal digital assistant
  • Non-mobile electronic devices as long as the electronic devices can share and transmit files.
  • Step 100 Receive a user's first input of target thumbnails in at least two video image thumbnails, the at least two video image thumbnails being thumbnails of at least two video image frames in a first video.
  • the first video is a video to be shared, which can be a video saved in a photo album in advance, or a video recorded in real time, for example, a video obtained by starting a camera of an electronic device on a social chat interface for on-site shooting;
  • the first input is an operation of selecting a target thumbnail in the thumbnails corresponding to at least two video image frames included in the first video, specifically, it may be the user’s click input on the target thumbnail, or a voice instruction input by the user, or
  • the specific gesture input by the user 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 can be any one of a single-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 in the example may be a single click input, a double click input, or any number of click inputs, etc., and may also be a long press input or a short press input.
  • Step 200 In response to the first input, output a target file, the target file includes a target video frame, and the target video frame is a video image frame corresponding to the target thumbnail.
  • the first input is the selection operation of the target thumbnail
  • the file generation method receives the user's first input of target thumbnails in at least two video image thumbnails, and the at least two video image thumbnails are at least two video image frames in the first video thumbnail image; in response to the first input, output a target file, the target file includes a target video frame, and the target video frame is a video image frame corresponding to the target thumbnail.
  • the user can determine and output the target file including the video image frame corresponding to the above-mentioned target thumbnail by first inputting the target thumbnail in at least two video image thumbnails corresponding to the first video, Therefore, it is convenient to intercept video clips or images from the first video, thus solving the problem of cumbersome operations in the related art when intercepting part of video or images in the video.
  • the method provided in the embodiment of the present application is to intercept the target file from the first video that needs to be shared with the target contact, wherein the target contact can be a contact in the current chat interface of the social software, or after the target file is generated , and then open the confirmed contact by opening the social software.
  • FIG. 2 shows a schematic diagram of a chat interface of social software.
  • FIG. 6 shows a schematic diagram of an interface in which the user selects the first video to share through the album interface.
  • the file generation method provided in the embodiment of the present application further includes step 101 before the above step 100:
  • Step 101 Display at least two video image thumbnails of a first video, where the number of the at least two video image thumbnails is smaller than the number of video image frames of the first video.
  • the thumbnails corresponding to at least two video image thumbnails of the first video are displayed first, so that the user can select the desired target thumbnail, thereby determine the corresponding video image frame, and then generate the corresponding target file.
  • step 101 includes steps 1011 to 1012.
  • Step 1011 according to the duration of the first video and the number of display frames, determine the average interval duration.
  • the display frame number is the frame number of the video image thumbnail that needs to be displayed for the user to select the target file.
  • the display frame number can be a fixed value, or can be dynamically adjusted according to the length of the first video.
  • the interval between video image frames corresponding to the video image thumbnails to be displayed can be determined, that is, the above average interval duration.
  • Step 1012 Determine the first video image frames to be displayed from the video image frames included in the first video in sequence according to the average interval duration, and display the thumbnails of each of the first video image frames.
  • the video image frame corresponding to the corresponding video time point is selected as the video image displayed to the user at intervals of the above-mentioned average interval duration frame, and then generate and display thumbnails of that video image frame.
  • the above specific implementation manner can cover and display the thumbnails of the video image frames included in the first video in a wide range, so that it is convenient for the user to select the desired video image frame, and then accurately intercept the desired target file.
  • the time interval between at least two video image frames corresponding to the at least two video image thumbnails may also be different, that is, the time interval between two adjacent video image frames is different, which may be based on
  • the key information is to obtain the at least two video image frames. Specifically, for example, by identifying whether a video image frame contains a specific object (such as a human face), etc., the thumbnail of the video image frame containing the specific object can be displayed.
  • the first input includes a first sub-input and a second sub-input; the above step 200 includes steps 201 - 202 .
  • both the first sub-input and the second sub-input are operations for selecting a target thumbnail from each thumbnail, which may specifically be the user’s click input on the target thumbnail, or a voice command input by the user, or
  • the specific gesture input by the user may be specifically determined according to actual usage requirements, which is not limited in this embodiment of the present application.
  • Step 201 when receiving the first sub-input from the user on the first target thumbnail in the at least two video image thumbnails and the second sub-input on the second target thumbnail, output A target video, where the target video includes a video segment between the video frame corresponding to the first target thumbnail and the video frame corresponding to the second target thumbnail.
  • the first sub-input is for the first target thumbnail and the second sub-input is for the second target thumbnail
  • the first selection operation selects the first target thumbnail
  • the second The second selection operation selects the second target thumbnail, indicating that it is necessary to select between the video image frame (first video frame) corresponding to the first target thumbnail and the video image frame (second video frame) corresponding to the second target thumbnail
  • the video segment between the first video frame and the second video frame is determined as a target video, and the target video is output.
  • Step 202 When receiving the first sub-input and the second sub-input of the third target thumbnail in the at least two video image thumbnails from the user, output a target image, the target image is The video image frame corresponding to the third target thumbnail.
  • clicking the first target thumbnail for the first time is the selection start
  • clicking the second target thumbnail again is considered the selection end
  • the video corresponding to the thumbnail is selected
  • the image frame is used as the target file; otherwise, the video content between the video frame corresponding to the first target thumbnail and the video frame corresponding to the second target thumbnail is selected as the target file.
  • the last selected operation can be canceled by gesture operations such as sliding up or down, or can be canceled by clicking the corresponding thumbnail again, so that the user can correct the selection .
  • the method provided in the embodiment of the present application further includes step 102 after the above step 100 .
  • Step 102 Generate first history editing information in response to the first input.
  • the first historical editing information records the target thumbnail corresponding to the target file, so it can be used to indicate to generate the corresponding target file according to the first video;
  • the method of intercepting the corresponding target file in the video is convenient for the user to quickly intercept the corresponding target file from the first video according to the historical editing information.
  • the above-mentioned first historical editing information may also include text information input by the user in the editing area, that is, the above-mentioned text information may be used as a note name of the target file.
  • the above-mentioned text information may be used as a note name of the target file.
  • the method provided in the embodiment of the present application further includes step 301 to step 302 after the above step 200 .
  • Step 301 Receive a fifth input from a user.
  • the fifth input is the operation of sharing the output target file, which can be the user's click input on the target file, or a voice command input by the user, or a specific gesture input by the user, which can be specified according to the actual use Requirements are determined, which is not limited in this embodiment of the application.
  • Step 302 Send the target file to a second target contact in response to the fifth input.
  • the above-mentioned second target contact may be a contact in the current chat interface of the social software, for example, through the chat interface with Xiao Ming triggering the window for outputting the above-mentioned target file, then Xiao Ming is the second target contact;
  • the above-mentioned second target contact may also be the contact that is determined by opening the social software after opening the first video and entering the window for outputting the above-mentioned target file.
  • the target file after the target file is output, the target file can be quickly sent to the second target contact by performing the fifth input on the target file, so as to achieve the effect of quickly intercepting the target file in the first video for sharing.
  • the file generation method provided in the embodiment of the present application further includes steps 401 to 403 .
  • Step 401 Display a historical editing record window of the first video, where the historical editing record window includes at least one piece of historical editing information, and the historical editing information is used to indicate that a corresponding target file is generated according to the first video.
  • the historical editing information is the record that the user selects the video image thumbnail from the first video to generate the corresponding target file before this operation.
  • the historical editing information does not store the extracted content additionally, but only records the operation information, which is convenient for downloading. shares.
  • Step 402 Receive a third input from the user on the first target editing information in the at least one piece of historical editing information.
  • the third input is the operation of selecting the required first target editing information from at least one piece of historical editing information, and sharing the first target file corresponding to the first target editing information, which can be used for the user to edit the first target.
  • the click input of information, or the voice command input by the user, or the specific gesture input by the user can be determined according to actual usage requirements, which is not limited in this embodiment of the present application.
  • Step 403 in response to the third input, sending the first target file corresponding to the first target editing information to the first target contact
  • this step when the above-mentioned third input is received, it means that the user wishes to share the first object file generated by using the first object editing information, and thus generates the corresponding first object file based on the first object editing information , and send the first target file to the first target contact.
  • the above-mentioned first target contact may be a contact in the current chat interface of the social software, for example, through the chat interface with Xiao Ming triggering to enter the above-mentioned history editing record window of the first video, then Xiao Ming is the first target contact.
  • the above-mentioned first target contact may also be a contact determined by opening social software after opening the first video and entering the above-mentioned historical editing record window to select the first target editing information.
  • a historical editing record window including at least one piece of historical editing information used to indicate the generation of the corresponding target file according to the first video, it is convenient for the user to quickly intercept the corresponding target file from the first video according to the historical editing information.
  • the method provided in the embodiment of the present application further includes step 404 to step 405 .
  • Step 404 receiving a fourth input from the user on the second target editing information in the at least one piece of historical editing information.
  • the fourth input is to confirm that the target file corresponding to the second target edit information needs to be previewed, re-edit or delete the edit processing operation such as the second target edit information, and the above-mentioned fourth input can be that the user edits the second target
  • the click input of information, or the voice command input by the user, or the specific gesture input by the user, can be determined according to the actual use requirements, which is not limited in the embodiment of the present application
  • the fourth input may be a click operation on the preview control, edit control or delete control corresponding to the second target edit information in the historical edit record window.
  • Step 405 in response to the fourth input, execute a first editing process, the first editing process includes at least one of the following: displaying the file information of the second target file corresponding to the second target editing information; deleting the The second target edit information; update the second target edit information.
  • the first editing process corresponding to the fourth input is executed, that is, the file information of the second object file corresponding to the second object editing information is displayed, the second object editing information is deleted, and the second object editing information is updated. at least one of the .
  • the above-mentioned file information includes the remark name of the second target file, the thumbnail of the corresponding video image in the first video, attribute information whether it belongs to a video or a picture, and the like.
  • the video editing interface 34 includes a historical editing record window 341 of the first video, a preview interface 342, a remark naming column 343 and a video single-frame image interface 344; wherein , a plurality of pieces of historical editing information 3411 are displayed in the historical editing record window 341, and the user can directly share the historical editing information by directly checking the historical editing information option, and can also preview, re-edit and delete the historical editing information; the preview interface 342 can Carry out the preview playback of target file;
  • the user can avoid too much historical editing information to be distinguished by remark naming, namely by inputting the editing information to the remark naming column 343 in Fig. 10, and using the editing information as this time Remarks corresponding to the editing operation;
  • video single-frame image interface 344 displays several thumbnails of the first video at intervals, and the interval between the thumbnails of two frames of video is proportional to the duration of the first video.
  • the selected target file can be used as the object to be shared by clicking on the first preset control in the video editing interface, or by performing the first preset gesture. And generate the corresponding historical editing information to record the above selection operation information, and automatically check it by default.
  • the first preset control is a control for confirming that the selected target file content is used as the object to be shared
  • the first preset gesture is a gesture for confirming that the selected target file is used as the object to be shared.
  • the second target file corresponding to the corresponding second target edit information can be previewed respectively, Or re-edit or delete the second target edit information.
  • At least one of displaying the file information of the second target file, deleting the second target editing information, and updating the second target editing information can be performed, so as to better meet the actual needs of the user.
  • the file generation method provided in the embodiment of the present application further includes steps 501 to 502.
  • Step 501 Receive a user's second input on a fourth target thumbnail among the at least two video image thumbnails.
  • the time interval between video image frames displaying thumbnails is proportional to the video duration, that is, the interval between two video image frames will vary with the target video duration. Long and long, it is easy to show that the time span of two adjacent video image frames is too large, so that the user cannot quickly locate the desired video position.
  • the second input that is, the second input is an operation of determining that the fourth target thumbnail and the thumbnails between video image thumbnails adjacent to the fourth target thumbnail need to be expanded.
  • the above-mentioned second input can be the user’s click input on the fourth target thumbnail, or a voice command input by the user, or a specific gesture input by the user, which can be specifically determined according to actual usage requirements.
  • the embodiment of the present application There is no limit to this.
  • the above-mentioned second input may specifically be a long-press operation on any thumbnail among the thumbnails of the displayed video images, that is, a long-press operation on the fourth target thumbnail.
  • Step 502 in response to the second input, display video image thumbnails between the fourth target thumbnail and the fifth target thumbnail.
  • the fifth target thumbnail is a video image thumbnail adjacent to the fourth target thumbnail before receiving the second input.
  • the user when receiving the user's second input on the fourth target thumbnail, it means that the user needs to display the video image frame corresponding to the fourth target thumbnail and the fifth target thumbnail currently adjacent to the fourth target thumbnail Other video image frames between the corresponding video image frames, thus displaying video image thumbnails between the fourth target thumbnail and the fifth target thumbnail;
  • the fifth target thumbnail can be the video before the fourth target thumbnail
  • the image thumbnail can also be the video image thumbnail behind the fourth target thumbnail;
  • the expanded video image thumbnail can be between the video image frame corresponding to the fourth target thumbnail and the video image frame corresponding to the fifth target thumbnail Thumbnails of all video frames, or thumbnails of some video frames.
  • step 503 is also included:
  • Step 503. In the case of receiving the seventh input of the fourth target thumbnail, hide the video image thumbnail between the fourth target thumbnail and the fifth target thumbnail.
  • the seventh input is to cancel the operation of displaying the video image thumbnail between the fourth target thumbnail and the fifth target thumbnail, and the seventh input can be the user's click input on the fourth target thumbnail, or
  • the voice command input by the user, or the specific gesture input by the user, may be specifically determined according to actual usage requirements, which is not limited in this embodiment of the present application.
  • the above-mentioned seventh input may specifically be a long press operation on any thumbnail in the thumbnails of the displayed video images again, that is, a long press operation on the fourth target thumbnail again, or a second long press operation on the fifth video frame. Long press to operate.
  • the image or video segment desired by the user when the image or video segment desired by the user is an image between the thumbnails of two frames of video images, by performing the second input on the fourth target thumbnail, it can trigger the opening of the displayed fourth target thumbnail.
  • Thumbnails Thumbnails of other video images between adjacent video image thumbnails, which is convenient for users to select desired images or video clips.
  • the method provided in the embodiment of the present application further includes step 601 to step 602 after the above step 200 .
  • Step 601. Receive a sixth input from the user on the target file.
  • the sixth input is the operation of personalized editing of the target file, which can be the user's click input on the target file, or a voice command input by the user, or a specific gesture input by the user, and can be specifically determined according to actual use. Requirements are determined, which is not limited in this embodiment of the application.
  • Step 602. In response to the sixth input, execute a second editing process, where the second editing process includes at least one of the following:
  • the target file includes a third target file and a fourth target file, updating the location information of the third target file and the fourth target file;
  • the target file includes a fifth target file and a sixth target file
  • file synthesis is performed on the fifth target file and the sixth target file.
  • the personalized editing process corresponding to the sixth input on the target file for example, when the target file includes the third target file and the fourth target file, update the third target file and the fourth target file.
  • the location information of the fourth target file realizes sorting processing; such as adding animation, special effects, subtitles, adding filters, borders, backgrounds, sound effects, etc. to the target file; or including the fifth target file and the sixth target file in the target file In the case of object files, the fifth object file and the sixth object file are combined.
  • the display effect of the target files is optimized, thereby further enhancing the user's sharing experience.
  • an animation production function is added to the sharing and sending interface shown in FIG. 13 to obtain the sharing and sending interface as shown in FIG. 15 .
  • the user selects multiple pictures or video clips, he can sort the selected pictures and video clips by swiping up or down; in addition, he can also select the desired video clips or pictures by long pressing, and click " Animation" control triggers the above step 602, and enters the animation interface shown in FIG. 16 .
  • the user can combine the selected target video and target image, and can also add static background, dynamic background, photo frame, animation special effects, background music, etc.
  • click the "OK" control to save The image obtains a composite image, that is, obtains the target object to be shared, and jumps to the animation browsing interface shown in Figure 17.
  • Figure 17 is an animation browsing interface, the user can browse the generated synthetic image 36, if not satisfied, click the "Cancel” control to return to the image editing interface, if satisfied, click the "Send” control to trigger the fifth input above, and directly share it with the target contact people.
  • the synthesis process can be to combine multiple selected target images, and make a static picture wall by adding background pictures, photo frames, adjusting picture sizes, and rotating lights, as shown in Figure 18; you can also further set the order of appearance, Make it into a dynamic picture album by increasing the appearance of pictures, ending animation, adding background music, etc.
  • the synthesizing process can also be to combine multiple selected target videos, by adjusting the sequence of videos, adding transition animations between videos, adding background music, etc., recombining multiple extracted videos into one video for sharing.
  • the compositing process can also be to combine multiple selected target videos and target images, by adding animation effects to the target images, as a transition animation between multiple target videos or an end animation of the video, it can also be played on the target video
  • the specific period of time is exhibited at some locations to generate synthetic images. The specific effect can be found in Figure 19.
  • the execution subject may be an electronic device, or a file generation module in the electronic device for executing the method for generating a loading file.
  • the electronic device executes the method for generating a loading file as an example to illustrate the method for generating a file provided in the embodiment of the present application.
  • FIG. 20 shows a schematic structural diagram of a file generating device provided by the embodiment of the present application.
  • the file generating device 200 provided by the embodiment of the present application includes:
  • the first receiving module 201 is configured to receive a user's first input of target thumbnails in at least two video image thumbnails, and the at least two video image thumbnails are at least two video image frames in the first video thumbnail;
  • the first output module 202 is configured to output a target file in response to the first input, the target file includes a target video frame, and the target video frame is a video image frame corresponding to the target thumbnail.
  • the user can determine and output the video image frame corresponding to the above-mentioned target thumbnail through the first input of the target thumbnail in the at least two video image thumbnails corresponding to the first video.
  • the target file so as to conveniently realize the interception of video clips or images from the first video, thus solving the problem of cumbersome operations in the related technology when intercepting part of videos or images in the video.
  • the first input includes a first sub-input and a second sub-input
  • the first output module 202 includes:
  • the first input unit is configured to receive the user's first sub-input of the first target thumbnail in the at least two video image thumbnails and the second sub-input of the second target thumbnail.
  • output target video, described target video comprises the video clip between the video frame corresponding to the first target thumbnail and the video frame corresponding to the second target thumbnail;
  • the second input unit is configured to output the target image when receiving the first sub-input and the second sub-input of the third target thumbnail in the at least two video image thumbnails from the user, so
  • the target image is a video image frame corresponding to the third target thumbnail.
  • the device further includes:
  • the first display module is used to display at least two video image thumbnails of the first video before receiving the user's first input of the target thumbnails in the at least two video image thumbnails, the at least two video image thumbnails
  • the number of image thumbnails is less than the number of video image frames of the first video.
  • the thumbnails corresponding to at least two video image frames of the first video are displayed first, so that the user can select a desired target thumbnail, thereby determining the corresponding video image frame, and then generating a corresponding target file.
  • the device further includes:
  • a second receiving module configured to receive a user's second input on a fourth target thumbnail among the at least two video image thumbnails
  • a second display module configured to display video image thumbnails between the fourth target thumbnail and the fifth target thumbnail in response to the second input
  • the fifth target thumbnail is a video image thumbnail adjacent to the fourth target thumbnail before receiving the second input.
  • the expansion and display of the thumbnail of the fourth target can be triggered.
  • Thumbnails Thumbnails of other video images between adjacent video image thumbnails, which is convenient for users to select desired images or video clips.
  • the device further includes:
  • the third display module is configured to display the historical editing record window of the first video, the historical editing record window includes at least one piece of historical editing information, and the historical editing information is used to indicate that a corresponding target is generated according to the first video document;
  • a third receiving module configured to receive a third input from a user on the first target editing information in the at least one piece of historical editing information
  • the first sending module is configured to send the first target file corresponding to the first target editing information to the first target contact in response to the third input.
  • a historical editing record window including at least one piece of historical editing information used to indicate the generation of the corresponding target file according to the first video, it is convenient for the user to quickly intercept the corresponding target file from the first video according to the historical editing information.
  • the device further includes:
  • a fourth receiving module configured to receive a user's fourth input on the second target editing information in the at least one piece of historical editing information
  • the first editing module is configured to execute a first editing process in response to the fourth input, and the first editing process includes at least one of the following: displaying the file of the second target file corresponding to the second target editing information information; delete the second target edit information; update the second target edit information.
  • At least one of displaying the file information of the second target file, deleting the second target editing information, and updating the second target editing information can be performed, so as to better meet the actual needs of the user.
  • the device further includes:
  • the second output module is configured to, after receiving a user's first input on target thumbnails in at least two video image thumbnails, generate first historical editing information in response to the first input.
  • the manner in which the user intercepts the corresponding target file from the first video can be stored, so that the user can quickly extract the corresponding target file from the first video according to the historical editing information.
  • the device further includes:
  • the fifth receiving module is used to receive the fifth input of the user after outputting the target file
  • a second sending module configured to send the target file to a second target contact in response to the fifth input.
  • the target file after the target file is output, the target file can be quickly sent to the second target contact by performing the fifth input on the target file, so as to achieve the effect of quickly intercepting the target file in the first video for sharing.
  • the device further includes:
  • a sixth receiving module configured to receive a sixth input from the user on the target file after outputting the target file
  • the second editing module is configured to execute a second editing process in response to the sixth input, and the second editing process includes at least one of the following:
  • the target file includes a third target file and a fourth target file, updating the location information of the third target file and the fourth target file;
  • the target file includes a fifth target file and a sixth target file
  • file synthesis is performed on the fifth target file and the sixth target file.
  • the display effect of the target files is optimized, thereby further enhancing the user's sharing experience.
  • the file generation apparatus 200 in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the file generation device 200 in the 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 file generation device 200 provided in the embodiment of the present application can implement various processes implemented by the file generation device in the method embodiments in FIGS. 1 to 19 . To avoid repetition, details are not repeated here.
  • the embodiment of the present application further provides an electronic device 210, as shown in FIG. 21 , including a processor 2110, a memory 2109, and programs or instructions stored in the memory 2109 and operable on the processor 2110,
  • an electronic device 210 including a processor 2110, a memory 2109, and programs or instructions stored in the memory 2109 and operable on the processor 2110,
  • the program or instruction is executed by the processor, each process of the above-mentioned embodiment of the file generation method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic device 210 in the embodiment of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.
  • FIG. 22 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 220 includes but is not limited to: a radio frequency unit 2201, a network module 2202, an audio output unit 2203, an input unit 2204, a sensor 2205, a display unit 2206, a user input unit 2207, an interface unit 2208, a memory 2209, and a processor 2210, etc. part.
  • the electronic device 220 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 2210 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. 22 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 some components, or arrange different components, which will not be repeated here. .
  • the user input unit 2207 is configured to receive the user's first input of target thumbnails in at least two video image thumbnails, the at least two video image thumbnails are thumbnails of at least two video image frames in the first video Sketch map;
  • the processor 2210 is configured to output a target file in response to the first input, where the target file includes a target video frame, and the target video frame is a video image frame corresponding to the target thumbnail.
  • the electronic device receives the user's first input of target thumbnails in at least two video image thumbnails, and the at least two video image thumbnails are at least two video image frames in the first video thumbnail image; in response to the first input, output a target file, the target file includes a target video frame, and the target video frame is a video image frame corresponding to the target thumbnail.
  • the user can determine and output the target file including the video image frame corresponding to the above-mentioned target thumbnail by first inputting the target thumbnail in at least two video image thumbnails corresponding to the first video, Therefore, it is convenient to intercept video clips or images from the first video, thus solving the problem of cumbersome operations in the related art when intercepting part of video or images in the video.
  • the first input includes a first sub-input and a second sub-input; the processor 2210 is specifically configured to receive the user's input of the first target thumbnail in the at least two video image thumbnails.
  • the target video is output, and the target video includes the video image frame corresponding to the first target thumbnail and the second target The video segment between the video image frames corresponding to the thumbnail; in the case of receiving the first sub-input and the second sub-input of the third target thumbnail in the at least two video image thumbnails from the user , outputting a target image, where the target image is a video image frame corresponding to the third target thumbnail.
  • the display unit 2206 is configured to display at least two video image thumbnails of the first video before receiving the user's first input on the target thumbnails in the at least two video image thumbnails, the at least The number of thumbnails of the two video images is smaller than the number of video image frames of the first video.
  • the thumbnails corresponding to at least two video image frames of the first video are displayed first, so that the user can select a desired target thumbnail, thereby determining the corresponding video image frame, and then generating a corresponding target file.
  • the user input unit 2207 is further configured to receive a second input from the user on the fourth target thumbnail among the at least two video image thumbnails;
  • the display unit 2206 is further configured to display video image thumbnails between the fourth target thumbnail and the fifth target thumbnail in response to the second input; wherein, the fifth target thumbnail is for receiving the A video image thumbnail adjacent to the fourth target thumbnail before the second input.
  • the expansion and display of the thumbnail of the fourth target can be triggered.
  • Thumbnails Thumbnails of other video images between adjacent video image thumbnails, which is convenient for users to select desired images or video clips.
  • the display unit 2206 is further configured to display a historical editing record window of the first video, the historical editing record window includes at least one piece of historical editing information, and the historical editing information is used to indicate that according to the first video Generate the corresponding target file;
  • the user input unit 2207 is further configured to receive a third input from the user on the first target editing information in the at least one piece of historical editing information;
  • the processor 2210 is further configured to, in response to the third input, send the first target file corresponding to the first target editing information to the first target contact.
  • a historical editing record window including at least one piece of historical editing information used to indicate the generation of the corresponding target file according to the first video, it is convenient for the user to quickly intercept the corresponding target file from the first video according to the historical editing information.
  • the user input unit 2207 is further configured to receive a fourth input from the user on the second target editing information in the at least one piece of historical editing information;
  • the processor 2210 is further configured to execute a first editing process in response to the fourth input, and the first editing process includes at least one of the following: displaying the file of the second target file corresponding to the second target editing information information; delete the second target edit information; update the second target edit information.
  • At least one of displaying the file information of the second target file, deleting the second target editing information, and updating the second target editing information can be performed, so as to better meet the actual needs of the user.
  • the processor 2210 is further configured to, after receiving a user's first input on target thumbnails in at least two video image thumbnails, generate first history editing information in response to the first input.
  • the manner in which the user intercepts the corresponding target file from the first video can be stored, so that the user can quickly extract the corresponding target file from the first video according to the historical editing information.
  • the user input unit 2207 is also configured to receive a fifth input from the user after outputting the target file;
  • the processor 2210 is further configured to send the target file to a second target contact in response to the fifth input.
  • the target file after the target file is output, the target file can be quickly sent to the second target contact by performing the fifth input on the target file, so as to achieve the effect of quickly intercepting the target file in the first video for sharing.
  • the user input unit 2207 is further configured to receive a sixth input from the user on the target file after outputting the target file;
  • the processor 2210 is further configured to execute a second editing process in response to the sixth input, where the second editing process includes at least one of the following:
  • the target file includes a third target file and a fourth target file, updating the location information of the third target file and the fourth target file;
  • the target file includes a fifth target file and a sixth target file
  • file synthesis is performed on the fifth target file and the sixth target file.
  • the display effect of the target files is optimized, thereby further enhancing the user's sharing experience.
  • the input unit 2204 may include a graphics processor (Graphics Processing Unit, GPU) 22041 and a microphone 22042, and the graphics processor 22041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 2206 may include a display panel 22061, and the display panel 22061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 2207 includes a touch panel 22071 and other input devices 22072 . Touch panel 22071, also called touch screen.
  • the touch panel 22071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 22072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 2209 can be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • Processor 2210 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 2210 .
  • 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 embodiment of the file generation method 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 computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • 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-mentioned file generation method embodiment
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is used to run programs or instructions to implement the above-mentioned file generation method embodiment
  • 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 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)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Television Signal Processing For Recording (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种文件生成方法、装置、电子设备及可读存储介质,属于文件共享传输技术领域。方法包括:接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图(100);响应于第一输入,输出目标文件,目标文件包括目标视频帧,目标视频帧为目标缩略图对应的视频图像帧(200)。

Description

一种文件生成方法、装置及电子设备
相关申请的交叉引用
本申请要求在2021年10月15日提交中国专利局、申请号为202111212486.1、名称为“一种文件生成方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于视频处理技术领域,具体涉及一种基于视频的文件生成方法、装置及电子设备。
背景技术
随着社交软件、社交平台的迅猛发展,视频分享成为了人们交流的重要途径之一。
由于用户录制或者下载视频时经常会包含一些不需要的视频片段,直接进行分享需要使用较多流量,分享速度较慢,还不能体现视频重点,所以在进行分享前,往往需要使用视频剪辑软件进行视频或者图像的截取,操作比较繁琐。
发明内容
本申请实施例的目的是提供一种文件生成方法、装置及电子设备,能够解决相关技术在截取视频中的部分视频或图像时操作繁琐的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种文件生成方法,其中,所述方法包括:
接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,所述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图;
响应于所述第一输入,输出目标文件,所述目标文件包括目标视频帧,所述目标视频帧为所述目标缩略图对应的视频图像帧。
第二方面,本申请实施例提供了一种文件生成装置,其中,所述装置包括:
第一接收模块,用于接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,所述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图;
第一输出模块,用于响应于所述第一输入,输出目标文件,所述目标文件包括目标视频帧,所述目标视频帧为所述目标缩略图对应的视频图像帧。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供了一种计算机程序产品,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如第一方面所述的方法的步骤。
第七方面,本申请实施例提供了一种文件生成装置,所述装置被配置成用于执行如第一方面所述的方法。
在本申请实施例中,接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,上述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图;响应于上述第一输入,输出目标文件,上述目标文件包括目标视频帧,上述目标视频帧为上述目标缩略图对应的视频图像帧。上述文件生成过程中,用户通过对第一视频对应的至少两个视频图像缩略图中的目标缩略图的第一输入,即可以确定并输出包括上述目标缩略图对应的视频图像帧的目标文件,从而便捷实现从第一视频中截取视频片段或图像,因而解决了相关技术在截取视频中的部分视频或图像时操作繁琐的问题。
附图说明
图1是本申请实施例提供的文件生成方法的步骤流程图;
图2是本申请实施例中社交软件的聊天界面示意图;
图3是本申请实施例中选择第一视频的第一界面示意图;
图4是本申请实施例中将第一视频直接分享后的界面示意图;
图5是本申请实施例中现拍第一视频进行分享的界面示意图;
图6是本申请实施例中选择第一视频的第二界面示意图;
图7是本申请实施例中选择第一视频的第三界面示意图;
图8是本申请实施例中已选第一视频的界面显示示意图;
图9是本申请实施例中确定目标联系人的界面显示示意图;
图10是本申请实施例中视频编辑界面的第一显示示意图;
图11是本申请实施例中视频编辑界面的第二显示示意图;
图12是本申请实施例中视频编辑界面的第三显示示意图;
图13是本申请实施例中待分享对象的第一界面示意图;
图14是本申请实施例中视频编辑界面的第四显示示意图;
图15是本申请实施例中待分享对象的第二界面示意图;
图16是本申请实施例中动画制作界面示意图;
图17是本申请实施例中动画浏览界面示意图;
图18是本申请实施例中静态图片墙示意图;
图19是本申请实施例中目标视频与目标图像的组合效果示意图;
图20是本申请实施例提供的文件生成装置的结构示意图;
图21是本申请实施例提供的电子设备的结构框图;
图22是本申请实施例提供的电子设备的硬件结构示意图。
具体实施例
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创 造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的文件生成方法进行详细地说明。
请参阅图1,示出了本申请实施例提供的一种文件生成方法的步骤流程图,其中,该方法可以包括步骤100~200。
本申请实施例中,该方法应用于主设备,该主设备为电子设备,该电子设备可以是手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等移动电子设备,也可以是个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等非移动电子设备,只要该电子设备可以进行文件分享传输。
步骤100、接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,所述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图。
上述步骤100中,第一视频是待分享的视频,可以是预先在相册保存的视频,也可以是实时录制的视频,例如可以是由社交聊天界面启动电子设备的摄像头进行现场拍摄得到的视频;第一输入是在第一视频所包括的至少两个视频图像帧对应的缩略图中选择目标缩略图的操作,具体可以为用户对目标缩略图的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
其中,本申请实施例中的特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种;本申请实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。
步骤200、响应于所述第一输入,输出目标文件,所述目标文件包括目标视频帧,所述目标视频帧为所述目标缩略图对应的视频图像帧。
上述步骤200中,因为第一输入为对目标缩略图的选择操作,说明用户需要从第一视频中截取包括目标缩略图对应的视频图像帧的文件,也即上述目标文件,从而输出该目标文件,便捷实现从第一视频中截取上述目标文件,其中,该目标文件可以为视频片段或图像。
本申请实施例提供的文件生成方法,接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,上述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图;响应于上述第一输入,输出目标文件,上述目标文件包括目标视频帧,上述目标视频帧为上述目标缩略图对应的视频图像帧。上述文件生成过程中,用户通过对第一视频对应的至少两个视频图像缩略图中的目标缩略图的第一输入,即可以确定并输出包括上述目标缩略图对应的视频图像帧的目标文件,从而便捷实现从第一视频中截取视频片段或图像,因而解决了相关技术在截取视频中的部分视频或图像时操作繁琐的问题。
本申请实施例所提供的方法,是为了从第一视频中截取需要向目标联系人分享的目标文件,其中,目标联系人可以是社交软件当前聊天界面的联系人,或者是在生成目标文件后,再通过打开社交软件打开确定的联系人。
其中,请参阅图2,示出了社交软件的聊天界面示意图。
如图2所示,在用户需要向聊天界面31对应的聊天对象分享视频时,若需要从相册中选择第一视频分享,则点击“相册”控件并跳转至图3所示的界面,用户可以在相册中勾选所需视频题材;在不需要对图3中选择的视频题材进行编辑操作处理时,通过点击“发送”控件即可以将直接将所选视 频题材分享给聊天对象,也即上述目标联系人,并切回聊天界面31,具体效果如图4所示;在需要对图3中选择的视频题材进行编辑操作处理时,通过点击“编辑”控件即可触发进入从上述视频题材中截取目标文件的视频编辑界面。
如图2所示,在用户需要向聊天对象分享视频时,若需要现场拍摄视频题材,则点击“拍摄”控件并则跳转至图5所示的拍摄预览界面32,可现场拍摄待分享的题材。在不需要对图5中现场拍摄的题材进行编辑操作处理时,通过点击“发送”控件即可以将直接将所选题材发送给聊天对象;在需要对图5中现场拍摄的视频题材进行编辑操作处理时,通过点击“编辑”控件即可触发进入从上述视频题材中截取目标文件的视频编辑界面的视频编辑界面。
请参阅图6,示出了用户通过相册界面选择第一视频进行分享的界面示意图。
如图6所示,在用户选择进行编辑处理的题材时,点击图6中的“视频”类别并进入图7所示的界面,用户可以在相册中勾选所需进行分享的视频题材,并在选择视频题材后进入所选视频题材的分享预览界面33,具体如图8所示;在不需要对图8中选择的视频题材进行编辑操作处理时,通过点击“发送”控件即可以直接将所选视频题材发送给聊天对象;在需要对图8中选择的题材进行编辑操作处理时,通过点击“编辑”控件即可触发进入上述视频编辑界面,并从所选视频题材中进行目标文件的截取处理;在处理完毕后,进入图9所示的通过选取社交软件确定目标联系人进行分享的界面。
可选地,在一种实施方式中,本申请实施例所提供的文件生成方法,在上述步骤100之前,还包括步骤101:
步骤101、显示第一视频的至少两个视频图像缩略图,所述至少两个视频图像缩略图的数目小于所述第一视频的视频图像帧的数目。
该实施方式中,先展示第一视频的至少两个视频图像缩略图对应的缩略图,以便于用户选择所需要的目标缩略图,从而确定对应的视频图像帧,进 而生成相应的目标文件。
可选地,在一种具体实施方式中,上述步骤101包括步骤1011~步骤1012。
步骤1011、根据所述第一视频的时长及展示帧数,确定平均间隔时长。
该步骤中,展示帧数为需要展示出来给用户选择目标文件的视频图像缩略图的帧数,该展示帧数可以为固定值,也可以根据第一视频的长短动态调整。
该步骤中,将第一视频的时长除以上述展示帧数,即可以确定需要展示的视频图像缩略图对应的视频图像帧之间间隔的时长,也即上述平均间隔时长。
步骤1012、按所述平均间隔时长,依次从所述第一视频所包含的各视频图像帧中确定待展示的第一视频图像帧,并显示各所述第一视频图像帧的缩略图。
该步骤中,即从该第一视频中包含的全部视频图像帧的第一帧开始,每隔一个上述平均间隔时长,选定相应视频时间点对应的视频图像帧作为展示给用户选择的视频图像帧,然后生成并显示该视频图像帧的缩略图。
上述具体实施方式,可以较大范围地涵盖显示第一视频所包含视频图像帧的缩略图,从而便于用户选取所需的视频图像帧,进而准确截取所需的目标文件。
本申请实施例中,所述至少两个视频图像缩略图对应的至少两个视频图像帧之间的时间间隔还可以不同,即相邻两个视频图像帧之间的时间间隔不同,可以是基于关键信息得到所述至少两个视频图像帧,具体地,例如可以通过识别视频图像帧中是否包含特定对象(例如人脸)等,将包含特定对象的视频图像帧的缩略进行显示。
可选地,在一种实施方式中,第一输入包括第一子输入及第二子输入;上述步骤200包括步骤201~步骤202。
该实施方式中,第一子输入及第二子输入均为从各缩略图中选择目标缩 略图的操作,具体可以为用户对目标缩略图的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
步骤201、在接收到用户对所述至少两个视频图像缩略图中第一目标缩略图的所述第一子输入、以及对第二目标缩略图的所述第二子输入的情况下,输出目标视频,所述目标视频包括所述第一目标缩略图对应的视频图像帧与所述第二目标缩略图对应的视频图像帧之间的视频片段。
该步骤中,在该第一子输入为对第一目标缩略图,且该第二子输入为对第二目标缩略图时,即若第一次选择操作选中了第一目标缩略图,而第二次选择操作选中了第二目标缩略图,说明需要选定第一目标缩略图对应的视频图像帧(第一视频帧)与第二目标缩略图对应的视频图像帧(第二视频帧)之间的视频片段作为目标文件,因而将第一视频帧和第二视频帧之间的视频片段确定为一个目标视频,并输出上述目标视频。
步骤202、在接收到用户对所述至少两个视频图像缩略图中第三目标缩略图的所述第一子输入及所述第二子输入的情况下,输出目标图像,所述目标图像为所述第三目标缩略图对应的视频图像帧。
该步骤中,在该第一子输入及第二子输入均为对同一个第三目标缩略图的输入时,即若第一次选择操作选中了第三目标缩略图,且第二次选择操作依然选中了第三目标缩略图,说明需要选定该第三目标缩略图对应的视频图像帧作为目标文件,因而确定该第三目标缩略图对应的视频图像帧作为目标图像,并输出该图标图像。
例如,首次单击第一目标缩略图为选择开始,再次单击第二目标缩略图则认为选择结束,若选择开始和选择结束均是对同一个缩略图,则选定该缩略图对应的视频图像帧作为目标文件,否则选定第一目标缩略图对应的视频图像帧视频帧与第二目标缩略图对应的视频图像帧之间的视频内容作为目标文件。
其中,在执行了第一子输入及第二子输入后,可以通过上滑或下滑等手 势操作取消上一次选定操作,也可以通过再次点选相应的缩略图进行取消,以便于用户更正选择。
上述实施方式中,通过两次选择操作视频图像缩略图的方式,可以快速从中第一视频中选择截取目标图像或目标视频。
可选地,在一种实施方式中,本申请实施例所提供的方法,在上述步骤100之后,还包括步骤102。
步骤102、响应于所述第一输入,生成第一历史编辑信息。
该实施方式中,第一历史编辑信息记录了目标文件对应的目标缩略图,因而可以用于指示根据第一视频生成对应的目标文件;通过生成上述第一历史编辑信息,可以存储用户从第一视频中截取对应的目标文件的方式,便于用户后续按历史编辑信息快速从第一视频中截取对应的目标文件。
其中,上述第一历史编辑信息还可以包括用户在编辑区域输入的文本信息,也即将上述文本信息作为目标文件的备注名称。通过为上述目标文件添加备注名称,也实现对相应第一历史编辑信息的备注,以便于用户识别、区分。
可选地,在一种实施方式中,本申请实施例所提供的方法,在上述步骤200之后,还包括步骤301~步骤302。
步骤301、接收用户的第五输入。
该步骤中,第五输入为将输出的目标文件进行分享的操作,可以为用户对目标文件的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
步骤302、响应于所述第五输入,将所述目标文件发送至第二目标联系人。
该步骤中,在接收到上述第五输入的情况下,说明用户希望将通过第一输入操作输出的目标文件进行分享,因而将该第一目标文件发送至第二目标联系人。
其中,上述第二目标联系人可以是社交软件当前聊天界面的联系人,例 如通过与小明的聊天界面触发进入输出上述目标文件的窗口,则小明就是第二目标联系人;
当然,在一种具体实施方式中,上述第二目标联系人也可以是在进行打开第一视频并进入输出上述目标文件的窗口后,再通过打开社交软件打开确定的联系人。
上述实施方式,在输出目标文件后,通过对目标文件执行第五输入,可以将目标文件快速发送至第二目标联系人,从而实现在第一视频中快速截取目标文件进行分享的效果。
可选地,在一种实施方式中,本申请实施例所提供的文件生成方法,还包括步骤401~步骤403。
步骤401、显示所述第一视频的历史编辑记录窗口,所述历史编辑记录窗口包括至少一条历史编辑信息,所述历史编辑信息用于指示根据所述第一视频生成对应的目标文件。
该步骤中,历史编辑信息是用户在本次操作之前从第一视频中选取视频图像缩略图生成对应的目标文件的记录,该历史编辑信息不对抽取内容进行额外存储,只记录操作信息,方便下次分享。
步骤402、接收用户对所述至少一条历史编辑信息中的第一目标编辑信息的第三输入。
该步骤中,第三输入为从至少一条历史编辑信息选取所需的第一目标编辑信息,并将第一目标编辑信息对应的第一目标文件进行分享的操作,可以为用户对第一目标编辑信息的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
步骤403、响应于所述第三输入,将所述第一目标编辑信息对应的第一目标文件发送至第一目标联系人
该步骤中,在接收到上述第三输入的情况下,说明用户希望将利用该第一目标编辑信息生成的第一目标文件进行分享,因而基于该第一目标编辑信 息生成对应的第一目标文件,并将该第一目标文件发送至第一目标联系人。
其中,上述第一目标联系人可以是社交软件当前聊天界面的联系人,例如通过与小明的聊天界面触发进入第一视频的上述历史编辑记录窗口,则小明就是第一目标联系人。
当然,在一种具体实施方式中,上述第一目标联系人也可以是在打开第一视频并进入上述历史编辑记录窗口选定第一目标编辑信息后,再通过打开社交软件确定的联系人。
上述实施方式中,通过显示包括至少一条用于指示根据第一视频生成对应的目标文件的历史编辑信息的历史编辑记录窗口,便于用户按历史编辑信息快速从第一视频中截取对应的目标文件。
可选地,在一种实施方式中,本申请实施例所提供的方法,还包括步骤404~步骤405。
步骤404、接收用户对所述至少一条历史编辑信息中的第二目标编辑信息的第四输入。
该步骤中,第四输入为确定需要对第二目标编辑信息对应的目标文件进行预览,重新编辑或删除第二目标编辑信息等编辑处理的操作,上述第四输入可以为用户对第二目标编辑信息的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定
具体地,该第四输入可以是对历史编辑记录窗口中第二目标编辑信息对应的预览控件、编辑控件或删除控件的点击操作。
步骤405、响应于所述第四输入,执行第一编辑处理,所述第一编辑处理包括以下至少一项:显示与所述第二目标编辑信息对应的第二目标文件的文件信息;删除所述第二目标编辑信息;更新所述第二目标编辑信息。
该步骤中,执行该第四输入对应的第一编辑处理,也即执行显示与第二目标编辑信息对应的第二目标文件的文件信息、删除第二目标编辑信息、更新第二目标编辑信息中的至少一项。
本实施例中,上述文件信息包括第二目标文件的备注名称、在第一视频中对应的视频图像缩略图、属于视频还是图片的属性信息等。
可选地,在一种具体实施方式中,视频编辑界面34如图10所示,包括第一视频的历史编辑记录窗口341、预览界面342、备注命名栏343及视频单帧图像界面344;其中,在历史编辑记录窗口341中显示有多条历史编辑信息3411,用户可以通过直接勾选历史编辑信息选项直接进行分享,也可以对历史编辑信息进行预览、重新编辑以及删除操作;预览界面342可以进行目标文件的预览播放;在备注命名界面中,用户可以通过备注命名来避免历史编辑信息过多无法区分,即通过对图10中备注命名栏343输入编辑信息,并将该编辑信息作为本次编辑操作对应的备注名称;视频单帧图像界面344中间隔显示有第一视频的若干视频图像缩略图,两帧视频图像缩略图之间间隔与第一视频时长成正比。
本实施例中,在执行第一输入后,可以通过对视频编辑界面中第一预设控件的点击操作,或者是第一预设手势的执行动作,将选定的目标文件作为待分享对象,并生成对应的历史编辑信息,以记录上述选择操作信息,并默认自动勾选。
其中,第一预设控件为确认将选定的目标文件内容作为待分享对象的控件,第一预设手势为确认将选定的目标文件作为待分享对象的手势。
其中,若只选中了一个目标文件则如图11生成一个历史编辑信息,用户可直接发送;若为多个目标文件则如图12生成多个历史编辑信息,点击发送进入排序界面35对选定的待分享对象进行排序,具体如图13所示。
具体地,如图10~图13所示,通过点击其中的“预览”控件、“编辑”控件或“×”控件,可分别对相应的第二目标编辑信息对应的第二目标文件执行预览,或对第二目标编辑信息进行重新编辑或删除操作。
在图10~图12及图14中,如果用户直接勾选历史编辑记录窗口341的历史编辑信息3411,则会在视频单帧图像界面344进行细节展示,即展示对应的目标文件在第一视频中的位置;如果用户需要对历史编辑信息进行变更 则可点击对应的“编辑”控件,下方视频单帧图像界面344对应的选取区间就会高亮显示,并且可以进行变更,变更后可点击“确认”控件进行更新。
上述实施方式中,通过上述第四输入,可以执行显示第二目标文件的文件信息、删除第二目标编辑信息、更新第二目标编辑信息中的至少一项,更好地满足用户的实际需求。
可选地,在一种实施方式中,本申请实施例所提供的文件生成方法,还包括步骤501~步骤502。
步骤501、接收用户对所述至少两个视频图像缩略图中第四目标缩略图的第二输入。
该步骤中,因为在上述展示帧数固定的情况下,展示缩略图的视频图像帧之间时间间隔与视频时长成正比,也即两帧视频图像帧之间的间隔会随目标视频时长的变长而变长,容易出现展示的两相邻视频图像帧时间跨度过大导致用户无法快速定位所需的视频位置,因而当用户所需图片或者视频为两帧视频图像帧间隔之内的影像时,可以通过上述第二输入触发,也即上述第二输入为确定需要展开第四目标缩略图,及与第四目标缩略图相邻的视频图像缩略图之间的缩略图的操作。
该步骤中,上述第二输入可以为用户对第四目标缩略图的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
上述第二输入具体可以为对已显示的各视频图像缩略图中的任一缩略图的长按操作,也即对第四目标缩略图的长按操作。
步骤502、响应于所述第二输入,显示所述第四目标缩略图与第五目标缩略图之间的视频图像缩略图。
其中,所述第五目标缩略图为接收所述第二输入之前与所述第四目标缩略图相邻的视频图像缩略图。
该步骤中,在接收到用户对第四目标缩略图的第二输入时,说明用户需要展示第四目标缩略图对应的视频图像帧及当前与第四目标缩略图相邻的 第五目标缩略图对应的视频图像帧之间的其他视频图像帧,因而显示第四目标缩略图与第五目标缩略图之间的视频图像缩略图;第五目标缩略图可以是位于第四目标缩略图之前的视频图像缩略图,也可以是位于第四目标缩略图之后的视频图像缩略图;展开的视频图像缩略图可以是第四目标缩略图对应的视频图像帧与第五目标缩略图对应的视频图像帧之间的全部视频图像帧的缩略图,或者部分视频图像帧的缩略图。
可选地,在一种具体实施方式中,在上述步骤502之后,还包括步骤503:
步骤503、在接收到对所述第四目标缩略图的第七输入的情况下,隐藏所述第四目标缩略图与第五目标缩略图之间的视频图像缩略图。
该步骤中,第七输入为取消显示第四目标缩略图与第五目标缩略图之间的视频图像缩略图的操作,上述第七输入可以为用户对第四目标缩略图的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
上述第七输入具体可以为对已显示的各视频图像缩略图中的任一缩略图的再次长按操作,也即对第四目标缩略图的再次长按操作,或者对第五视频帧的再次长按操作。
该步骤中,在接收到对第四目标缩略图的第七输入的情况下,说明用户不需要展示第四目标缩略图与第五目标缩略图之间的视频图像缩略图,因而隐藏第四目标缩略图与第五目标缩略图之间的视频图像缩略图。
具体地,在图10中,因为视频单帧图像界面344中显示的两相邻帧图像之间的间隔会随视频时长的变长而变长,所以当用户所需图像或者视频片段为当前显示的两帧视频图像缩略图3441之间的影像时,可以长按视频单帧图像界面中任一帧视频图像缩略图,便会打开该视频图像缩略图与前一帧视频图像缩略图之间的其他视频图像缩略图,具体如图14中的椭圆框部分345,以便于用户快速定位所需的视频图像帧位置;再次长按该视频图像缩略图则会取消显示椭圆框部分。
该实施方式中,当用户所需图像或者视频片段为两帧视频图像缩略图之 间的影像时,通过对第四目标缩略图执行第二输入,即可触发打开与已展示的第四目标缩略图相邻的视频图像缩略图之间的其他视频图像缩略图,便于用户选取所需图像或视频片段。
可选地,在一种实施方式中,本申请实施例所提供的方法,在上述步骤200之后,还包括步骤601~步骤602。
步骤601、接收用户对所述目标文件的第六输入。
该步骤中,第六输入为对目标文件进行个性化编辑的操作,可以为用户对目标文件的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
步骤602、响应于所述第六输入,执行第二编辑处理,所述第二编辑处理包括以下至少一项:
在所述目标文件包括第三目标文件和第四目标文件的情况下,更新所述第三目标文件和所述第四目标文件的位置信息;
对所述目标文件的文件内容进行编辑;
在所述目标文件包括第五目标文件和第六目标文件的情况下,对所述第五目标文件和所述第六目标文件进行文件合成。
该步骤中,在接收到上述第六输入后,对目标文件执行该第六输入对应的个性化编辑处理;如在目标文件包括第三目标文件和第四目标文件时,更新第三目标文件和第四目标文件的位置信息,实现排序处理;如对目标文件进行增加动画、特效、字幕、添加滤镜、边框、背景、音效等的内容编辑;或者在目标文件包括第五目标文件和第六目标文件的情况下,将第五目标文件和第六目标文件进行合成处理。
该实施方式中,通过将输出的目标文件进行排序或特效处理,优化目标文件的展示效果,从而进一步提升用户的分享体验。
具体地,在图13所示的分享发送界面中增加动画制作功能,得到如图15所示的分享发送界面。若用户选取多个图片或者视频片段后,可以通过上划或下划对所选图片及视频片段进行排序;另外,还可以通过长按勾选所需 的视频片段或者图片,点击右上侧的“动画制作”控件触发上述步骤602,并进入图16所示的动画制作界面。
图16中,用户可以对所选的目标视频及目标图像进行组合处理,还可以添加静态背景、动态背景、相框、动画特效、背景音乐等处理,制作完成后通过点击“确定”控件等方式保存图像获得合成影像,也即获得目标待分享对象,并跳转至图17所示的动画浏览界面,也可以点击“保存模板”等方式生成自定义模板,后续制作可以直接点击使用模板进行套用,用户可以调整素材中视频或者图片的顺序改变使用的模板中视频或者图片的位置。
图17为动画浏览界面,用户可以浏览生成的合成影像36,若不满意点击“取消”控件回退至图像编辑界面,若满意点击“发送”控件则触发上述第五输入,直接分享给目标联系人。
其中,合成处理可以是将所选多张目标图像进行组合,通过添加背景图片、相框、调节图片大小、旋转灯制作成一张静态图片墙,具体如图18所示;也可以进一步设置出场顺序、增加图片的出场、结束动画、添加背景音乐等方式制作成动态图片相册等。
其中,合成处理也可以是将所选多个目标视频进行组合,通过调整视频顺序,添加视频间转场动画,添加背景音乐等,将多个提取的视频重新组合成一个视频进行分享。
其中,合成处理也可以是将所选多个目标视频及目标图像进行组合,通过给目标图像增加动画效果,作为多个目标视频间的转场动画或者视频的结尾动画,也可以在目标视频播放的特定时间段在部分位置进行展出,生成合成影像,具体可效果可参阅图19。
需要说明的是,本申请实施例提供的文件生成方法,执行主体可以为电子设备,或者该电子设备中的用于执行加载文件生成方法的文件生成模块。本申请实施例中以电子设备执行加载文件生成方法为例,说明本申请实施例提供的文件生成方法。
请参阅图20,示出了本申请实施例提供的一种文件生成装置的结构示意 图,如图20所示,本申请实施例所提供的文件生成装置200,包括:
第一接收模块201,用于接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,所述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图;
第一输出模块202,用于响应于所述第一输入,输出目标文件,所述目标文件包括目标视频帧,所述目标视频帧为所述目标缩略图对应的视频图像帧。
本申请实施例提供的文件生成装置,用户通过对第一视频对应的至少两个视频图像缩略图中的目标缩略图的第一输入,即可以确定并输出包括上述目标缩略图对应的视频图像帧的目标文件,从而便捷实现从第一视频中截取视频片段或图像,因而解决了相关技术在截取视频中的部分视频或图像时操作繁琐的问题。
可选地,在一种实施方式中,所述装置中,所述第一输入包括第一子输入及第二子输入;
所述第一输出模块202包括:
第一输入单元,用于在接收到用户对所述至少两个视频图像缩略图中第一目标缩略图的所述第一子输入、以及对第二目标缩略图的所述第二子输入的情况下,输出目标视频,所述目标视频包括所述第一目标缩略图对应的视频图像帧与所述第二目标缩略图对应的视频图像帧之间的视频片段;
第二输入单元,用于在接收到用户对所述至少两个视频图像缩略图中第三目标缩略图的所述第一子输入及所述第二子输入的情况下,输出目标图像,所述目标图像为所述第三目标缩略图对应的视频图像帧。
上述实施方式中,通过两次选择操作视频图像缩略图的方式,可以快速从中第一视频中选择截取目标图像或目标视频。
可选地,在一种实施方式中,所述装置还包括:
第一显示模块,用于在所述接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入之前,显示第一视频的至少两个视频图像缩略图,所述 至少两个视频图像缩略图的数目小于所述第一视频的视频图像帧的数目。
该实施方式中,先展示第一视频的至少两个视频图像帧对应的缩略图,以便于用户选择所需要的目标缩略图,从而确定对应的视频图像帧,进而生成相应的目标文件。
可选地,在一种实施方式中,所述装置还包括:
第二接收模块,用于接收用户对所述至少两个视频图像缩略图中第四目标缩略图的第二输入;
第二显示模块,用于响应于所述第二输入,显示所述第四目标缩略图与第五目标缩略图之间的视频图像缩略图;
其中,所述第五目标缩略图为接收所述第二输入之前与所述第四目标缩略图相邻的视频图像缩略图。
该实施方式中,当用户所需图像或者视频片段为两帧视频图像缩略图之间的影像时,通过对第四目标缩略图执行第二输入,即可触发展开与已展示的第四目标缩略图相邻的视频图像缩略图之间的其他视频图像缩略图,便于用户选取所需图像或视频片段。
可选地,在一种实施方式中,所述装置还包括:
第三显示模块,用于显示所述第一视频的历史编辑记录窗口,所述历史编辑记录窗口包括至少一条历史编辑信息,所述历史编辑信息用于指示根据所述第一视频生成对应的目标文件;
第三接收模块,用于接收用户对所述至少一条历史编辑信息中的第一目标编辑信息的第三输入;
第一发送模块,用于响应于所述第三输入,将所述第一目标编辑信息对应的第一目标文件发送至第一目标联系人。
上述实施方式中,通过显示包括至少一条用于指示根据第一视频生成对应的目标文件的历史编辑信息的历史编辑记录窗口,便于用户按历史编辑信息快速从第一视频中截取对应的目标文件。
可选地,在一种实施方式中,所述装置还包括:
第四接收模块,用于接收用户对所述至少一条历史编辑信息中的第二目标编辑信息的第四输入;
第一编辑模块,用于响应于所述第四输入,执行第一编辑处理,所述第一编辑处理包括以下至少一项:显示与所述第二目标编辑信息对应的第二目标文件的文件信息;删除所述第二目标编辑信息;更新所述第二目标编辑信息。
上述实施方式中,通过上述第四输入,可以执行显示第二目标文件的文件信息、删除第二目标编辑信息、更新第二目标编辑信息中的至少一项,更好地满足用户的实际需求。
可选地,在一种实施方式中,所述装置还包括:
第二输出模块,用于在接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入之后,响应于所述第一输入,生成第一历史编辑信息。
该实施方式中,通过生成上述第一历史编辑信息,可以存储用户从第一视频中截取对应的目标文件的方式,便于用户后续按历史编辑信息快速从第一视频中截取对应的目标文件。
可选地,在一种实施方式中,所述装置还包括:
第五接收模块,用于在输出目标文件之后,接收用户的第五输入;
第二发送模块,用于响应于所述第五输入,将所述目标文件发送至第二目标联系人。
上述实施方式,在输出目标文件后,通过对目标文件执行第五输入,可以将目标文件快速发送至第二目标联系人,从而实现在第一视频中快速截取目标文件进行分享的效果。
可选地,在一种实施方式中,所述装置还包括:
第六接收模块,用于在输出目标文件之后,接收用户对所述目标文件的第六输入;
第二编辑模块,用于响应于所述第六输入,执行第二编辑处理,所述第二编辑处理包括以下至少一项:
在所述目标文件包括第三目标文件和第四目标文件的情况下,更新所述第三目标文件和所述第四目标文件的位置信息;
对所述目标文件的文件内容进行编辑;
在所述目标文件包括第五目标文件和第六目标文件的情况下,对所述第五目标文件和所述第六目标文件进行文件合成。
该实施方式中,通过将输出的目标文件进行排序或特效处理,优化目标文件的展示效果,从而进一步提升用户的分享体验。
本申请实施例中的文件生成装置200可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的文件生成装置200可以为具有操作***的装置。该操作***可以为安卓(Android)操作***,可以为iOS操作***,还可以为其他可能的操作***,本申请实施例不作具体限定。
本申请实施例提供的文件生成装置200能够实现图1~19的方法实施例中文件生成装置实现的各个过程,为避免重复,这里不再赘述。
可选地,本申请实施例还提供一种电子设备210,如图21所示,包括处理器2110,存储器2109,存储在存储器2109上并可在所述处理器2110上运行的程序或指令,该程序或指令被处理器执行时实现上述文件生成方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要注意的是,本申请实施例中的电子设备210包括上述所述的移动电子设备和非移动电子设备。
图22为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备220包括但不限于:射频单元2201、网络模块2202、音频输出单元2203、输入单元2204、传感器2205、显示单元2206、用户输入单元2207、接口单元2208、存储器2209、以及处理器2210等部件。
本领域技术人员可以理解,电子设备220还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理***与处理器2210逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。图22中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
用户输入单元2207,用于接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,所述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图;
处理器2210,用于响应于所述第一输入,输出目标文件,所述目标文件包括目标视频帧,所述目标视频帧为所述目标缩略图对应的视频图像帧。
本申请实施例提供的电子设备,接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,上述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图;响应于上述第一输入,输出目标文件,上述目标文件包括目标视频帧,上述目标视频帧为上述目标缩略图对应的视频图像帧。上述文件生成过程中,用户通过对第一视频对应的至少两个视频图像缩略图中的目标缩略图的第一输入,即可以确定并输出包括上述目标缩略图对应的视频图像帧的目标文件,从而便捷实现从第一视频中截取视频片段或图像,因而解决了相关技术在截取视频中的部分视频或图像时操作繁琐的问题。
可选地,所述第一输入包括第一子输入及第二子输入;处理器2210,具体用于在接收到用户对所述至少两个视频图像缩略图中第一目标缩略图的所述第一子输入、以及对第二目标缩略图的所述第二子输入的情况下,输出目标视频,所述目标视频包括所述第一目标缩略图对应的视频图像帧与所述 第二目标缩略图对应的视频图像帧之间的视频片段;在接收到用户对所述至少两个视频图像缩略图中第三目标缩略图的所述第一子输入及所述第二子输入的情况下,输出目标图像,所述目标图像为所述第三目标缩略图对应的视频图像帧。
上述实施方式中,通过两次选择操作视频图像缩略图的方式,可以快速从中第一视频中选择截取目标图像或目标视频。
可选地,显示单元2206,用于在所述接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入之前,显示第一视频的至少两个视频图像缩略图,所述至少两个视频图像缩略图的数目小于所述第一视频的视频图像帧的数目。
该实施方式中,先展示第一视频的至少两个视频图像帧对应的缩略图,以便于用户选择所需要的目标缩略图,从而确定对应的视频图像帧,进而生成相应的目标文件。
可选地,用户输入单元2207,还用于接收用户对所述至少两个视频图像缩略图中第四目标缩略图的第二输入;
显示单元2206,还用于响应于所述第二输入,显示所述第四目标缩略图与第五目标缩略图之间的视频图像缩略图;其中,所述第五目标缩略图为接收所述第二输入之前与所述第四目标缩略图相邻的视频图像缩略图。
该实施方式中,当用户所需图像或者视频片段为两帧视频图像缩略图之间的影像时,通过对第四目标缩略图执行第二输入,即可触发展开与已展示的第四目标缩略图相邻的视频图像缩略图之间的其他视频图像缩略图,便于用户选取所需图像或视频片段。
可选地,显示单元2206,还用于显示所述第一视频的历史编辑记录窗口,所述历史编辑记录窗口包括至少一条历史编辑信息,所述历史编辑信息用于指示根据所述第一视频生成对应的目标文件;
用户输入单元2207,还用于接收用户对所述至少一条历史编辑信息中的第一目标编辑信息的第三输入;
处理器2210,还用于响应于所述第三输入,将所述第一目标编辑信息对应的第一目标文件发送至第一目标联系人。
上述实施方式中,通过显示包括至少一条用于指示根据第一视频生成对应的目标文件的历史编辑信息的历史编辑记录窗口,便于用户按历史编辑信息快速从第一视频中截取对应的目标文件。
可选地,用户输入单元2207,还用于接收用户对所述至少一条历史编辑信息中的第二目标编辑信息的第四输入;
处理器2210,还用于响应于所述第四输入,执行第一编辑处理,所述第一编辑处理包括以下至少一项:显示与所述第二目标编辑信息对应的第二目标文件的文件信息;删除所述第二目标编辑信息;更新所述第二目标编辑信息。
上述实施方式中,通过上述第四输入,可以执行显示第二目标文件的文件信息、删除第二目标编辑信息、更新第二目标编辑信息中的至少一项,更好地满足用户的实际需求。
可选地,处理器2210,还用于在接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入之后,响应于所述第一输入,生成第一历史编辑信息。
该实施方式中,通过生成上述第一历史编辑信息,可以存储用户从第一视频中截取对应的目标文件的方式,便于用户后续按历史编辑信息快速从第一视频中截取对应的目标文件。
可选地,用户输入单元2207,还用于在输出目标文件之后,接收用户的第五输入;
处理器2210,还用于响应于所述第五输入,将所述目标文件发送至第二目标联系人。
上述实施方式,在输出目标文件后,通过对目标文件执行第五输入,可以将目标文件快速发送至第二目标联系人,从而实现在第一视频中快速截取目标文件进行分享的效果。
可选地,用户输入单元2207,还用于在输出目标文件之后,接收用户对所述目标文件的第六输入;
处理器2210,还用于响应于所述第六输入,执行第二编辑处理,所述第二编辑处理包括以下至少一项:
在所述目标文件包括第三目标文件和第四目标文件的情况下,更新所述第三目标文件和所述第四目标文件的位置信息;
对所述目标文件的文件内容进行编辑;
在所述目标文件包括第五目标文件和第六目标文件的情况下,对所述第五目标文件和所述第六目标文件进行文件合成。
该实施方式中,通过将输出的目标文件进行排序或特效处理,优化目标文件的展示效果,从而进一步提升用户的分享体验。
应理解的是,本申请实施例中,输入单元2204可以包括图形处理器(Graphics Processing Unit,GPU)22041和麦克风22042,图形处理器22041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元2206可包括显示面板22061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板22061。用户输入单元2207包括触控面板22071以及其他输入设备22072。触控面板22071,也称为触摸屏。触控面板22071可包括触摸检测装置和触摸控制器两个部分。其他输入设备22072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器2209可用于存储软件程序以及各种数据,包括但不限于应用程序和操作***。处理器2210可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器2210中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述文件生成方法实施例的各 个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述文件生成方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为***级芯片、***芯片、芯片***或片上***芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、 光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (18)

  1. 一种文件生成方法,其中,包括:
    接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,所述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图;
    响应于所述第一输入,输出目标文件,所述目标文件包括目标视频帧,所述目标视频帧为所述目标缩略图对应的视频图像帧。
  2. 根据权利要求1所述的方法,其中,所述第一输入包括第一子输入及第二子输入;
    所述响应于所述第一输入,输出目标文件,包括:
    在接收到用户对所述至少两个视频图像缩略图中第一目标缩略图的所述第一子输入、以及对第二目标缩略图的所述第二子输入的情况下,输出目标视频,所述目标视频包括所述第一目标缩略图对应的视频图像帧与所述第二目标缩略图对应的视频图像帧之间的视频片段;
    在接收到用户对所述至少两个视频图像缩略图中第三目标缩略图的所述第一子输入及所述第二子输入的情况下,输出目标图像,所述目标图像为所述第三目标缩略图对应的视频图像帧。
  3. 根据权利要求1所述的方法,其中,所述接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入之前,所述方法还包括:
    显示第一视频的至少两个视频图像缩略图,所述至少两个视频图像缩略图的数目小于所述第一视频的视频图像帧的数目。
  4. 根据权利要求1所述的方法,其中,所述方法还包括:
    接收用户对所述至少两个视频图像缩略图中第四目标缩略图的第二输入;
    响应于所述第二输入,显示所述第四目标缩略图与第五目标缩略图之间的视频图像缩略图;
    其中,所述第五目标缩略图为接收所述第二输入之前与所述第四目标缩 略图相邻的视频图像缩略图。
  5. 根据权利要求1所述的方法,其中,所述方法还包括:
    显示所述第一视频的历史编辑记录窗口,所述历史编辑记录窗口包括至少一条历史编辑信息,所述历史编辑信息用于指示根据所述第一视频生成对应的目标文件;
    接收用户对所述至少一条历史编辑信息中的第一目标编辑信息的第三输入;
    响应于所述第三输入,将所述第一目标编辑信息对应的第一目标文件发送至第一目标联系人。
  6. 根据权利要求5所述的方法,其中,所述方法还包括:
    接收用户对所述至少一条历史编辑信息中的第二目标编辑信息的第四输入;
    响应于所述第四输入,执行第一编辑处理,所述第一编辑处理包括以下至少一项:显示与所述第二目标编辑信息对应的第二目标文件的文件信息;删除所述第二目标编辑信息;更新所述第二目标编辑信息。
  7. 根据权利要求1所述的方法,其中,所述接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入之后,所述方法还包括:
    响应于所述第一输入,生成第一历史编辑信息。
  8. 根据权利要求1所述的方法,其中,所述输出目标文件之后,所述方法还包括:
    接收用户的第五输入;
    响应于所述第五输入,将所述目标文件发送至第二目标联系人。
  9. 根据权利要求1所述的方法,其中,所述输出目标文件之后,所述方法还包括:
    接收用户对所述目标文件的第六输入;
    响应于所述第六输入,执行第二编辑处理,所述第二编辑处理包括以下至少一项:
    在所述目标文件包括第三目标文件和第四目标文件的情况下,更新所述第三目标文件和所述第四目标文件的位置信息;
    对所述目标文件的文件内容进行编辑;
    在所述目标文件包括第五目标文件和第六目标文件的情况下,对所述第五目标文件和所述第六目标文件进行文件合成。
  10. 一种文件生成装置,其中,所述装置包括:
    第一接收模块,用于接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,所述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图;
    第一输出模块,用于响应于所述第一输入,输出目标文件,所述目标文件包括目标视频帧,所述目标视频帧为所述目标缩略图对应的视频图像帧。
  11. 根据权利要求10所述的装置,其中,所述第一输入包括第一子输入及第二子输入;
    所述第一输出模块包括:
    第一输入单元,用于在接收到用户对所述至少两个视频图像缩略图中第一目标缩略图的所述第一子输入、以及对第二目标缩略图的所述第二子输入的情况下,输出目标视频,所述目标视频包括所述第一目标缩略图对应的视频图像帧与所述第二目标缩略图对应的视频图像帧之间的视频片段;
    第二输入单元,用于在接收到用户对所述至少两个视频图像缩略图中第三目标缩略图的所述第一子输入及所述第二子输入的情况下,输出目标图像,所述目标图像为所述第三目标缩略图对应的视频图像帧。
  12. 根据权利要求10所述的装置,其中,所述装置还包括:
    第一显示模块,用于在所述接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入之前,显示第一视频的至少两个视频图像缩略图,所述至少两个视频图像缩略图的数目小于所述第一视频的视频图像帧的数目。
  13. 根据权利要求10所述的装置,其中,所述装置还包括:
    第二接收模块,用于接收用户对所述至少两个视频图像缩略图中第四目 标缩略图的第二输入;
    第二显示模块,用于响应于所述第二输入,显示所述第四目标缩略图与第五目标缩略图之间的视频图像缩略图;
    其中,所述第五目标缩略图为接收所述第二输入之前与所述第四目标缩略图相邻的视频图像缩略图。
  14. 根据权利要求10所述的装置,其中,所述装置还包括:
    第三显示模块,用于显示所述第一视频的历史编辑记录窗口,所述历史编辑记录窗口包括至少一条历史编辑信息,所述历史编辑信息用于指示根据所述第一视频生成对应的目标文件;
    第三接收模块,用于接收用户对所述至少一条历史编辑信息中的第一目标编辑信息的第三输入;
    第一发送模块,用于响应于所述第三输入,将所述第一目标编辑信息对应的第一目标文件发送至第一目标联系人。
  15. 一种电子设备,其中,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1~9所述的文件生成方法的步骤。
  16. 一种芯片,其中,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1~9所述的文件生成方法的步骤。
  17. 一种计算机程序产品,其中,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1~9所述的文件生成方法的步骤。
  18. 一种文件生成装置,其中,所述装置被配置成用于执行如权利要求1~9所述的文件生成方法。
PCT/CN2022/124926 2021-10-15 2022-10-12 一种文件生成方法、装置及电子设备 WO2023061414A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111212486.1A CN113918522A (zh) 2021-10-15 2021-10-15 一种文件生成方法、装置及电子设备
CN202111212486.1 2021-10-15

Publications (1)

Publication Number Publication Date
WO2023061414A1 true WO2023061414A1 (zh) 2023-04-20

Family

ID=79241356

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/124926 WO2023061414A1 (zh) 2021-10-15 2022-10-12 一种文件生成方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN113918522A (zh)
WO (1) WO2023061414A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113918522A (zh) * 2021-10-15 2022-01-11 维沃移动通信有限公司 一种文件生成方法、装置及电子设备
CN114679546A (zh) * 2022-03-31 2022-06-28 维沃移动通信有限公司 一种显示方法及其装置、电子设备和可读存储介质
CN114928761B (zh) * 2022-05-07 2024-04-12 维沃移动通信有限公司 视频分享方法、装置及电子设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007110566A (ja) * 2005-10-14 2007-04-26 Sharp Corp 動画編集装置、および動画編集方法
US20150194186A1 (en) * 2014-01-08 2015-07-09 Lg Electronics Inc. Mobile terminal and controlling method thereof
US20160048313A1 (en) * 2014-08-18 2016-02-18 KnowMe Systems, Inc. Scripted digital media message generation
CN109905780A (zh) * 2019-03-30 2019-06-18 山东云缦智能科技有限公司 一种视频片段分享方法和智能机顶盒
CN110933509A (zh) * 2019-12-09 2020-03-27 北京字节跳动网络技术有限公司 一种信息发布的方法、装置、电子设备及存储介质
CN113242464A (zh) * 2021-01-28 2021-08-10 维沃移动通信有限公司 视频编辑方法、装置
CN113918522A (zh) * 2021-10-15 2022-01-11 维沃移动通信有限公司 一种文件生成方法、装置及电子设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007110566A (ja) * 2005-10-14 2007-04-26 Sharp Corp 動画編集装置、および動画編集方法
US20150194186A1 (en) * 2014-01-08 2015-07-09 Lg Electronics Inc. Mobile terminal and controlling method thereof
US20160048313A1 (en) * 2014-08-18 2016-02-18 KnowMe Systems, Inc. Scripted digital media message generation
CN109905780A (zh) * 2019-03-30 2019-06-18 山东云缦智能科技有限公司 一种视频片段分享方法和智能机顶盒
CN110933509A (zh) * 2019-12-09 2020-03-27 北京字节跳动网络技术有限公司 一种信息发布的方法、装置、电子设备及存储介质
CN113242464A (zh) * 2021-01-28 2021-08-10 维沃移动通信有限公司 视频编辑方法、装置
CN113918522A (zh) * 2021-10-15 2022-01-11 维沃移动通信有限公司 一种文件生成方法、装置及电子设备

Also Published As

Publication number Publication date
CN113918522A (zh) 2022-01-11

Similar Documents

Publication Publication Date Title
US20220342519A1 (en) Content Presentation and Interaction Across Multiple Displays
WO2023061414A1 (zh) 一种文件生成方法、装置及电子设备
CN112153288B (zh) 用于发布视频或图像的方法、装置、设备和介质
TWI592021B (zh) 生成視頻的方法、裝置及終端
KR102013331B1 (ko) 듀얼 카메라를 구비하는 휴대 단말기의 이미지 합성 장치 및 방법
CN108334371B (zh) 编辑对象的方法和装置
US20120249575A1 (en) Display device for displaying related digital images
CN111343074B (zh) 一种视频处理方法、装置和设备以及存储介质
CN112540821A (zh) 信息发送方法和电子设备
CN112672061B (zh) 视频拍摄方法、装置、电子设备及介质
WO2019242274A1 (zh) 一种内容处理方法及装置
WO2023030306A1 (zh) 视频编辑方法、装置及电子设备
WO2023072083A1 (zh) 文件处理的方法和电子设备
WO2023040896A1 (zh) 内容分享方法、装置和电子设备
CN102799384A (zh) 进行外景截图的方法、客户端及***
CN112954046A (zh) 信息发送方法、信息发送装置和电子设备
WO2024109699A1 (zh) 显示方法、装置、电子设备及介质
CN113986574A (zh) 评论内容的生成方法、装置、电子设备和存储介质
CN113988021A (zh) 内容互动方法、装置、电子设备及存储介质
WO2023155858A1 (zh) 文档编辑方法及其装置
WO2023179539A1 (zh) 视频编辑方法、装置及电子设备
WO2023155874A1 (zh) 应用图标管理方法、装置和电子设备
WO2023016476A1 (zh) 截屏方法及装置
WO2023020328A1 (zh) 一种对象操控方法、装置及电子设备
CN113810538B (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: 22880350

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE