WO2023061414A1 - File generation method and apparatus, and electronic device - Google Patents

File generation method and apparatus, and electronic device 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
French (fr)
Chinese (zh)
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/en

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

A file generation method and apparatus, and an electronic device and a readable storage medium, which belong to the technical field of file sharing and transmission. The method comprises: receiving, from a user, a first input for a target thumbnail among at least two video image thumbnails, wherein the at least two video image thumbnails are thumbnails of at least two video image frames in a first video (100); and in response to the first input, outputting a target file, wherein the target file comprises a target video frame, and the target video frame is a video image frame corresponding to the target thumbnail (200).

Description

一种文件生成方法、装置及电子设备A file generation method, device and electronic equipment
相关申请的交叉引用Cross References to Related Applications
本申请要求在2021年10月15日提交中国专利局、申请号为202111212486.1、名称为“一种文件生成方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with application number 202111212486.1 and titled "A Method, Device, and Electronic Device for Document Generation" filed with the China Patent Office on October 15, 2021, the entire contents of which are incorporated herein by reference. Applying.
技术领域technical field
本申请属于视频处理技术领域,具体涉及一种基于视频的文件生成方法、装置及电子设备。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.
背景技术Background technique
随着社交软件、社交平台的迅猛发展,视频分享成为了人们交流的重要途径之一。With the rapid development of social software and social platforms, video sharing has become one of the important ways for people to communicate.
由于用户录制或者下载视频时经常会包含一些不需要的视频片段,直接进行分享需要使用较多流量,分享速度较慢,还不能体现视频重点,所以在进行分享前,往往需要使用视频剪辑软件进行视频或者图像的截取,操作比较繁琐。Since users record or download videos often contain some unnecessary video clips, direct sharing requires a lot of traffic, the sharing speed is slow, and the focus of the video cannot be reflected, so before sharing, it is often necessary to use video editing software The interception of video or image is relatively cumbersome.
发明内容Contents of the invention
本申请实施例的目的是提供一种文件生成方法、装置及电子设备,能够解决相关技术在截取视频中的部分视频或图像时操作繁琐的问题。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.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above-mentioned technical problems, the application is implemented as follows:
第一方面,本申请实施例提供了一种文件生成方法,其中,所述方法包括:In the first aspect, the embodiment of the present application provides a method for generating a file, wherein the method includes:
接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,所述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图;receiving 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 the first video;
响应于所述第一输入,输出目标文件,所述目标文件包括目标视频帧,所述目标视频帧为所述目标缩略图对应的视频图像帧。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.
第二方面,本申请实施例提供了一种文件生成装置,其中,所述装置包括:In the second aspect, 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.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, 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.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, 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 .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In the fifth aspect, 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.
第六方面,本申请实施例提供了一种计算机程序产品,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如第一方面所述的方法的步骤。In a sixth aspect, 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.
第七方面,本申请实施例提供了一种文件生成装置,所述装置被配置成用于执行如第一方面所述的方法。In a seventh aspect, 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.
在本申请实施例中,接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,上述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图;响应于上述第一输入,输出目标文件,上述目标文件包括目标视频帧,上述目标视频帧为上述目标缩略图对应的视频图像帧。上述文件生成过程中,用户通过对第一视频对应的至少两个视频图像缩略图中的目标缩略图的第一输入,即可以确定并输出包括上述目标缩略图对应的视频图像帧的目标文件,从而便捷实现从第一视频中截取视频片段或图像,因而解决了相关技术在截取视频中的部分视频或图像时操作繁琐的问题。In the embodiment of the present application, 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 ; 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. In the above-mentioned file generation process, 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.
附图说明Description of drawings
图1是本申请实施例提供的文件生成方法的步骤流程图;Fig. 1 is a flow chart of the steps of the file generation method provided by the embodiment of the present application;
图2是本申请实施例中社交软件的聊天界面示意图;Fig. 2 is a schematic diagram of the chat interface of the social software in the embodiment of the present application;
图3是本申请实施例中选择第一视频的第一界面示意图;FIG. 3 is a schematic diagram of a first interface for selecting a first video in an embodiment of the present application;
图4是本申请实施例中将第一视频直接分享后的界面示意图;Fig. 4 is a schematic diagram of the interface after the first video is directly shared in the embodiment of the present application;
图5是本申请实施例中现拍第一视频进行分享的界面示意图;FIG. 5 is a schematic diagram of an interface for sharing the first video currently shot in the embodiment of the present application;
图6是本申请实施例中选择第一视频的第二界面示意图;FIG. 6 is a schematic diagram of a second interface for selecting a first video in an embodiment of the present application;
图7是本申请实施例中选择第一视频的第三界面示意图;FIG. 7 is a schematic diagram of a third interface for selecting a first video in an embodiment of the present application;
图8是本申请实施例中已选第一视频的界面显示示意图;Fig. 8 is a schematic diagram of the interface display of the selected first video in the embodiment of the present application;
图9是本申请实施例中确定目标联系人的界面显示示意图;FIG. 9 is a schematic diagram of an interface display for determining a target contact in an embodiment of the present application;
图10是本申请实施例中视频编辑界面的第一显示示意图;Fig. 10 is a first display schematic diagram of the video editing interface in the embodiment of the present application;
图11是本申请实施例中视频编辑界面的第二显示示意图;Fig. 11 is a second display schematic diagram of the video editing interface in the embodiment of the present application;
图12是本申请实施例中视频编辑界面的第三显示示意图;Fig. 12 is a third schematic display of the video editing interface in the embodiment of the present application;
图13是本申请实施例中待分享对象的第一界面示意图;Fig. 13 is a schematic diagram of the first interface of the object to be shared in the embodiment of the present application;
图14是本申请实施例中视频编辑界面的第四显示示意图;Fig. 14 is a fourth display schematic diagram of the video editing interface in the embodiment of the present application;
图15是本申请实施例中待分享对象的第二界面示意图;Fig. 15 is a schematic diagram of the second interface of the object to be shared in the embodiment of the present application;
图16是本申请实施例中动画制作界面示意图;Fig. 16 is a schematic diagram of the animation production interface in the embodiment of the present application;
图17是本申请实施例中动画浏览界面示意图;Fig. 17 is a schematic diagram of the animation browsing interface in the embodiment of the present application;
图18是本申请实施例中静态图片墙示意图;Fig. 18 is a schematic diagram of a static picture wall in the embodiment of the present application;
图19是本申请实施例中目标视频与目标图像的组合效果示意图;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;
图20是本申请实施例提供的文件生成装置的结构示意图;Fig. 20 is a schematic structural diagram of a file generation device provided by an embodiment of the present application;
图21是本申请实施例提供的电子设备的结构框图;Fig. 21 is a structural block diagram of an electronic device provided by an embodiment of the present application;
图22是本申请实施例提供的电子设备的硬件结构示意图。FIG. 22 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
具体实施例specific embodiment
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创 造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts all belong to the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的文件生成方法进行详细地说明。The file generation method provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
请参阅图1,示出了本申请实施例提供的一种文件生成方法的步骤流程图,其中,该方法可以包括步骤100~200。Please refer to FIG. 1 , which 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.
本申请实施例中,该方法应用于主设备,该主设备为电子设备,该电子设备可以是手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等移动电子设备,也可以是个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等非移动电子设备,只要该电子设备可以进行文件分享传输。In the embodiment of the present application, 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. Non-mobile electronic devices, as long as the electronic devices can share and transmit files.
步骤100、接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,所述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图。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.
上述步骤100中,第一视频是待分享的视频,可以是预先在相册保存的视频,也可以是实时录制的视频,例如可以是由社交聊天界面启动电子设备的摄像头进行现场拍摄得到的视频;第一输入是在第一视频所包括的至少两个视频图像帧对应的缩略图中选择目标缩略图的操作,具体可以为用户对目标缩略图的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。In the above step 100, 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.
其中,本申请实施例中的特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种;本申请实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。Among them, 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.
步骤200、响应于所述第一输入,输出目标文件,所述目标文件包括目标视频帧,所述目标视频帧为所述目标缩略图对应的视频图像帧。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.
上述步骤200中,因为第一输入为对目标缩略图的选择操作,说明用户需要从第一视频中截取包括目标缩略图对应的视频图像帧的文件,也即上述目标文件,从而输出该目标文件,便捷实现从第一视频中截取上述目标文件,其中,该目标文件可以为视频片段或图像。In the above step 200, because the first input is the selection operation of the target thumbnail, it means that the user needs to intercept the file including the video image frame corresponding to the target thumbnail from the first video, that is, the above target file, so as to output the target file to conveniently intercept the above target file from the first video, where the target file may be a video segment or an image.
本申请实施例提供的文件生成方法,接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,上述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图;响应于上述第一输入,输出目标文件,上述目标文件包括目标视频帧,上述目标视频帧为上述目标缩略图对应的视频图像帧。上述文件生成过程中,用户通过对第一视频对应的至少两个视频图像缩略图中的目标缩略图的第一输入,即可以确定并输出包括上述目标缩略图对应的视频图像帧的目标文件,从而便捷实现从第一视频中截取视频片段或图像,因而解决了相关技术在截取视频中的部分视频或图像时操作繁琐的问题。The file generation method provided by the embodiment of the present application 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. In the above-mentioned file generation process, 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.
其中,请参阅图2,示出了社交软件的聊天界面示意图。Wherein, please refer to FIG. 2 , which shows a schematic diagram of a chat interface of social software.
如图2所示,在用户需要向聊天界面31对应的聊天对象分享视频时,若需要从相册中选择第一视频分享,则点击“相册”控件并跳转至图3所示的界面,用户可以在相册中勾选所需视频题材;在不需要对图3中选择的视频题材进行编辑操作处理时,通过点击“发送”控件即可以将直接将所选视 频题材分享给聊天对象,也即上述目标联系人,并切回聊天界面31,具体效果如图4所示;在需要对图3中选择的视频题材进行编辑操作处理时,通过点击“编辑”控件即可触发进入从上述视频题材中截取目标文件的视频编辑界面。As shown in Figure 2, when the user needs to share a video with the chat partner corresponding to the chat interface 31, if the user needs to select the first video to share from the photo album, then click the "Album" control and jump to the interface shown in Figure 3, the user You can check the desired video theme in the album; when you do not need to edit the video theme selected in Figure 3, you can directly share the selected video theme with the chat partner by clicking the "Send" control, that is, The above-mentioned target contact, and switch back to the chat interface 31, the specific effect is shown in Figure 4; when it is necessary to edit the video theme selected in Figure 3, click the "Edit" control to trigger the entry from the above video theme The video editing interface for intercepting target files in .
如图2所示,在用户需要向聊天对象分享视频时,若需要现场拍摄视频题材,则点击“拍摄”控件并则跳转至图5所示的拍摄预览界面32,可现场拍摄待分享的题材。在不需要对图5中现场拍摄的题材进行编辑操作处理时,通过点击“发送”控件即可以将直接将所选题材发送给聊天对象;在需要对图5中现场拍摄的视频题材进行编辑操作处理时,通过点击“编辑”控件即可触发进入从上述视频题材中截取目标文件的视频编辑界面的视频编辑界面。As shown in Figure 2, when the user needs to share a video with a chat partner, if the subject of the video needs to be shot on the spot, click on the "shoot" control and jump to the shooting preview interface 32 shown in Figure 5, where the video to be shared can be shot on the spot theme. When there is no need to edit and process the subject matter shot on-site in Figure 5, the selected subject matter can be directly sent to the chat partner by clicking the "Send" control; when it is necessary to edit the subject matter of the video shot on-site in Figure 5 When processing, click on the "Edit" control to trigger the video editing interface to intercept the target file from the above-mentioned video theme.
请参阅图6,示出了用户通过相册界面选择第一视频进行分享的界面示意图。Please refer to FIG. 6 , which shows a schematic diagram of an interface in which the user selects the first video to share through the album interface.
如图6所示,在用户选择进行编辑处理的题材时,点击图6中的“视频”类别并进入图7所示的界面,用户可以在相册中勾选所需进行分享的视频题材,并在选择视频题材后进入所选视频题材的分享预览界面33,具体如图8所示;在不需要对图8中选择的视频题材进行编辑操作处理时,通过点击“发送”控件即可以直接将所选视频题材发送给聊天对象;在需要对图8中选择的题材进行编辑操作处理时,通过点击“编辑”控件即可触发进入上述视频编辑界面,并从所选视频题材中进行目标文件的截取处理;在处理完毕后,进入图9所示的通过选取社交软件确定目标联系人进行分享的界面。As shown in Figure 6, when the user selects a theme for editing, click the "Video" category in Figure 6 and enter the interface shown in Figure 7, the user can check the video theme to be shared in the album, and Enter the shared preview interface 33 of the selected video theme after selecting the video theme, specifically as shown in Figure 8; The selected video theme is sent to the chat partner; when it is necessary to edit the theme selected in Figure 8, click the "Edit" control to trigger the above video editing interface, and edit the target file from the selected video theme Interception processing; after the processing is completed, enter the interface shown in Figure 9 to determine the target contact by selecting social software for sharing.
可选地,在一种实施方式中,本申请实施例所提供的文件生成方法,在上述步骤100之前,还包括步骤101:Optionally, in an implementation manner, the file generation method provided in the embodiment of the present application further includes step 101 before the above step 100:
步骤101、显示第一视频的至少两个视频图像缩略图,所述至少两个视频图像缩略图的数目小于所述第一视频的视频图像帧的数目。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.
该实施方式中,先展示第一视频的至少两个视频图像缩略图对应的缩略图,以便于用户选择所需要的目标缩略图,从而确定对应的视频图像帧,进 而生成相应的目标文件。In this embodiment, 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.
可选地,在一种具体实施方式中,上述步骤101包括步骤1011~步骤1012。Optionally, in a specific implementation manner, the foregoing step 101 includes steps 1011 to 1012.
步骤1011、根据所述第一视频的时长及展示帧数,确定平均间隔时长。Step 1011, according to the duration of the first video and the number of display frames, determine the average interval duration.
该步骤中,展示帧数为需要展示出来给用户选择目标文件的视频图像缩略图的帧数,该展示帧数可以为固定值,也可以根据第一视频的长短动态调整。In this step, 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.
该步骤中,将第一视频的时长除以上述展示帧数,即可以确定需要展示的视频图像缩略图对应的视频图像帧之间间隔的时长,也即上述平均间隔时长。In this step, by dividing the duration of the first video by the number of display frames, 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.
步骤1012、按所述平均间隔时长,依次从所述第一视频所包含的各视频图像帧中确定待展示的第一视频图像帧,并显示各所述第一视频图像帧的缩略图。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.
该步骤中,即从该第一视频中包含的全部视频图像帧的第一帧开始,每隔一个上述平均间隔时长,选定相应视频时间点对应的视频图像帧作为展示给用户选择的视频图像帧,然后生成并显示该视频图像帧的缩略图。In this step, starting from the first frame of all the video image frames contained in the first video, 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.
本申请实施例中,所述至少两个视频图像缩略图对应的至少两个视频图像帧之间的时间间隔还可以不同,即相邻两个视频图像帧之间的时间间隔不同,可以是基于关键信息得到所述至少两个视频图像帧,具体地,例如可以通过识别视频图像帧中是否包含特定对象(例如人脸)等,将包含特定对象的视频图像帧的缩略进行显示。In the embodiment of the present application, 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.
可选地,在一种实施方式中,第一输入包括第一子输入及第二子输入;上述步骤200包括步骤201~步骤202。Optionally, in an implementation manner, the first input includes a first sub-input and a second sub-input; the above step 200 includes steps 201 - 202 .
该实施方式中,第一子输入及第二子输入均为从各缩略图中选择目标缩 略图的操作,具体可以为用户对目标缩略图的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。In this embodiment, 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.
步骤201、在接收到用户对所述至少两个视频图像缩略图中第一目标缩略图的所述第一子输入、以及对第二目标缩略图的所述第二子输入的情况下,输出目标视频,所述目标视频包括所述第一目标缩略图对应的视频图像帧与所述第二目标缩略图对应的视频图像帧之间的视频片段。 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.
该步骤中,在该第一子输入为对第一目标缩略图,且该第二子输入为对第二目标缩略图时,即若第一次选择操作选中了第一目标缩略图,而第二次选择操作选中了第二目标缩略图,说明需要选定第一目标缩略图对应的视频图像帧(第一视频帧)与第二目标缩略图对应的视频图像帧(第二视频帧)之间的视频片段作为目标文件,因而将第一视频帧和第二视频帧之间的视频片段确定为一个目标视频,并输出上述目标视频。In this step, when the first sub-input is for the first target thumbnail and the second sub-input is for the second target thumbnail, that is, if the first selection operation selects the first target thumbnail, and 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.
步骤202、在接收到用户对所述至少两个视频图像缩略图中第三目标缩略图的所述第一子输入及所述第二子输入的情况下,输出目标图像,所述目标图像为所述第三目标缩略图对应的视频图像帧。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.
该步骤中,在该第一子输入及第二子输入均为对同一个第三目标缩略图的输入时,即若第一次选择操作选中了第三目标缩略图,且第二次选择操作依然选中了第三目标缩略图,说明需要选定该第三目标缩略图对应的视频图像帧作为目标文件,因而确定该第三目标缩略图对应的视频图像帧作为目标图像,并输出该图标图像。In this step, when both the first sub-input and the second sub-input are input to the same third target thumbnail, that is, if the first selection operation selects the third target thumbnail, and the second selection operation The third target thumbnail is still selected, indicating that the video image frame corresponding to the third target thumbnail needs to be selected as the target file, so the video image frame corresponding to the third target thumbnail is determined as the target image, and the icon image is output .
例如,首次单击第一目标缩略图为选择开始,再次单击第二目标缩略图则认为选择结束,若选择开始和选择结束均是对同一个缩略图,则选定该缩略图对应的视频图像帧作为目标文件,否则选定第一目标缩略图对应的视频图像帧视频帧与第二目标缩略图对应的视频图像帧之间的视频内容作为目标文件。For example, clicking the first target thumbnail for the first time is the selection start, and clicking the second target thumbnail again is considered the selection end, if the selection start and the selection end are both for the same thumbnail, then 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.
其中,在执行了第一子输入及第二子输入后,可以通过上滑或下滑等手 势操作取消上一次选定操作,也可以通过再次点选相应的缩略图进行取消,以便于用户更正选择。Among them, after performing the first sub-input and the second sub-input, 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 .
上述实施方式中,通过两次选择操作视频图像缩略图的方式,可以快速从中第一视频中选择截取目标图像或目标视频。In the above implementation manner, by selecting and operating the thumbnail of the video image twice, it is possible to quickly select the intercepted target image or the target video from the first video.
可选地,在一种实施方式中,本申请实施例所提供的方法,在上述步骤100之后,还包括步骤102。Optionally, in an implementation manner, the method provided in the embodiment of the present application further includes step 102 after the above step 100 .
步骤102、响应于所述第一输入,生成第一历史编辑信息。Step 102: Generate first history editing information in response to the first input.
该实施方式中,第一历史编辑信息记录了目标文件对应的目标缩略图,因而可以用于指示根据第一视频生成对应的目标文件;通过生成上述第一历史编辑信息,可以存储用户从第一视频中截取对应的目标文件的方式,便于用户后续按历史编辑信息快速从第一视频中截取对应的目标文件。In this embodiment, 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.
其中,上述第一历史编辑信息还可以包括用户在编辑区域输入的文本信息,也即将上述文本信息作为目标文件的备注名称。通过为上述目标文件添加备注名称,也实现对相应第一历史编辑信息的备注,以便于用户识别、区分。Wherein, 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. By adding a remark name to the above-mentioned target file, a remark on the corresponding first historical editing information is also realized, so as to facilitate user identification and distinction.
可选地,在一种实施方式中,本申请实施例所提供的方法,在上述步骤200之后,还包括步骤301~步骤302。Optionally, in an implementation manner, the method provided in the embodiment of the present application further includes step 301 to step 302 after the above step 200 .
步骤301、接收用户的第五输入。Step 301. Receive a fifth input from a user.
该步骤中,第五输入为将输出的目标文件进行分享的操作,可以为用户对目标文件的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。In this step, 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.
步骤302、响应于所述第五输入,将所述目标文件发送至第二目标联系人。Step 302: Send the target file to a second target contact in response to the fifth input.
该步骤中,在接收到上述第五输入的情况下,说明用户希望将通过第一输入操作输出的目标文件进行分享,因而将该第一目标文件发送至第二目标联系人。In this step, when the above-mentioned fifth input is received, it means that the user wishes to share the target file output through the first input operation, and thus sends the first target file to the second target contact.
其中,上述第二目标联系人可以是社交软件当前聊天界面的联系人,例 如通过与小明的聊天界面触发进入输出上述目标文件的窗口,则小明就是第二目标联系人;Wherein, 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;
当然,在一种具体实施方式中,上述第二目标联系人也可以是在进行打开第一视频并进入输出上述目标文件的窗口后,再通过打开社交软件打开确定的联系人。Certainly, in a specific implementation manner, 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.
上述实施方式,在输出目标文件后,通过对目标文件执行第五输入,可以将目标文件快速发送至第二目标联系人,从而实现在第一视频中快速截取目标文件进行分享的效果。In the above embodiment, 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.
可选地,在一种实施方式中,本申请实施例所提供的文件生成方法,还包括步骤401~步骤403。Optionally, in an implementation manner, the file generation method provided in the embodiment of the present application further includes steps 401 to 403 .
步骤401、显示所述第一视频的历史编辑记录窗口,所述历史编辑记录窗口包括至少一条历史编辑信息,所述历史编辑信息用于指示根据所述第一视频生成对应的目标文件。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.
该步骤中,历史编辑信息是用户在本次操作之前从第一视频中选取视频图像缩略图生成对应的目标文件的记录,该历史编辑信息不对抽取内容进行额外存储,只记录操作信息,方便下次分享。In this step, 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.
步骤402、接收用户对所述至少一条历史编辑信息中的第一目标编辑信息的第三输入。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.
该步骤中,第三输入为从至少一条历史编辑信息选取所需的第一目标编辑信息,并将第一目标编辑信息对应的第一目标文件进行分享的操作,可以为用户对第一目标编辑信息的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。In this step, 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.
步骤403、响应于所述第三输入,将所述第一目标编辑信息对应的第一目标文件发送至第一目标联系人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
该步骤中,在接收到上述第三输入的情况下,说明用户希望将利用该第一目标编辑信息生成的第一目标文件进行分享,因而基于该第一目标编辑信 息生成对应的第一目标文件,并将该第一目标文件发送至第一目标联系人。In 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.
其中,上述第一目标联系人可以是社交软件当前聊天界面的联系人,例如通过与小明的聊天界面触发进入第一视频的上述历史编辑记录窗口,则小明就是第一目标联系人。Wherein, 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.
当然,在一种具体实施方式中,上述第一目标联系人也可以是在打开第一视频并进入上述历史编辑记录窗口选定第一目标编辑信息后,再通过打开社交软件确定的联系人。Certainly, in a specific implementation manner, 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.
上述实施方式中,通过显示包括至少一条用于指示根据第一视频生成对应的目标文件的历史编辑信息的历史编辑记录窗口,便于用户按历史编辑信息快速从第一视频中截取对应的目标文件。In the above embodiment, by displaying 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.
可选地,在一种实施方式中,本申请实施例所提供的方法,还包括步骤404~步骤405。Optionally, in an implementation manner, the method provided in the embodiment of the present application further includes step 404 to step 405 .
步骤404、接收用户对所述至少一条历史编辑信息中的第二目标编辑信息的第四输入。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.
该步骤中,第四输入为确定需要对第二目标编辑信息对应的目标文件进行预览,重新编辑或删除第二目标编辑信息等编辑处理的操作,上述第四输入可以为用户对第二目标编辑信息的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定In this step, 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
具体地,该第四输入可以是对历史编辑记录窗口中第二目标编辑信息对应的预览控件、编辑控件或删除控件的点击操作。Specifically, 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.
步骤405、响应于所述第四输入,执行第一编辑处理,所述第一编辑处理包括以下至少一项:显示与所述第二目标编辑信息对应的第二目标文件的文件信息;删除所述第二目标编辑信息;更新所述第二目标编辑信息。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.
该步骤中,执行该第四输入对应的第一编辑处理,也即执行显示与第二目标编辑信息对应的第二目标文件的文件信息、删除第二目标编辑信息、更新第二目标编辑信息中的至少一项。In this step, 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 .
本实施例中,上述文件信息包括第二目标文件的备注名称、在第一视频中对应的视频图像缩略图、属于视频还是图片的属性信息等。In this embodiment, 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.
可选地,在一种具体实施方式中,视频编辑界面34如图10所示,包括第一视频的历史编辑记录窗口341、预览界面342、备注命名栏343及视频单帧图像界面344;其中,在历史编辑记录窗口341中显示有多条历史编辑信息3411,用户可以通过直接勾选历史编辑信息选项直接进行分享,也可以对历史编辑信息进行预览、重新编辑以及删除操作;预览界面342可以进行目标文件的预览播放;在备注命名界面中,用户可以通过备注命名来避免历史编辑信息过多无法区分,即通过对图10中备注命名栏343输入编辑信息,并将该编辑信息作为本次编辑操作对应的备注名称;视频单帧图像界面344中间隔显示有第一视频的若干视频图像缩略图,两帧视频图像缩略图之间间隔与第一视频时长成正比。Optionally, in a specific embodiment, the video editing interface 34, as shown in FIG. 10 , 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; In the remark naming interface, 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.
本实施例中,在执行第一输入后,可以通过对视频编辑界面中第一预设控件的点击操作,或者是第一预设手势的执行动作,将选定的目标文件作为待分享对象,并生成对应的历史编辑信息,以记录上述选择操作信息,并默认自动勾选。In this embodiment, after the first input is performed, 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.
其中,第一预设控件为确认将选定的目标文件内容作为待分享对象的控件,第一预设手势为确认将选定的目标文件作为待分享对象的手势。Wherein, the first preset control is a control for confirming that the selected target file content is used as the object to be shared, and the first preset gesture is a gesture for confirming that the selected target file is used as the object to be shared.
其中,若只选中了一个目标文件则如图11生成一个历史编辑信息,用户可直接发送;若为多个目标文件则如图12生成多个历史编辑信息,点击发送进入排序界面35对选定的待分享对象进行排序,具体如图13所示。Wherein, if only a target file is selected, a historical edit information is generated as shown in Figure 11, and the user can directly send it; if multiple target files are selected, multiple historical edit messages are generated as shown in Figure 12, and click Send to enter the sorting interface 35 pairs of selected The objects to be shared are sorted, as shown in Figure 13.
具体地,如图10~图13所示,通过点击其中的“预览”控件、“编辑”控件或“×”控件,可分别对相应的第二目标编辑信息对应的第二目标文件执行预览,或对第二目标编辑信息进行重新编辑或删除操作。Specifically, as shown in FIGS. 10 to 13 , by clicking the “preview” control, the “edit” control or the “×” control therein, 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.
在图10~图12及图14中,如果用户直接勾选历史编辑记录窗口341的历史编辑信息3411,则会在视频单帧图像界面344进行细节展示,即展示对应的目标文件在第一视频中的位置;如果用户需要对历史编辑信息进行变更 则可点击对应的“编辑”控件,下方视频单帧图像界面344对应的选取区间就会高亮显示,并且可以进行变更,变更后可点击“确认”控件进行更新。In Figures 10-12 and Figure 14, if the user directly checks the historical editing information 3411 in the historical editing record window 341, the details will be displayed on the video single-frame image interface 344, that is, the corresponding target file will be displayed in the first video If the user needs to change the historical editing information, he can click the corresponding "Edit" control, and the selection interval corresponding to the video single-frame image interface 344 below will be highlighted and can be changed. After the change, he can click " Confirm" control to update.
上述实施方式中,通过上述第四输入,可以执行显示第二目标文件的文件信息、删除第二目标编辑信息、更新第二目标编辑信息中的至少一项,更好地满足用户的实际需求。In the above embodiment, through the above fourth input, 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.
可选地,在一种实施方式中,本申请实施例所提供的文件生成方法,还包括步骤501~步骤502。Optionally, in an implementation manner, the file generation method provided in the embodiment of the present application further includes steps 501 to 502.
步骤501、接收用户对所述至少两个视频图像缩略图中第四目标缩略图的第二输入。Step 501. Receive a user's second input on a fourth target thumbnail among the at least two video image thumbnails.
该步骤中,因为在上述展示帧数固定的情况下,展示缩略图的视频图像帧之间时间间隔与视频时长成正比,也即两帧视频图像帧之间的间隔会随目标视频时长的变长而变长,容易出现展示的两相邻视频图像帧时间跨度过大导致用户无法快速定位所需的视频位置,因而当用户所需图片或者视频为两帧视频图像帧间隔之内的影像时,可以通过上述第二输入触发,也即上述第二输入为确定需要展开第四目标缩略图,及与第四目标缩略图相邻的视频图像缩略图之间的缩略图的操作。In this step, because the above-mentioned display frame number is fixed, 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. , can be triggered by 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.
该步骤中,上述第二输入可以为用户对第四目标缩略图的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。In this step, 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.
步骤502、响应于所述第二输入,显示所述第四目标缩略图与第五目标缩略图之间的视频图像缩略图。Step 502 , in response to the second input, display video image thumbnails between the fourth target thumbnail and the fifth target thumbnail.
其中,所述第五目标缩略图为接收所述第二输入之前与所述第四目标缩略图相邻的视频图像缩略图。Wherein, the fifth target thumbnail is a video image thumbnail adjacent to the fourth target thumbnail before receiving the second input.
该步骤中,在接收到用户对第四目标缩略图的第二输入时,说明用户需要展示第四目标缩略图对应的视频图像帧及当前与第四目标缩略图相邻的 第五目标缩略图对应的视频图像帧之间的其他视频图像帧,因而显示第四目标缩略图与第五目标缩略图之间的视频图像缩略图;第五目标缩略图可以是位于第四目标缩略图之前的视频图像缩略图,也可以是位于第四目标缩略图之后的视频图像缩略图;展开的视频图像缩略图可以是第四目标缩略图对应的视频图像帧与第五目标缩略图对应的视频图像帧之间的全部视频图像帧的缩略图,或者部分视频图像帧的缩略图。In this step, 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.
可选地,在一种具体实施方式中,在上述步骤502之后,还包括步骤503:Optionally, in a specific implementation manner, after the above step 502, step 503 is also included:
步骤503、在接收到对所述第四目标缩略图的第七输入的情况下,隐藏所述第四目标缩略图与第五目标缩略图之间的视频图像缩略图。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.
该步骤中,第七输入为取消显示第四目标缩略图与第五目标缩略图之间的视频图像缩略图的操作,上述第七输入可以为用户对第四目标缩略图的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。In this step, 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.
该步骤中,在接收到对第四目标缩略图的第七输入的情况下,说明用户不需要展示第四目标缩略图与第五目标缩略图之间的视频图像缩略图,因而隐藏第四目标缩略图与第五目标缩略图之间的视频图像缩略图。In this step, in the case of receiving the seventh input of the fourth target thumbnail, it means that the user does not need to display the video image thumbnail between the fourth target thumbnail and the fifth target thumbnail, thus hiding the fourth target The video image thumbnail between the thumbnail and the fifth target thumbnail.
具体地,在图10中,因为视频单帧图像界面344中显示的两相邻帧图像之间的间隔会随视频时长的变长而变长,所以当用户所需图像或者视频片段为当前显示的两帧视频图像缩略图3441之间的影像时,可以长按视频单帧图像界面中任一帧视频图像缩略图,便会打开该视频图像缩略图与前一帧视频图像缩略图之间的其他视频图像缩略图,具体如图14中的椭圆框部分345,以便于用户快速定位所需的视频图像帧位置;再次长按该视频图像缩略图则会取消显示椭圆框部分。Specifically, in FIG. 10 , because the interval between two adjacent frame images displayed in the video single-frame image interface 344 will become longer as the video duration becomes longer, so when the user's desired image or video segment is currently displayed When the image between the two frames of video image thumbnails 3441, you can long press any frame video image thumbnail in the video single frame image interface, and the video image between the video image thumbnail image and the previous frame video image thumbnail image will be opened Other video image thumbnails, specifically the elliptical frame part 345 in Figure 14, so that the user can quickly locate the desired video image frame position; long pressing the video image thumbnail again will cancel the display of the elliptical frame part.
该实施方式中,当用户所需图像或者视频片段为两帧视频图像缩略图之 间的影像时,通过对第四目标缩略图执行第二输入,即可触发打开与已展示的第四目标缩略图相邻的视频图像缩略图之间的其他视频图像缩略图,便于用户选取所需图像或视频片段。In this embodiment, 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.
可选地,在一种实施方式中,本申请实施例所提供的方法,在上述步骤200之后,还包括步骤601~步骤602。Optionally, in an implementation manner, the method provided in the embodiment of the present application further includes step 601 to step 602 after the above step 200 .
步骤601、接收用户对所述目标文件的第六输入。Step 601. Receive a sixth input from the user on the target file.
该步骤中,第六输入为对目标文件进行个性化编辑的操作,可以为用户对目标文件的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。In this step, 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.
步骤602、响应于所述第六输入,执行第二编辑处理,所述第二编辑处理包括以下至少一项: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:
在所述目标文件包括第三目标文件和第四目标文件的情况下,更新所述第三目标文件和所述第四目标文件的位置信息;In the case where 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;
对所述目标文件的文件内容进行编辑;Edit the file content of the target file;
在所述目标文件包括第五目标文件和第六目标文件的情况下,对所述第五目标文件和所述第六目标文件进行文件合成。When 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.
该步骤中,在接收到上述第六输入后,对目标文件执行该第六输入对应的个性化编辑处理;如在目标文件包括第三目标文件和第四目标文件时,更新第三目标文件和第四目标文件的位置信息,实现排序处理;如对目标文件进行增加动画、特效、字幕、添加滤镜、边框、背景、音效等的内容编辑;或者在目标文件包括第五目标文件和第六目标文件的情况下,将第五目标文件和第六目标文件进行合成处理。In this step, after receiving the above-mentioned sixth input, execute 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.
该实施方式中,通过将输出的目标文件进行排序或特效处理,优化目标文件的展示效果,从而进一步提升用户的分享体验。In this embodiment, by sorting or processing the output target files with special effects, the display effect of the target files is optimized, thereby further enhancing the user's sharing experience.
具体地,在图13所示的分享发送界面中增加动画制作功能,得到如图15所示的分享发送界面。若用户选取多个图片或者视频片段后,可以通过上划或下划对所选图片及视频片段进行排序;另外,还可以通过长按勾选所需 的视频片段或者图片,点击右上侧的“动画制作”控件触发上述步骤602,并进入图16所示的动画制作界面。Specifically, 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 . If 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 .
图16中,用户可以对所选的目标视频及目标图像进行组合处理,还可以添加静态背景、动态背景、相框、动画特效、背景音乐等处理,制作完成后通过点击“确定”控件等方式保存图像获得合成影像,也即获得目标待分享对象,并跳转至图17所示的动画浏览界面,也可以点击“保存模板”等方式生成自定义模板,后续制作可以直接点击使用模板进行套用,用户可以调整素材中视频或者图片的顺序改变使用的模板中视频或者图片的位置。In Figure 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. After the production is completed, 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. You can also click "Save Template" to generate a custom template, and you can directly click Use Template to apply for subsequent production. Users can adjust the order of videos or pictures in the material and change the position of videos or pictures in the template used.
图17为动画浏览界面,用户可以浏览生成的合成影像36,若不满意点击“取消”控件回退至图像编辑界面,若满意点击“发送”控件则触发上述第五输入,直接分享给目标联系人。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.
其中,合成处理可以是将所选多张目标图像进行组合,通过添加背景图片、相框、调节图片大小、旋转灯制作成一张静态图片墙,具体如图18所示;也可以进一步设置出场顺序、增加图片的出场、结束动画、添加背景音乐等方式制作成动态图片相册等。Among them, 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.
其中,合成处理也可以是将所选多个目标视频进行组合,通过调整视频顺序,添加视频间转场动画,添加背景音乐等,将多个提取的视频重新组合成一个视频进行分享。Wherein, 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.
其中,合成处理也可以是将所选多个目标视频及目标图像进行组合,通过给目标图像增加动画效果,作为多个目标视频间的转场动画或者视频的结尾动画,也可以在目标视频播放的特定时间段在部分位置进行展出,生成合成影像,具体可效果可参阅图19。Wherein, 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.
需要说明的是,本申请实施例提供的文件生成方法,执行主体可以为电子设备,或者该电子设备中的用于执行加载文件生成方法的文件生成模块。本申请实施例中以电子设备执行加载文件生成方法为例,说明本申请实施例提供的文件生成方法。It should be noted that, for the file generation method provided in the embodiment of the present application, 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. In the embodiment of the present application, 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.
请参阅图20,示出了本申请实施例提供的一种文件生成装置的结构示意 图,如图20所示,本申请实施例所提供的文件生成装置200,包括:Please refer to FIG. 20, which shows a schematic structural diagram of a file generating device provided by the embodiment of the present application. As shown in FIG. 20, the file generating device 200 provided by the embodiment of the present application includes:
第一接收模块201,用于接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,所述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图;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;
第一输出模块202,用于响应于所述第一输入,输出目标文件,所述目标文件包括目标视频帧,所述目标视频帧为所述目标缩略图对应的视频图像帧。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.
本申请实施例提供的文件生成装置,用户通过对第一视频对应的至少两个视频图像缩略图中的目标缩略图的第一输入,即可以确定并输出包括上述目标缩略图对应的视频图像帧的目标文件,从而便捷实现从第一视频中截取视频片段或图像,因而解决了相关技术在截取视频中的部分视频或图像时操作繁琐的问题。In the file generation device provided in the embodiment of the present application, 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.
可选地,在一种实施方式中,所述装置中,所述第一输入包括第一子输入及第二子输入;Optionally, in an implementation manner, in the device, the first input includes a first sub-input and a second sub-input;
所述第一输出模块202包括: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. Under the situation, 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.
上述实施方式中,通过两次选择操作视频图像缩略图的方式,可以快速从中第一视频中选择截取目标图像或目标视频。In the above implementation manner, by selecting and operating the thumbnail of the video image twice, it is possible to quickly select the intercepted target image or the target video from the first video.
可选地,在一种实施方式中,所述装置还包括:Optionally, in one embodiment, 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.
该实施方式中,先展示第一视频的至少两个视频图像帧对应的缩略图,以便于用户选择所需要的目标缩略图,从而确定对应的视频图像帧,进而生成相应的目标文件。In this embodiment, 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.
可选地,在一种实施方式中,所述装置还包括:Optionally, in one embodiment, 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;
其中,所述第五目标缩略图为接收所述第二输入之前与所述第四目标缩略图相邻的视频图像缩略图。Wherein, the fifth target thumbnail is a video image thumbnail adjacent to the fourth target thumbnail before receiving the second input.
该实施方式中,当用户所需图像或者视频片段为两帧视频图像缩略图之间的影像时,通过对第四目标缩略图执行第二输入,即可触发展开与已展示的第四目标缩略图相邻的视频图像缩略图之间的其他视频图像缩略图,便于用户选取所需图像或视频片段。In this embodiment, 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 thumbnail of the fourth target, 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.
可选地,在一种实施方式中,所述装置还包括:Optionally, in one embodiment, 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.
上述实施方式中,通过显示包括至少一条用于指示根据第一视频生成对应的目标文件的历史编辑信息的历史编辑记录窗口,便于用户按历史编辑信息快速从第一视频中截取对应的目标文件。In the above embodiment, by displaying 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.
可选地,在一种实施方式中,所述装置还包括:Optionally, in one embodiment, 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.
上述实施方式中,通过上述第四输入,可以执行显示第二目标文件的文件信息、删除第二目标编辑信息、更新第二目标编辑信息中的至少一项,更好地满足用户的实际需求。In the above embodiment, through the above fourth input, 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.
可选地,在一种实施方式中,所述装置还包括:Optionally, in one embodiment, 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.
该实施方式中,通过生成上述第一历史编辑信息,可以存储用户从第一视频中截取对应的目标文件的方式,便于用户后续按历史编辑信息快速从第一视频中截取对应的目标文件。In this embodiment, by generating the above-mentioned first historical editing information, 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.
可选地,在一种实施方式中,所述装置还包括:Optionally, in one embodiment, 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.
上述实施方式,在输出目标文件后,通过对目标文件执行第五输入,可以将目标文件快速发送至第二目标联系人,从而实现在第一视频中快速截取目标文件进行分享的效果。In the above embodiment, 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.
可选地,在一种实施方式中,所述装置还包括:Optionally, in one embodiment, 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:
在所述目标文件包括第三目标文件和第四目标文件的情况下,更新所述第三目标文件和所述第四目标文件的位置信息;In the case where 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;
对所述目标文件的文件内容进行编辑;Edit the file content of the target file;
在所述目标文件包括第五目标文件和第六目标文件的情况下,对所述第五目标文件和所述第六目标文件进行文件合成。When 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.
该实施方式中,通过将输出的目标文件进行排序或特效处理,优化目标文件的展示效果,从而进一步提升用户的分享体验。In this embodiment, by sorting or processing the output target files with special effects, the display effect of the target files is optimized, thereby further enhancing the user's sharing experience.
本申请实施例中的文件生成装置200可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。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. Exemplarily, 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). assistant, PDA), etc., 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.
本申请实施例中的文件生成装置200可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。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.
本申请实施例提供的文件生成装置200能够实现图1~19的方法实施例中文件生成装置实现的各个过程,为避免重复,这里不再赘述。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.
可选地,本申请实施例还提供一种电子设备210,如图21所示,包括处理器2110,存储器2109,存储在存储器2109上并可在所述处理器2110上运行的程序或指令,该程序或指令被处理器执行时实现上述文件生成方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, 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, When 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.
需要注意的是,本申请实施例中的电子设备210包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic device 210 in the embodiment of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.
图22为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 22 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备220包括但不限于:射频单元2201、网络模块2202、音频输出单元2203、输入单元2204、传感器2205、显示单元2206、用户输入单元2207、接口单元2208、存储器2209、以及处理器2210等部件。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.
本领域技术人员可以理解,电子设备220还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器2210逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图22中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that 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. 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. .
用户输入单元2207,用于接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,所述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图;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;
处理器2210,用于响应于所述第一输入,输出目标文件,所述目标文件包括目标视频帧,所述目标视频帧为所述目标缩略图对应的视频图像帧。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 provided in the embodiment of the present application 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. In the above-mentioned file generation process, 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.
可选地,所述第一输入包括第一子输入及第二子输入;处理器2210,具体用于在接收到用户对所述至少两个视频图像缩略图中第一目标缩略图的所述第一子输入、以及对第二目标缩略图的所述第二子输入的情况下,输出目标视频,所述目标视频包括所述第一目标缩略图对应的视频图像帧与所述 第二目标缩略图对应的视频图像帧之间的视频片段;在接收到用户对所述至少两个视频图像缩略图中第三目标缩略图的所述第一子输入及所述第二子输入的情况下,输出目标图像,所述目标图像为所述第三目标缩略图对应的视频图像帧。Optionally, 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. In the case of the first sub-input and the second sub-input to the second target thumbnail, 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.
上述实施方式中,通过两次选择操作视频图像缩略图的方式,可以快速从中第一视频中选择截取目标图像或目标视频。In the above implementation manner, by selecting and operating the thumbnail of the video image twice, it is possible to quickly select the intercepted target image or the target video from the first video.
可选地,显示单元2206,用于在所述接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入之前,显示第一视频的至少两个视频图像缩略图,所述至少两个视频图像缩略图的数目小于所述第一视频的视频图像帧的数目。Optionally, 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.
该实施方式中,先展示第一视频的至少两个视频图像帧对应的缩略图,以便于用户选择所需要的目标缩略图,从而确定对应的视频图像帧,进而生成相应的目标文件。In this embodiment, 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.
可选地,用户输入单元2207,还用于接收用户对所述至少两个视频图像缩略图中第四目标缩略图的第二输入;Optionally, 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;
显示单元2206,还用于响应于所述第二输入,显示所述第四目标缩略图与第五目标缩略图之间的视频图像缩略图;其中,所述第五目标缩略图为接收所述第二输入之前与所述第四目标缩略图相邻的视频图像缩略图。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.
该实施方式中,当用户所需图像或者视频片段为两帧视频图像缩略图之间的影像时,通过对第四目标缩略图执行第二输入,即可触发展开与已展示的第四目标缩略图相邻的视频图像缩略图之间的其他视频图像缩略图,便于用户选取所需图像或视频片段。In this embodiment, 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 thumbnail of the fourth target, 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.
可选地,显示单元2206,还用于显示所述第一视频的历史编辑记录窗口,所述历史编辑记录窗口包括至少一条历史编辑信息,所述历史编辑信息用于指示根据所述第一视频生成对应的目标文件;Optionally, 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;
用户输入单元2207,还用于接收用户对所述至少一条历史编辑信息中的第一目标编辑信息的第三输入;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;
处理器2210,还用于响应于所述第三输入,将所述第一目标编辑信息对应的第一目标文件发送至第一目标联系人。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.
上述实施方式中,通过显示包括至少一条用于指示根据第一视频生成对应的目标文件的历史编辑信息的历史编辑记录窗口,便于用户按历史编辑信息快速从第一视频中截取对应的目标文件。In the above embodiment, by displaying 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.
可选地,用户输入单元2207,还用于接收用户对所述至少一条历史编辑信息中的第二目标编辑信息的第四输入;Optionally, 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;
处理器2210,还用于响应于所述第四输入,执行第一编辑处理,所述第一编辑处理包括以下至少一项:显示与所述第二目标编辑信息对应的第二目标文件的文件信息;删除所述第二目标编辑信息;更新所述第二目标编辑信息。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.
上述实施方式中,通过上述第四输入,可以执行显示第二目标文件的文件信息、删除第二目标编辑信息、更新第二目标编辑信息中的至少一项,更好地满足用户的实际需求。In the above embodiment, through the above fourth input, 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.
可选地,处理器2210,还用于在接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入之后,响应于所述第一输入,生成第一历史编辑信息。Optionally, 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.
该实施方式中,通过生成上述第一历史编辑信息,可以存储用户从第一视频中截取对应的目标文件的方式,便于用户后续按历史编辑信息快速从第一视频中截取对应的目标文件。In this embodiment, by generating the above-mentioned first historical editing information, 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.
可选地,用户输入单元2207,还用于在输出目标文件之后,接收用户的第五输入;Optionally, the user input unit 2207 is also configured to receive a fifth input from the user after outputting the target file;
处理器2210,还用于响应于所述第五输入,将所述目标文件发送至第二目标联系人。The processor 2210 is further configured to send the target file to a second target contact in response to the fifth input.
上述实施方式,在输出目标文件后,通过对目标文件执行第五输入,可以将目标文件快速发送至第二目标联系人,从而实现在第一视频中快速截取目标文件进行分享的效果。In the above embodiment, 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.
可选地,用户输入单元2207,还用于在输出目标文件之后,接收用户对所述目标文件的第六输入;Optionally, 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;
处理器2210,还用于响应于所述第六输入,执行第二编辑处理,所述第二编辑处理包括以下至少一项: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:
在所述目标文件包括第三目标文件和第四目标文件的情况下,更新所述第三目标文件和所述第四目标文件的位置信息;In the case where 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;
对所述目标文件的文件内容进行编辑;Edit the file content of the target file;
在所述目标文件包括第五目标文件和第六目标文件的情况下,对所述第五目标文件和所述第六目标文件进行文件合成。When 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.
该实施方式中,通过将输出的目标文件进行排序或特效处理,优化目标文件的展示效果,从而进一步提升用户的分享体验。In this embodiment, by sorting or processing the output target files with special effects, the display effect of the target files is optimized, thereby further enhancing the user's sharing experience.
应理解的是,本申请实施例中,输入单元2204可以包括图形处理器(Graphics Processing Unit,GPU)22041和麦克风22042,图形处理器22041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元2206可包括显示面板22061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板22061。用户输入单元2207包括触控面板22071以及其他输入设备22072。触控面板22071,也称为触摸屏。触控面板22071可包括触摸检测装置和触摸控制器两个部分。其他输入设备22072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器2209可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器2210可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器2210中。It should be understood that, in the embodiment of the present application, 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.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, 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 Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the 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.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, 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. In addition, it should be pointed out that 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.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、 光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the essence of the technical solution of this application or the part that contributes to related technologies can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk, etc.) ) includes several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (18)

  1. 一种文件生成方法,其中,包括:A method for generating files, including:
    接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入,所述至少两个视频图像缩略图为第一视频中的至少两个视频图像帧的缩略图;receiving 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 the first video;
    响应于所述第一输入,输出目标文件,所述目标文件包括目标视频帧,所述目标视频帧为所述目标缩略图对应的视频图像帧。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.
  2. 根据权利要求1所述的方法,其中,所述第一输入包括第一子输入及第二子输入;The method of claim 1, wherein the first input includes a first sub-input and a second sub-input;
    所述响应于所述第一输入,输出目标文件,包括:said outputting an object file in response to said first input, comprising:
    在接收到用户对所述至少两个视频图像缩略图中第一目标缩略图的所述第一子输入、以及对第二目标缩略图的所述第二子输入的情况下,输出目标视频,所述目标视频包括所述第一目标缩略图对应的视频图像帧与所述第二目标缩略图对应的视频图像帧之间的视频片段;In the case of 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, outputting the target video, 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;
    在接收到用户对所述至少两个视频图像缩略图中第三目标缩略图的所述第一子输入及所述第二子输入的情况下,输出目标图像,所述目标图像为所述第三目标缩略图对应的视频图像帧。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, the target image is output, and the target image is the second target image. The video image frames corresponding to the three target thumbnails.
  3. 根据权利要求1所述的方法,其中,所述接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入之前,所述方法还包括:The method according to claim 1, wherein, before receiving the user's first input of target thumbnails in at least two video image thumbnails, the method further comprises:
    显示第一视频的至少两个视频图像缩略图,所述至少两个视频图像缩略图的数目小于所述第一视频的视频图像帧的数目。At least two video image thumbnails of the first video are displayed, the number of the at least two video image thumbnails being smaller than the number of video image frames of the first video.
  4. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    接收用户对所述至少两个视频图像缩略图中第四目标缩略图的第二输入;receiving a user's second input of a fourth target thumbnail among the at least two video image thumbnails;
    响应于所述第二输入,显示所述第四目标缩略图与第五目标缩略图之间的视频图像缩略图;displaying video image thumbnails between the fourth and fifth target thumbnails in response to the second input;
    其中,所述第五目标缩略图为接收所述第二输入之前与所述第四目标缩 略图相邻的视频图像缩略图。Wherein, the fifth target thumbnail is a video image thumbnail adjacent to the fourth target thumbnail before receiving the second input.
  5. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    显示所述第一视频的历史编辑记录窗口,所述历史编辑记录窗口包括至少一条历史编辑信息,所述历史编辑信息用于指示根据所述第一视频生成对应的目标文件;Displaying a historical editing record window of the first video, the historical editing record window including at least one piece of historical editing information, the historical editing information is used to indicate that a corresponding target file is generated according to the first video;
    接收用户对所述至少一条历史编辑信息中的第一目标编辑信息的第三输入;receiving a third input from the user on the first target editing information in the at least one piece of historical editing information;
    响应于所述第三输入,将所述第一目标编辑信息对应的第一目标文件发送至第一目标联系人。In response to the third input, sending the first target file corresponding to the first target editing information to the first target contact.
  6. 根据权利要求5所述的方法,其中,所述方法还包括:The method according to claim 5, wherein the method further comprises:
    接收用户对所述至少一条历史编辑信息中的第二目标编辑信息的第四输入;receiving a fourth input from the user on the second target editing information in the at least one piece of historical editing information;
    响应于所述第四输入,执行第一编辑处理,所述第一编辑处理包括以下至少一项:显示与所述第二目标编辑信息对应的第二目标文件的文件信息;删除所述第二目标编辑信息;更新所述第二目标编辑信息。In response to the fourth input, a first editing process is performed, and 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 second target file; target editing information; updating the second target editing information.
  7. 根据权利要求1所述的方法,其中,所述接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入之后,所述方法还包括:The method according to claim 1, wherein, after receiving the user's first input to the target thumbnail in at least two video image thumbnails, the method further comprises:
    响应于所述第一输入,生成第一历史编辑信息。In response to the first input, first history editing information is generated.
  8. 根据权利要求1所述的方法,其中,所述输出目标文件之后,所述方法还包括:The method according to claim 1, wherein, after the output target file, the method further comprises:
    接收用户的第五输入;receiving a fifth input from the user;
    响应于所述第五输入,将所述目标文件发送至第二目标联系人。In response to the fifth input, the targeting file is sent to a second targeting contact.
  9. 根据权利要求1所述的方法,其中,所述输出目标文件之后,所述方法还包括:The method according to claim 1, wherein, after the output target file, the method further comprises:
    接收用户对所述目标文件的第六输入;receiving a sixth input from the user on the target file;
    响应于所述第六输入,执行第二编辑处理,所述第二编辑处理包括以下至少一项:In response to the sixth input, performing a second editing process, the second editing process includes at least one of the following:
    在所述目标文件包括第三目标文件和第四目标文件的情况下,更新所述第三目标文件和所述第四目标文件的位置信息;In the case where 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;
    对所述目标文件的文件内容进行编辑;Edit the file content of the target file;
    在所述目标文件包括第五目标文件和第六目标文件的情况下,对所述第五目标文件和所述第六目标文件进行文件合成。When 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.
  10. 一种文件生成装置,其中,所述装置包括:A file generation 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.
  11. 根据权利要求10所述的装置,其中,所述第一输入包括第一子输入及第二子输入;The apparatus of claim 10, wherein the first input comprises a first sub-input and a second sub-input;
    所述第一输出模块包括:The first output module 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. Under the situation, 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.
  12. 根据权利要求10所述的装置,其中,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    第一显示模块,用于在所述接收用户对至少两个视频图像缩略图中的目标缩略图的第一输入之前,显示第一视频的至少两个视频图像缩略图,所述至少两个视频图像缩略图的数目小于所述第一视频的视频图像帧的数目。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.
  13. 根据权利要求10所述的装置,其中,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    第二接收模块,用于接收用户对所述至少两个视频图像缩略图中第四目 标缩略图的第二输入;The second receiving module is used to receive the user's second input to the fourth target thumbnail in 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;
    其中,所述第五目标缩略图为接收所述第二输入之前与所述第四目标缩略图相邻的视频图像缩略图。Wherein, the fifth target thumbnail is a video image thumbnail adjacent to the fourth target thumbnail before receiving the second input.
  14. 根据权利要求10所述的装置,其中,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    第三显示模块,用于显示所述第一视频的历史编辑记录窗口,所述历史编辑记录窗口包括至少一条历史编辑信息,所述历史编辑信息用于指示根据所述第一视频生成对应的目标文件;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.
  15. 一种电子设备,其中,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1~9所述的文件生成方法的步骤。An electronic device, including a processor, a memory, and a program or instruction stored in the memory and operable on the processor, when the program or instruction is executed by the processor, the invention according to claim 1 is realized Steps of the file generation method described in ~9.
  16. 一种芯片,其中,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1~9所述的文件生成方法的步骤。A chip, wherein 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 file generation method according to claims 1-9 A step of.
  17. 一种计算机程序产品,其中,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1~9所述的文件生成方法的步骤。A computer program product, wherein 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 steps of the file generating method according to claims 1-9.
  18. 一种文件生成装置,其中,所述装置被配置成用于执行如权利要求1~9所述的文件生成方法。A file generation device, wherein the device is configured to execute the file generation method according to claims 1-9.
