Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
According to an aspect of the embodiment of the present invention, there is provided a method for displaying video, optionally, as an optional implementation manner, the displaying of video may be applied to, but not limited to, a user device, where the user device may include, but is not limited to, at least one of: a mobile phone (e.g., an Android mobile phone, iOS mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, a MID (Mobile Internet Devices, mobile internet device), a PAD, a desktop computer, a smart television, etc. The user equipment comprises a display, a processor and a memory, wherein the display can be used for displaying a video file to be cut, a cover map of N sub-video files and the like, the processor is used for dividing the video file to be cut and a first picture to be cut, and the memory is used for storing data, including but not limited to first division information, N sub-video files, N sub-pictures and the like.
Fig. 1 is a flowchart illustrating a method for displaying video according to an exemplary embodiment, and as shown in fig. 1, the method for displaying video may be used in a user equipment, and includes the following steps.
In step S11, displaying the video file to be cropped in the target application;
wherein the target application may be a short video application APP. In the case where the time period of the video file to be cut is longer than the maximum time period allowed to be uploaded by the short video application, the video file to be cut needs to be divided. The duration of the video file to be cropped may also be less than the maximum duration that the short video application allows for uploading. The video file to be cut may be a video file downloaded by a user or a video file shot by the user through a user device, as shown in fig. 2, which is a schematic diagram showing a video file to be cut displayed in a target application according to an exemplary embodiment, and the user uploads the video file to be cut to the target application, and performs a segmentation process on the video file to be cut through the target application.
In step S12, dividing the video file to be cut according to the obtained first division information to obtain N sub-video files, where N is greater than or equal to 2;
the first segmentation information includes a segmentation number N and a segmentation point, and may segment the video file to be cut according to the segmentation point and/or the segmentation number to obtain N sub-video files.
In step S13, dividing the first picture to be cut according to the number N of the sub-video files to obtain N sub-pictures corresponding to the N sub-video files;
the picture to be cut can be a frame of image in the video file to be cut, can be a picture shot by the user equipment, and can also be a downloaded picture.
In step S14, the N sub-pictures are respectively set as cover images of the N sub-video files according to the specific order of the N sub-video files;
the specific sequence includes a playing sequence and a displaying sequence of the sub video files, when the short video is applied to display the short video shot by the account, the short video is usually ordered according to the release time of the video, and the video which is seen first by the viewer is usually the video which is recently released. When a video publisher publishes videos, the videos are generally uploaded according to the actual shooting sequence of the videos, for example, the videos are typically carried continuously, and if the sequence of uploading the videos by the publisher is 1-2-3; that is, the first video seen by the user is actuallyvideo 3, which is in reverse order, and then the playing order of the videos is 3-2-1. For overhead or special videos, the video publisher may typically set the presentation order of the videos, e.g., for overhead videos, the overhead video is typically set at the first video of the short video application.
As an alternative implementation manner, if the playing order of the video is positive, as shown in fig. 3, which is a schematic diagram of N sub-pictures, the sub-video files shown in fig. are played in a positive order, the top left is the first sub-video file, the bottom right is the last played sub-video file, that is, the nth sub-video file, the sub-picture with thereference number 1 may be set as the cover map of the first sub-video file, the sub-picture with thereference number 2 may be set as the cover map of the second sub-video file, and the sub-picture with the reference number N may be set as the cover map of the nth sub-video file. The first sub video, the second sub video file and the Nth sub video file are ordered according to the video playing sequence, the first sub video is positioned before the playing sequence of the second sub video, the first sub video is the video with the forefront playing sequence in the N sub video files, and the Nth sub video file is the video with the rearmost playing sequence in the N sub video files.
As another alternative embodiment, if the playing order of the videos is the reverse order, as shown in fig. 4, which is a schematic diagram of N sub-pictures, two sub-video files shown in fig. are played in the reverse order, the bottom right is the first sub-video file, the top left is the last played sub-video, i.e. the nth sub-video file, the sub-picture with thereference number 1 may be set as the cover map of the first sub-video file, the sub-picture with thereference number 2 may be set as the cover map of the second sub-video file, and the sub-picture with the reference number N may be set as the cover map of the nth sub-video file. The first sub video, the second sub video file and the Nth sub video file are ordered according to the video playing sequence, the first sub video is positioned before the playing sequence of the second sub video, the first sub video is the video with the forefront playing sequence in the N sub video files, and the Nth sub video file is the video with the rearmost playing sequence in the N sub video files.
In step S15, a cover map of the N sub-video files is displayed in the target application, where a combined map of the cover maps of the N sub-video files in the target application is the first picture to be cut.
In this case, as shown in fig. 5, a cover diagram for displaying N sub-video files in a target application according to an exemplary embodiment is shown, where the sub-video files shown in the figure are played in a positive sequence, the first cover diagram corresponds to a first sub-video, the second cover diagram corresponds to a second sub-video file, and the nth cover diagram corresponds to an nth sub-video. The first sub video, the second sub video file and the Nth sub video file are ordered according to a specific video sequence, the first sub video is located before the specific sequence of the second sub video, the first sub video is the video with the forefront specific sequence in the N sub video files, and the Nth sub video file is the video with the rearmost specific sequence in the N sub video files.
Fig. 6 is a cover diagram illustrating a second cover diagram for displaying N sub-video files in a target application according to an exemplary embodiment, where the sub-video files shown in the diagram are played in a reverse order, the first cover diagram corresponds to a first sub-video, the second cover diagram corresponds to a second sub-video file, and the nth cover diagram corresponds to an nth sub-video. The first sub video, the second sub video file and the Nth sub video file are ordered according to a specific video sequence, the first sub video is located before the specific sequence of the second sub video, the first sub video is the video with the forefront specific sequence in the N sub video files, and the Nth sub video file is the video with the rearmost specific sequence in the N sub video files.
In the above embodiment, the number N of sub-video files obtained by dividing the video files to be cut is used to divide the first picture to be cut, so as to obtain N sub-pictures corresponding to the N sub-video files; and setting the N sub-pictures as cover pictures of the N sub-video files respectively. The method can achieve the purpose of automatically setting the cover diagrams for the N sub-video files, simplify the setting of the video cover diagrams and improve the setting efficiency of the video cover diagrams.
Optionally, before the setting the N sub-pictures as the cover map of the N sub-video files, the method further includes: displaying the cover diagrams of the N sub-video files in preview grids in the target application according to the specific sequence of the N sub-video files and the preset in-line display quantity, wherein the in-line display quantity is the quantity of the cover diagrams allowed to be displayed in each line in the target application, a corresponding cover diagram is displayed in each grid in the preview grids, and the grid quantity in the preview grids is N.
As an alternative embodiment, the preset number of displays in a row is the maximum number of video covers allowed to be displayed per row in the target application, where the number of video covers allowed to be displayed per row in the target application is typically 3. In this embodiment, the cover map of the N sub-video files may be displayed in the preview grid according to a specific order of the N sub-video files and a preset number of displays in a line. The preview grid may be used to display the effects after the cover is split. Assuming that the number of video covers allowed to be displayed per line in the target application is 3, in the case where the number N of sub-video files is an integer multiple of 3, as in fig. 7, a preview grid diagram of one exemplary embodiment is shown—as in fig. 7, where the number N of video files is an integer multiple of 3, cover diagrams of N sub-video files may be displayed in the preview grid of fig. 7 in a specific order of N sub-video files. Assuming that the number of video covers allowed to be displayed per line in the target application is 3, in case that the number N of sub-video files is not an integer multiple of 3, assuming n=4, as shown in fig. 8 is a preview grid diagram two in an exemplary embodiment, the cover maps of the first three sub-video files may be displayed in the first line of the target application in a specific order of N sub-video files, and the cover map of the fourth sub-video file may be displayed separately as a line. In this embodiment, the preview effect of the cover map can be provided for the user through the preview grid, so that the user experience is improved.
Optionally, the setting the N sub-pictures as the cover map of the N sub-video files according to the specific order of the N sub-video files includes: acquiring a first confirmation operation in the target application, wherein the first confirmation operation is used for indicating that the N sub-pictures are respectively set as cover pictures of the N sub-video files; responding to the first confirmation operation, and setting the N sub-pictures as cover pictures of the N sub-video files according to the specific sequence of the N sub-video files; displaying a cover map of the N sub-video files in the target application, including: and displaying the cover diagrams of the N sub-video files in the target application according to the number of the in-line displays.
As an optional implementation manner, after displaying the cover images of the N sub-video files in the preview grid, if the user clicks to confirm, the first picture to be cut is cut into N sub-pictures, and the N sub-pictures are set as the cover images of the N sub-video files. The cover map of the number N of sub-video files is displayed in the target application in a particular order and row of the N sub-video files. Assuming that the number of displays in a row is P, that is, the number of covers allowed to be displayed in each row in the target application is P at maximum, if N is an integer multiple of P, P cover maps are displayed in each row in the target application. If N is a non-integer multiple of P, then fromrow 1 to row M-1 of the target application, each row displays P cover maps, and row M displays N-P (M-1) covers, where M is less than N. Assuming that the number of video covers allowed to be displayed per line in the target application is 3, in case that the number N of sub-video files is an integer multiple of 3, as shown in fig. 7, which is a schematic diagram of a preview grid in accordance with an exemplary embodiment, cover charts of N sub-video files may be displayed in the preview grid shown in fig. 7 in a specific order of N sub-video files. Assuming that the number of video covers allowed to be displayed per line in the target application is 3, in case that the number N of sub-video files is not an integer multiple of 3, assuming n=4, as shown in fig. 8 is a preview grid diagram two in an exemplary embodiment, the cover maps of the first three sub-video files may be displayed in the first line of the target application in a specific order of N sub-video files, and the cover map of the fourth sub-video file may be displayed separately as a line. In this embodiment, through a confirmation operation of a user, N sub-pictures can be automatically set as cover diagrams of N sub-video files respectively, and the cover diagrams of N sub-video files are displayed in a target application, so that the technical effects of simplifying the setting of the video cover and improving the efficiency of the setting of the video cover can be achieved.
Optionally, the setting the N sub-pictures as cover maps of the N sub-video files includes: acquiring a first cancellation operation in the target application, wherein the first cancellation operation is used for indicating cancellation of setting the N sub-pictures as cover maps of the N sub-video files respectively; the method further comprises the steps of: acquiring second segmentation information, wherein the second segmentation information is used for re-segmenting the video file to be cut; re-segmenting the video file to be cut according to the second segmentation information to obtain M sub-video files, wherein M is more than or equal to 2; re-dividing the first picture to be cut according to the number M of the sub-video files to obtain M sub-pictures corresponding to the M sub-video files; respectively setting the M sub-pictures as cover pictures of the M sub-video files; and displaying the cover diagrams of the M sub-video files in the target application according to the specific sequence of the M sub-video files, wherein the combined diagram of the cover diagrams of the M sub-video files in the target application is the first picture to be cut.
As an alternative embodiment, for the cover diagrams of the N sub-video files displayed in the preview grid, if the user is not satisfied, a first cancel operation may be performed, where the first cancel operation may be used to instruct to cancel the division of the video file to be cut according to the cover diagrams of the N sub-video files displayed in the preview grid. The user can reset the dividing number of the video files to be cut, modify the dividing number N into M, re-divide the first picture to be cut according to M to obtain M sub-pictures, set the M sub-pictures as cover diagrams of the M sub-video files, and display the cover diagrams of the M sub-video files in the target application.
Optionally, the setting the N sub-pictures as cover maps of the N sub-video files includes: acquiring a second cancelling operation in the target application, wherein the second cancelling operation is used for indicating cancelling to set the N sub-pictures as cover maps of the N sub-video files respectively; the method further comprises the steps of: acquiring two pictures to be cut and third segmentation information, wherein the third segmentation information is used for segmenting the video file to be cut; dividing the video file to be cut according to the third division information to obtain T sub-video files, wherein T is more than or equal to 2; dividing the second picture to be cut according to the number T of the sub-video files to obtain T sub-pictures corresponding to the T sub-video files; respectively setting the T sub-pictures as cover pictures of the T sub-video files; and displaying the cover diagrams of the T sub-video files in the target application according to the specific sequence of the T sub-video files, wherein the combined diagram of the cover diagrams of the T sub-video files in the target application is the second picture to be cut.
As an alternative embodiment, for the cover map of the N sub-video files displayed in the preview grid, if the user is not satisfied, a second cancel operation may be performed, where the second cancel operation may be used to instruct to cancel the division of the video file to be cut according to the cover map of the N sub-video files displayed in the preview grid. The user can reselect the picture to be cut, replace the first picture to be cut with the second picture to be cut, set the dividing number T of the video files to be cut, and divide the video files to be cut into T sub-video files. And dividing the second picture to be cut according to the T, obtaining T sub-pictures, setting the T sub-pictures as cover pictures of the T sub-video files, and displaying the cover pictures of the T sub-video files in the target application. In this embodiment, if the user wants to change the serial video covers, only the second picture to be cut is required to be uploaded to the target application, and the target application can divide the second picture to be cut into T sub-pictures according to the dividing number and set the T sub-pictures as the cover diagrams of the T sub-video files, so as to achieve the effects of automatically changing the video covers, simplifying the video cover changing process, and improving the video cover changing efficiency.
Optionally, the setting the N sub-pictures as the cover map of the N sub-video files respectively according to the specific order of the N sub-video files includes: setting the N sub-pictures as cover pictures of the N sub-video files respectively according to the playing sequence of the N sub-video files; or, according to the display sequence of the N sub-video files, setting the N sub-pictures as cover diagrams of the N sub-video files respectively.
As an alternative embodiment, the specific sequence includes a playing sequence and a displaying sequence of the sub video files, and when the short video application displays the short video shot by the account, the short video application is usually ordered according to the release time of the video, and the video which is seen first by the viewer is usually the video which is just released recently. When a video publisher publishes videos, the videos are generally uploaded according to the actual shooting sequence of the videos, for example, the videos are typically carried continuously, and if the sequence of uploading the videos by the publisher is 1-2-3; that is, the first video seen by the user is actuallyvideo 3, which is in reverse order, and then the playing order of the videos is 3-2-1. For overhead or special videos, the video publisher may typically set the presentation order of the videos, e.g., for overhead videos, the overhead video is typically set at the first video of the short video application.
Optionally, the dividing the video file to be cut according to the obtained first division information to obtain N sub video files includes: acquiring the first segmentation information, wherein the first segmentation information comprises a segmentation number N and segmentation points; and dividing the video file to be cut according to the number N of the dividing segments and/or the dividing points to obtain the N sub-video files.
As an optional implementation manner, the above-mentioned division information may include the number of video segments and video division points, where the video may be divided according to the number of video segments, and assuming that the number of video segments is N, the video to be cut may be divided into N sub-videos on average. The video file to be cut may also be cut according to the division points, and the user may select the division points in the target application, where the video file to be cut is divided. The video file to be cut can be cut according to the number of the cutting segments N and the number of the cutting points N, the number of the cutting points is matched with the number of the cutting segments N, a user can set the number of the cutting segments in a target application, the cutting points are selected, and the video file to be cut is cut into N sub-video files according to the cutting points. In this embodiment, the effect of automatically segmenting the video file to be clipped can be achieved through the number of segments and the segmentation points.
Optionally, the setting the N sub-pictures as cover maps of the N sub-video files respectively includes: and respectively inserting each sub-picture into the front of the first frame image of the corresponding sub-video file to obtain a cover map of the sub-video file.
As an alternative embodiment, before the sub-picture is inserted into the first frame image of the corresponding sub-video file, the cut cover images are inserted into the beginning of the corresponding sub-video file, so that the cover of the short video is formed, and the divided video is uploaded to the target application again, the divided cover images are pieced together again, and the combination of the pieced cover images is the first picture to be cut.
Optionally, after displaying the cover map of the N sub-video files in the target application, the method further includes: acquiring a touch instruction for a target cover map from the target application; and playing the target sub-video files corresponding to the target cover map in the target application, wherein the N sub-video files comprise the target sub-video files, and the cover maps of the N sub-video files comprise the target cover map.
As an optional implementation manner, N sub-video files are displayed in the target application, and if the user performs a touch operation on the cover map of one of the word video files, the sub-video file corresponding to the cover is played in the target application.
The disclosure is illustrated by a specific example, comprising the steps of:
step S21, displaying a video file to be cut, which is shot by a user or uploaded by the user, in a target application;
step S22, under the condition that the duration of the uploaded video file is limited in the target application, a dialog box is shot out in the target application and a user is inquired about whether the target application has duration limitation on the uploaded video, and whether the video needs to be subjected to diversity clipping, clipped into a plurality of short videos and exported;
step S23, if the user selects "NO", the flow ends. If the user selects "yes", step S24 is performed;
step S24 pops up the dialog again, asks the user how many short videos the video needs to be split into, and lets the user select the split point of the video split. And recording the division points to the draft file;
in step S25, the pop-up dialog asks the user if the series of video cover charts needs to be set. If the user selects no, the original video is cut into a plurality of short videos. If the user selects yes, go to step S26;
step S26, popup dialog box, let user choose to wait to cut out picture (including above-mentioned first wait to cut out picture and second wait to cut out picture); after the user selects the cover map, a preview grid is generated according to the selected video segmentation number. The interface will display preview grids (the number of grids in the preview grid is the same as the number of divisions of the video) for displaying the effects after the division of the picture to be cut. The user clicks to confirm, and cuts the picture to be cut into small sub-pictures;
in step S27, the cut sub-pictures are inserted into the beginning of the segmented video to form a cover map of the short video, so that the segmented video is re-uploaded to the target, the segmented covers are re-pieced together, the cover map of the short video is displayed in the target application, and the combination of the cover maps of the short video is the to-be-cut picture.
Through the method and the device, the user can add and update the cover diagrams of the series videos, the cost of generating and replacing the cover diagrams of the series videos is reduced, and the enthusiasm of the user in producing videos and the quality of editing works are improved.
Fig. 9 is a block diagram of a display device for video according to an exemplary embodiment. Referring to fig. 9, the apparatus includes afirst display unit 901, afirst dividing unit 902, asecond dividing unit 903, asetting unit 904, and asecond display unit 905.
Thefirst display unit 901 is configured to perform display of a video file to be cropped in a target application;
thefirst dividing unit 902 is configured to perform dividing the video file to be cut according to the acquired first dividing information to obtain N sub-video files, where N is greater than or equal to 2;
thesecond splitting unit 903 is configured to perform splitting on the first picture to be cut according to the number N of the sub-video files, to obtain N sub-pictures corresponding to the N sub-video files;
thesetting unit 904 is configured to perform setting of the N sub-pictures as cover sheets of the N sub-video files, respectively, in a specific order of the N sub-video files;
thesecond display unit 905 is configured to perform displaying the cover diagrams of the N sub-video files in the target application, where a combined diagram of the cover diagrams of the N sub-video files in the target application is the first picture to be cut.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 10 is a block diagram of a display electronic device for video, according to an example embodiment. As shown in fig. 10, the electronic device includes aprocessor 1020 and amemory 1010 for storing the processor-executable instructions described above. The processor is configured to execute instructions to implement the video display method described above. The electronic device in this embodiment may also include atransmission 1030, adisplay 1040, and aconnection bus 1050. Thetransmission device 1030 is configured to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, thetransmission device 1030 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, thetransmission device 1030 is a Radio Frequency (RF) module configured to communicate wirelessly with the internet. Thedisplay 1040 is configured to display a cover map of the video file to be clipped and the N sub-video files; theconnection bus 1050 is used to connect the respective module components in the electronic apparatus.
In an exemplary embodiment, a storage medium is also provided, such as amemory 1010 including instructions executable by theprocessor 1020 of the electronic device to perform the above-described method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program/instruction which, when executed by a processor, implements the above-described information transmission method. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.