PCT/CN2022/124926 2021-10-15 2022-10-12 File generation method and apparatus, and electronic device WO2023061414A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111212486.1A CN113918522A (en) 2021-10-15 2021-10-15 File generation method and device and electronic equipment
CN202111212486.1 2021-10-15

Publications (1)

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

Family

ID=79241356

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/124926 WO2023061414A1 (en) 2021-10-15 2022-10-12 File generation method and apparatus, and electronic device

Country Status (2)

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

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113918522A (en) * 2021-10-15 2022-01-11 维沃移动通信有限公司 File generation method and device and electronic equipment
CN114679546A (en) * 2022-03-31 2022-06-28 维沃移动通信有限公司 Display method and device, electronic equipment and readable storage medium
CN114928761B (en) * 2022-05-07 2024-04-12 维沃移动通信有限公司 Video sharing method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007110566A (en) * 2005-10-14 2007-04-26 Sharp Corp Device and method for editing animation
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 (en) * 2019-03-30 2019-06-18 山东云缦智能科技有限公司 A kind of video clip sharing method and Intelligent set top box
CN110933509A (en) * 2019-12-09 2020-03-27 北京字节跳动网络技术有限公司 Information publishing method and device, electronic equipment and storage medium
CN113242464A (en) * 2021-01-28 2021-08-10 维沃移动通信有限公司 Video editing method and device
CN113918522A (en) * 2021-10-15 2022-01-11 维沃移动通信有限公司 File generation method and device and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007110566A (en) * 2005-10-14 2007-04-26 Sharp Corp Device and method for editing animation
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 (en) * 2019-03-30 2019-06-18 山东云缦智能科技有限公司 A kind of video clip sharing method and Intelligent set top box
CN110933509A (en) * 2019-12-09 2020-03-27 北京字节跳动网络技术有限公司 Information publishing method and device, electronic equipment and storage medium
CN113242464A (en) * 2021-01-28 2021-08-10 维沃移动通信有限公司 Video editing method and device
CN113918522A (en) * 2021-10-15 2022-01-11 维沃移动通信有限公司 File generation method and device and electronic equipment

Also Published As

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

Similar Documents

Publication Publication Date Title
US20220342519A1 (en) Content Presentation and Interaction Across Multiple Displays
WO2023061414A1 (en) File generation method and apparatus, and electronic device
CN112153288B (en) Method, apparatus, device and medium for distributing video or image
TWI592021B (en) Method, device, and terminal for generating video
KR102013331B1 (en) Terminal device and method for synthesizing a dual image in device having a dual camera
CN108334371B (en) Method and device for editing object
US20120249575A1 (en) Display device for displaying related digital images
CN111343074B (en) Video processing method, device and equipment and storage medium
CN112672061B (en) Video shooting method and device, electronic equipment and medium
WO2019242274A1 (en) Content processing method and device
CN112540821A (en) Information sending method and electronic equipment
WO2023030306A1 (en) Method and apparatus for video editing, and electronic device
WO2023072083A1 (en) File processing method, and electronic device
CN112954046A (en) Information sending method, information sending device and electronic equipment
WO2023040896A1 (en) Content sharing method and apparatus, and electronic device
CN102799384A (en) Method, client and system for outdoor scene screenshot
WO2024109699A1 (en) Display method and apparatus, electronic device, and medium
CN113986574A (en) Comment content generation method and device, electronic equipment and storage medium
CN113988021A (en) Content interaction method and device, electronic equipment and storage medium
WO2023155858A1 (en) Document editing method and apparatus
WO2023179539A1 (en) Video editing method and apparatus, and electronic device
WO2023155874A1 (en) Application icon management method and apparatus, and electronic device
WO2023016476A1 (en) Screen capture method and device
WO2023020328A1 (en) Object manipulating method and apparatus, and electronic device
CN113810538B (en) Video editing method and video editing device

Legal Events

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

Ref document number: 22880350

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE