WO2023029237A1 - Video preview method and terminal - Google Patents

Video preview method and terminal Download PDF

Info

Publication number
WO2023029237A1
WO2023029237A1 PCT/CN2021/133221 CN2021133221W WO2023029237A1 WO 2023029237 A1 WO2023029237 A1 WO 2023029237A1 CN 2021133221 W CN2021133221 W CN 2021133221W WO 2023029237 A1 WO2023029237 A1 WO 2023029237A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
preview
multimedia resources
frames
frame
Prior art date
Application number
PCT/CN2021/133221
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 WO2023029237A1 publication Critical patent/WO2023029237A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Definitions

  • the present disclosure relates to the technical field of the Internet, and in particular to a video preview method and terminal.
  • video websites or video applications include a large number of videos.
  • video websites or video applications will generate preview information for videos. Users can judge whether the video content is of interest by viewing the preview information of the video. content, and then choose the video you are interested in.
  • preview information is usually displayed in the form of a video preview image displayed on a video list page, and the preview image is generally generated by intercepting one or more video frames in a video.
  • the disclosure provides a video preview method and a terminal.
  • the disclosed technical scheme is as follows:
  • a video preview method executed by a terminal including:
  • the video preview interface includes previewable videos
  • multiple multimedia resources are simultaneously previewed and displayed on the video preview interface.
  • the video frame of the video can reflect the content of the video
  • multiple multimedia resources generated based on multiple video frames of the video can fuse the content of the video.
  • the user can preview the video content provided by multiple multimedia resources before watching the video, so as to have a pre-understanding of the whole picture of the video, thereby improving the video preview effect.
  • a video preview method executed by a terminal including:
  • a first preview frame corresponding to the video is displayed in the video preview interface, the first preview frame includes a plurality of multimedia resources, and each multimedia resource consists of at least one video in the video frame generation.
  • a video preview device including:
  • the first display unit is configured to display a video preview interface, and the video preview interface includes previewable videos;
  • a generating unit configured to extract multiple video frames from the video, and generate multiple multimedia resources from the multiple video frames
  • the first display unit is configured to simultaneously preview and display the multiple multimedia resources in the video preview interface based on the display order of the multiple multimedia resources.
  • a video preview device including:
  • the second display unit is configured to display a video preview interface, and the video preview interface displays a cover of the video;
  • the second presentation unit is configured to display a first preview frame corresponding to the video in the video preview interface in response to the video preview operation based on the cover, the first preview frame includes a plurality of multimedia resources, and each multimedia Assets are generated from at least one video frame in the video.
  • a terminal includes a processor and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions, so as to implement the above-mentioned first A video preview method in one hand.
  • a terminal includes a processor and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions, so as to implement the above-mentioned first The video preview method in the second aspect.
  • a non-volatile computer-readable storage medium When instructions in the non-volatile computer-readable storage medium are executed by a processor of a terminal, the terminal can execute The video preview method in the first aspect above.
  • a non-volatile computer-readable storage medium When instructions in the non-volatile computer-readable storage medium are executed by a processor of a terminal, the terminal can execute The video preview method in the second aspect above.
  • a computer program product including a computer program/instruction, and when the computer program/instruction is executed by a processor, the video preview method in the first aspect above is implemented.
  • a computer program product including a computer program/instruction, and when the computer program/instruction is executed by a processor, the video preview method in the second aspect above is implemented.
  • Fig. 1 is an implementation environment diagram of a video preview method shown according to an exemplary embodiment
  • Fig. 2 is a flow chart of a video preview method shown according to an exemplary embodiment
  • Fig. 3 is a flowchart of a video preview method shown according to an exemplary embodiment
  • Fig. 4 is a schematic diagram of a video cover according to an exemplary embodiment
  • Fig. 5 is a flowchart of a video preview method shown according to an exemplary embodiment
  • Fig. 6 is a flowchart of a video preview method according to an exemplary embodiment
  • Fig. 7 is a flowchart of a video preview method shown according to an exemplary embodiment
  • Fig. 8 is a block diagram of a video preview device according to an exemplary embodiment
  • Fig. 9 is a block diagram of a video preview device according to an exemplary embodiment
  • Fig. 10 is a block diagram of a terminal according to an exemplary embodiment.
  • the user information involved in this disclosure is information authorized by the user or fully authorized by all parties.
  • FIG. 1 is an implementation environment diagram of a video preview method according to an exemplary embodiment.
  • the implementation environment includes: a terminal 10 and a server 20 .
  • the terminal 10 is connected to the server 20 through a wireless or wired network.
  • a target application program provided by the server 20 is installed on the terminal 10, and the terminal 10 realizes data interaction with the server 20 through the target application program.
  • the target application program is an application program in the operating system of the terminal or an application program provided by a third party.
  • the target application program is any application program capable of playing video; for example, the target application program is a video playback application program or a browser.
  • This target application also has a video preview feature.
  • the target application program can also have other functions, such as a sharing function, a live broadcast function, and the like.
  • the terminal 10 is at least one of devices such as a mobile phone, a tablet computer, and a PC (Personal Computer) device.
  • the server 20 is at least one of a server, a server cluster composed of multiple servers, a cloud server, a cloud computing platform, and a virtualization center.
  • the terminal 10 displays a previewable video on the video preview interface of the target application program, generates multiple multimedia resources for the video, and displays multiple multimedia resources of the video.
  • the multimedia resource is a static picture, a dynamic preview picture or a video segment.
  • the terminal 10 obtains the video from the server 20, generates multiple multimedia resources of the video through the video preview method provided by the embodiments of the present disclosure, and previews and displays the multiple multimedia resources in the video preview interface. In other embodiments, the terminal 10 generates multiple multimedia resources of the video by means of the server 20, the server 20 returns the multiple multimedia resources to the terminal 10, and the terminal 10 previews and displays the multiple multimedia resources on the video preview interface.
  • the video preview method provided by the embodiments of the present disclosure is mainly applied to videos with a playing time longer than 5 minutes, that is, long videos; the video preview method can be applied in the following two scenarios:
  • the video on the video preview interface in the target application is a video uploaded by the user.
  • the terminal 10 previews multiple multimedia resources displaying the video through the method provided by the embodiment of the present disclosure, so that other users can know the video in advance based on multiple multimedia resources before playing the video. of video content.
  • the video in the target application program is a film and television work, that is, a video produced by a technician with certain professional knowledge.
  • the terminal 10 previews multiple multimedia resources displaying the video through the method provided by the embodiment of the present disclosure, so that the user can know the video in advance based on multiple multimedia resources before playing the video. of video content.
  • Fig. 2 is a flowchart of a video preview method according to an exemplary embodiment. As shown in Fig. 2, the video preview method is executed by a terminal, and includes the following steps.
  • Step S21 The terminal displays a video preview interface, where the video preview interface includes previewable videos.
  • Step S22 the terminal extracts multiple video frames from the video, and generates multiple multimedia resources from the multiple video frames.
  • Step S23 Based on the presentation order of the multiple multimedia resources, the terminal simultaneously previews and displays the multiple multimedia resources on the video preview interface.
  • a plurality of video frames are extracted from the video, including:
  • multiple video frames matching the tag information are extracted from the sequence of video frames.
  • extracting a plurality of video frames matching the tag information from the sequence of video frames includes:
  • a first number of video frames with the highest matching degree are extracted from the sequence of video frames.
  • determining a video tag for each video frame in the sequence of video frames comprises:
  • the video tag of the video frame is determined.
  • a plurality of video frames are extracted from the video, including:
  • a target video frame is extracted every interval of the second number of video frames to obtain a plurality of video frames.
  • converting the video to a sequence of video frames comprises:
  • the video is divided into multiple video segments
  • the video frame sequence is composed of video frames extracted from each video segment.
  • multiple multimedia resources are simultaneously previewed and displayed, including:
  • the number of multiple multimedia resources is M ⁇ N
  • the first preview frame includes M ⁇ N preview frames
  • each preview frame is used to display a multimedia resource
  • both M and N are integers greater than 1.
  • the method also includes:
  • the size of the preview frame for displaying the multimedia resource is set.
  • the method also includes:
  • the video preview interface includes multiple target videos that can be previewed, and the multiple target videos include the video; based on the display sequence of multiple multimedia resources, in the video preview interface, multiple multimedia resources are simultaneously previewed and displayed ,include:
  • the second preview frame includes a plurality of first preview frames, and each first preview frame is used to preview a multimedia resource showing a target video.
  • multiple multimedia resources are simultaneously previewed and displayed, including:
  • multiple multimedia resources are played in turn in the video preview interface, and thumbnails of unplayed multimedia resources are displayed.
  • the cover of the video is displayed in the video preview interface, and the cover is used to trigger a video preview request; the method also includes:
  • a step of extracting multiple video frames from the video and generating multiple multimedia resources from the multiple video frames is performed.
  • receiving the video preview request includes:
  • the video preview interface includes a preview entry, and in response to a trigger operation based on the preview entry, a video preview request based on the trigger operation is received.
  • the method also includes at least one of the following implementations:
  • the display order of the multiple multimedia resources is determined, wherein the display positions of the multiple multimedia resources whose similarity is smaller than the similarity threshold are not adjacent to each other in the video preview interface.
  • Fig. 3 is a flow chart of a video preview method according to an exemplary embodiment. As shown in Fig. 3, the video preview method is executed by a terminal. In the embodiment of the present disclosure, the terminal directly previews and displays the video in the video preview interface. Using multiple multimedia resources as an example, the method includes the following steps.
  • Step 301 The terminal displays a video preview interface, where the video preview interface includes previewable videos.
  • Step 302 the terminal converts the video into a sequence of video frames.
  • Step 303 the terminal extracts multiple video frames from the video frame sequence.
  • Step 304 The terminal generates multiple multimedia resources from multiple video frames.
  • Step 305 Based on the display sequence of the multiple multimedia resources, the terminal simultaneously previews and displays the multiple multimedia resources in the video preview interface.
  • a target application program is installed in the terminal.
  • the user triggers the terminal to run the target application; the terminal displays a video preview interface of the target application in response to the target application being triggered; the user previews the video through the video preview interface.
  • the video preview interface also includes a video acquisition entry of previewable videos, and the video acquisition entry of any video is used to trigger playing the video, that is, the video acquisition entry is also called a video playback entry.
  • the video acquisition entry includes a play button of the video.
  • the terminal sets the video acquisition entry on the cover of the video. The user triggers the video acquisition entry, and the terminal jumps from the video preview interface to the video playback interface in response to the video acquisition entry being triggered, and plays the video on the video playback interface.
  • the target application program is a video playing application program or a browser.
  • the implementation of the terminal displaying the video preview interface of the target application includes the following two situations:
  • the terminal displays a main interface of the video playback application program, and the main interface is a video preview interface.
  • the terminal displays the main interface of the browser, and based on the Uniform Resource Locator (Uniform Resource Locator, URL) input by the user on the main interface, the terminal displays the URL The video preview interface of the corresponding video website.
  • Uniform Resource Locator Uniform Resource Locator
  • the terminal extracts multiple video frames of the video before previewing and displaying the video.
  • the terminal converts the video into a sequence of video frames, and extracts a plurality of video frames from the sequence of video frames, that is, performs the operations of steps 302-303.
  • the terminal samples the video based on the sampling duration to obtain the video frame sequence
  • the implementation of step 302 includes the following process: the terminal divides the video into multiple video segments based on the sampling duration; Extracting a third number of video frames from the video segment; and composing the video frame sequence from the video frames extracted from each video segment.
  • the playback duration of each video segment is the sampling duration.
  • the sampling duration can be set and changed according to requirements, which is not specifically limited in the present disclosure; for example, the sampling duration is 0.5 seconds, 1 second, or 2 seconds.
  • the ratio of the third quantity to the sampling duration is not greater than the frame rate of the video. For example, if the frame rate of the video is 30 frames per second and the sampling duration is 1 second, then the third number is not greater than 30 frames.
  • the playback time of the video is 10 minutes
  • the sampling time is 1 second
  • the third number is 24 frames
  • a video frame sequence is obtained by extracting multiple video frames from a video, which provides data support for subsequent generation of multimedia resources.
  • the terminal does not need to display all the video frames in the video frame sequence, so the terminal extracts some video frames from the video frame sequence.
  • the terminal directly extracts multiple video frames from the sequence of video frames, that is, the first case below; or the terminal extracts multiple video frames from the sequence of video frames based on the tag information of the currently logged-in account, that is, realizes Personalized recommendations for the currently logged in account, which is the second case below.
  • the first case the terminal extracts a target video frame every interval of the second number of video frames in the sequence of video frames to obtain multiple video frames.
  • the second number can be set and changed according to requirements, and this disclosure does not specifically limit it; taking the number of video frames in the video frame sequence as 864,000 frames as an example, the second number is 24 frames, and the terminal in the video frame In the sequence, a target video frame is extracted every 24 frames, and 36000 video frames are obtained.
  • the video by converting the video into a video frame sequence, according to the set extraction frequency, that is, every interval of the second number, extracting a target video frame from the video frame sequence to obtain a plurality of video frames, realizing It extracts the content that needs to be previewed and displayed in the video, thereby saving display resources.
  • Case 2 The terminal extracts multiple video frames from the sequence of video frames based on the tag information of the currently logged-in account, including the following process: the terminal obtains the tag information of the currently logged-in account; Multiple video frames matching the tag information are extracted from the sequence.
  • the tag information includes at least one tag and a score corresponding to each tag.
  • This tag indicates the style of the video, for example, two-dimensional, landscape, or funny.
  • the score corresponding to the tag can represent the account's preference for the style indicated by the tag. In some embodiments, the score is positively correlated with the preference. For example, the higher the score, the more the account likes the style of video, that is, the deeper the preference.
  • the terminal determines the tag information of the currently logged-in account based on the stored tag information, which is the following first implementation mode; Label information, that is, the second implementation method below.
  • the historically watched videos refer to the videos watched by the current login account during the historical video watching process.
  • the terminal has locally stored the tag information of the currently logged-in account, and the terminal directly obtains the tag information.
  • the server has stored the tag information of the currently logged-in account, and the terminal acquires the tag information by means of the server.
  • the terminal sends a tag acquisition request to the server, and the tag acquisition request includes the account identifier of the currently logged-in account; the server receives the tag acquisition request; based on the tag acquisition request, obtains the tag information of the currently logged-in account, and sends the tag information to the terminal ; The terminal receives the tag information.
  • the server has stored correspondences between account identifiers and label information of multiple accounts.
  • the server acquires the tag information of the currently logged-in account based on the tag acquisition request, including: the server acquires the account ID from the correspondence between the account ID and the tag information based on the account ID included in the tag acquisition request corresponding label information.
  • the second implementation manner the terminal determines the tag information of the currently logged-in account based on the tags of the historically watched videos of the currently logged-in account.
  • the terminal sends the account ID of the currently logged-in account to the server; the server receives the account ID, and based on the account ID, determines at least A tag of historically watched videos, sending at least one tag to the terminal; the terminal receives at least one tag; the terminal determines the ratio of the number of videos corresponding to each tag to the number of at least one historically watched video, and the first number range in which the ratio is located , determining the score corresponding to the label based on the first quantity range; and composing the label and the score corresponding to the label into label information.
  • the terminal sends a tag acquisition request to the server, and the tag acquisition request includes the account identifier of the currently logged-in account; the server receives the tag acquisition request, and based on the account identifier included in the tag acquisition request, views from the account identifier and history In the corresponding relationship of video tags, determine the tag of at least one historically watched video corresponding to the account identifier, determine the ratio of the number of videos corresponding to each tag to the number of at least one historically watched video, and the first location where the ratio is located.
  • Quantity range Determine the score corresponding to the label based on the first quantity range; combine the label and the score corresponding to the label into label information; send the label information to the terminal; and the terminal receives the label information.
  • the server has stored the corresponding relationship between the account identifiers of multiple accounts and the tags of historically watched videos, and the corresponding relationship between the first number range and the score.
  • the server determines the score corresponding to the label based on the first number range, including: the server determines the first number range from the correspondence between the first number range and the score based on the first number range corresponding score. For example, if the label is a two-dimensional element, the ratio is 0.52, and the first quantity range to which the ratio belongs is 0.5-0.6, then the score corresponding to the first quantity range is 6, and the score corresponding to the label is 6.
  • the terminal will form the tag information of the current login account with the target tag and the score corresponding to the target tag; for example , the target label is landscape, and the score corresponding to the target label is 5.
  • the terminal obtains the registration information, and determines tag information corresponding to the registration information.
  • the registration information includes age, gender or other information input by the user during the account registration process.
  • the terminal determines and stores the corresponding relationship between the registration information and the tag information.
  • the corresponding relationship between registration information and label information can be set and changed according to requirements, and this disclosure does not specifically limit it; for example, if the age is 20, the label information corresponding to this age includes the label "funny" and the score "5". ".
  • the terminal by screening the video frames of the video based on the user's tag information, the video frames conforming to the user's tag information are obtained, so that the terminal can display different preview information for different users during the process of previewing and displaying the video. In this way, the personalized recommendation to the user is realized, and the preview effect of the video is improved.
  • the terminal based on the tag information, extracts a plurality of video frames that match the tag information from the video frame sequence, including the following process: the terminal determines the video tag of each video frame in the video frame sequence; The matching degree between the video label of each video frame and the label information; Based on the matching degree between each video frame and the label information, extract the first number of video frames with the highest matching degree from the video frame sequence.
  • the method for the terminal to determine the video tag of each video frame in the video frame sequence includes: the terminal recognizes the image of each video frame, and determines the style information of the video frame; based on the style information of the video frame, Determines the video tag for this video frame.
  • the style information includes at least one style identifier and a score corresponding to the style identifier; each style identifier indicates a video style.
  • the style identification is two-dimensional, landscape, funny, or other types of style identifications.
  • the score corresponding to the style identifier can represent the degree of correlation between the video frame and the video style indicated by the style identifier; the score is positively correlated with the degree of correlation. For example, the higher the score, the more relevant the video frame is to the video style, that is, the deeper the degree of correlation.
  • the video tag includes at least one tag and a score corresponding to the tag.
  • the terminal determines the video tag of the video frame based on the style information of the video frame, including: the terminal determines a style identifier with a score higher than a style threshold, and combines the style identifier with the score corresponding to the style identifier.
  • Video tags for video frames including: the terminal determines a style identifier with a score higher than a style threshold, and combines the style identifier with the score corresponding to the style identifier.
  • the embodiment of the present disclosure does not specifically limit the value of the style threshold; It should be noted that when the number of style identifiers in the style information is one, the terminal uses the style identifier and the score corresponding to the style identifier as the video tag of the video frame.
  • the method for the terminal to determine the matching degree between the video tag of the video frame and the tag information includes: the terminal acquires the same tag as the video tag of the video frame from the tag information; based on the score of the tag and the The difference between the scores of the video tags determines the second quantitative range to which the difference belongs; and determines the matching degree based on the second quantitative range.
  • the terminal has stored the correspondence between the second number range and the matching degree; in some embodiments, the implementation of the terminal determining the matching degree based on the second number range includes: the terminal based on the second number range, from the second number range In the corresponding relationship with the matching degree, the matching degree corresponding to the second quantity range is determined.
  • the video frame conforming to the tag information of the user is determined, so that the terminal can display the video for different users during the preview display process.
  • Different preview information is used to realize personalized recommendations for users, thereby improving the preview effect of videos.
  • the terminal can execute step 303 according to any of the above implementation methods; or, the terminal can also execute step 303 in different implementation methods based on different video preview interfaces; in some embodiments, in the video preview interface If there is no currently playing video, the terminal extracts multiple video frames from the sequence of video frames based on the tag information of the currently logged in account; Extract multiple video frames in a sequence of frames.
  • a first video matching model is pre-deployed in the terminal, and the terminal extracts video frames by means of the first video matching model based on tag information and a sequence of video frames. Then, based on the tag information, the terminal extracts a plurality of video frames that match the tag information from the video frame sequence, including: the terminal inputs the tag information and the video frame sequence into the first video matching model, and through the first video matching The model outputs a plurality of video frames, and the first video matching model is used to extract a plurality of video frames matching the label information from a sequence of video frames.
  • the first video matching model is trained by the terminal, or is deployed to the terminal after being trained by the server; the embodiment of the present disclosure does not specifically limit the source of the first video matching model.
  • the first video matching model since the first video matching model is trained based on a large amount of sample data, the matching accuracy of the first video matching model is relatively high; the video frame is extracted through the first video matching model, which can improve the matching accuracy. accuracy.
  • the function of the first video matching model is to extract video frames. Therefore, before extracting multiple video frames matching the tag information from the video frame sequence based on the tag information, the terminal converts the video to sequence of video frames.
  • the second video matching model is pre-deployed in the terminal, and the second video matching model is used to extract multiple video frames from the video based on the video tag, that is, the function of the second video matching model is not only to extract video frame, and the video can also be converted into a video frame sequence, then step 302 and step 303 can be replaced by: the terminal inputs tag information and video into the second video matching model, and outputs multiple video frames through the second video matching model.
  • the terminal directly generates the same number of multimedia resources from multiple video frames. Wherein, the terminal generates a fourth number of multimedia resources from multiple video frames; the present disclosure does not specifically limit the setting of the fourth number. In some other embodiments, for different terminal types, the terminal generates multiple video frames with different numbers of multimedia resources; then the implementation of step 304 includes the following process: the terminal determines the terminal type of the terminal; based on the terminal type, the terminal type is acquired The number of matching multimedia resources; multiple video frames are generated to generate this number of multimedia resources.
  • the terminal can determine the quantity of multimedia resources based on the terminal type of the current terminal.
  • the terminal type of the current terminal is a personal computer (Personal Computer, PC) device or a mobile phone.
  • the terminal stores the corresponding relationship between the terminal type and the number of multimedia resources; in some embodiments, the terminal is based on the terminal type, and the implementation of obtaining the number of multimedia resources matched by the terminal type includes: the terminal is based on the terminal type, from In the corresponding relationship between the terminal type and the quantity of multimedia resources, the quantity of multimedia resources matching the terminal type is determined.
  • the corresponding relationship between the terminal type and the quantity of multimedia resources can be set and changed according to requirements, which is not specifically limited in the present disclosure. For example, if the terminal type is a mobile phone, then the number of multimedia resources is 9; for another example, if the terminal type is a PC device, then the number of matching multimedia resources is 100.
  • the terminal sequentially splices the fifth number of video frames to obtain multiple multimedia resources.
  • the fifth number is a ratio of the number of video frames included in the plurality of video frames to the number of multimedia resources. For example, if the number of multiple video frames is 36000 frames and the number of multimedia resources is 100, then the fifth number is 360, that is, the terminal sequentially stitches every 360 video frames to obtain 100 multimedia resources.
  • the manner of video preview can be changed as the user's terminal type changes, thereby improving the diversity of video preview manners.
  • the multimedia resources include any type of static pictures, dynamic preview pictures and video clips.
  • the terminal obtains the number of multimedia resources that match the terminal type in any of the following ways: the terminal generates multiple still pictures from multiple video frames; or, generates multiple video frames from multiple video frames Multiple dynamic preview images; or, generate multiple video clips from multiple video frames.
  • the user can set the type of the multimedia resource through the terminal; or, the terminal uses the target type as the type of the multimedia resource.
  • the target type is a type set in advance by the terminal, and the setting of the target type is not specifically limited in the present disclosure; for example, the target type is a dynamic preview image.
  • the multimedia resource includes multiple types, so that the user can flexibly select the type, thereby improving the selectivity of the video preview mode.
  • the terminal after generating multiple multimedia resources from multiple video frames, the terminal first determines the presentation order of the multiple multimedia resources, and then performs step 305, wherein the presentation order is used to determine the presentation order of the multimedia resources in the video preview interface. placement.
  • the method for the terminal to determine the display order of the multiple multimedia resources includes: the terminal determines the display sequence of the multiple multimedia resources based on the position of the video frame corresponding to each multimedia resource in the video, that is, the multiple multimedia resources Resources are displayed sequentially.
  • the three multimedia resources are respectively multimedia resource 1, multimedia resource 2 and multimedia resource 3.
  • Multimedia resource 1 is generated from the first video frame to the third video frame of the video
  • multimedia resource 2 is generated from the tenth video frame of the video.
  • One video frame to the thirteenth video frame is generated
  • the multimedia resource 3 is generated from the twenty-first video frame to the twenty-third video frame of the video, so the display order of the three multimedia resources is multimedia resource 1 - multimedia resource 2 - multimedia resource 3.
  • the terminal determines the display sequence of the multiple multimedia resources based on the positions of the multiple multimedia resources in the video, so that the display sequence of the multiple multimedia resources is consistent with the playback sequence of the original content of the video.
  • the method for the terminal to determine the display order of the multiple multimedia resources includes: the terminal determines the display order of the multiple multimedia resources based on the similarity of the multiple multimedia resources; The display positions of multimedia resources in this video preview interface are not adjacent.
  • the similarity threshold can be set and changed according to requirements, which is not specifically limited in the present disclosure. In the embodiment of the present disclosure, homogenization of video content is avoided by displaying similar multimedia resources separately.
  • the terminal determines the display order of multiple multimedia resources.
  • the location of the multiple multimedia resources is determined to determine the display order of the multiple multimedia resources; based on the similarity of the multiple multimedia resources, the display sequence of the multiple multimedia resources is adjusted to avoid homogenization of video content.
  • the way of previewing and displaying includes at least one of playing and displaying thumbnails; in the case that the way of previewing and showing includes playing, the implementation of step 305 includes: based on the display order of a plurality of multimedia resources, the terminal displays in the video preview interface The display position of each multimedia resource is determined in , and multiple multimedia resources are played simultaneously at the display position of each multimedia resource.
  • the number of multiple multimedia resources is M ⁇ N
  • the implementation of step 305 includes: based on the display sequence of multiple multimedia resources, the terminal simultaneously previews and presents in the first preview frame in the video preview interface A plurality of multimedia resources, wherein the first preview frame includes M ⁇ N preview frames, each preview frame is used to display a multimedia resource, and both M and N are integers greater than 1.
  • the terminal determines the values of M and N respectively based on the quantities of multiple multimedia resources. For example, if the number of multimedia resources is 100, then M and N are 10 and 10 respectively; for another example, if the number of multimedia resources is 35, then M and N are 5 and 7 respectively.
  • Figure 4. The above picture is a schematic diagram of the cover of the video before the video is previewed and displayed.
  • the text introduction of the video is "[Mixed Cut] Animation Mixed Cut";
  • the first preview frame set includes 8 ⁇ 8 preview frames, and 8 ⁇ 8 multimedia resources are displayed in each of the 8 ⁇ 8 preview frames, so that multiple multimedia resources can be previewed and displayed at the same time.
  • a schematic diagram of a multimedia resource A schematic diagram of a multimedia resource.
  • the terminal can flexibly set the size of the first preview frame based on the number of multimedia resources, thereby improving the flexibility of the video preview method.
  • the terminal can flexibly set the size of the first preview frame based on the number of multimedia resources, thereby improving the flexibility of the video preview method.
  • the first preview frame includes a preview frame for previewing and displaying multiple multimedia resources
  • the size of the multiple preview frames can be a fixed size, or the terminal can also flexibly set the size of the preview frame; in some embodiments, the terminal
  • the implementation of setting the size of the preview frame includes: the terminal determines the matching degree between each multimedia resource and the label information of the current login account, and based on the matching degree, sets the size of the preview frame used to display the multimedia resource, wherein the preview frame Size is positively correlated with fit.
  • the terminal before step 305, the terminal generates a first preview frame.
  • the terminal generating the first preview frame includes: the terminal determining the first layout information, and determining the first preview frame matching the first layout information.
  • the first layout information is the layout information of the terminal system, or user-defined layout information, that is, in the embodiment of the present disclosure, the user can customize the first layout information, so as to realize the customization of the first preview frame, thereby Improved flexibility.
  • the implementation manner for the terminal to generate the first preview frame includes: the terminal determines the video type of the video, the matching first preview frame, and different video types correspond to first preview frames of different structures.
  • video types include animation, entertainment, life, games, etc.
  • animation, entertainment, life, and games respectively correspond to first preview frames of different structures.
  • the selection manner of the first preview frame is enriched.
  • the terminal generating the first preview frame includes: the terminal determining the first preview frame matching the terminal type of the terminal, and different terminal types correspond to first preview frames of different structures.
  • the first preview frame can be adapted to the current terminal, thereby improving the adaptability of the first preview frame.
  • the method for the terminal to generate the first preview frame includes: the terminal determines the first preview frame that matches the display ratio of the video preview interface, where the display ratio is the ratio of the video preview interface to the display screen, and different display ratios correspond to First preview frames of different structures.
  • the first preview frame including a larger number of preview frames is set, so that the first preview frame can display more multimedia resources, so that the overall picture of the video can be viewed through the multimedia resources.
  • the video preview interface in the non-full-screen state is small, and the first preview frame including a small number of preview frames is set to make the interface more tidy.
  • the terminal previews and displays the multiple multimedia resources in turn on the video preview interface based on the presentation order of the multiple multimedia resources.
  • the implementation of step 305 includes: the terminal plays multiple multimedia resources in turn in the video preview interface based on the display sequence of multiple multimedia resources, and displays unplayed Thumbnails for multimedia assets.
  • the terminal when the terminal is playing a multimedia resource, the unplayed multimedia resource is in a non-playing state, and the terminal displays thumbnails of the unplayed multimedia resource in the video preview interface.
  • the three multimedia resources are respectively multimedia resource 1, multimedia resource 2 and multimedia resource 3.
  • the terminal displays thumbnails of unplayed multimedia resources on the video preview interface.
  • the realization method for the terminal to play multiple multimedia resources in turn in the video preview interface includes: based on the display order of multiple multimedia resources, the terminal determines each The display position of the multimedia resource is to display the corresponding multimedia resource at each display position of the multimedia resource; determine the playing sequence of the multiple multimedia resources, and play the multiple multimedia resources in turn based on the playing sequence.
  • the implementation method for the terminal to determine the playing order of multiple multimedia resources includes: the terminal directly determines the display order as the playing order; or, based on the matching degree between each multimedia resource and the label information of the current login account, determine the The playback order of the assets.
  • the higher the matching degree is, the higher the position of the multimedia resource is in the playing order
  • the lower the matching degree is, the lower the position of the multimedia resource is in the playing order, so that the multimedia resource that the user is interested in is played preferentially.
  • step 305 when the way of previewing and displaying includes displaying thumbnails, the implementation of step 305 includes: the terminal determines the display position of each multimedia resource in the video preview interface based on the sequence of displaying multiple multimedia resources , on the display position of each multimedia resource, simultaneously display the thumbnails of multiple multimedia resources.
  • the terminal can preview and display multiple multimedia resources in turn.
  • the operation of previewing and displaying multiple multimedia resources in turn can be understood as quick display, that is, the operation also belongs to the scope of "simultaneous display" in the embodiments of the present disclosure.
  • the display resources of the video preview interface are saved by previewing and displaying multiple multimedia resources in turn.
  • the terminal can directly preview and display multiple multimedia resources in the video preview interface, or the terminal can also preview and display multiple multimedia resources with audio added in the video preview interface.
  • the terminal adds audio information of the video to the multimedia resource of the video, and previews and displays the multimedia resource with the added audio information on the video preview interface.
  • the implementation of previewing and displaying multiple multimedia resources by the terminal includes the following process: the terminal obtains the audio information corresponding to each multimedia resource; adds the audio information to the multimedia resource; in the video preview interface, previews and displays Multimedia resources after adding audio information.
  • the terminal obtains the audio information corresponding to each multimedia resource.
  • the time point corresponding to the video frame in the multimedia resource is determined from the audio corresponding to the video, and the audio frame corresponding to the time point is determined; multiple audio frames corresponding to the same multimedia resource are spliced to obtain the audio information corresponding to the multimedia resource.
  • the terminal synthesizes the audio information and the multimedia resource to obtain the multimedia resource with the audio information added.
  • the terminal previews and displays a preview play button of the multimedia resource in the video preview interface; in response to the preview play button being triggered, the terminal plays the multimedia resource with audio information added.
  • the user can not only preview the screen content of the video, but also preview the audio content corresponding to the video, thereby allowing the user to combine the screen content in the multimedia resource Content and audio content improve video preview by determining whether a video is of interest.
  • the terminal can directly preview and display multiple multimedia resources on the cover of the video at the same time, or the terminal can also preview and display multiple multimedia resources in the floating window of the video preview interface.
  • a floating window is displayed above the cover of the video, and multiple multimedia resources are simultaneously previewed and displayed in the floating window.
  • different display modes are provided, thereby improving the selectivity of the display modes.
  • the number of previewable videos included in the video preview interface is one or more. Take the preview of multiple target videos as an example.
  • the multiple target videos include videos.
  • the terminal For each target video, the terminal generates multiple multimedia resources of the target video according to the above steps 302-305, and simultaneously previews and displays them in the video preview interface. There are multiple multimedia resources of the target video. Since one target video corresponds to multiple multimedia resources, the terminal simultaneously displays multiple multimedia resources of the target video on the video preview interface.
  • the terminal can also layout the multimedia resources of multiple target videos, then the terminal determines the second layout information of the multiple target videos in the video preview interface; determines the second preview frame matched by the second layout information; The multimedia resource displaying multiple target videos is simultaneously previewed in the second preview frame.
  • the second preview frame is a global preview frame.
  • the second preview frame includes a plurality of first preview frames, and each first preview frame is used to display a multimedia resource of a target video.
  • the second layout information is used to indicate that multiple target videos of the video preview interface are arranged side by side, and then the plurality of first preview frames included in the second preview frame are also arranged side by side, so that the second preview frame and the first preview frame are arranged side by side.
  • layout information matching that is, in the process of previewing and displaying multimedia resources, the original layout of the video preview interface is not changed, thereby improving the adaptability of the interface display.
  • Fig. 5 is a flow chart of a video preview method according to an exemplary embodiment. As shown in Fig. 5, the video preview method is executed by a terminal. In the embodiment of the present disclosure, the terminal is based on a video preview request, and in the video preview interface , preview multiple multimedia resources displaying video as an example for illustration, the method includes the following steps.
  • Step 501 The terminal displays a video preview interface, the video preview interface includes a previewable video and a cover of the video, and the cover is used to trigger a video preview request.
  • Step 502 the terminal receives the video preview request.
  • Step 503 The terminal converts the video corresponding to the video preview request into a sequence of video frames.
  • Step 504 the terminal extracts multiple video frames from the video frame sequence.
  • Step 505 The terminal generates multiple multimedia resources from multiple video frames.
  • Step 506 Based on the display sequence of the multiple multimedia resources, the terminal simultaneously previews and displays the multiple multimedia resources in the video preview interface.
  • the video is displayed in the video preview interface in the form of displaying a cover.
  • the terminal executes the operation of step 502 in response to the video preview request triggered based on the cover art.
  • the implementation manner of step 501 is the same as the implementation manner of step 301, which will not be repeated here.
  • the implementation of the terminal receiving the video preview request includes at least one of the following implementations: first implementation: the terminal responds to a mouse hovering operation detected on the cover, and receives the video based on the hovering operation Preview request. Wherein, once the terminal detects the hovering operation, it determines to receive the video preview request, or, when the terminal detects that the hovering duration of the hovering operation reaches the target duration, it determines to receive the video preview request.
  • the target duration can be set and changed according to requirements, which is not specifically limited in the embodiment of the present disclosure; for example, if the target duration is 5 seconds, then the mouse pointer hovers over the cover of the video for 5 seconds Next, the terminal determines that the video preview request is received.
  • the hovering operation on a video indicates that the user intends to watch the video, and the terminal can preview and display the video, thereby improving the accuracy of the video preview.
  • the video preview interface includes a preview entry
  • the terminal receives a video preview request based on the trigger operation in response to the trigger operation based on the preview entry.
  • the preview entry includes a preview button. The user triggers the preview button, and the terminal determines that a video preview request is received.
  • the terminal can set a preview button on the video preview interface; for example, the preview button is set below or above the cover of the video; or, the preview button is set on the cover of the video, and the position of the play button is different from that of the video .
  • the user triggers a preview button through the terminal, and the terminal determines that a video preview request is received.
  • the operation of the user triggering the video preview entry through the terminal indicates that the user has an intention to watch the video, so that the terminal can determine that a video preview request has been received, which improves the accuracy of the video preview.
  • the implementation manner of step 503 is the same as the implementation manner of the terminal converting the video into a video frame sequence in step 302, which will not be repeated here.
  • the terminal converts the video in the video preview interface into a video frame sequence only after receiving the video preview request, thereby avoiding the need to store video frame sequences of multiple videos and causing the storage space of the terminal to be reduced. The occurrence of excessive occupancy further reduces the storage pressure of the terminal.
  • steps 504-506 is the same as the implementation of steps 303-305, which will not be repeated here.
  • the video frame of the video can reflect the content of the video
  • multiple multimedia resources generated based on multiple video frames of the video can fuse the content of the video.
  • the user can preview the video content provided by multiple multimedia resources before watching the video, so as to have a pre-understanding of the whole picture of the video, thereby improving the video preview effect.
  • Fig. 6 is a flow chart showing a video preview method according to an exemplary embodiment. As shown in Fig. 6, the video preview method is executed by a terminal, and the method includes the following steps.
  • Step 601 The terminal displays a video preview interface, and the video preview interface displays a cover of the video.
  • Step 602 In response to the video preview operation based on the cover, the terminal displays a first preview frame corresponding to the video on the video preview interface.
  • the first preview frame includes a plurality of multimedia resources, and each multimedia resource is represented by the video in the video. At least one video frame of is generated.
  • the method also includes:
  • the video preview interface includes a preview entry, and in response to a trigger operation based on the preview entry, it is determined that the video preview operation is detected.
  • Fig. 7 is a flowchart of a video preview method according to an exemplary embodiment. As shown in Fig. 7, the video preview method is executed by a terminal. In the embodiment of the present disclosure, the terminal is based on the video preview operation, and in the video preview interface Taking multiple multimedia resources displaying videos as an example, the method includes the following steps.
  • Step 701 The terminal displays a video preview interface, and the video preview interface displays a cover of the video.
  • Step 702 In response to the video preview operation based on the cover, the terminal displays the first preview frame corresponding to the video on the video preview interface, the first preview frame includes multiple multimedia resources, and each multimedia resource consists of At least one video frame is generated.
  • step 701 is the same as the implementation manner of step 501, which will not be repeated here.
  • the first preview frame includes M ⁇ N preview frames, each preview frame is used to display a multimedia resource, and both M and N are integers greater than 1.
  • steps 302-304 for the process of generating the first preview frame and multiple multimedia resources by the terminal which will not be repeated here.
  • the implementation manner of the terminal detection video preview operation is the same as the implementation manner of step 502, and will not be repeated here.
  • the multiple multimedia resources displayed in the first preview frame can be integrated with the content of the video.
  • the user can Before watching a video, the video content provided by multiple multimedia resources can be previewed, so as to know the whole picture of the video in advance, thereby improving the video preview effect.
  • Fig. 8 is a block diagram of a video preview device 800 according to an exemplary embodiment.
  • the apparatus 800 includes a first presentation unit 801 and a generation unit 802 .
  • the first display unit 801 is configured to display a video preview interface, where the video preview interface includes previewable videos;
  • the generating unit 802 is configured to extract multiple video frames from the video, and generate multiple multimedia resources from the multiple video frames;
  • the first display unit 801 is configured to simultaneously preview and display multiple multimedia resources in the video preview interface based on the display sequence of the multiple multimedia resources.
  • generating unit 802 includes:
  • a conversion subunit configured to convert the video into a sequence of video frames
  • the obtaining subunit is configured to obtain the label information of the current login account
  • the extracting subunit is configured to extract a plurality of video frames matching the tag information from the sequence of video frames based on the tag information.
  • the extraction subunit is configured to determine the video label of each video frame in the video sequence; determine the matching degree between the video label of each video frame and the label information; based on each video frame According to the matching degree between the label information and the video frame sequence, the first number of video frames with the highest matching degree are extracted.
  • the extraction subunit is configured to recognize each video frame image, determine the style information of the video frame; and determine the video tag of the video frame based on the style information of the video frame.
  • generating unit 802 includes:
  • a conversion subunit configured to convert the video into a sequence of video frames
  • the second extracting subunit is configured to extract a target video frame every interval of a second number of video frames in the sequence of video frames to obtain a plurality of video frames.
  • the conversion subunit is configured to divide the video into a plurality of video segments based on the sampling duration; extract a third number of video frames from each video segment; extract the video frames from each video segment Video frames make up the sequence of video frames.
  • the first display unit 801 is configured to simultaneously preview and display multiple multimedia resources in the first preview frame in the video preview interface based on the display sequence of the multiple multimedia resources;
  • the number of multiple multimedia resources is M ⁇ N
  • the first preview frame includes M ⁇ N preview frames
  • each preview frame is used to display a multimedia resource
  • both M and N are integers greater than 1.
  • the device also includes:
  • the first determining unit is configured to determine a degree of matching between each multimedia resource and the label information of the current login account; based on the degree of matching, set the size of a preview frame for displaying the multimedia resource.
  • the device also includes:
  • the first determining unit is configured to determine the first preview frame that matches the video type of the video, and different video types correspond to the first preview frame of different structures; or,
  • the first determining unit is configured to determine the first preview frame matching the terminal type of the terminal, and different terminal types correspond to the first preview frame of different structures; or,
  • the first determination unit is configured to determine the first preview frame that matches the display ratio of the video preview interface, where the display ratio is the ratio of the preview interface to the display screen, and different display ratios correspond to different structures of the first preview frame.
  • the video preview interface includes multiple target videos that can be previewed, and the multiple target videos include the video;
  • the first presentation unit 801 is configured to determine the layout information of the multiple target videos in the video preview interface ; Determine the second preview frame that the layout information matches; preview the multimedia resources showing multiple target videos simultaneously in the second preview frame;
  • the second preview frame includes a plurality of first preview frames, and each first preview frame is used to preview a multimedia resource showing a target video.
  • the first display unit 801 is configured to determine the display position of each multimedia resource in the video preview interface based on the display sequence of the multiple multimedia resources, and at the display position of each multimedia resource, at the same time play multiple multimedia resources; or,
  • the first display unit 801 is configured to play multiple multimedia resources in turn on the video preview interface based on the display sequence of the multiple multimedia resources, and display thumbnails of unplayed multimedia resources.
  • the cover of the video is displayed in the video preview interface, and the cover is used to trigger a video preview request; the device also includes:
  • a receiving unit configured to receive the video preview request
  • the generating unit 802 is configured to extract multiple video frames from the video based on the video preview request, and generate multiple multimedia resources from the multiple video frames.
  • the receiving unit is configured to receive the video preview request based on the hovering operation in response to detecting a mouse hovering operation on the cover; or,
  • the video preview interface includes a preview entry, and the receiving unit is configured to, in response to a trigger operation based on the preview entry, receive the video preview request based on the trigger operation.
  • the device also includes:
  • the first determining unit is configured to determine the display order of multiple multimedia resources based on the position of the video frame corresponding to each multimedia resource in the video; or,
  • the first determination unit is configured to determine the display sequence of multiple multimedia resources based on the similarity between multiple multimedia resources; wherein, the multiple multimedia resources whose similarity is smaller than the similarity threshold are displayed in the video preview interface The locations are not adjacent.
  • the video frame of the video can reflect the content of the video
  • multiple multimedia resources generated based on multiple video frames of the video can fuse the content of the video.
  • the user can preview the video content provided by multiple multimedia resources before watching the video, so as to have a pre-understanding of the whole picture of the video, thereby improving the video preview effect.
  • Fig. 9 is a block diagram of a video preview device 900 according to an exemplary embodiment.
  • the device 900 includes a second display unit 901 .
  • the second display unit 901 is configured to display a video preview interface, and the video preview interface displays a cover of the video;
  • the second presentation unit 901 is configured to display a first preview frame corresponding to the video in the video preview interface in response to the video preview operation based on the cover, the first preview frame includes a plurality of multimedia resources, and each The multimedia resource is generated from at least one video frame in the video.
  • the device also includes:
  • the second determining unit is configured to determine that the video preview operation is detected in response to detecting a mouse hovering operation on the cover; or,
  • the preview interface includes a preview entry, and the second determining unit is configured to determine that the video preview operation is detected in response to a trigger operation based on the preview entry.
  • the multiple multimedia resources displayed in the first preview frame can be integrated with the content of the video.
  • the user can Before watching a video, the video content provided by multiple multimedia resources can be previewed, so as to know the whole picture of the video in advance, thereby improving the video preview effect.
  • Fig. 10 is a block diagram showing a terminal 10 according to an exemplary embodiment.
  • the terminal 10 is: a smart phone, a tablet computer, a notebook computer or a desktop computer, and the like.
  • the terminal 10 is called user equipment, portable terminal, laptop terminal, desktop terminal and other names.
  • the terminal 10 includes: a processor 101 and a memory 102 .
  • the processor 101 includes one or more processing cores, such as a 4-core processor, an 8-core processor, and the like.
  • the processor 101 adopts at least one of DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, programmable logic array) A form of hardware to achieve.
  • the processor 101 also includes a main processor and a coprocessor, and the main processor is a processor for processing data in a wake-up state, also called a CPU (Central Processing Unit, central processing unit) ;
  • the coprocessor is a low-power processor used to process data in the standby state.
  • the processor 101 is integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen.
  • the processor 101 further includes an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is configured to process computing operations related to machine learning.
  • AI Artificial Intelligence, artificial intelligence
  • memory 102 includes one or more non-volatile computer-readable storage media that are non-transitory.
  • the memory 102 also includes high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices.
  • the non-transitory non-volatile computer-readable storage medium in the memory 102 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 101 to implement the method embodiments of the present disclosure The provided video preview method.
  • the terminal 10 may optionally further include: a peripheral device interface 103 and at least one peripheral device.
  • the processor 101 , the memory 102 and the peripheral device interface 103 are connected through buses or signal lines.
  • each peripheral device is connected to the peripheral device interface 103 through a bus, a signal line or a circuit board.
  • the peripheral device includes: at least one of a radio frequency circuit 104 , a display screen 105 , a camera component 106 , an audio circuit 107 , a positioning component 108 and a power supply 109 .
  • the peripheral device interface 103 may be used to connect at least one peripheral device related to I/O (Input/Output, input/output) to the processor 101 and the memory 102 .
  • the processor 101, memory 102 and peripheral device interface 103 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 101, memory 102 and peripheral device interface 103 or The two are implemented on a separate chip or circuit board, which is not limited in this embodiment.
  • the radio frequency circuit 104 is used to receive and transmit RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals.
  • Radio frequency circuitry 104 communicates with communication networks and other communication devices via electromagnetic signals.
  • the radio frequency circuit 104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals.
  • the radio frequency circuit 104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like.
  • the radio frequency circuit 104 communicates with other terminals through at least one wireless communication protocol.
  • the wireless communication protocol includes but is not limited to: World Wide Web, Metropolitan Area Network, Intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), wireless local area network and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.
  • the radio frequency circuit 104 also includes circuits related to NFC (Near Field Communication, short-range wireless communication), which is not limited in the present disclosure.
  • the display screen 105 is used to display a UI (User Interface, user interface).
  • the UI includes graphics, text, icons, video, and any combination thereof.
  • the display screen 105 also has the ability to collect touch signals on or above the surface of the display screen 105 .
  • the touch signal is input to the processor 101 as a control signal for processing.
  • the display screen 105 is also used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards.
  • the display screen 105 there is one display screen 105, which is arranged on the front panel of the terminal 10; in other embodiments, there are at least two display screens 105, which are respectively arranged on different surfaces of the terminal 10 or in a folding design; In some embodiments, the display screen 105 is a flexible display screen, and is disposed on a curved surface or a folded surface of the terminal 10 . Even, the display screen 105 is set as a non-rectangular irregular figure, that is, a special-shaped screen. In some embodiments, the display screen 105 is made of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode) and other materials.
  • LCD Liquid Crystal Display, liquid crystal display
  • OLED Organic Light-Emitting Diode, organic light-emitting diode
  • the camera assembly 106 is used to capture images or videos.
  • the camera assembly 106 includes a front camera and a rear camera.
  • the front camera is set on the front panel of the terminal, and the rear camera is set on the back of the terminal.
  • there are at least two rear cameras which are any one of the main camera, depth-of-field camera, wide-angle camera, and telephoto camera, so as to realize the fusion of the main camera and the depth-of-field camera to realize the background blur function.
  • camera assembly 106 also includes a flash.
  • the flash is a single-color temperature flash, and in some embodiments, the flash is a dual-color temperature flash. Dual color temperature flash refers to the combination of warm light flash and cold light flash, which is used for light compensation under different color temperatures.
  • audio circuitry 107 includes a microphone and a speaker.
  • the microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals and input them to the processor 101 for processing, or input them to the radio frequency circuit 104 to realize voice communication.
  • there are multiple microphones which are respectively arranged in different parts of the terminal 10 .
  • the microphone is an array microphone or an omnidirectional collection microphone.
  • the speaker is used to convert the electrical signal from the processor 101 or the radio frequency circuit 104 into sound waves.
  • the speaker is a conventional membrane speaker, and in some embodiments, the speaker is a piezoelectric ceramic speaker.
  • audio circuitry 107 also includes a headphone jack.
  • the positioning component 108 is used to locate the current geographic location of the terminal 10 to implement navigation or LBS (Location Based Service, location-based service).
  • LBS Location Based Service, location-based service
  • the positioning component 107 is a positioning component based on the GPS (Global Positioning System) of the United States, the Beidou positioning system of China, the Greinus positioning system of Russia or the Galileo positioning system of the European Union.
  • the power supply 109 is used to supply power to various components in the terminal 10 .
  • the power source 109 is alternating current, direct current, disposable batteries, or rechargeable batteries.
  • the rechargeable battery is a wired rechargeable battery or a wireless rechargeable battery.
  • a wired rechargeable battery is a battery charged through a wired line
  • a wireless rechargeable battery is a battery charged through a wireless coil.
  • the rechargeable battery is also used to support fast charging technology.
  • the terminal 10 further includes one or more sensors 110 .
  • the one or more sensors 110 include, but are not limited to: an acceleration sensor 111 , a gyro sensor 112 , a pressure sensor 113 , a fingerprint sensor 114 , an optical sensor 115 and a proximity sensor 116 .
  • the acceleration sensor 111 detects the acceleration on the three coordinate axes of the coordinate system established by the terminal 10 .
  • the acceleration sensor 111 is used to detect the components of the gravitational acceleration on the three coordinate axes.
  • the processor 101 controls the display screen 105 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 111 .
  • the acceleration sensor 111 is also used for collecting game or user's motion data.
  • the gyro sensor 112 detects the body orientation and rotation angle of the terminal 10 , and the gyro sensor 112 and the acceleration sensor 111 cooperate to collect 3D actions of the user on the terminal 10 .
  • the processor 101 can realize the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control and inertial navigation.
  • the pressure sensor 113 is disposed on a side frame of the terminal 10 and/or a lower layer of the display screen 105 .
  • the pressure sensor 113 can detect the user's grip signal on the terminal 10 , and the processor 101 performs left and right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 113 .
  • the processor 101 controls the operable controls on the UI interface according to the user's pressure operation on the display screen 105.
  • the operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
  • the fingerprint sensor 114 is used to collect the user's fingerprint, and the processor 101 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 114, or, the fingerprint sensor 114 identifies the user's identity according to the collected fingerprint.
  • the processor 101 authorizes the user to perform related sensitive operations, such sensitive operations include unlocking the screen, viewing encrypted information, downloading software, making payment, and changing settings.
  • the fingerprint sensor 114 is disposed on the front, back or side of the terminal 10 . When the terminal 10 is provided with a physical button or a manufacturer's logo, the fingerprint sensor 114 is integrated with the physical button or the manufacturer's Logo.
  • the optical sensor 115 is used to collect ambient light intensity.
  • the processor 101 controls the display brightness of the display screen 105 according to the ambient light intensity collected by the optical sensor 115 . Specifically, when the ambient light intensity is high, the display brightness of the display screen 105 is increased; when the ambient light intensity is low, the display brightness of the display screen 105 is decreased.
  • the processor 101 also dynamically adjusts shooting parameters of the camera assembly 106 according to the ambient light intensity collected by the optical sensor 115 .
  • the proximity sensor 116 also called a distance sensor, is usually arranged on the front panel of the terminal 10 .
  • the proximity sensor 116 is used to collect the distance between the user and the front of the terminal 10 .
  • the processor 101 controls the display screen 105 to switch from the bright screen state to the off-screen state; when the proximity sensor 116 detects When the distance between the user and the front of the terminal 10 gradually increases, the processor 101 controls the display screen 105 to switch from the off-screen state to the on-screen state.
  • FIG. 10 does not constitute a limitation on the terminal 10, and may include more or less components than shown in the figure, or combine certain components, or adopt a different component arrangement.
  • a non-volatile computer-readable storage medium including instructions, such as a memory 102 including instructions, the above instructions are executed by the processor 101 of the terminal 10 to complete the video in the above embodiments preview method.
  • the computer-readable storage medium is ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
  • a computer program product including a computer program/instruction, and when the computer program/instruction is executed by the processor 101, the video preview method in the foregoing embodiment is implemented.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

A video preview method and a terminal, relating to the technical field of Internet. The method comprises: displaying a video preview interface, the video preview interface comprising a previewable video (S21); extracting a plurality of video frames from the video, and generating a plurality of multimedia resources from the plurality of video frames (S22); and on the basis of a display sequence of the plurality of multimedia resources, simultaneously previewing and displaying the plurality of multimedia resources in the video preview interface (S23).

Description

视频预览方法及终端Video preview method and terminal
本公开基于申请日为2021年08月31日提交的申请号为202111016537.3的中国专利申请提出,并要求该中国专利申请的最早优先权,该中国专利申请的全部内容在此引入本公开作为参考;本公开还要求于2021年10月25日提交的申请号为202111241441.7的中国专利申请的优先权,该中国专利申请的全部内容在此引入本公开作为参考。This disclosure is based on the Chinese patent application with application number 202111016537.3 filed on August 31, 2021, and claims the earliest priority of this Chinese patent application. The entire content of this Chinese patent application is hereby incorporated by reference into this disclosure; This disclosure also claims the priority of the Chinese patent application with application number 202111241441.7 filed on October 25, 2021, the entire content of which is hereby incorporated by reference into this disclosure.
技术领域technical field
本公开涉及互联网技术领域,尤其涉及一种视频预览方法及终端。The present disclosure relates to the technical field of the Internet, and in particular to a video preview method and terminal.
背景技术Background technique
目前,视频网站或者视频应用中包括大量的视频,为了便于用户快速找到感兴趣的视频,视频网站或者视频应用会为视频生成预览信息,用户通过查看视频的预览信息,判断视频内容是否为感兴趣的内容,进而选择感兴趣的视频。At present, video websites or video applications include a large number of videos. In order to facilitate users to quickly find interesting videos, video websites or video applications will generate preview information for videos. Users can judge whether the video content is of interest by viewing the preview information of the video. content, and then choose the video you are interested in.
相关技术中,通常采用在视频列表页展示视频预览图的形式展示预览信息,预览图一般通过截取视频中的一张或多张视频帧生成。In related technologies, preview information is usually displayed in the form of a video preview image displayed on a video list page, and the preview image is generally generated by intercepting one or more video frames in a video.
发明内容Contents of the invention
本公开提供一种视频预览方法及终端。本公开的技术方案如下:The disclosure provides a video preview method and a terminal. The disclosed technical scheme is as follows:
根据本公开实施例的第一方面,提供一种视频预览方法,由终端执行,包括:According to the first aspect of the embodiments of the present disclosure, there is provided a video preview method executed by a terminal, including:
展示视频预览界面,该视频预览界面包括可预览的视频;Displaying a video preview interface, the video preview interface includes previewable videos;
从该视频中提取多个视频帧,将多个视频帧生成多个多媒体资源;extracting multiple video frames from the video, and generating multiple multimedia resources from the multiple video frames;
基于多个多媒体资源的展示顺序,在该视频预览界面中,同时预览展示多个多媒体资源。Based on the display sequence of multiple multimedia resources, multiple multimedia resources are simultaneously previewed and displayed on the video preview interface.
在本公开实施例中,由于视频的视频帧能够体现视频的内容,因此,基于视频的多个视频帧生成的多个多媒体资源能够融合视频的内容,通过在视频预览界面展示多个多媒体资源,使得用户在观看视频之前能够通过预览多个多媒体资源提供的视频内容,对视频的全貌有预先了解,进而改善了视频预览效果。In the embodiment of the present disclosure, since the video frame of the video can reflect the content of the video, multiple multimedia resources generated based on multiple video frames of the video can fuse the content of the video. By displaying multiple multimedia resources on the video preview interface, The user can preview the video content provided by multiple multimedia resources before watching the video, so as to have a pre-understanding of the whole picture of the video, thereby improving the video preview effect.
根据本公开实施例的第二方面,提供一种视频预览方法,由终端执行,包括:According to the second aspect of the embodiments of the present disclosure, there is provided a video preview method executed by a terminal, including:
展示视频预览界面,该视频预览界面中展示有视频的封面;Display the video preview interface, the cover of the video is displayed in the video preview interface;
响应于基于该封面的视频预览操作,在该视频预览界面中展示该视频对应的第一预览框架,该第一预览框架包括多个多媒体资源,且每个多媒体资源由该视频中的至少一个视频帧生成。In response to the video preview operation based on the cover, a first preview frame corresponding to the video is displayed in the video preview interface, the first preview frame includes a plurality of multimedia resources, and each multimedia resource consists of at least one video in the video frame generation.
根据本公开实施例的第三方面,提供一种视频预览装置,包括:According to a third aspect of an embodiment of the present disclosure, a video preview device is provided, including:
第一展示单元,被配置为展示视频预览界面,该视频预览界面包括可预览的视频;The first display unit is configured to display a video preview interface, and the video preview interface includes previewable videos;
生成单元,被配置为从该视频中提取多个视频帧,将多个视频帧生成多个多媒体资源;A generating unit configured to extract multiple video frames from the video, and generate multiple multimedia resources from the multiple video frames;
该第一展示单元,被配置为基于多个多媒体资源的展示顺序,在该视频预览界面中,同时预览展示多个多媒体资源。The first display unit is configured to simultaneously preview and display the multiple multimedia resources in the video preview interface based on the display order of the multiple multimedia resources.
根据本公开实施例的第四方面,提供一种视频预览装置,包括:According to a fourth aspect of an embodiment of the present disclosure, a video preview device is provided, including:
第二展示单元,被配置为展示视频预览界面,该视频预览界面中展示有视频的封面;The second display unit is configured to display a video preview interface, and the video preview interface displays a cover of the video;
该第二展示单元,被配置为响应于基于该封面的视频预览操作,在该视频预览界面中展示该视频对应的第一预览框架,该第一预览框架包括多个多媒体资源,且每个多媒体资源由该视频中的至少一个视频帧生成。The second presentation unit is configured to display a first preview frame corresponding to the video in the video preview interface in response to the video preview operation based on the cover, the first preview frame includes a plurality of multimedia resources, and each multimedia Assets are generated from at least one video frame in the video.
根据本公开实施例的第五方面,提供一种终端,该终端包括处理器和用于存储该处理器可执行指令的存储器;其中,该处理器被配置为执行该指令,以实现如上述第一方面中的视频预览方法。According to a fifth aspect of the embodiments of the present disclosure, there is provided a terminal, the terminal includes a processor and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions, so as to implement the above-mentioned first A video preview method in one hand.
根据本公开实施例的第六方面,提供一种终端,该终端包括处理器和用于存储该处理器可执行指令的存储器;其中,该处理器被配置为执行该指令,以实现如上述第二方面中的视频预览方法。According to a sixth aspect of the embodiments of the present disclosure, there is provided a terminal, the terminal includes a processor and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions, so as to implement the above-mentioned first The video preview method in the second aspect.
根据本公开实施例的第七方面,提供一种非易失性计算机可读存储介质,当该非易失性计算机可读存储介质中的指令由终端的处理器执行时,使得该终端能够执行上述第一方面中的视频预览方法。According to a seventh aspect of the embodiments of the present disclosure, there is provided a non-volatile computer-readable storage medium. When instructions in the non-volatile computer-readable storage medium are executed by a processor of a terminal, the terminal can execute The video preview method in the first aspect above.
根据本公开实施例的第八方面,提供一种非易失性计算机可读存储介质,当该非易失性计算机可读存储介质中的指令由终端的处理器执行时,使得该终端能够执行上述第二方面中的视频预览方法。According to an eighth aspect of the embodiments of the present disclosure, there is provided a non-volatile computer-readable storage medium. When instructions in the non-volatile computer-readable storage medium are executed by a processor of a terminal, the terminal can execute The video preview method in the second aspect above.
根据本公开实施例的第九方面,提供一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现上述第一方面中的视频预览方法。According to a ninth aspect of the embodiments of the present disclosure, a computer program product is provided, including a computer program/instruction, and when the computer program/instruction is executed by a processor, the video preview method in the first aspect above is implemented.
根据本公开实施例的第十方面,提供一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现上述第二方面中的视频预览方法。According to a tenth aspect of the embodiments of the present disclosure, a computer program product is provided, including a computer program/instruction, and when the computer program/instruction is executed by a processor, the video preview method in the second aspect above is implemented.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The accompanying drawings here are incorporated into the specification and constitute a part of the specification, show embodiments consistent with the disclosure, and are used together with the description to explain the principle of the disclosure, and do not constitute an improper limitation of the disclosure.
图1是根据一示例性实施例示出的一种视频预览方法的实施环境图;Fig. 1 is an implementation environment diagram of a video preview method shown according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种视频预览方法的流程图;Fig. 2 is a flow chart of a video preview method shown according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种视频预览方法的流程图;Fig. 3 is a flowchart of a video preview method shown according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种视频封面的示意图;Fig. 4 is a schematic diagram of a video cover according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种视频预览方法的流程图;Fig. 5 is a flowchart of a video preview method shown according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种视频预览方法的流程图;Fig. 6 is a flowchart of a video preview method according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种视频预览方法的流程图;Fig. 7 is a flowchart of a video preview method shown according to an exemplary embodiment;
图8是根据一示例性实施例示出的一种视频预览装置的框图;Fig. 8 is a block diagram of a video preview device according to an exemplary embodiment;
图9是根据一示例性实施例示出的一种视频预览装置的框图;Fig. 9 is a block diagram of a video preview device according to an exemplary embodiment;
图10是根据一示例性实施例示出的一种终端的框图。Fig. 10 is a block diagram of a terminal according to an exemplary embodiment.
具体实施方式Detailed ways
本公开所涉及的用户信息为经用户授权或者经过各方充分授权的信息。The user information involved in this disclosure is information authorized by the user or fully authorized by all parties.
图1是根据一示例性实施例示出的一种视频预览方法的实施环境图,参见图1,该实施环境包括:终端10和服务器20。终端10与服务器20通过无线或者有线网络连接。FIG. 1 is an implementation environment diagram of a video preview method according to an exemplary embodiment. Referring to FIG. 1 , the implementation environment includes: a terminal 10 and a server 20 . The terminal 10 is connected to the server 20 through a wireless or wired network.
终端10上安装有服务器20提供服务的目标应用程序,终端10通过该目标应用程序与服务器20实现数据交互。该目标应用程序为终端的操作系统中的应用程序或者为第三方提供的应用程序。该目标应用程序为任一能够播放视频的应用程序;例如,该目标应用为视频播放应用程序或者浏览器。该目标应用程序还具有视频预览功能。在一些实施例中,该目标应用程序还能够具备其他功能,例如分享功能、直播功能等。A target application program provided by the server 20 is installed on the terminal 10, and the terminal 10 realizes data interaction with the server 20 through the target application program. The target application program is an application program in the operating system of the terminal or an application program provided by a third party. The target application program is any application program capable of playing video; for example, the target application program is a video playback application program or a browser. This target application also has a video preview feature. In some embodiments, the target application program can also have other functions, such as a sharing function, a live broadcast function, and the like.
在一些实施例中,终端10为手机、平板电脑和PC(Personal Computer)设备等设备中的至少一种。服务器20为一台服务器、由多台服务器组成的服务器集群、云服务器、云计算平台和虚拟化中心中的至少一种。In some embodiments, the terminal 10 is at least one of devices such as a mobile phone, a tablet computer, and a PC (Personal Computer) device. The server 20 is at least one of a server, a server cluster composed of multiple servers, a cloud server, a cloud computing platform, and a virtualization center.
在本公开实施例中,终端10在目标应用程序的视频预览界面展示可预览的视频,为该视频生成多个多媒体资源,从而展示该视频的多个多媒体资源。其中,多媒体资源为静态图片、动态预览图或者视频片段。In the embodiment of the present disclosure, the terminal 10 displays a previewable video on the video preview interface of the target application program, generates multiple multimedia resources for the video, and displays multiple multimedia resources of the video. Wherein, the multimedia resource is a static picture, a dynamic preview picture or a video segment.
在一些实施例中,终端10从服务器20中获取视频,通过本公开实施例提供的视频预览方法,生成该视频的多个多媒体资源,在视频预览界面中预览展示多个多媒体资源。在另一些实施例中,终端10借助于服务器20生成视频的多个多媒体资源,服务器20将多个多媒体资源返回给终端10,终端10在视频预览界面中预览展示多个多媒体资源。In some embodiments, the terminal 10 obtains the video from the server 20, generates multiple multimedia resources of the video through the video preview method provided by the embodiments of the present disclosure, and previews and displays the multiple multimedia resources in the video preview interface. In other embodiments, the terminal 10 generates multiple multimedia resources of the video by means of the server 20, the server 20 returns the multiple multimedia resources to the terminal 10, and the terminal 10 previews and displays the multiple multimedia resources on the video preview interface.
本公开实施例提供的视频预览方法,主要应用于播放时长大于5分钟的视频,也即长视频;该视频预览方法能够应用在以下两种场景中:The video preview method provided by the embodiments of the present disclosure is mainly applied to videos with a playing time longer than 5 minutes, that is, long videos; the video preview method can be applied in the following two scenarios:
第一:应用在用户生成内容(User Generated Content,UGC)类型的目标应用程序中。First: Applied in the target application of User Generated Content (UGC) type.
其中,该目标应用程序中的视频预览界面的视频为用户自行上传的视频。在用户通过终端10分享视频的情况下,终端10通过本公开实施例提供的方法,预览展示该视频的多个多媒体资源,使得其他用户在播放该视频之前,基于多个多媒体资源预先了解该视频的视频内容。Wherein, the video on the video preview interface in the target application is a video uploaded by the user. When a user shares a video through the terminal 10, the terminal 10 previews multiple multimedia resources displaying the video through the method provided by the embodiment of the present disclosure, so that other users can know the video in advance based on multiple multimedia resources before playing the video. of video content.
第二:应用在职业生成内容(Occupationally Generated Content,OGC)类型的目标应用程序中。Second: Applied in Occupationally Generated Content (Occupationally Generated Content, OGC) type target applications.
其中,该目标应用程序中的视频为影视作品,即具有一定专业知识的技术人员制作的视频。以终端10从服务器20中获取视频为例,终端10通过本公开实施例提供的方法,预览展示该视频的多个多媒体资源,使得用户在播放该视频之前,基于多个多媒体资源预先了解该视频的视频内容。Wherein, the video in the target application program is a film and television work, that is, a video produced by a technician with certain professional knowledge. Taking the terminal 10 acquiring a video from the server 20 as an example, the terminal 10 previews multiple multimedia resources displaying the video through the method provided by the embodiment of the present disclosure, so that the user can know the video in advance based on multiple multimedia resources before playing the video. of video content.
需要说明的一点是,以上两种应用场景是示例性说明,并不对视频预览的场景造成限制,本公开除了应用在以上两种场景外,还能够应用在其他任一视频预览的场景中。It should be noted that the above two application scenarios are illustrative and do not limit the video preview scenarios. The present disclosure can be applied to any other video preview scenarios besides the above two scenarios.
图2是根据一示例性实施例示出的一种视频预览方法的流程图,如图2所示,该视频预览方法由终端执行,包括以下步骤。Fig. 2 is a flowchart of a video preview method according to an exemplary embodiment. As shown in Fig. 2, the video preview method is executed by a terminal, and includes the following steps.
步骤S21:终端展示视频预览界面,该视频预览界面包括可预览的视频。Step S21: The terminal displays a video preview interface, where the video preview interface includes previewable videos.
步骤S22:终端从该视频中提取多个视频帧,将多个视频帧生成多个多媒体资源。Step S22: the terminal extracts multiple video frames from the video, and generates multiple multimedia resources from the multiple video frames.
步骤S23:终端基于多个多媒体资源的展示顺序,在该视频预览界面中,同时预览展示多个多媒体资源。Step S23: Based on the presentation order of the multiple multimedia resources, the terminal simultaneously previews and displays the multiple multimedia resources on the video preview interface.
在一些实施例中,从该视频中提取多个视频帧,包括:In some embodiments, a plurality of video frames are extracted from the video, including:
将该视频转换为视频帧序列;Convert the video to a sequence of video frames;
获取当前登录账户的标签信息;Obtain the tag information of the currently logged in account;
基于该标签信息,从该视频帧序列中提取与该标签信息匹配的多个视频帧。Based on the tag information, multiple video frames matching the tag information are extracted from the sequence of video frames.
在一些实施例中,基于该标签信息,从该视频帧序列中提取与该标签信息匹配的多个视频帧,包括:In some embodiments, based on the tag information, extracting a plurality of video frames matching the tag information from the sequence of video frames includes:
确定该视频帧序列中的每个视频帧的视频标签;determining a video tag for each video frame in the sequence of video frames;
确定每个视频帧的视频标签与该标签信息之间的匹配度;Determine the degree of matching between the video tag of each video frame and the tag information;
基于每个视频帧与该标签信息之间的匹配度,从该视频帧序列中提取匹配度最高的第一数量的视频帧。Based on the degree of matching between each video frame and the label information, a first number of video frames with the highest matching degree are extracted from the sequence of video frames.
在一些实施例中,确定该视频帧序列中的每个视频帧的视频标签,包括:In some embodiments, determining a video tag for each video frame in the sequence of video frames comprises:
对每个视频帧图像识别,确定该视频帧的风格信息;For each video frame image recognition, determine the style information of the video frame;
基于该视频帧的风格信息,确定该视频帧的视频标签。Based on the style information of the video frame, the video tag of the video frame is determined.
在一些实施例中,从该视频中提取多个视频帧,包括:In some embodiments, a plurality of video frames are extracted from the video, including:
将该视频转换为视频帧序列;Convert the video to a sequence of video frames;
在该视频帧序列中,每间隔第二数量的视频帧提取一个目标视频帧,得到多个视频帧。In the sequence of video frames, a target video frame is extracted every interval of the second number of video frames to obtain a plurality of video frames.
在一些实施例中,将该视频转换为视频帧序列,包括:In some embodiments, converting the video to a sequence of video frames comprises:
基于采样时长,将该视频划分成多个视频段;Based on the sampling duration, the video is divided into multiple video segments;
从每个视频段中提取第三数量的视频帧;extracting a third number of video frames from each video segment;
将从每个视频段中提取的视频帧组成该视频帧序列。The video frame sequence is composed of video frames extracted from each video segment.
在一些实施例中,基于多个多媒体资源的展示顺序,在该视频预览界面中,同时预览展示多个多媒体资源,包括:In some embodiments, based on the display sequence of multiple multimedia resources, in the video preview interface, multiple multimedia resources are simultaneously previewed and displayed, including:
基于多个多媒体资源的展示顺序,在该视频预览界面中的第一预览框架内,同时预览展示多个多媒体资源;Based on the display sequence of multiple multimedia resources, simultaneously preview and display multiple multimedia resources in the first preview frame in the video preview interface;
其中,多个多媒体资源的数量为M×N,该第一预览框架包括M×N个预览框,每个预览框用于展示一个多媒体资源,M和N均为大于1的整数。Wherein, the number of multiple multimedia resources is M×N, the first preview frame includes M×N preview frames, each preview frame is used to display a multimedia resource, and both M and N are integers greater than 1.
在一些实施例中,该方法还包括:In some embodiments, the method also includes:
确定每个多媒体资源与当前登录账户的标签信息之间的匹配度;Determine the matching degree between each multimedia resource and the label information of the current login account;
基于该匹配度,设置用于展示该多媒体资源的预览框的尺寸。Based on the matching degree, the size of the preview frame for displaying the multimedia resource is set.
在一些实施例中,该方法还包括:In some embodiments, the method also includes:
确定该视频的视频类型匹配的第一预览框架,不同视频类型对应于不同结构的第一预览框架;或者,Determine the first preview frame that matches the video type of the video, and different video types correspond to first preview frames of different structures; or,
确定该终端的终端类型匹配的第一预览框架,不同终端类型对应于不同结构的第一预览框架;或者,Determine the first preview frame matching the terminal type of the terminal, where different terminal types correspond to first preview frames of different structures; or,
确定该视频预览界面的显示比例匹配的第一预览框架,该显示比例为该视频预览界面占显示屏幕的比例,不同显示比例对应于不同结构的第一预览框架。Determine the first preview frame that matches the display ratio of the video preview interface, where the display ratio is the ratio of the video preview interface to the display screen, and different display ratios correspond to first preview frames of different structures.
在一些实施例中,该视频预览界面包括可预览的多个目标视频,多个目标视频包括该视频;基于多个多媒体资源的展示顺序,在该视频预览界面中,同时预览展示多个多媒体资源,包括:In some embodiments, the video preview interface includes multiple target videos that can be previewed, and the multiple target videos include the video; based on the display sequence of multiple multimedia resources, in the video preview interface, multiple multimedia resources are simultaneously previewed and displayed ,include:
确定多个目标视频在该视频预览界面中的布局信息;Determine the layout information of multiple target videos in the video preview interface;
确定该布局信息匹配的第二预览框架;determining a second preview frame that the layout information matches;
在该第二预览框架中同时预览展示多个目标视频的多媒体资源;simultaneously previewing multimedia resources displaying multiple target videos in the second preview frame;
其中,该第二预览框架包括多个第一预览框架,每个第一预览框架用于预览展示一个目标视频的多媒体资源。Wherein, the second preview frame includes a plurality of first preview frames, and each first preview frame is used to preview a multimedia resource showing a target video.
在一些实施例中,基于多个多媒体资源的展示顺序,在该视频预览界面中,同时预览展示多个多媒体资源,包括:In some embodiments, based on the display sequence of multiple multimedia resources, in the video preview interface, multiple multimedia resources are simultaneously previewed and displayed, including:
基于多个多媒体资源的展示顺序,在该视频预览界面中确定每个多媒体资源的展示位置,在每个多媒体资源的展示位置上,同时播放多个多媒体资源;或者,Based on the display sequence of multiple multimedia resources, determine the display position of each multimedia resource in the video preview interface, and play multiple multimedia resources at the same time at the display position of each multimedia resource; or,
基于多个多媒体资源的展示顺序,在该视频预览界面中轮流播放多个多媒体资源,展示未播放的多媒体资源的缩略图。Based on the display order of multiple multimedia resources, multiple multimedia resources are played in turn in the video preview interface, and thumbnails of unplayed multimedia resources are displayed.
在一些实施例中,该视频预览界面中展示有该视频的封面,该封面用于触发视频预览请求;该方法还包括:In some embodiments, the cover of the video is displayed in the video preview interface, and the cover is used to trigger a video preview request; the method also includes:
接收该视频预览请求;Receive the video preview request;
基于该视频预览请求,执行从该视频中提取多个视频帧,将多个视频帧生成多个多媒体资源的步骤。Based on the video preview request, a step of extracting multiple video frames from the video and generating multiple multimedia resources from the multiple video frames is performed.
在一些实施例中,接收该视频预览请求,包括:In some embodiments, receiving the video preview request includes:
响应于在该封面上检测到鼠标的悬停操作,接收基于该悬停操作的视频预览请求;或者,In response to detecting a mouse-over operation over the cover, receiving a video preview request based on the hover operation; or,
该视频预览界面包括预览入口,响应于基于该预览入口的触发操作,接收基于该触发操作的视频预览请求。The video preview interface includes a preview entry, and in response to a trigger operation based on the preview entry, a video preview request based on the trigger operation is received.
在一些实施例中,该方法还包括以下至少一种实现方式:In some embodiments, the method also includes at least one of the following implementations:
基于每个多媒体资源对应的视频帧在该视频中的位置,确定多个多媒体资源的展示顺序;或者,Based on the position of the video frame corresponding to each multimedia resource in the video, determine the display sequence of the multiple multimedia resources; or,
基于多个多媒体资源之间的相似度,确定多个多媒体资源的展示顺序,其中,相似度小于相似度阈值的多个多媒体资源在该视频预览界面中的展示位置不相邻。Based on the similarities among the multiple multimedia resources, the display order of the multiple multimedia resources is determined, wherein the display positions of the multiple multimedia resources whose similarity is smaller than the similarity threshold are not adjacent to each other in the video preview interface.
图3是根据一示例性实施例示出的一种视频预览方法的流程图,如图3所示,该视频预览方法由终端执行,本公开实施例以终端直接在视频预览界面中,预览展示视频的多个多媒体资源为例说明,该方法包括以下步骤。Fig. 3 is a flow chart of a video preview method according to an exemplary embodiment. As shown in Fig. 3, the video preview method is executed by a terminal. In the embodiment of the present disclosure, the terminal directly previews and displays the video in the video preview interface. Using multiple multimedia resources as an example, the method includes the following steps.
步骤301:终端展示视频预览界面,该视频预览界面包括可预览的视频。Step 301: The terminal displays a video preview interface, where the video preview interface includes previewable videos.
步骤302:终端将该视频转换为视频帧序列。Step 302: the terminal converts the video into a sequence of video frames.
步骤303:终端从该视频帧序列中提取多个视频帧。Step 303: the terminal extracts multiple video frames from the video frame sequence.
步骤304:终端将多个视频帧生成多个多媒体资源。Step 304: The terminal generates multiple multimedia resources from multiple video frames.
步骤305:终端基于多个多媒体资源的展示顺序,在该视频预览界面中,同时预览展示多个多媒体资源。Step 305: Based on the display sequence of the multiple multimedia resources, the terminal simultaneously previews and displays the multiple multimedia resources in the video preview interface.
其中,终端中安装有目标应用程序。在一些实施例中,用户触发终端运行该目标应用程序;终端响应于该目标应用程序被触发,展示该目标应用程序的视频预览界面;用户通过该视频预览界面预览视频。Wherein, a target application program is installed in the terminal. In some embodiments, the user triggers the terminal to run the target application; the terminal displays a video preview interface of the target application in response to the target application being triggered; the user previews the video through the video preview interface.
该视频预览界面还包括可预览的视频的视频获取入口,任一视频的视频获取入口用于触发播放该视频,也即该视频获取入口还被称为视频播放入口。该视频获取入口包括该视频的播放按钮。在一些实施例中,终端在该视频的封面上设置该视频获取入口。用户触发该视频获取入口,终端响应于该视频获取入口被触发,从视频预览界面跳转至视频播放界面,在该视频播放界面播放该视频。The video preview interface also includes a video acquisition entry of previewable videos, and the video acquisition entry of any video is used to trigger playing the video, that is, the video acquisition entry is also called a video playback entry. The video acquisition entry includes a play button of the video. In some embodiments, the terminal sets the video acquisition entry on the cover of the video. The user triggers the video acquisition entry, and the terminal jumps from the video preview interface to the video playback interface in response to the video acquisition entry being triggered, and plays the video on the video playback interface.
其中,该目标应用程序为视频播放应用程序或者浏览器。终端展示该目标应用程序的视频预览界面的实现方式包括以下两种情况:Wherein, the target application program is a video playing application program or a browser. The implementation of the terminal displaying the video preview interface of the target application includes the following two situations:
第一种情况,在该目标应用程序为视频播放应用程序的情况下,终端展示该视频播放应用程序的主界面,该主界面为视频预览界面。In the first case, when the target application program is a video playback application program, the terminal displays a main interface of the video playback application program, and the main interface is a video preview interface.
第二种情况,在该目标应用程序为浏览器的情况下,终端展示该浏览器的主界面,基于用户在该主界面输入的统一资源定位符(Uniform Resource Locator,URL),终端展示该URL对应的视频网站的视频预览界面。In the second case, when the target application program is a browser, the terminal displays the main interface of the browser, and based on the Uniform Resource Locator (Uniform Resource Locator, URL) input by the user on the main interface, the terminal displays the URL The video preview interface of the corresponding video website.
在本公开实施例中,终端在预览展示该视频之前,提取该视频的多个视频帧。在一些实施例中,终端将该视频转换成视频帧序列,从该视频帧序列中提取多个视频帧,即执行步骤302-步骤303的操作。In the embodiment of the present disclosure, the terminal extracts multiple video frames of the video before previewing and displaying the video. In some embodiments, the terminal converts the video into a sequence of video frames, and extracts a plurality of video frames from the sequence of video frames, that is, performs the operations of steps 302-303.
在一些实施例中,终端基于采样时长从该视频中采样,得到该视频帧序列,则步骤302的实现方式包括以下过程:终端基于采样时长,将该视频划分成多个视频段;从每个视频段中提取第三数量的视频帧;将从每个视频段中提取的视频帧组成该视频帧序列。In some embodiments, the terminal samples the video based on the sampling duration to obtain the video frame sequence, then the implementation of step 302 includes the following process: the terminal divides the video into multiple video segments based on the sampling duration; Extracting a third number of video frames from the video segment; and composing the video frame sequence from the video frames extracted from each video segment.
其中,每个视频段的播放时长为采样时长。其中,采样时长能够根据需求进行设置和更改,本公开对此不做具体限定;例如,采样时长为0.5秒、1秒或者2秒等。在一些实施例中,第三数量与采样时长的比值不大于视频的帧率。例如,视频的帧率为30帧/秒,采样时长为1秒,则第三数量不大于30帧。例如,视频的播放时长为10分钟,采样时长为1秒,第三数量为24帧,终端将该视频划分成10×60×60=36000个视频段,从每个视频段中提取24帧视频帧,得到的视频帧序列中视频帧的数量为36000×24=864000帧。Wherein, the playback duration of each video segment is the sampling duration. Wherein, the sampling duration can be set and changed according to requirements, which is not specifically limited in the present disclosure; for example, the sampling duration is 0.5 seconds, 1 second, or 2 seconds. In some embodiments, the ratio of the third quantity to the sampling duration is not greater than the frame rate of the video. For example, if the frame rate of the video is 30 frames per second and the sampling duration is 1 second, then the third number is not greater than 30 frames. For example, the playback time of the video is 10 minutes, the sampling time is 1 second, and the third number is 24 frames, the terminal divides the video into 10×60×60=36000 video segments, and extracts 24 frames of video from each video segment frames, the number of video frames in the obtained video frame sequence is 36000×24=864000 frames.
在本公开实施例中,通过从视频中提取多帧视频帧,得到视频帧序列,为后续生成多媒体资源提供了数据支持。In the embodiment of the present disclosure, a video frame sequence is obtained by extracting multiple video frames from a video, which provides data support for subsequent generation of multimedia resources.
其中,视频帧序列中的视频帧数量较多,在预览展示视频的情况下,终端不用展示视频帧序列中的全部视频帧,因此,终端从视频帧序列中提取部分视频帧。在一些实施例中,终端直接从视频帧序列中提取多个视频帧,也即以下第一种情况;或者终端基于当前登录账户的标签信息,从视频帧序列中提取多个视频帧,即实现对当前登录账户的个性化推荐,也即以下第二种情况。Wherein, the number of video frames in the video frame sequence is large, and in the case of previewing and displaying the video, the terminal does not need to display all the video frames in the video frame sequence, so the terminal extracts some video frames from the video frame sequence. In some embodiments, the terminal directly extracts multiple video frames from the sequence of video frames, that is, the first case below; or the terminal extracts multiple video frames from the sequence of video frames based on the tag information of the currently logged-in account, that is, realizes Personalized recommendations for the currently logged in account, which is the second case below.
第一种情况:终端在视频帧序列中,每间隔第二数量的视频帧提取一个目标视频帧,得到多个视频帧。其中,该第二数量能够根据需求进行设置和更改,本公开对此不做具体 限定;以视频帧序列中的视频帧的数量为864000帧为例,第二数量为24帧,终端在视频帧序列中,每间隔24帧提取1帧目标视频帧,得到36000帧视频帧。在本公开实施例中,通过将视频转换成视频帧序列,按照设置好的提取频率,即每间隔第二数量,从该视频帧序列中提取一帧目标视频帧,得到多个视频帧,实现了对视频中需要预览展示的内容的提取,从而节省了展示资源。The first case: the terminal extracts a target video frame every interval of the second number of video frames in the sequence of video frames to obtain multiple video frames. Wherein, the second number can be set and changed according to requirements, and this disclosure does not specifically limit it; taking the number of video frames in the video frame sequence as 864,000 frames as an example, the second number is 24 frames, and the terminal in the video frame In the sequence, a target video frame is extracted every 24 frames, and 36000 video frames are obtained. In the embodiment of the present disclosure, by converting the video into a video frame sequence, according to the set extraction frequency, that is, every interval of the second number, extracting a target video frame from the video frame sequence to obtain a plurality of video frames, realizing It extracts the content that needs to be previewed and displayed in the video, thereby saving display resources.
第二种情况:终端基于当前登录账户的标签信息,从该视频帧序列中提取多个视频帧的实现方式包括以下过程:终端获取当前登录账户的标签信息;基于该标签信息,从该视频帧序列中提取与该标签信息匹配的多个视频帧。Case 2: The terminal extracts multiple video frames from the sequence of video frames based on the tag information of the currently logged-in account, including the following process: the terminal obtains the tag information of the currently logged-in account; Multiple video frames matching the tag information are extracted from the sequence.
其中,标签信息包括至少一个标签以及每个标签对应的分值。该标签指示视频的风格,例如,二次元、风景或者搞笑等。标签对应的分值能够表示账户对该标签所指示的风格的偏好程度,在一些实施例中,分值与偏好程度正相关。例如,分值越高,账户对该风格的视频越喜欢,也即偏好程度越深。Wherein, the tag information includes at least one tag and a score corresponding to each tag. This tag indicates the style of the video, for example, two-dimensional, landscape, or funny. The score corresponding to the tag can represent the account's preference for the style indicated by the tag. In some embodiments, the score is positively correlated with the preference. For example, the higher the score, the more the account likes the style of video, that is, the deeper the preference.
在一些实施例中,终端基于已存储的标签信息,确定当前登录账户的标签信息,也即以下第一种实现方式;或者,终端基于当前登录账户的历史观看视频的标签,获取当前登录账户的标签信息,也即以下第二种实现方式。其中,历史观看视频为当前登录账户在历史的视频观看过程中观看过的视频。In some embodiments, the terminal determines the tag information of the currently logged-in account based on the stored tag information, which is the following first implementation mode; Label information, that is, the second implementation method below. Wherein, the historically watched videos refer to the videos watched by the current login account during the historical video watching process.
第一种实现方式:终端本地已存储当前登录账户的标签信息,则终端直接获取该标签信息。或者,服务器已存储当前登录账户的标签信息,则终端借助于服务器获取该标签信息。在一些实施例中,终端向服务器发送标签获取请求,该标签获取请求包括当前登录账户的账户标识;服务器接收标签获取请求;基于标签获取请求,获取当前登录账户的标签信息,向终端发送标签信息;终端接收标签信息。The first implementation manner: the terminal has locally stored the tag information of the currently logged-in account, and the terminal directly obtains the tag information. Alternatively, the server has stored the tag information of the currently logged-in account, and the terminal acquires the tag information by means of the server. In some embodiments, the terminal sends a tag acquisition request to the server, and the tag acquisition request includes the account identifier of the currently logged-in account; the server receives the tag acquisition request; based on the tag acquisition request, obtains the tag information of the currently logged-in account, and sends the tag information to the terminal ; The terminal receives the tag information.
其中,服务器已存储多个账户的账户标识与标签信息之间的对应关系。在一些实施例中,服务器基于标签获取请求,获取当前登录账户的标签信息的实现方式包括:服务器基于标签获取请求包括的账户标识,从账户标识与标签信息之间的对应关系中,获取账户标识对应的标签信息。Wherein, the server has stored correspondences between account identifiers and label information of multiple accounts. In some embodiments, the server acquires the tag information of the currently logged-in account based on the tag acquisition request, including: the server acquires the account ID from the correspondence between the account ID and the tag information based on the account ID included in the tag acquisition request corresponding label information.
第二种实现方式:终端基于当前登录账户的历史观看视频的标签,确定当前登录账户的标签信息。在一些实施例中,终端向服务器发送该当前登录账户的账户标识;服务器接收该账户标识,基于该账户标识,从账户标识与历史观看视频的标签的对应关系中,确定该账户标识对应的至少一个历史观看视频的标签,向终端发送至少一个标签;终端接收至少一个标签;终端确定每个标签对应的视频的数量与至少一个历史观看视频的数量的比值,以及该比值所在的第一数量范围,基于该第一数量范围确定标签对应的分值;将标签与标签对应的分值组成标签信息。The second implementation manner: the terminal determines the tag information of the currently logged-in account based on the tags of the historically watched videos of the currently logged-in account. In some embodiments, the terminal sends the account ID of the currently logged-in account to the server; the server receives the account ID, and based on the account ID, determines at least A tag of historically watched videos, sending at least one tag to the terminal; the terminal receives at least one tag; the terminal determines the ratio of the number of videos corresponding to each tag to the number of at least one historically watched video, and the first number range in which the ratio is located , determining the score corresponding to the label based on the first quantity range; and composing the label and the score corresponding to the label into label information.
在另一些实施例中,终端向服务器发送标签获取请求,该标签获取请求包括当前登录账户的账户标识;服务器接收该标签获取请求,基于该标签获取请求包括的账户标识,从账户标识与历史观看视频的标签的对应关系中,确定该账户标识对应的至少一个历史观看视频的标签,确定每个标签对应的视频的数量与至少一个历史观看的视频的数量的比值,以及该比值所在的第一数量范围,基于该第一数量范围确定标签对应的分值;将标签与标签对应的分值组成标签信息;向终端发送该标签信息;终端接收该标签信息。In some other embodiments, the terminal sends a tag acquisition request to the server, and the tag acquisition request includes the account identifier of the currently logged-in account; the server receives the tag acquisition request, and based on the account identifier included in the tag acquisition request, views from the account identifier and history In the corresponding relationship of video tags, determine the tag of at least one historically watched video corresponding to the account identifier, determine the ratio of the number of videos corresponding to each tag to the number of at least one historically watched video, and the first location where the ratio is located. Quantity range: Determine the score corresponding to the label based on the first quantity range; combine the label and the score corresponding to the label into label information; send the label information to the terminal; and the terminal receives the label information.
其中,服务器已存储多个账户的账户标识与历史观看视频的标签之间的对应关系,以及第一数量范围与分值之间的对应关系。在一些实施例中,服务器基于第一数量范围确定标签对应的分值的实现方式包括:服务器基于第一数量范围,从第一数量范围与分值之间的对应关系中,确定第一数量范围对应的分值。例如,标签为二次元,比值为0.52,该比值所属的第一数量范围为0.5-0.6,则第一数量范围对应的分值为6,则标签对应的分值为6。Wherein, the server has stored the corresponding relationship between the account identifiers of multiple accounts and the tags of historically watched videos, and the corresponding relationship between the first number range and the score. In some embodiments, the server determines the score corresponding to the label based on the first number range, including: the server determines the first number range from the correspondence between the first number range and the score based on the first number range corresponding score. For example, if the label is a two-dimensional element, the ratio is 0.52, and the first quantity range to which the ratio belongs is 0.5-0.6, then the score corresponding to the first quantity range is 6, and the score corresponding to the label is 6.
需要说明的一点是,在当前登录账户为新注册账户的情况下,该当前登录账户不存在 历史观看视频,则终端将目标标签与目标标签对应的分值组成该当前登录账户的标签信息;例如,目标标签为风景,目标标签对应的分值为5。或者,在当前登录账户为新注册账户的情况下,终端获取注册信息,确定注册信息对应的标签信息。其中,注册信息包括年龄、性别或者其他在账户注册过程中用户输入的信息。在一些实施例中,终端确定注册信息和标签信息之间的对应关系并存储。注册信息和标签信息之间的对应关系能够根据需求进行设置和更改,本公开对此不做具体限定;例如,年龄为20,该年龄对应的标签信息围包括标签“搞笑”和分值“5”。It should be noted that if the current login account is a newly registered account, and the current login account does not have a history of viewing videos, the terminal will form the tag information of the current login account with the target tag and the score corresponding to the target tag; for example , the target label is landscape, and the score corresponding to the target label is 5. Or, in the case that the current login account is a newly registered account, the terminal obtains the registration information, and determines tag information corresponding to the registration information. Wherein, the registration information includes age, gender or other information input by the user during the account registration process. In some embodiments, the terminal determines and stores the corresponding relationship between the registration information and the tag information. The corresponding relationship between registration information and label information can be set and changed according to requirements, and this disclosure does not specifically limit it; for example, if the age is 20, the label information corresponding to this age includes the label "funny" and the score "5". ".
在本公开实施例中,通过基于用户的标签信息筛选视频的视频帧,得到符合用户的标签信息的视频帧,使得终端在预览展示视频的过程中,能够针对不同的用户展示不同的预览信息,进而实现对用户的个性化推荐,进而改善了视频的预览效果。In the embodiment of the present disclosure, by screening the video frames of the video based on the user's tag information, the video frames conforming to the user's tag information are obtained, so that the terminal can display different preview information for different users during the process of previewing and displaying the video. In this way, the personalized recommendation to the user is realized, and the preview effect of the video is improved.
在一些实施例中,终端基于标签信息,从视频帧序列中提取与标签信息匹配的多个视频帧的实现方式包括以下过程:终端确定视频帧序列中的每个视频帧的视频标签;确定每个视频帧的视频标签与标签信息之间的匹配度;基于每个视频帧与标签信息之间的匹配度,从视频帧序列中提取匹配度最高的第一数量的视频帧。In some embodiments, based on the tag information, the terminal extracts a plurality of video frames that match the tag information from the video frame sequence, including the following process: the terminal determines the video tag of each video frame in the video frame sequence; The matching degree between the video label of each video frame and the label information; Based on the matching degree between each video frame and the label information, extract the first number of video frames with the highest matching degree from the video frame sequence.
在一些实施例中,终端确定视频帧序列中的每个视频帧的视频标签的实现方式包括:终端对每个视频帧图像识别,确定该视频帧的风格信息;基于该视频帧的风格信息,确定该视频帧的视频标签。其中,风格信息包括至少一个风格标识和该风格标识对应的分值;每个风格标识指示一种视频风格。例如,风格标识为二次元、风景、搞笑或者其他类型的风格标识等。风格标识对应的分值能够表示视频帧与该风格标识所指示的视频风格的相关程度;分值与相关程度正相关。例如,分值越高,视频帧与该视频风格越相关,也即相关程度越深。In some embodiments, the method for the terminal to determine the video tag of each video frame in the video frame sequence includes: the terminal recognizes the image of each video frame, and determines the style information of the video frame; based on the style information of the video frame, Determines the video tag for this video frame. Wherein, the style information includes at least one style identifier and a score corresponding to the style identifier; each style identifier indicates a video style. For example, the style identification is two-dimensional, landscape, funny, or other types of style identifications. The score corresponding to the style identifier can represent the degree of correlation between the video frame and the video style indicated by the style identifier; the score is positively correlated with the degree of correlation. For example, the higher the score, the more relevant the video frame is to the video style, that is, the deeper the degree of correlation.
其中,视频标签包括至少一个标签和该标签对应的分值。在一些实施例中,终端基于视频帧的风格信息,确定该视频帧的视频标签的实现方式包括:终端确定分值高于风格阈值的风格标识,将风格标识与该风格标识对应的分值组成视频帧的视频标签。Wherein, the video tag includes at least one tag and a score corresponding to the tag. In some embodiments, the terminal determines the video tag of the video frame based on the style information of the video frame, including: the terminal determines a style identifier with a score higher than a style threshold, and combines the style identifier with the score corresponding to the style identifier. Video tags for video frames.
其中,本公开实施例对风格阈值的取值不作具体限定;例如,以视频标签的分值的取值范围为0至10为例,风格阈值为6。需要说明的一点是,在风格信息中的风格标识的数量为一个的情况下,终端将风格标识以及该风格标识对应的分值作为视频帧的视频标签。Wherein, the embodiment of the present disclosure does not specifically limit the value of the style threshold; It should be noted that when the number of style identifiers in the style information is one, the terminal uses the style identifier and the score corresponding to the style identifier as the video tag of the video frame.
在一些实施例中,终端确定视频帧的视频标签与标签信息之间的匹配度的实现方式包括:终端从标签信息中获取与视频帧的视频标签相同的标签;基于该标签的分值与该视频标签的分值之间的差值,确定该差值所属的第二数量范围;基于该第二数量范围确定匹配度。In some embodiments, the method for the terminal to determine the matching degree between the video tag of the video frame and the tag information includes: the terminal acquires the same tag as the video tag of the video frame from the tag information; based on the score of the tag and the The difference between the scores of the video tags determines the second quantitative range to which the difference belongs; and determines the matching degree based on the second quantitative range.
其中,终端已存储第二数量范围与匹配度之间的对应关系;在一些实施例中,终端基于第二数量范围确定匹配度的实现方式包括:终端基于第二数量范围,从第二数量范围与匹配度之间的对应关系中,确定该第二数量范围对应的匹配度。Wherein, the terminal has stored the correspondence between the second number range and the matching degree; in some embodiments, the implementation of the terminal determining the matching degree based on the second number range includes: the terminal based on the second number range, from the second number range In the corresponding relationship with the matching degree, the matching degree corresponding to the second quantity range is determined.
其中,第一数量能够根据需求进行设置和更改,本公开对此不做具体限定;例如,用户的标签信息为User_Prefer_Tag,每个视频帧的视频标签为Img_Tag_n(n=1,2,…),每个视频帧对应的匹配度为|Img_Tag_n-User_Prefer_Tag|,该第一数量为36000,则终端基于该匹配度,对该视频帧序列中的视频帧排序,得到排序在第36001位之前的36000帧视频帧。Wherein, the first number can be set and changed according to requirements, and the present disclosure does not specifically limit this; for example, the tag information of the user is User_Prefer_Tag, and the video tag of each video frame is Img_Tag_n (n=1, 2, ...), The matching degree corresponding to each video frame is |Img_Tag_n-User_Prefer_Tag|, the first number is 36000, then the terminal sorts the video frames in the video frame sequence based on the matching degree, and obtains the 36000 frames before the 36001st place video frame.
在本公开实施例中,通过基于视频帧的视频标签与该标签信息之间的匹配度,确定符合用户的标签信息的视频帧,使得终端在预览展示视频的过程中,能够针对不同的用户展示不同的预览信息,进而实现对用户的个性化推荐,进而改善了视频的预览效果。In the embodiment of the present disclosure, based on the matching degree between the video tag of the video frame and the tag information, the video frame conforming to the tag information of the user is determined, so that the terminal can display the video for different users during the preview display process. Different preview information is used to realize personalized recommendations for users, thereby improving the preview effect of videos.
需要说明的一点是,终端能够按照以上任一实现方式执行步骤303;或者,终端还能够基于不同的视频预览界面,采用不同的实现方式执行步骤303;在一些实施例中,在视频预览界面中不存在正在播放的视频的情况下,终端基于当前登录账户的标签信息,从视 频帧序列中提取多个视频帧;在该视频预览界面中存在正在播放的视频的情况下,终端直接从该视频帧序列中提取多个视频帧。It should be noted that the terminal can execute step 303 according to any of the above implementation methods; or, the terminal can also execute step 303 in different implementation methods based on different video preview interfaces; in some embodiments, in the video preview interface If there is no currently playing video, the terminal extracts multiple video frames from the sequence of video frames based on the tag information of the currently logged in account; Extract multiple video frames in a sequence of frames.
在一些实施例中,终端中事先部署第一视频匹配模型,终端基于标签信息和视频帧序列,借助于该第一视频匹配模型提取视频帧。则终端基于该标签信息,从该视频帧序列中提取与该标签信息匹配的多个视频帧的实现方式包括:终端将标签信息和该视频帧序列输入第一视频匹配模型,通过第一视频匹配模型输出多个视频帧,第一视频匹配模型用于从视频帧序列中提取与标签信息匹配的多个视频帧。In some embodiments, a first video matching model is pre-deployed in the terminal, and the terminal extracts video frames by means of the first video matching model based on tag information and a sequence of video frames. Then, based on the tag information, the terminal extracts a plurality of video frames that match the tag information from the video frame sequence, including: the terminal inputs the tag information and the video frame sequence into the first video matching model, and through the first video matching The model outputs a plurality of video frames, and the first video matching model is used to extract a plurality of video frames matching the label information from a sequence of video frames.
其中,第一视频匹配模型为终端训练好的,或者为服务器训练好后再部署到终端中的;本公开实施例对第一视频匹配模型的来源不作具体限定。在本公开实施例中,由于第一视频匹配模型是基于大量样本数据训练得到的,因此,第一视频匹配模型的匹配准确性较高;通过第一视频匹配模型来提取视频帧,能够提高匹配的准确性。需要说明的一点是,第一视频匹配模型的作用是提取视频帧,因此,在基于该标签信息,从该视频帧序列中提取与该标签信息匹配的多个视频帧之前,终端将视频转换为视频帧序列。Wherein, the first video matching model is trained by the terminal, or is deployed to the terminal after being trained by the server; the embodiment of the present disclosure does not specifically limit the source of the first video matching model. In the embodiment of the present disclosure, since the first video matching model is trained based on a large amount of sample data, the matching accuracy of the first video matching model is relatively high; the video frame is extracted through the first video matching model, which can improve the matching accuracy. accuracy. It should be noted that the function of the first video matching model is to extract video frames. Therefore, before extracting multiple video frames matching the tag information from the video frame sequence based on the tag information, the terminal converts the video to sequence of video frames.
在另一些实施例中,终端中事先部署第二视频匹配模型,第二视频匹配模型用于基于视频标签,从视频中提取多个视频帧,也即第二视频匹配模型的作用不仅是提取视频帧,还能够将视频转换为视频帧序列,则步骤302和步骤303能够替换为:终端将标签信息和视频输入第二视频匹配模型,通过第二视频匹配模型输出多个视频帧。In some other embodiments, the second video matching model is pre-deployed in the terminal, and the second video matching model is used to extract multiple video frames from the video based on the video tag, that is, the function of the second video matching model is not only to extract video frame, and the video can also be converted into a video frame sequence, then step 302 and step 303 can be replaced by: the terminal inputs tag information and video into the second video matching model, and outputs multiple video frames through the second video matching model.
其中,通过第二视频匹配模型从视频中提取多个视频帧,不需要单独将视频转换成视频帧序列,从而能够提高处理效率。Wherein, by using the second video matching model to extract a plurality of video frames from the video, there is no need to separately convert the video into a sequence of video frames, thereby improving processing efficiency.
在一些实施例中,对于不同的终端类型,终端直接将多个视频帧生成相同数量的多媒体资源。其中,终端将多个视频帧生成第四数量的多媒体资源;本公开对第四数量的设置不作具体限定。在另一些实施例中,对于不同的终端类型,终端将多个视频帧生成不同数量的多媒体资源;则步骤304的实现方式包括以下过程:终端确定终端的终端类型;基于终端类型,获取终端类型匹配的多媒体资源的数量;将多个视频帧生成该数量的多媒体资源。In some embodiments, for different terminal types, the terminal directly generates the same number of multimedia resources from multiple video frames. Wherein, the terminal generates a fourth number of multimedia resources from multiple video frames; the present disclosure does not specifically limit the setting of the fourth number. In some other embodiments, for different terminal types, the terminal generates multiple video frames with different numbers of multimedia resources; then the implementation of step 304 includes the following process: the terminal determines the terminal type of the terminal; based on the terminal type, the terminal type is acquired The number of matching multimedia resources; multiple video frames are generated to generate this number of multimedia resources.
其中,每种终端类型对应的终端的显示界面的尺寸不同,而不同的显示界面能够显示不同数量的多媒体资源。因此,终端能够基于当前终端的终端类型,确定多媒体资源的数量。例如,当前终端的终端类型为个人计算机(Personal Computer,PC)设备或者手机等。Wherein, the sizes of display interfaces of terminals corresponding to each terminal type are different, and different display interfaces can display different amounts of multimedia resources. Therefore, the terminal can determine the quantity of multimedia resources based on the terminal type of the current terminal. For example, the terminal type of the current terminal is a personal computer (Personal Computer, PC) device or a mobile phone.
其中,终端存储有终端类型与多媒体资源的数量之间的对应关系;在一些实施例中,终端基于终端类型,获取终端类型匹配的多媒体资源的数量的实现方式包括:终端基基于终端类型,从终端类型与多媒体资源的数量之间的对应关系中,确定与该终端类型匹配的多媒体资源的数量。Wherein, the terminal stores the corresponding relationship between the terminal type and the number of multimedia resources; in some embodiments, the terminal is based on the terminal type, and the implementation of obtaining the number of multimedia resources matched by the terminal type includes: the terminal is based on the terminal type, from In the corresponding relationship between the terminal type and the quantity of multimedia resources, the quantity of multimedia resources matching the terminal type is determined.
其中,终端类型与多媒体资源的数量之间的对应关系能够根据需求进行设置和更改,本公开对此不做具体限定。例如,终端类型为手机,则多媒体资源的数量为9;再如,终端类型为PC设备,则匹配的多媒体资源的数量为100。Wherein, the corresponding relationship between the terminal type and the quantity of multimedia resources can be set and changed according to requirements, which is not specifically limited in the present disclosure. For example, if the terminal type is a mobile phone, then the number of multimedia resources is 9; for another example, if the terminal type is a PC device, then the number of matching multimedia resources is 100.
其中,终端基于多个视频帧中视频帧的排列顺序,将第五数量的视频帧依次拼接,得到多个多媒体资源。其中,第五数量为多个视频帧包括的视频帧的数量与多媒体资源的数量的比值。例如,多个视频帧的数量为36000帧,多媒体资源的数量为100,则第五数量为360,即终端依次将每360帧视频帧拼接,得到100个多媒体资源。Wherein, based on the arrangement order of the video frames in the multiple video frames, the terminal sequentially splices the fifth number of video frames to obtain multiple multimedia resources. Wherein, the fifth number is a ratio of the number of video frames included in the plurality of video frames to the number of multimedia resources. For example, if the number of multiple video frames is 36000 frames and the number of multimedia resources is 100, then the fifth number is 360, that is, the terminal sequentially stitches every 360 video frames to obtain 100 multimedia resources.
在本公开实施例中,由于能够基于终端类型确定多媒体资源的数量,进而实现了视频预览的方式能够随着用户的终端类型变化而变化,进而提高了视频预览方式的多样性。In the embodiment of the present disclosure, since the number of multimedia resources can be determined based on the terminal type, the manner of video preview can be changed as the user's terminal type changes, thereby improving the diversity of video preview manners.
需要说明的一点是,多媒体资源包括静态图片、动态预览图和视频片段中的任一种类型。在一些实施例中,终端基于终端类型,获取终端类型匹配的多媒体资源的数量的实现方式包括以下任一种方式:终端将多个视频帧生成多个静态图片;或者,将多个视频帧生成多个动态预览图;或者,将多个视频帧生成多个视频片段。用户能够通过终端设置多媒 体资源的类型;或者,终端将目标类型作为多媒体资源的类型。其中,目标类型为终端事先设置的类型,本公开对目标类型的设置不作具体限定;例如,目标类型为动态预览图。在本公开实施例中,多媒体资源包括多种类型,使得用户能够灵活选择类型,进而提高了视频预览方式的可选择性。It should be noted that the multimedia resources include any type of static pictures, dynamic preview pictures and video clips. In some embodiments, based on the terminal type, the terminal obtains the number of multimedia resources that match the terminal type in any of the following ways: the terminal generates multiple still pictures from multiple video frames; or, generates multiple video frames from multiple video frames Multiple dynamic preview images; or, generate multiple video clips from multiple video frames. The user can set the type of the multimedia resource through the terminal; or, the terminal uses the target type as the type of the multimedia resource. Wherein, the target type is a type set in advance by the terminal, and the setting of the target type is not specifically limited in the present disclosure; for example, the target type is a dynamic preview image. In the embodiment of the present disclosure, the multimedia resource includes multiple types, so that the user can flexibly select the type, thereby improving the selectivity of the video preview mode.
在本公开实施例中,终端将多个视频帧生成多个多媒体资源之后,先确定多个多媒体资源的展示顺序,然后执行步骤305,其中,展示顺序用于确定多媒体资源在视频预览界面中的展示位置。In the embodiment of the present disclosure, after generating multiple multimedia resources from multiple video frames, the terminal first determines the presentation order of the multiple multimedia resources, and then performs step 305, wherein the presentation order is used to determine the presentation order of the multimedia resources in the video preview interface. placement.
在一些实施例中,终端确定多个多媒体资源的展示顺序的实现方式包括:终端基于每个多媒体资源对应的视频帧在视频中的位置,确定多个多媒体资源的展示顺序,也即多个多媒体资源是顺序展示的。例如,3个多媒体资源分别为多媒体资源1、多媒体资源2和多媒体资源3,多媒体资源1是由视频的第一帧视频帧-第三帧视频帧生成的,多媒体资源2是由视频的第十一帧视频帧至第十三帧视频帧生成的,多媒体资源3是由视频的第二十一帧视频帧至第二十三帧视频帧生成的,则3个多媒体资源的展示顺序为多媒体资源1-多媒体资源2-多媒体资源3。In some embodiments, the method for the terminal to determine the display order of the multiple multimedia resources includes: the terminal determines the display sequence of the multiple multimedia resources based on the position of the video frame corresponding to each multimedia resource in the video, that is, the multiple multimedia resources Resources are displayed sequentially. For example, the three multimedia resources are respectively multimedia resource 1, multimedia resource 2 and multimedia resource 3. Multimedia resource 1 is generated from the first video frame to the third video frame of the video, and multimedia resource 2 is generated from the tenth video frame of the video. One video frame to the thirteenth video frame is generated, and the multimedia resource 3 is generated from the twenty-first video frame to the twenty-third video frame of the video, so the display order of the three multimedia resources is multimedia resource 1 - multimedia resource 2 - multimedia resource 3.
在本公开实施例中,终端基于多个多媒体资源在视频中的位置,确定多个多媒体资源的展示顺序,使得多个多媒体资源的展示顺序与视频原有内容的播放顺序是一致的。In the embodiment of the present disclosure, the terminal determines the display sequence of the multiple multimedia resources based on the positions of the multiple multimedia resources in the video, so that the display sequence of the multiple multimedia resources is consistent with the playback sequence of the original content of the video.
在另一些实施例中,终端确定多个多媒体资源的展示顺序的实现方式包括:终端基于多个多媒体资源的相似度,确定多个多媒体资源的展示顺序;其中,相似度小于相似度阈值的多个多媒体资源在该视频预览界面中的展示位置不相邻。相似度阈值能够根据需求进行设置和更改,本公开对此不作具体限定。在本公开实施例中,通过将相似的多媒体资源隔开展示,从而避免了视频内容的同质化。In some other embodiments, the method for the terminal to determine the display order of the multiple multimedia resources includes: the terminal determines the display order of the multiple multimedia resources based on the similarity of the multiple multimedia resources; The display positions of multimedia resources in this video preview interface are not adjacent. The similarity threshold can be set and changed according to requirements, which is not specifically limited in the present disclosure. In the embodiment of the present disclosure, homogenization of video content is avoided by displaying similar multimedia resources separately.
需要说明的一点是,上述两种确定展示顺序的方法能够结合,在一些实施例中,终端确定多个多媒体资源的展示顺序的实现方式包括:终端基于每个多媒体资源对应的视频帧在视频中的位置,确定多个多媒体资源的展示顺序;基于多个多媒体资源的相似度,调整多个多媒体资源的展示顺序,从而避免视频内容的同质化。It should be noted that the above two methods for determining the display order can be combined. In some embodiments, the terminal determines the display order of multiple multimedia resources. The location of the multiple multimedia resources is determined to determine the display order of the multiple multimedia resources; based on the similarity of the multiple multimedia resources, the display sequence of the multiple multimedia resources is adjusted to avoid homogenization of video content.
其中,预览展示的方式包括播放和展示缩略图中的至少一种;在预览展示的方式包括播放的情况下,步骤305的实现方式包括:终端基于多个多媒体资源的展示顺序,在视频预览界面中确定每个多媒体资源的展示位置,在每个多媒体资源的展示位置上,同时播放多个多媒体资源。Wherein, the way of previewing and displaying includes at least one of playing and displaying thumbnails; in the case that the way of previewing and showing includes playing, the implementation of step 305 includes: based on the display order of a plurality of multimedia resources, the terminal displays in the video preview interface The display position of each multimedia resource is determined in , and multiple multimedia resources are played simultaneously at the display position of each multimedia resource.
在一些实施例中,多个多媒体资源的数量为M×N,则步骤305的实现方式包括:终端基于多个多媒体资源的展示顺序,在视频预览界面中的第一预览框架内,同时预览展示多个多媒体资源,其中,第一预览框架包括M×N个预览框,每个预览框用于展示一个多媒体资源,M和N均为大于1的整数。In some embodiments, the number of multiple multimedia resources is M×N, and the implementation of step 305 includes: based on the display sequence of multiple multimedia resources, the terminal simultaneously previews and presents in the first preview frame in the video preview interface A plurality of multimedia resources, wherein the first preview frame includes M×N preview frames, each preview frame is used to display a multimedia resource, and both M and N are integers greater than 1.
其中,终端基于多个多媒体资源的数量,分别确定M和N的数值。例如,多媒体资源的数量为100,则M和N分别为10、10;再如,多媒体资源的数量为35,则M和N分别为5、7。例如,参见图4,上图为在预览展示视频之前视频的封面的示意图,视频的文字简介为“【混剪】动漫混剪”;多个多媒体资源的数量为8×8,在视频预览界面设置的第一预览框架包括8×8个预览框,在8×8个预览框中分别展示8×8个多媒体资源,从而实现同时预览展示多个多媒体资源,下图为在视频的上方展示多个多媒体资源的示意图。Wherein, the terminal determines the values of M and N respectively based on the quantities of multiple multimedia resources. For example, if the number of multimedia resources is 100, then M and N are 10 and 10 respectively; for another example, if the number of multimedia resources is 35, then M and N are 5 and 7 respectively. For example, see Figure 4. The above picture is a schematic diagram of the cover of the video before the video is previewed and displayed. The text introduction of the video is "[Mixed Cut] Animation Mixed Cut"; The first preview frame set includes 8×8 preview frames, and 8×8 multimedia resources are displayed in each of the 8×8 preview frames, so that multiple multimedia resources can be previewed and displayed at the same time. A schematic diagram of a multimedia resource.
在本公开实施例中,由于能够基于视频预览界面上的第一预览框架来展示多个多媒体资源,使得终端能够基于多媒体资源的数量灵活设置第一预览框架的尺寸,进而提高了视频预览方式的可选择性。In the embodiment of the present disclosure, since multiple multimedia resources can be displayed based on the first preview frame on the video preview interface, the terminal can flexibly set the size of the first preview frame based on the number of multimedia resources, thereby improving the flexibility of the video preview method. Optional.
其中,第一预览框架中包括用于预览展示多个多媒体资源的预览框,多个预览框的尺寸能够为固定的尺寸,或者终端也能够灵活设置预览框的尺寸;在一些实施例中,终端设置预览框的尺寸的实现方式包括:终端确定每个多媒体资源与当前登录账户的标签信息之 间的匹配度,基于匹配度,设置用于展示多媒体资源的预览框的尺寸,其中,预览框的尺寸与匹配度正相关。在本公开实施例中,匹配度越大,则预览框的尺寸越大,而匹配度越小,则预览框的尺寸越小,从而能够将用户感兴趣的多媒体资源展示在较大尺寸的预览框中,从而吸引用户的注意力,提高了用户播放视频的概率,进而提高了视频的曝光率。Wherein, the first preview frame includes a preview frame for previewing and displaying multiple multimedia resources, and the size of the multiple preview frames can be a fixed size, or the terminal can also flexibly set the size of the preview frame; in some embodiments, the terminal The implementation of setting the size of the preview frame includes: the terminal determines the matching degree between each multimedia resource and the label information of the current login account, and based on the matching degree, sets the size of the preview frame used to display the multimedia resource, wherein the preview frame Size is positively correlated with fit. In the embodiment of the present disclosure, the greater the matching degree, the larger the size of the preview frame, and the smaller the matching degree, the smaller the size of the preview frame, so that the multimedia resources that the user is interested in can be displayed in a larger size preview frame, thereby attracting the user's attention, increasing the probability of the user playing the video, and thus increasing the exposure rate of the video.
其中,在步骤305之前,终端生成第一预览框架。在一些实施例中,终端生成第一预览框架的实现方式包括:终端确定第一布局信息,确定第一布局信息匹配的第一预览框架。其中,第一布局信息为终端系统的布局信息,或者为用户自定义的布局信息,也即在本公开实施例中,用户能够自定义第一布局信息,从而实现自定义第一预览框架,从而提高了灵活性。Wherein, before step 305, the terminal generates a first preview frame. In some embodiments, the terminal generating the first preview frame includes: the terminal determining the first layout information, and determining the first preview frame matching the first layout information. Wherein, the first layout information is the layout information of the terminal system, or user-defined layout information, that is, in the embodiment of the present disclosure, the user can customize the first layout information, so as to realize the customization of the first preview frame, thereby Improved flexibility.
在一些实施例中,终端生成第一预览框架的实现方式包括:终端确定视频的视频类型,匹配的第一预览框架,不同视频类型对应于不同结构的第一预览框架。例如,视频类型包括动画、娱乐、生活、游戏等,动画、娱乐、生活和游戏分别对应不同结构的第一预览框架。在本公开实施例中,通过为不同的视频类型设置不同的第一预览框架,从而丰富了第一预览框架的选择方式。In some embodiments, the implementation manner for the terminal to generate the first preview frame includes: the terminal determines the video type of the video, the matching first preview frame, and different video types correspond to first preview frames of different structures. For example, video types include animation, entertainment, life, games, etc., and animation, entertainment, life, and games respectively correspond to first preview frames of different structures. In the embodiment of the present disclosure, by setting different first preview frames for different video types, the selection manner of the first preview frame is enriched.
在另一些实施例中,终端生成第一预览框架的实现方式包括:终端确定终端的终端类型匹配的第一预览框架,不同终端类型对应于不同结构的第一预览框架。在本公开实施例中,通过为不同的终端类型设置不同的第一预览框架,使得第一预览框架能够适配当前的终端,提高了第一预览框架的适配性。In some other embodiments, the terminal generating the first preview frame includes: the terminal determining the first preview frame matching the terminal type of the terminal, and different terminal types correspond to first preview frames of different structures. In the embodiment of the present disclosure, by setting different first preview frames for different terminal types, the first preview frame can be adapted to the current terminal, thereby improving the adaptability of the first preview frame.
在另一些实施例中,终端生成第一预览框架的实现方式包括:终端确定视频预览界面的显示比例匹配的第一预览框架,显示比例为视频预览界面占显示屏幕的比例,不同显示比例对应于不同结构的第一预览框架。In some other embodiments, the method for the terminal to generate the first preview frame includes: the terminal determines the first preview frame that matches the display ratio of the video preview interface, where the display ratio is the ratio of the video preview interface to the display screen, and different display ratios correspond to First preview frames of different structures.
其中,由于全屏状态下的视频预览界面较大,则设置包括较多数量的预览框的第一预览框架,使得第一预览框架能够展示更多的多媒体资源,从而能够通过多媒体资源对视频的全貌全面了解;而非全屏状态下的视频预览界面较小,则设置包括较小数量预览框的第一预览框架,使得界面更加整洁。Wherein, since the video preview interface in the full-screen state is relatively large, the first preview frame including a larger number of preview frames is set, so that the first preview frame can display more multimedia resources, so that the overall picture of the video can be viewed through the multimedia resources. Comprehensive understanding; the video preview interface in the non-full-screen state is small, and the first preview frame including a small number of preview frames is set to make the interface more tidy.
在另一些实施例中,终端基于多个多媒体资源的展示顺序,在视频预览界面轮流预览展示多个多媒体资源。其中,在预览展示的方式包括播放和展示缩略图的情况下,步骤305的实现方式包括:终端基于多个多媒体资源的展示顺序,在视频预览界面中轮流播放多个多媒体资源,展示未播放的多媒体资源的缩略图。其中,终端在播放一个多媒体资源的过程中,未播放的多媒体资源是非播放状态,终端在视频预览界面中,展示未播放的多媒体资源的缩略图。例如,3个多媒体资源分别为多媒体资源1、多媒体资源2和多媒体资源3,在播放多媒体资源1的过程中,终端在视频预览界面中展示未播放的多媒体资源的缩略图。In some other embodiments, the terminal previews and displays the multiple multimedia resources in turn on the video preview interface based on the presentation order of the multiple multimedia resources. Wherein, when the way of previewing and displaying includes playing and displaying thumbnail images, the implementation of step 305 includes: the terminal plays multiple multimedia resources in turn in the video preview interface based on the display sequence of multiple multimedia resources, and displays unplayed Thumbnails for multimedia assets. Wherein, when the terminal is playing a multimedia resource, the unplayed multimedia resource is in a non-playing state, and the terminal displays thumbnails of the unplayed multimedia resource in the video preview interface. For example, the three multimedia resources are respectively multimedia resource 1, multimedia resource 2 and multimedia resource 3. During the process of playing multimedia resource 1, the terminal displays thumbnails of unplayed multimedia resources on the video preview interface.
需要说明的一点是,终端基于多个多媒体资源的展示顺序,在视频预览界面中轮流播放多个多媒体资源的实现方式包括:终端基于多个多媒体资源的展示顺序,在视频预览界面中确定每个多媒体资源的展示位置,在每个多媒体资源的展示位置上,展示对应的多媒体资源;确定多个多媒体资源的播放顺序,基于播放顺序,轮流播放多个多媒体资源。It should be noted that, based on the display order of multiple multimedia resources, the realization method for the terminal to play multiple multimedia resources in turn in the video preview interface includes: based on the display order of multiple multimedia resources, the terminal determines each The display position of the multimedia resource is to display the corresponding multimedia resource at each display position of the multimedia resource; determine the playing sequence of the multiple multimedia resources, and play the multiple multimedia resources in turn based on the playing sequence.
其中,终端确定多个多媒体资源的播放顺序的实现方式包括:终端直接将展示顺序确定为播放顺序;或者,基于每个多媒体资源与当前登录账户的标签信息之间的匹配度,确定每个多媒体资源的播放顺序。其中,匹配度越高,多媒体资源在播放顺序中的位置越靠前,而匹配度越低,多媒体资源在播放顺序中的位置越靠后,从而实现优先播放用户感兴趣的多媒体资源。Wherein, the implementation method for the terminal to determine the playing order of multiple multimedia resources includes: the terminal directly determines the display order as the playing order; or, based on the matching degree between each multimedia resource and the label information of the current login account, determine the The playback order of the assets. Wherein, the higher the matching degree is, the higher the position of the multimedia resource is in the playing order, and the lower the matching degree is, the lower the position of the multimedia resource is in the playing order, so that the multimedia resource that the user is interested in is played preferentially.
在另一些实施例中,在预览展示的方式包括显示缩略图的情况下,步骤305的实现方式包括:终端基于多个多媒体资源的展示顺序,在视频预览界面中确定每个多媒体资源的展示位置,在每个多媒体资源的展示位置上,同时展示多个多媒体资源的缩略图。In some other embodiments, when the way of previewing and displaying includes displaying thumbnails, the implementation of step 305 includes: the terminal determines the display position of each multimedia resource in the video preview interface based on the sequence of displaying multiple multimedia resources , on the display position of each multimedia resource, simultaneously display the thumbnails of multiple multimedia resources.
其中,在多个多媒体资源的数量较多的情况下,由于视频预览界面的显示空间有限, 因此,将多个多媒体资源全部展示在视频预览界面中的方式会占据较大的显示空间,并且每个多媒体资源的显示区域很小,使得预览效果较差。因此,终端能够轮流预览展示多个多媒体资源。需要说明的一点是,轮流预览展示多个多媒体资源这一操作能够理解为快速展示,即操作也属于本公开实施例中的“同时展示”的范围。在本公开实施例中,通过轮流预览展示多个多媒体资源,节省了视频预览界面的显示资源。Among them, in the case of a large number of multiple multimedia resources, due to the limited display space of the video preview interface, the method of displaying all the multiple multimedia resources on the video preview interface will occupy a large display space, and each The display area of a multimedia resource is very small, making the preview effect poor. Therefore, the terminal can preview and display multiple multimedia resources in turn. It should be noted that the operation of previewing and displaying multiple multimedia resources in turn can be understood as quick display, that is, the operation also belongs to the scope of "simultaneous display" in the embodiments of the present disclosure. In the embodiment of the present disclosure, the display resources of the video preview interface are saved by previewing and displaying multiple multimedia resources in turn.
在一些实施例中,终端能够在视频预览界面中直接预览展示多个多媒体资源,或者,终端也能够在视频预览界面中预览展示添加音频后的多个多媒体资源。对于每个视频,终端在视频的多媒体资源中添加视频的音频信息,在视频预览界面中,预览展示添加音频信息的多媒体资源。其中,终端在视频预览界面中,预览展示多个多媒体资源的实现方式包括以下过程:终端获取每个多媒体资源对应的音频信息;将音频信息添加到多媒体资源中;在视频预览界面中,预览展示添加音频信息后的多媒体资源。In some embodiments, the terminal can directly preview and display multiple multimedia resources in the video preview interface, or the terminal can also preview and display multiple multimedia resources with audio added in the video preview interface. For each video, the terminal adds audio information of the video to the multimedia resource of the video, and previews and displays the multimedia resource with the added audio information on the video preview interface. Among them, in the video preview interface, the implementation of previewing and displaying multiple multimedia resources by the terminal includes the following process: the terminal obtains the audio information corresponding to each multimedia resource; adds the audio information to the multimedia resource; in the video preview interface, previews and displays Multimedia resources after adding audio information.
其中,在与视频对应的音频中,对于视频的每个时间点处的视频帧,均具有与视频帧对应的音频帧;则终端获取每个多媒体资源对应的音频信息的实现方式包括:终端基于多媒体资源中的视频帧对应的时间点,从与视频对应的音频中,确定时间点对应的音频帧;拼接同一多媒体资源对应的多个音频帧,得到多媒体资源对应的音频信息。Wherein, in the audio corresponding to the video, for the video frame at each time point of the video, there is an audio frame corresponding to the video frame; then the terminal obtains the audio information corresponding to each multimedia resource. The time point corresponding to the video frame in the multimedia resource is determined from the audio corresponding to the video, and the audio frame corresponding to the time point is determined; multiple audio frames corresponding to the same multimedia resource are spliced to obtain the audio information corresponding to the multimedia resource.
在一些实施例中,终端合成音频信息和多媒体资源,得到添加音频信息后的多媒体资源。In some embodiments, the terminal synthesizes the audio information and the multimedia resource to obtain the multimedia resource with the audio information added.
在一些实施例中,终端在视频预览界面中,预览展示多媒体资源的预览播放按钮;响应于预览播放按钮被触发,终端播放添加音频信息后的多媒体资源。In some embodiments, the terminal previews and displays a preview play button of the multimedia resource in the video preview interface; in response to the preview play button being triggered, the terminal plays the multimedia resource with audio information added.
在本公开实施例中,由于将视频对应的音频信息添加到了多媒体资源中,使得用户不仅能够预览视频的画面内容,还能够预览到视频对应的音频内容,进而使得用户能够结合多媒体资源中的画面内容和音频内容确定视频是否为感兴趣的视频,进而改善了视频预览的效果。In the embodiment of the present disclosure, since the audio information corresponding to the video is added to the multimedia resource, the user can not only preview the screen content of the video, but also preview the audio content corresponding to the video, thereby allowing the user to combine the screen content in the multimedia resource Content and audio content improve video preview by determining whether a video is of interest.
在一些实施例中,终端能够直接在视频的封面中同时预览展示多个多媒体资源,或者,终端也能够在视频预览界面的悬浮窗口中预览展示多个多媒体资源。例如,继续参见图4,在视频的封面上方展示悬浮窗口,在悬浮窗口中同时预览展示多个多媒体资源。在本公开实施例中,通过直接在视频预览界面中展示多个多媒体资源或者在悬浮窗口中展示多个多媒体资源,提供了不同的展示方式,进而提高了展示方式的可选择性。In some embodiments, the terminal can directly preview and display multiple multimedia resources on the cover of the video at the same time, or the terminal can also preview and display multiple multimedia resources in the floating window of the video preview interface. For example, continuing to refer to FIG. 4 , a floating window is displayed above the cover of the video, and multiple multimedia resources are simultaneously previewed and displayed in the floating window. In the embodiment of the present disclosure, by directly displaying multiple multimedia resources on the video preview interface or displaying multiple multimedia resources in a floating window, different display modes are provided, thereby improving the selectivity of the display modes.
需要说明的一点是,视频预览界面中包括的可预览的视频的数量为一个或者多个,在视频预览界面中包括的可预览的视频的数量为多个的情况下,以视频预览界面包括可预览的多个目标视频为例,多个目标视频包括视频,对于每个目标视频,终端均按照以上步骤302-305来生成目标视频的多个多媒体资源,并在视频预览界面中,同时预览展示目标视频的多个多媒体资源,由于一个目标视频会对应多个多媒体资源,则终端在视频预览界面中同时展示多个目标视频的多媒体资源。在一些实施例中,终端还能够对多个目标视频的多媒体资源进行布局,则终端确定多个目标视频在视频预览界面中的第二布局信息;确定第二布局信息匹配的第二预览框架;在第二预览框架中同时预览展示多个目标视频的多媒体资源。It should be noted that the number of previewable videos included in the video preview interface is one or more. Take the preview of multiple target videos as an example. The multiple target videos include videos. For each target video, the terminal generates multiple multimedia resources of the target video according to the above steps 302-305, and simultaneously previews and displays them in the video preview interface. There are multiple multimedia resources of the target video. Since one target video corresponds to multiple multimedia resources, the terminal simultaneously displays multiple multimedia resources of the target video on the video preview interface. In some embodiments, the terminal can also layout the multimedia resources of multiple target videos, then the terminal determines the second layout information of the multiple target videos in the video preview interface; determines the second preview frame matched by the second layout information; The multimedia resource displaying multiple target videos is simultaneously previewed in the second preview frame.
其中,第二预览框架为全局的预览框架。第二预览框架中包括多个第一预览框架,每个第一预览框架用于展示一个目标视频的多媒体资源。例如,第二布局信息用于表示视频预览界面的多个目标视频是并排在一行的,则第二预览框架包括的多个第一预览框架也是并排在一行的,从而使得第二预览框架与第二布局信息匹配,也即在预览展示多媒体资源的过程中,并不改变视频预览界面原有的布局,从而提高了界面展示的适配性。Wherein, the second preview frame is a global preview frame. The second preview frame includes a plurality of first preview frames, and each first preview frame is used to display a multimedia resource of a target video. For example, the second layout information is used to indicate that multiple target videos of the video preview interface are arranged side by side, and then the plurality of first preview frames included in the second preview frame are also arranged side by side, so that the second preview frame and the first preview frame are arranged side by side. Second, layout information matching, that is, in the process of previewing and displaying multimedia resources, the original layout of the video preview interface is not changed, thereby improving the adaptability of the interface display.
图5是根据一示例性实施例示出的一种视频预览方法的流程图,如图5所示,该视频预览方法由终端执行,本公开实施例以终端基于视频预览请求,在视频预览界面中,预览展示视频的多个多媒体资源为例进行说明,该方法包括以下步骤。Fig. 5 is a flow chart of a video preview method according to an exemplary embodiment. As shown in Fig. 5, the video preview method is executed by a terminal. In the embodiment of the present disclosure, the terminal is based on a video preview request, and in the video preview interface , preview multiple multimedia resources displaying video as an example for illustration, the method includes the following steps.
步骤501:终端展示视频预览界面,该视频预览界面包括可预览的视频和该视频的封面,该封面用于触发视频预览请求。Step 501: The terminal displays a video preview interface, the video preview interface includes a previewable video and a cover of the video, and the cover is used to trigger a video preview request.
步骤502:终端接收该视频预览请求。Step 502: the terminal receives the video preview request.
步骤503:终端将该视频预览请求对应的视频转换为视频帧序列。Step 503: The terminal converts the video corresponding to the video preview request into a sequence of video frames.
步骤504:终端从该视频帧序列中提取多个视频帧。Step 504: the terminal extracts multiple video frames from the video frame sequence.
步骤505:终端将多个视频帧生成多个多媒体资源。Step 505: The terminal generates multiple multimedia resources from multiple video frames.
步骤506:终端基于多个多媒体资源的展示顺序,在该视频预览界面中,同时预览展示多个多媒体资源。Step 506: Based on the display sequence of the multiple multimedia resources, the terminal simultaneously previews and displays the multiple multimedia resources in the video preview interface.
其中,视频是以展示封面的形式展示在视频预览界面中的。终端响应于基于封面触发的视频预览请求,执行步骤502的操作。在一些实施例中,步骤501的实现方式与步骤301的实现方式同理,在此不再赘述。Wherein, the video is displayed in the video preview interface in the form of displaying a cover. The terminal executes the operation of step 502 in response to the video preview request triggered based on the cover art. In some embodiments, the implementation manner of step 501 is the same as the implementation manner of step 301, which will not be repeated here.
在一些实施例中,终端接收视频预览请求的实现方式包括以下至少一种实现方式:第一种实现方式:终端响应于在封面上检测到鼠标的悬停操作,接收基于该悬停操作的视频预览请求。其中,终端一旦检测到悬停操作,就确定接收到视频预览请求,或者,终端检测到悬停操作的悬停时长达到目标时长,确定接收到该视频预览请求。其中,目标时长能够根据需求进行设置和更改,本公开实施例对此不作具体限定;例如,该目标时长为5秒,则在鼠标指针在该视频的封面上悬停的时间达到5秒的情况下,终端确定接收到视频预览请求。在本公开实施例中,对一个视频的悬停操作表示用户存在观看该视频的意图,则终端能够对该视频进行预览展示,进而从而提高了视频预览的准确性。In some embodiments, the implementation of the terminal receiving the video preview request includes at least one of the following implementations: first implementation: the terminal responds to a mouse hovering operation detected on the cover, and receives the video based on the hovering operation Preview request. Wherein, once the terminal detects the hovering operation, it determines to receive the video preview request, or, when the terminal detects that the hovering duration of the hovering operation reaches the target duration, it determines to receive the video preview request. Wherein, the target duration can be set and changed according to requirements, which is not specifically limited in the embodiment of the present disclosure; for example, if the target duration is 5 seconds, then the mouse pointer hovers over the cover of the video for 5 seconds Next, the terminal determines that the video preview request is received. In the embodiment of the present disclosure, the hovering operation on a video indicates that the user intends to watch the video, and the terminal can preview and display the video, thereby improving the accuracy of the video preview.
第二种实现方式:视频预览界面包括预览入口,终端响应于基于预览入口的触发操作,接收基于触发操作的视频预览请求。其中,预览入口包括预览按钮。用户触发预览按钮,终端确定接收到视频预览请求。A second implementation manner: the video preview interface includes a preview entry, and the terminal receives a video preview request based on the trigger operation in response to the trigger operation based on the preview entry. Wherein, the preview entry includes a preview button. The user triggers the preview button, and the terminal determines that a video preview request is received.
在一些实施例中,终端能够在视频预览界面设置预览按钮;例如,预览按钮设置在视频的封面的下方或者上方;或者,预览按钮设置在视频的封面上,且与视频的播放按钮的位置不同。例如,用户通过终端触发预览按钮,终端确定接收到视频预览请求。在本公开实施例中,用户通过终端触发视频的预览入口这一操作表示用户存在观看视频的意图,从而终端能够确定接收到视频预览请求,提高了视频预览的准确性。In some embodiments, the terminal can set a preview button on the video preview interface; for example, the preview button is set below or above the cover of the video; or, the preview button is set on the cover of the video, and the position of the play button is different from that of the video . For example, the user triggers a preview button through the terminal, and the terminal determines that a video preview request is received. In the embodiment of the present disclosure, the operation of the user triggering the video preview entry through the terminal indicates that the user has an intention to watch the video, so that the terminal can determine that a video preview request has been received, which improves the accuracy of the video preview.
在一些实施例中,步骤503的实现方式与步骤302中终端将视频转换为视频帧序列的实现方式同理,在此不再赘述。在本公开实施例中,在接收到视频预览请求的情况下,终端才将视频预览界面中的视频转换为视频帧序列,进而避免了需要存储多个视频的视频帧序列而导致终端的存储空间占用过多的情况的发生,进而降低了终端的存储压力。In some embodiments, the implementation manner of step 503 is the same as the implementation manner of the terminal converting the video into a video frame sequence in step 302, which will not be repeated here. In the embodiment of the present disclosure, the terminal converts the video in the video preview interface into a video frame sequence only after receiving the video preview request, thereby avoiding the need to store video frame sequences of multiple videos and causing the storage space of the terminal to be reduced. The occurrence of excessive occupancy further reduces the storage pressure of the terminal.
在一些实施例中,步骤504-步骤506的实现方式与步骤303-步骤305的实现方式同理,在此不再赘述。In some embodiments, the implementation of steps 504-506 is the same as the implementation of steps 303-305, which will not be repeated here.
在本公开实施例中,由于视频的视频帧能够体现视频的内容,因此,基于视频的多个视频帧生成的多个多媒体资源能够融合视频的内容,通过在视频预览界面展示多个多媒体资源,使得用户在观看视频之前能够通过预览多个多媒体资源提供的视频内容,对视频的全貌有预先了解,进而改善了视频预览效果。In the embodiment of the present disclosure, since the video frame of the video can reflect the content of the video, multiple multimedia resources generated based on multiple video frames of the video can fuse the content of the video. By displaying multiple multimedia resources on the video preview interface, The user can preview the video content provided by multiple multimedia resources before watching the video, so as to have a pre-understanding of the whole picture of the video, thereby improving the video preview effect.
图6是根据一示例性实施例示出的一种视频预览方法的流程图,如图6所示,该视频预览方法由终端执行,该方法包括以下步骤。Fig. 6 is a flow chart showing a video preview method according to an exemplary embodiment. As shown in Fig. 6, the video preview method is executed by a terminal, and the method includes the following steps.
步骤601:终端展示视频预览界面,该视频预览界面中展示有视频的封面。Step 601: The terminal displays a video preview interface, and the video preview interface displays a cover of the video.
步骤602:终端响应于基于该封面的视频预览操作,在该视频预览界面中展示该视频对应的第一预览框架,该第一预览框架包括多个多媒体资源,且每个多媒体资源由该视频中的至少一个视频帧生成。Step 602: In response to the video preview operation based on the cover, the terminal displays a first preview frame corresponding to the video on the video preview interface. The first preview frame includes a plurality of multimedia resources, and each multimedia resource is represented by the video in the video. At least one video frame of is generated.
在一些实施例中,该方法还包括:In some embodiments, the method also includes:
响应于在该封面上检测到鼠标的悬停操作,确定检测到该视频预览操作;或者,determining that the video preview operation is detected in response to detecting a mouse hover operation over the cover; or,
该视频预览界面包括预览入口,响应于基于该预览入口的触发操作,确定检测到该视频预览操作。The video preview interface includes a preview entry, and in response to a trigger operation based on the preview entry, it is determined that the video preview operation is detected.
图7是根据一示例性实施例示出的一种视频预览方法的流程图,如图7所示,该视频预览方法由终端执行,本公开实施例以终端基于视频预览操作,在视频预览界面中,展示视频的多个多媒体资源为例说明,该方法包括以下步骤。Fig. 7 is a flowchart of a video preview method according to an exemplary embodiment. As shown in Fig. 7, the video preview method is executed by a terminal. In the embodiment of the present disclosure, the terminal is based on the video preview operation, and in the video preview interface Taking multiple multimedia resources displaying videos as an example, the method includes the following steps.
步骤701:终端展示视频预览界面,该视频预览界面展示有视频的封面。Step 701: The terminal displays a video preview interface, and the video preview interface displays a cover of the video.
步骤702:终端响应于基于该封面的视频预览操作,在该视频预览界面中展示该视频对应的第一预览框架,第一预览框架包括多个多媒体资源,且每个多媒体资源由该视频中的至少一个视频帧生成。Step 702: In response to the video preview operation based on the cover, the terminal displays the first preview frame corresponding to the video on the video preview interface, the first preview frame includes multiple multimedia resources, and each multimedia resource consists of At least one video frame is generated.
在一些实施例中,步骤701的实现方式和步骤501的实现方式同理,在此不再赘述。In some embodiments, the implementation manner of step 701 is the same as the implementation manner of step 501, which will not be repeated here.
其中,第一预览框架包括M×N个预览框,每个预览框用于显示一个多媒体资源,M和N均为大于1的整数。终端生成第一预览框以及生成多个多媒体资源的过程参见步骤302-304,在此不再赘述。终端检测视频预览操作的实现方式与步骤502的实现方式同理,在此不再赘述。Wherein, the first preview frame includes M×N preview frames, each preview frame is used to display a multimedia resource, and both M and N are integers greater than 1. Refer to steps 302-304 for the process of generating the first preview frame and multiple multimedia resources by the terminal, which will not be repeated here. The implementation manner of the terminal detection video preview operation is the same as the implementation manner of step 502, and will not be repeated here.
在本公开实施例中,由于视频的视频帧能够体现视频的内容,因此,第一预览框架中展示的多个多媒体资源能够融合视频的内容,通过在视频预览界面展示多个多媒体资源,使得用户在观看视频之前能够通过预览多个多媒体资源提供的视频内容,对该视频的全貌有预先了解,进而改善了视频预览效果。In the embodiment of the present disclosure, since the video frame of the video can reflect the content of the video, the multiple multimedia resources displayed in the first preview frame can be integrated with the content of the video. By displaying multiple multimedia resources on the video preview interface, the user can Before watching a video, the video content provided by multiple multimedia resources can be previewed, so as to know the whole picture of the video in advance, thereby improving the video preview effect.
图8是根据一示例性实施例示出的一种视频预览装置800的框图。参照图8,该装置800包括第一展示单元801和生成单元802。Fig. 8 is a block diagram of a video preview device 800 according to an exemplary embodiment. Referring to FIG. 8 , the apparatus 800 includes a first presentation unit 801 and a generation unit 802 .
第一展示单元801,被配置为展示视频预览界面,该视频预览界面包括可预览的视频;The first display unit 801 is configured to display a video preview interface, where the video preview interface includes previewable videos;
生成单元802,被配置为从该视频中提取多个视频帧,将多个视频帧生成多个多媒体资源;The generating unit 802 is configured to extract multiple video frames from the video, and generate multiple multimedia resources from the multiple video frames;
该第一展示单元801,被配置为基于多个多媒体资源的展示顺序,在该视频预览界面中同时预览展示多个多媒体资源。The first display unit 801 is configured to simultaneously preview and display multiple multimedia resources in the video preview interface based on the display sequence of the multiple multimedia resources.
在一些实施例中,生成单元802,包括:In some embodiments, generating unit 802 includes:
转换子单元,被配置为将该视频转换为视频帧序列;a conversion subunit configured to convert the video into a sequence of video frames;
获取子单元,被配置为获取当前登录账户的标签信息;The obtaining subunit is configured to obtain the label information of the current login account;
提取子单元,被配置为基于该标签信息,从该视频帧序列中提取与该标签信息匹配的多个视频帧。The extracting subunit is configured to extract a plurality of video frames matching the tag information from the sequence of video frames based on the tag information.
在一些实施例中,提取子单元,被配置为确定该视频序列中的每个视频帧的视频标签;确定每个视频帧的视频标签与该标签信息之间的匹配度;基于每个视频帧与该标签信息之间的匹配度,从该视频帧序列中提取匹配度最高的第一数量的视频帧。In some embodiments, the extraction subunit is configured to determine the video label of each video frame in the video sequence; determine the matching degree between the video label of each video frame and the label information; based on each video frame According to the matching degree between the label information and the video frame sequence, the first number of video frames with the highest matching degree are extracted.
在一些实施例中,提取子单元,被配置为对每个视频帧图像识别,确定该视频帧的风格信息;基于该视频帧的风格信息,确定该视频帧的视频标签。In some embodiments, the extraction subunit is configured to recognize each video frame image, determine the style information of the video frame; and determine the video tag of the video frame based on the style information of the video frame.
在一些实施例中,生成单元802,包括:In some embodiments, generating unit 802 includes:
转换子单元,被配置为将该视频转换为视频帧序列;a conversion subunit configured to convert the video into a sequence of video frames;
第二提取子单元,被配置为在该视频帧序列中,每间隔第二数量的视频帧提取一个目标视频帧,得到多个视频帧。The second extracting subunit is configured to extract a target video frame every interval of a second number of video frames in the sequence of video frames to obtain a plurality of video frames.
在一些实施例中,转换子单元,被配置为基于采样时长,将该视频划分成多个视频段;从每个视频段中提取第三数量的视频帧;将从每个视频段中提取的视频帧组成该视频帧序列。In some embodiments, the conversion subunit is configured to divide the video into a plurality of video segments based on the sampling duration; extract a third number of video frames from each video segment; extract the video frames from each video segment Video frames make up the sequence of video frames.
在一些实施例中,第一展示单元801,被配置为基于多个多媒体资源的展示顺序,在该视频预览界面中的第一预览框架内,同时预览展示多个多媒体资源;In some embodiments, the first display unit 801 is configured to simultaneously preview and display multiple multimedia resources in the first preview frame in the video preview interface based on the display sequence of the multiple multimedia resources;
其中,多个多媒体资源的数量为M×N,该第一预览框架包括M×N个预览框,每个预 览框用于展示一个多媒体资源,M和N均为大于1的整数。Wherein, the number of multiple multimedia resources is M×N, the first preview frame includes M×N preview frames, each preview frame is used to display a multimedia resource, and both M and N are integers greater than 1.
在一些实施例中,该装置还包括:In some embodiments, the device also includes:
第一确定单元,被配置为确定每个多媒体资源与当前登录账户的标签信息之间的匹配度;基于该匹配度,设置用于展示该多媒体资源的预览框的尺寸。The first determining unit is configured to determine a degree of matching between each multimedia resource and the label information of the current login account; based on the degree of matching, set the size of a preview frame for displaying the multimedia resource.
在一些实施例中,该装置还包括:In some embodiments, the device also includes:
第一确定单元,被配置为确定该视频的视频类型匹配的该第一预览框架,不同视频类型对应于不同结构的该第一预览框架;或者,The first determining unit is configured to determine the first preview frame that matches the video type of the video, and different video types correspond to the first preview frame of different structures; or,
该第一确定单元,被配置为确定终端的终端类型匹配的该第一预览框架,不同终端类型对应于不同结构的该第一预览框架;或者,The first determining unit is configured to determine the first preview frame matching the terminal type of the terminal, and different terminal types correspond to the first preview frame of different structures; or,
该第一确定单元,被配置为确定该视频预览界面的显示比例匹配的该第一预览框架,该显示比例为该预览界面占显示屏幕的比例,不同显示比例对应于不同结构的该第一预览框架。The first determination unit is configured to determine the first preview frame that matches the display ratio of the video preview interface, where the display ratio is the ratio of the preview interface to the display screen, and different display ratios correspond to different structures of the first preview frame.
在一些实施例中,该视频预览界面包括可预览的多个目标视频,多个目标视频包括该视频;第一展示单元801,被配置为确定多个目标视频在该视频预览界面中的布局信息;确定该布局信息匹配的第二预览框架;在该第二预览框架中同时预览展示多个目标视频的多媒体资源;In some embodiments, the video preview interface includes multiple target videos that can be previewed, and the multiple target videos include the video; the first presentation unit 801 is configured to determine the layout information of the multiple target videos in the video preview interface ; Determine the second preview frame that the layout information matches; preview the multimedia resources showing multiple target videos simultaneously in the second preview frame;
其中,该第二预览框架包括多个第一预览框架,每个第一预览框架用于预览展示一个目标视频的多媒体资源。Wherein, the second preview frame includes a plurality of first preview frames, and each first preview frame is used to preview a multimedia resource showing a target video.
在一些实施例中,第一展示单元801,被配置为基于多个多媒体资源的展示顺序,在该视频预览界面中确定每个多媒体资源的展示位置,在每个多媒体资源的展示位置上,同时播放多个多媒体资源;或者,In some embodiments, the first display unit 801 is configured to determine the display position of each multimedia resource in the video preview interface based on the display sequence of the multiple multimedia resources, and at the display position of each multimedia resource, at the same time play multiple multimedia resources; or,
第一展示单元801,被配置为基于多个多媒体资源的展示顺序,在该视频预览界面轮流播放多个多媒体资源,展示未播放的多媒体资源的缩略图。The first display unit 801 is configured to play multiple multimedia resources in turn on the video preview interface based on the display sequence of the multiple multimedia resources, and display thumbnails of unplayed multimedia resources.
在一些实施例中,该视频预览界面中展示有该视频的封面,该封面用于触发视频预览请求;该装置还包括:In some embodiments, the cover of the video is displayed in the video preview interface, and the cover is used to trigger a video preview request; the device also includes:
接收单元,被配置为接收该视频预览请求;a receiving unit configured to receive the video preview request;
生成单元802,被配置为基于该视频预览请求,从该视频中提取多个视频帧,将多个视频帧生成多个多媒体资源。The generating unit 802 is configured to extract multiple video frames from the video based on the video preview request, and generate multiple multimedia resources from the multiple video frames.
在一些实施例中,接收单元,被配置为响应于在该封面上检测到鼠标的悬停操作,接收基于该悬停操作的该视频预览请求;或者,In some embodiments, the receiving unit is configured to receive the video preview request based on the hovering operation in response to detecting a mouse hovering operation on the cover; or,
该视频预览界面包括预览入口,接收单元,被配置为响应于基于该预览入口的触发操作,接收基于该触发操作的该视频预览请求。The video preview interface includes a preview entry, and the receiving unit is configured to, in response to a trigger operation based on the preview entry, receive the video preview request based on the trigger operation.
在一些实施例中,该装置还包括:In some embodiments, the device also includes:
第一确定单元,被配置为基于每个多媒体资源对应的视频帧在该视频中的位置,确定多个多媒体资源的展示顺序;或者,The first determining unit is configured to determine the display order of multiple multimedia resources based on the position of the video frame corresponding to each multimedia resource in the video; or,
该第一确定单元,被配置为基于多个多媒体资源之间的相似度,确定多个多媒体资源的展示顺序;其中,相似度小于相似度阈值的多个多媒体资源在该视频预览界面中的展示位置不相邻。The first determination unit is configured to determine the display sequence of multiple multimedia resources based on the similarity between multiple multimedia resources; wherein, the multiple multimedia resources whose similarity is smaller than the similarity threshold are displayed in the video preview interface The locations are not adjacent.
在本公开实施例中,由于视频的视频帧能够体现视频的内容,因此,基于视频的多个视频帧生成的多个多媒体资源能够融合视频的内容,通过在视频预览界面展示多个多媒体资源,使得用户在观看视频之前能够通过预览多个多媒体资源提供的视频内容,对该视频的全貌有预先了解,进而改善了视频预览效果。In the embodiment of the present disclosure, since the video frame of the video can reflect the content of the video, multiple multimedia resources generated based on multiple video frames of the video can fuse the content of the video. By displaying multiple multimedia resources on the video preview interface, The user can preview the video content provided by multiple multimedia resources before watching the video, so as to have a pre-understanding of the whole picture of the video, thereby improving the video preview effect.
图9是根据一示例性实施例示出的一种视频预览装置900的框图。参照图9,该装置900包括第二展示单元901。Fig. 9 is a block diagram of a video preview device 900 according to an exemplary embodiment. Referring to FIG. 9 , the device 900 includes a second display unit 901 .
第二展示单元901,被配置为展示视频预览界面,该视频预览界面展示有视频的封面;The second display unit 901 is configured to display a video preview interface, and the video preview interface displays a cover of the video;
该第二展示单元901,被配置为响应于基于该封面的视频预览操作,在该视频预览界面中展示该视频对应的第一预览框架,该第一预览框架包括多个多媒体资源,且每个多媒体资源由该视频中的至少一个视频帧生成。The second presentation unit 901 is configured to display a first preview frame corresponding to the video in the video preview interface in response to the video preview operation based on the cover, the first preview frame includes a plurality of multimedia resources, and each The multimedia resource is generated from at least one video frame in the video.
在一些实施例中,该装置还包括:In some embodiments, the device also includes:
第二确定单元,被配置为响应于在该封面上检测到鼠标的悬停操作,确定检测到该视频预览操作;或者,The second determining unit is configured to determine that the video preview operation is detected in response to detecting a mouse hovering operation on the cover; or,
该预览界面包括预览入口,第二确定单元,被配置为响应于基于该预览入口的触发操作,确定检测到该视频预览操作。The preview interface includes a preview entry, and the second determining unit is configured to determine that the video preview operation is detected in response to a trigger operation based on the preview entry.
在本公开实施例中,由于视频的视频帧能够体现视频的内容,因此,第一预览框架中展示的多个多媒体资源能够融合视频的内容,通过在视频预览界面展示多个多媒体资源,使得用户在观看视频之前能够通过预览多个多媒体资源提供的视频内容,对该视频的全貌有预先了解,进而改善了视频预览效果。In the embodiment of the present disclosure, since the video frame of the video can reflect the content of the video, the multiple multimedia resources displayed in the first preview frame can be integrated with the content of the video. By displaying multiple multimedia resources on the video preview interface, the user can Before watching a video, the video content provided by multiple multimedia resources can be previewed, so as to know the whole picture of the video in advance, thereby improving the video preview effect.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
图10是根据一示例性实施例示出的一种终端10的框图。在一些实施例中,该终端10为:智能手机、平板电脑、笔记本电脑或台式电脑等。在另一些实施例中,终端10被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。Fig. 10 is a block diagram showing a terminal 10 according to an exemplary embodiment. In some embodiments, the terminal 10 is: a smart phone, a tablet computer, a notebook computer or a desktop computer, and the like. In some other embodiments, the terminal 10 is called user equipment, portable terminal, laptop terminal, desktop terminal and other names.
通常,终端10包括有:处理器101和存储器102。Generally, the terminal 10 includes: a processor 101 and a memory 102 .
在一些实施例中,处理器101包括一个或多个处理核心,比如4核心处理器、8核心处理器等。在一些实施例中,处理器101采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。在一些实施例中,处理器101也包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器101集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器101还包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。In some embodiments, the processor 101 includes one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. In some embodiments, the processor 101 adopts at least one of DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, programmable logic array) A form of hardware to achieve. In some embodiments, the processor 101 also includes a main processor and a coprocessor, and the main processor is a processor for processing data in a wake-up state, also called a CPU (Central Processing Unit, central processing unit) ; The coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 101 is integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen. In some embodiments, the processor 101 further includes an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is configured to process computing operations related to machine learning.
在一些实施例中,存储器102包括一个或多个非易失性计算机可读存储介质,该非易失性计算机可读存储介质是非暂态的。在一些实施例中,存储器102还包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器102中的非暂态的非易失性计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器101所执行以实现本公开中方法实施例提供的视频预览方法。In some embodiments, memory 102 includes one or more non-volatile computer-readable storage media that are non-transitory. In some embodiments, the memory 102 also includes high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory non-volatile computer-readable storage medium in the memory 102 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 101 to implement the method embodiments of the present disclosure The provided video preview method.
在一些实施例中,终端10还可选包括有:外围设备接口103和至少一个外围设备。在一些实施例中,处理器101、存储器102和外围设备接口103之间通过总线或信号线相连。在一些实施例中,各个外围设备通过总线、信号线或电路板与外围设备接口103相连。具体地,外围设备包括:射频电路104、显示屏105、摄像头组件106、音频电路107、定位组件108和电源109中的至少一种。In some embodiments, the terminal 10 may optionally further include: a peripheral device interface 103 and at least one peripheral device. In some embodiments, the processor 101 , the memory 102 and the peripheral device interface 103 are connected through buses or signal lines. In some embodiments, each peripheral device is connected to the peripheral device interface 103 through a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 104 , a display screen 105 , a camera component 106 , an audio circuit 107 , a positioning component 108 and a power supply 109 .
外围设备接口103可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器101和存储器102。在一些实施例中,处理器101、存储器102和外围设备接口103被集成在同一芯片或电路板上;在一些其他实施例中,处理器101、存储器102和外围设备接口103中的任意一个或两个在单独的芯片或电路板上实现,本实施例对此不加以限定。The peripheral device interface 103 may be used to connect at least one peripheral device related to I/O (Input/Output, input/output) to the processor 101 and the memory 102 . In some embodiments, the processor 101, memory 102 and peripheral device interface 103 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 101, memory 102 and peripheral device interface 103 or The two are implemented on a separate chip or circuit board, which is not limited in this embodiment.
射频电路104用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射 频电路104通过电磁信号与通信网络以及其他通信设备进行通信。射频电路104将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。在一些实施例中,射频电路104包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。在一些实施例中,射频电路104通过至少一种无线通信协议来与其他终端进行通信。该无线通信协议包括但不限于:万维网、城域网、内联网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路104还包括NFC(Near Field Communication,近距离无线通信)有关的电路,本公开对此不加以限定。The radio frequency circuit 104 is used to receive and transmit RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals. Radio frequency circuitry 104 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. In some embodiments, the radio frequency circuit 104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. In some embodiments, the radio frequency circuit 104 communicates with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: World Wide Web, Metropolitan Area Network, Intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), wireless local area network and/or WiFi (Wireless Fidelity, Wireless Fidelity) network. In some embodiments, the radio frequency circuit 104 also includes circuits related to NFC (Near Field Communication, short-range wireless communication), which is not limited in the present disclosure.
显示屏105用于显示UI(User Interface,用户界面)。在一些实施例中,该UI包括图形、文本、图标、视频及其他们的任意组合。当显示屏105是触摸显示屏时,显示屏105还具有采集在显示屏105的表面或表面上方的触摸信号的能力。在一些实施例中,该触摸信号作为控制信号输入至处理器101进行处理。此时,显示屏105还用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏105为一个,设置在终端10的前面板;在另一些实施例中,显示屏105为至少两个,分别设置在终端10的不同表面或呈折叠设计;在另一些实施例中,显示屏105是柔性显示屏,设置在终端10的弯曲表面上或折叠面上。甚至,显示屏105还设置成非矩形的不规则图形,也即异形屏。在一些实施例中,显示屏105采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The display screen 105 is used to display a UI (User Interface, user interface). In some embodiments, the UI includes graphics, text, icons, video, and any combination thereof. When the display screen 105 is a touch display screen, the display screen 105 also has the ability to collect touch signals on or above the surface of the display screen 105 . In some embodiments, the touch signal is input to the processor 101 as a control signal for processing. At this time, the display screen 105 is also used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards. In some embodiments, there is one display screen 105, which is arranged on the front panel of the terminal 10; in other embodiments, there are at least two display screens 105, which are respectively arranged on different surfaces of the terminal 10 or in a folding design; In some embodiments, the display screen 105 is a flexible display screen, and is disposed on a curved surface or a folded surface of the terminal 10 . Even, the display screen 105 is set as a non-rectangular irregular figure, that is, a special-shaped screen. In some embodiments, the display screen 105 is made of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode) and other materials.
摄像头组件106用于采集图像或视频。在一些实施例中,摄像头组件106包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其他融合拍摄功能。在一些实施例中,摄像头组件106还包括闪光灯。在一些实施例中,闪光灯是单色温闪光灯,在一些实施例中,闪光灯是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,用于不同色温下的光线补偿。The camera assembly 106 is used to capture images or videos. In some embodiments, the camera assembly 106 includes a front camera and a rear camera. Usually, the front camera is set on the front panel of the terminal, and the rear camera is set on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of the main camera, depth-of-field camera, wide-angle camera, and telephoto camera, so as to realize the fusion of the main camera and the depth-of-field camera to realize the background blur function. Combined with the wide-angle camera to achieve panoramic shooting and VR (Virtual Reality, virtual reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 106 also includes a flash. In some embodiments, the flash is a single-color temperature flash, and in some embodiments, the flash is a dual-color temperature flash. Dual color temperature flash refers to the combination of warm light flash and cold light flash, which is used for light compensation under different color temperatures.
在一些实施例中,音频电路107包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器101进行处理,或者输入至射频电路104以实现语音通信。出于立体声采集或降噪的目的,在一些实施例中,麦克风为多个,分别设置在终端10的不同部位。在一些实施例中,麦克风是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器101或射频电路104的电信号转换为声波。在一些实施例中,扬声器是传统的薄膜扬声器,在一些实施例中,扬声器以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅能够将电信号转换为人类可听见的声波,也能够将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路107还包括耳机插孔。In some embodiments, audio circuitry 107 includes a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals and input them to the processor 101 for processing, or input them to the radio frequency circuit 104 to realize voice communication. For the purpose of stereo sound collection or noise reduction, in some embodiments, there are multiple microphones, which are respectively arranged in different parts of the terminal 10 . In some embodiments, the microphone is an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 101 or the radio frequency circuit 104 into sound waves. In some embodiments, the speaker is a conventional membrane speaker, and in some embodiments, the speaker is a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into human-audible sound waves, but also convert electrical signals into human-inaudible sound waves for purposes such as distance measurement. In some embodiments, audio circuitry 107 also includes a headphone jack.
定位组件108用于定位终端10的当前地理位置,以实现导航或LBS(Location Based Service,基于位置的服务)。在一些实施例中,定位组件107是基于美国的GPS(Global Positioning System,全球定位系统)、中国的北斗定位系统或俄罗斯的格雷纳斯定位系统或欧盟的伽利略定位系统的定位组件。The positioning component 108 is used to locate the current geographic location of the terminal 10 to implement navigation or LBS (Location Based Service, location-based service). In some embodiments, the positioning component 107 is a positioning component based on the GPS (Global Positioning System) of the United States, the Beidou positioning system of China, the Greinus positioning system of Russia or the Galileo positioning system of the European Union.
电源109用于为终端10中的各个组件进行供电。在一些实施例中,电源109是交流电、直流电、一次性电池或可充电电池。当电源109包括可充电电池时,该可充电电池是有线充电电池或无线充电电池。有线充电电池是通过有线线路充电的电池,无线充电电池是通过无线线圈充电的电池。该可充电电池还用于支持快充技术。The power supply 109 is used to supply power to various components in the terminal 10 . In some embodiments, the power source 109 is alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 109 includes a rechargeable battery, the rechargeable battery is a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery is also used to support fast charging technology.
在一些实施例中,终端10还包括有一个或多个传感器110。该一个或多个传感器110包括但不限于:加速度传感器111、陀螺仪传感器112、压力传感器113、指纹传感器114、光学传感器115以及接近传感器116。In some embodiments, the terminal 10 further includes one or more sensors 110 . The one or more sensors 110 include, but are not limited to: an acceleration sensor 111 , a gyro sensor 112 , a pressure sensor 113 , a fingerprint sensor 114 , an optical sensor 115 and a proximity sensor 116 .
在一些实施例中,加速度传感器111检测以终端10建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器111用于检测重力加速度在三个坐标轴上的分量。在一些实施例中,处理器101根据加速度传感器111采集的重力加速度信号,控制显示屏105以横向视图或纵向视图进行用户界面的显示。在一些实施例中,加速度传感器111还用于游戏或者用户的运动数据的采集。In some embodiments, the acceleration sensor 111 detects the acceleration on the three coordinate axes of the coordinate system established by the terminal 10 . For example, the acceleration sensor 111 is used to detect the components of the gravitational acceleration on the three coordinate axes. In some embodiments, the processor 101 controls the display screen 105 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 111 . In some embodiments, the acceleration sensor 111 is also used for collecting game or user's motion data.
在一些实施例中,陀螺仪传感器112检测终端10的机体方向及转动角度,陀螺仪传感器112与加速度传感器111协同采集用户对终端10的3D动作。处理器101根据陀螺仪传感器112采集的数据,能够实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。In some embodiments, the gyro sensor 112 detects the body orientation and rotation angle of the terminal 10 , and the gyro sensor 112 and the acceleration sensor 111 cooperate to collect 3D actions of the user on the terminal 10 . According to the data collected by the gyro sensor 112, the processor 101 can realize the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control and inertial navigation.
在一些实施例中,压力传感器113设置在终端10的侧边框和/或显示屏105的下层。当压力传感器113设置在终端10的侧边框时,能够检测用户对终端10的握持信号,由处理器101根据压力传感器113采集的握持信号进行左右手识别或快捷操作。当压力传感器113设置在显示屏105的下层时,由处理器101根据用户对显示屏105的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。In some embodiments, the pressure sensor 113 is disposed on a side frame of the terminal 10 and/or a lower layer of the display screen 105 . When the pressure sensor 113 is arranged on the side frame of the terminal 10 , it can detect the user's grip signal on the terminal 10 , and the processor 101 performs left and right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 113 . When the pressure sensor 113 is arranged on the lower layer of the display screen 105, the processor 101 controls the operable controls on the UI interface according to the user's pressure operation on the display screen 105. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
指纹传感器114用于采集用户的指纹,由处理器101根据指纹传感器114采集到的指纹识别用户的身份,或者,由指纹传感器114根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器101授权该用户执行相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。在一些实施例中,指纹传感器114被设置在终端10的正面、背面或侧面。当终端10上设置有物理按键或厂商Logo时,指纹传感器114与物理按键或厂商Logo集成在一起。The fingerprint sensor 114 is used to collect the user's fingerprint, and the processor 101 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 114, or, the fingerprint sensor 114 identifies the user's identity according to the collected fingerprint. When the identity of the user is recognized as a trusted identity, the processor 101 authorizes the user to perform related sensitive operations, such sensitive operations include unlocking the screen, viewing encrypted information, downloading software, making payment, and changing settings. In some embodiments, the fingerprint sensor 114 is disposed on the front, back or side of the terminal 10 . When the terminal 10 is provided with a physical button or a manufacturer's Logo, the fingerprint sensor 114 is integrated with the physical button or the manufacturer's Logo.
光学传感器115用于采集环境光强度。在一个实施例中,处理器101根据光学传感器115采集的环境光强度,控制显示屏105的显示亮度。具体地,当环境光强度较高时,调高显示屏105的显示亮度;当环境光强度较低时,调低显示屏105的显示亮度。在另一个实施例中,处理器101还根据光学传感器115采集的环境光强度,动态调整摄像头组件106的拍摄参数。The optical sensor 115 is used to collect ambient light intensity. In one embodiment, the processor 101 controls the display brightness of the display screen 105 according to the ambient light intensity collected by the optical sensor 115 . Specifically, when the ambient light intensity is high, the display brightness of the display screen 105 is increased; when the ambient light intensity is low, the display brightness of the display screen 105 is decreased. In another embodiment, the processor 101 also dynamically adjusts shooting parameters of the camera assembly 106 according to the ambient light intensity collected by the optical sensor 115 .
接近传感器116,也称距离传感器,通常设置在终端10的前面板。接近传感器116用于采集用户与终端10的正面之间的距离。在一个实施例中,当接近传感器116检测到用户与终端10的正面之间的距离逐渐变小时,由处理器101控制显示屏105从亮屏状态切换为息屏状态;当接近传感器116检测到用户与终端10的正面之间的距离逐渐变大时,由处理器101控制显示屏105从息屏状态切换为亮屏状态。The proximity sensor 116 , also called a distance sensor, is usually arranged on the front panel of the terminal 10 . The proximity sensor 116 is used to collect the distance between the user and the front of the terminal 10 . In one embodiment, when the proximity sensor 116 detects that the distance between the user and the front of the terminal 10 gradually decreases, the processor 101 controls the display screen 105 to switch from the bright screen state to the off-screen state; when the proximity sensor 116 detects When the distance between the user and the front of the terminal 10 gradually increases, the processor 101 controls the display screen 105 to switch from the off-screen state to the on-screen state.
本领域技术人员能够理解,图10中示出的结构并不构成对终端10的限定,能够包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 10 does not constitute a limitation on the terminal 10, and may include more or less components than shown in the figure, or combine certain components, or adopt a different component arrangement.
在示例性实施例中,还提供了一种包括指令的非易失性计算机可读存储介质,例如包括指令的存储器102,上述指令由终端10的处理器101执行以完成上述实施例中的视频预览方法。可选地,该计算机可读存储介质是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium including instructions, such as a memory 102 including instructions, the above instructions are executed by the processor 101 of the terminal 10 to complete the video in the above embodiments preview method. Alternatively, the computer-readable storage medium is ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
在示例性实施例中,还提供了一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器101执行时实现上述实施例中的视频预览方法。In an exemplary embodiment, a computer program product is also provided, including a computer program/instruction, and when the computer program/instruction is executed by the processor 101, the video preview method in the foregoing embodiment is implemented.
本公开所有实施例均能够单独被执行,还能够与其他实施例相结合被执行,均视为本公开要求的保护范围。All embodiments of the present disclosure can be implemented independently, and can also be implemented in combination with other embodiments, all of which are regarded as the scope of protection required by the present disclosure.

Claims (52)

  1. 一种视频预览方法,由终端执行,包括:A video preview method, executed by a terminal, comprising:
    展示视频预览界面,所述视频预览界面包括可预览的视频;displaying a video preview interface, the video preview interface including previewable videos;
    从所述视频中提取多个视频帧,将所述多个视频帧生成多个多媒体资源;extracting a plurality of video frames from the video, and generating a plurality of multimedia resources from the plurality of video frames;
    基于所述多个多媒体资源的展示顺序,在所述视频预览界面中,同时预览展示所述多个多媒体资源。Based on the presentation sequence of the multiple multimedia resources, the multiple multimedia resources are simultaneously previewed and displayed on the video preview interface.
  2. 根据权利要求1所述的视频预览方法,其中,所述从所述视频中提取多个视频帧,包括:The video preview method according to claim 1, wherein said extracting a plurality of video frames from said video comprises:
    将所述视频转换为视频帧序列;converting said video to a sequence of video frames;
    获取当前登录账户的标签信息;Obtain the tag information of the currently logged in account;
    基于所述标签信息,从所述视频帧序列中提取与所述标签信息匹配的所述多个视频帧。Based on the tag information, the plurality of video frames matching the tag information are extracted from the sequence of video frames.
  3. 根据权利要求2所述的视频预览方法,其中,所述基于所述标签信息,从所述视频帧序列中提取与所述标签信息匹配的所述多个视频帧,包括:The video preview method according to claim 2, wherein said extracting the plurality of video frames matching the tag information from the sequence of video frames based on the tag information comprises:
    确定所述视频帧序列中的每个视频帧的视频标签;determining a video tag for each video frame in the sequence of video frames;
    确定每个所述视频帧的视频标签与所述标签信息之间的匹配度;determining a degree of matching between the video tag of each of the video frames and the tag information;
    基于每个所述视频帧与所述标签信息之间的匹配度,从所述视频帧序列中提取匹配度最高的第一数量的视频帧。Based on the matching degree between each of the video frames and the tag information, extract a first number of video frames with the highest matching degree from the sequence of video frames.
  4. 根据权利要求3所述的视频预览方法,其中,所述确定所述视频帧序列中的每个视频帧的视频标签,包括:The video preview method according to claim 3, wherein said determining the video tag of each video frame in the sequence of video frames comprises:
    对每个所述视频帧图像识别,确定所述视频帧的风格信息;For each video frame image recognition, determine the style information of the video frame;
    基于所述视频帧的风格信息,确定所述视频帧的视频标签。Based on the style information of the video frame, a video tag of the video frame is determined.
  5. 根据权利要求1所述的视频预览方法,其中,所述从所述视频中提取多个视频帧,包括:The video preview method according to claim 1, wherein said extracting a plurality of video frames from said video comprises:
    将所述视频转换为视频帧序列;converting said video to a sequence of video frames;
    在所述视频帧序列中,每间隔第二数量的视频帧提取一个目标视频帧,得到所述多个视频帧。In the sequence of video frames, a target video frame is extracted every interval of a second number of video frames to obtain the plurality of video frames.
  6. 根据权利要求2或5所述的视频预览方法,其中,所述将所述视频转换为视频帧序列,包括:The video preview method according to claim 2 or 5, wherein said converting said video into a sequence of video frames comprises:
    基于采样时长,将所述视频划分成多个视频段;Based on the sampling duration, dividing the video into multiple video segments;
    从每个所述视频段中提取第三数量的视频帧;extracting a third number of video frames from each of said video segments;
    将从每个所述视频段中提取的视频帧组成所述视频帧序列。The video frames extracted from each of the video segments are composed into the video frame sequence.
  7. 根据权利要求1所述的视频预览方法,其中,所述基于所述多个多媒体资源的展示顺序,在所述视频预览界面中,同时预览展示所述多个多媒体资源,包括:The video preview method according to claim 1, wherein, based on the presentation sequence of the multiple multimedia resources, simultaneously previewing and displaying the multiple multimedia resources in the video preview interface includes:
    基于所述多个多媒体资源的展示顺序,在所述视频预览界面中的第一预览框架内,同时预览展示所述多个多媒体资源;Based on the presentation order of the multiple multimedia resources, simultaneously preview and display the multiple multimedia resources in the first preview frame in the video preview interface;
    其中,所述多个多媒体资源的数量为M×N,所述第一预览框架包括M×N个预览框,每个所述预览框用于展示一个所述多媒体资源,M和N均为大于1的整数。Wherein, the number of the plurality of multimedia resources is M×N, the first preview frame includes M×N preview frames, each of the preview frames is used to display one of the multimedia resources, and both M and N are greater than Integer of 1.
  8. 根据权利要求7所述的视频预览方法,其中,所述方法还包括:The video preview method according to claim 7, wherein said method further comprises:
    确定每个所述多媒体资源与当前登录账户的标签信息之间的匹配度;determining the degree of matching between each of the multimedia resources and the label information of the current login account;
    基于所述匹配度,设置用于展示所述多媒体资源的预览框的尺寸。Based on the matching degree, a size of a preview frame for displaying the multimedia resource is set.
  9. 根据权利要求7所述的视频预览方法,其中,所述方法还包括:The video preview method according to claim 7, wherein said method further comprises:
    确定所述视频的视频类型匹配的所述第一预览框架,不同视频类型对应于不同结构的 所述第一预览框架;或者,Determine the first preview frame that matches the video type of the video, and different video types correspond to the first preview frames of different structures; or,
    确定所述终端的终端类型匹配的所述第一预览框架,不同终端类型对应于不同结构的所述第一预览框架;或者,determining the first preview frame that matches the terminal type of the terminal, where different terminal types correspond to the first preview frames of different structures; or,
    确定所述视频预览界面的显示比例匹配的所述第一预览框架,所述显示比例为所述视频预览界面占显示屏幕的比例,不同显示比例对应于不同结构的所述第一预览框架。Determine the first preview frame that matches the display ratio of the video preview interface, where the display ratio is the ratio of the video preview interface to the display screen, and different display ratios correspond to the first preview frames with different structures.
  10. 根据权利要求7所述的视频预览方法,其中,所述视频预览界面包括可预览的多个目标视频,所述多个目标视频包括所述视频;所述基于所述多个多媒体资源的展示顺序,在所述视频预览界面中,同时预览展示所述多个多媒体资源,包括:The video preview method according to claim 7, wherein the video preview interface includes multiple target videos that can be previewed, and the multiple target videos include the video; the display sequence based on the multiple multimedia resources , in the video preview interface, simultaneously preview and display the multiple multimedia resources, including:
    确定所述多个目标视频在所述视频预览界面中的布局信息;determining the layout information of the plurality of target videos in the video preview interface;
    确定所述布局信息匹配的第二预览框架;determining a second preview frame matching the layout information;
    在所述第二预览框架中同时预览展示所述多个目标视频的多媒体资源;Simultaneously preview multimedia resources displaying the plurality of target videos in the second preview frame;
    其中,所述第二预览框架包括多个所述第一预览框架,每个所述第一预览框架用于预览展示一个所述目标视频的多媒体资源。Wherein, the second preview frame includes a plurality of the first preview frames, and each of the first preview frames is used to preview a multimedia resource showing one target video.
  11. 根据权利要求1所述的视频预览方法,其中,所述基于所述多个多媒体资源的展示顺序,在所述视频预览界面中,同时预览展示所述多个多媒体资源,包括:The video preview method according to claim 1, wherein, based on the presentation sequence of the multiple multimedia resources, simultaneously previewing and displaying the multiple multimedia resources in the video preview interface includes:
    基于所述多个多媒体资源的展示顺序,在所述视频预览界面中确定每个所述多媒体资源的展示位置,在每个所述多媒体资源的展示位置上,同时播放所述多个多媒体资源;或者,Based on the display order of the multiple multimedia resources, determine the display position of each of the multimedia resources in the video preview interface, and play the multiple multimedia resources at the same time at each display position of the multimedia resources; or,
    基于所述多个多媒体资源的展示顺序,在所述视频预览界面中轮流播放所述多个多媒体资源,展示未播放的所述多媒体资源的缩略图。Based on the presentation order of the multiple multimedia resources, the multiple multimedia resources are played in turn in the video preview interface, and thumbnails of the unplayed multimedia resources are displayed.
  12. 根据权利要求1所述的视频预览方法,其中,所述视频预览界面中展示有所述视频的封面,所述封面用于触发视频预览请求;所述方法还包括:The video preview method according to claim 1, wherein a cover of the video is displayed in the video preview interface, and the cover is used to trigger a video preview request; the method further comprises:
    接收所述视频预览请求;receiving the video preview request;
    基于所述视频预览请求,执行所述从所述视频中提取多个视频帧,将所述多个视频帧生成多个多媒体资源的步骤。Based on the video preview request, the step of extracting multiple video frames from the video and generating multiple multimedia resources from the multiple video frames is performed.
  13. 根据权利要求12所述的视频预览方法,其中,所述接收所述视频预览请求,包括:The video preview method according to claim 12, wherein said receiving the video preview request comprises:
    响应于在所述封面上检测到鼠标的悬停操作,接收基于所述悬停操作的所述视频预览请求;或者,receiving the video preview request based on the hover operation in response to detecting a mouse hover operation on the cover; or,
    所述视频预览界面包括预览入口,响应于基于所述预览入口的触发操作,接收基于所述触发操作的所述视频预览请求。The video preview interface includes a preview entry, and in response to a trigger operation based on the preview entry, the video preview request based on the trigger operation is received.
  14. 根据权利要求1所述的视频预览方法,其中,所述方法还包括以下至少一种实现方式:The video preview method according to claim 1, wherein the method further comprises at least one of the following implementations:
    基于每个所述多媒体资源对应的视频帧在所述视频中的位置,确定所述多个多媒体资源的展示顺序;或者,Based on the position of the video frame corresponding to each of the multimedia resources in the video, determine the presentation order of the multiple multimedia resources; or,
    基于所述多个多媒体资源之间的相似度,确定所述多个多媒体资源的展示顺序,其中,相似度小于相似度阈值的多个多媒体资源在所述视频预览界面中的展示位置不相邻。Based on the similarity between the multiple multimedia resources, determine the display order of the multiple multimedia resources, wherein the display positions of the multiple multimedia resources whose similarity is smaller than the similarity threshold in the video preview interface are not adjacent .
  15. 一种视频预览方法,由终端执行,包括:A video preview method, executed by a terminal, comprising:
    展示视频预览界面,所述视频预览界面中展示有视频的封面;Displaying a video preview interface, where a cover of the video is displayed in the video preview interface;
    响应于基于所述封面的视频预览操作,在所述视频预览界面中展示所述视频对应的第一预览框架,所述第一预览框架包括多个多媒体资源,且每个所述多媒体资源由所述视频中的至少一个视频帧生成。In response to the video preview operation based on the cover, a first preview frame corresponding to the video is displayed in the video preview interface, the first preview frame includes a plurality of multimedia resources, and each of the multimedia resources is determined by the At least one video frame in the video is generated.
  16. 根据权利要求15所述的视频预览方法,其中,所述方法还包括:The video preview method according to claim 15, wherein said method further comprises:
    响应于在所述封面上检测到鼠标的悬停操作,确定检测到所述视频预览操作;或者,In response to detecting a hovering operation of a mouse on the cover, determining that the video preview operation is detected; or,
    所述视频预览界面包括预览入口,响应于基于所述预览入口的触发操作,确定检测到所述视频预览操作。The video preview interface includes a preview entry, and in response to a trigger operation based on the preview entry, it is determined that the video preview operation is detected.
  17. 一种视频预览装置,包括:A video preview device, comprising:
    第一展示单元,被配置为展示视频预览界面,所述视频预览界面包括可预览的视频;The first display unit is configured to display a video preview interface, and the video preview interface includes previewable videos;
    生成单元,被配置为执行从所述视频中提取多个视频帧,将所述多个视频帧生成多个多媒体资源;A generating unit configured to extract a plurality of video frames from the video, and generate a plurality of multimedia resources from the plurality of video frames;
    所述第一展示单元,被配置为基于所述多个多媒体资源的展示顺序,在所述视频预览界面中,同时预览展示所述多个多媒体资源。The first display unit is configured to simultaneously preview and display the multiple multimedia resources in the video preview interface based on the display sequence of the multiple multimedia resources.
  18. 根据权利要求17所述的视频预览装置,其中,所述生成单元,包括:The video preview device according to claim 17, wherein the generating unit includes:
    转换子单元,被配置为将所述视频转换为视频帧序列;a conversion subunit configured to convert the video into a sequence of video frames;
    获取子单元,被配置为获取当前登录账户的标签信息;The obtaining subunit is configured to obtain the label information of the current login account;
    提取子单元,被配置为基于所述标签信息,从所述视频帧序列中提取与所述标签信息匹配的所述多个视频帧。The extracting subunit is configured to extract the plurality of video frames matching the tag information from the sequence of video frames based on the tag information.
  19. 根据权利要求18所述的视频预览装置,其中,所述提取子单元,被配置为确定所述视频帧序列中的每个视频帧的视频标签;确定每个所述视频帧的视频标签与所述标签信息之间的匹配度;基于每个所述视频帧与所述标签信息之间的匹配度,从所述视频帧序列中提取匹配度最高的第一数量的视频帧。The video preview device according to claim 18, wherein the extracting subunit is configured to determine the video tag of each video frame in the sequence of video frames; The matching degree between the label information; based on the matching degree between each of the video frames and the label information, extracting a first number of video frames with the highest matching degree from the video frame sequence.
  20. 根据权利要求19所述的视频预览装置,其中,所述提取子单元,被配置为对每个所述视频帧图像识别,确定所述视频帧的风格信息;基于所述视频帧的风格信息,确定所述视频帧的视频标签。The video preview device according to claim 19, wherein the extracting subunit is configured to recognize each video frame image and determine the style information of the video frame; based on the style information of the video frame, A video tag is determined for the video frame.
  21. 根据权利要求17所述的视频预览装置,其中,所述生成单元,包括:The video preview device according to claim 17, wherein the generating unit comprises:
    转换子单元,被配置为将所述视频转换为视频帧序列;a conversion subunit configured to convert the video into a sequence of video frames;
    提取子单元,被配置为在所述视频帧序列中,每间隔第二数量的视频帧提取一个目标视频帧,得到所述多个视频帧。The extracting subunit is configured to extract a target video frame every interval of a second number of video frames in the sequence of video frames to obtain the plurality of video frames.
  22. 根据权利要求18或21所述的视频预览装置,其中,所述转换子单元,被配置为基于采样时长,将所述视频划分成多个视频段;从每个所述视频段中提取第三数量的视频帧;将从每个所述视频段中提取的视频帧组成所述视频帧序列。The video preview device according to claim 18 or 21, wherein the conversion subunit is configured to divide the video into a plurality of video segments based on the sampling duration; extract the third video segment from each of the video segments the number of video frames; the video frames extracted from each of the video segments to form the video frame sequence.
  23. 根据权利要求17所述的视频预览装置,其中,所述第一展示单元,被配置为基于所述多个多媒体资源的展示顺序,在所述视频预览界面中的第一预览框架内,同时预览展示所述多个多媒体资源;The video preview device according to claim 17, wherein the first presentation unit is configured to simultaneously preview within the first preview frame in the video preview interface based on the presentation order of the plurality of multimedia resources displaying the plurality of multimedia resources;
    其中,所述多个多媒体资源的数量为M×N,所述第一预览框架包括M×N个预览框,每个所述预览框用于展示一个所述多媒体资源,M和N均为大于1的整数。Wherein, the number of the plurality of multimedia resources is M×N, the first preview frame includes M×N preview frames, each of the preview frames is used to display one of the multimedia resources, and both M and N are greater than Integer of 1.
  24. 根据权利要求23所述的视频预览装置,其中,所述装置还包括:The video preview device according to claim 23, wherein the device further comprises:
    第一确定单元,被配置为确定每个所述多媒体资源与当前登录账户的标签信息之间的匹配度,基于所述匹配度,设置用于展示所述多媒体资源的预览框的尺寸。The first determination unit is configured to determine a degree of matching between each of the multimedia resources and the label information of the current login account, and based on the degree of matching, set a size of a preview frame for displaying the multimedia resources.
  25. 根据权利要求23所述的视频预览装置,其中,所述装置还包括:The video preview device according to claim 23, wherein the device further comprises:
    第一确定单元,被配置为确定所述视频的视频类型匹配的所述第一预览框架,不同视频类型对应于不同结构的所述第一预览框架;或者,The first determining unit is configured to determine the first preview frame that matches the video type of the video, and different video types correspond to the first preview frames of different structures; or,
    所述第一确定单元,被配置为确定所述终端的终端类型匹配的所述第一预览框架,不同终端类型对应于不同结构的所述第一预览框架;或者,The first determining unit is configured to determine the first preview frame that matches the terminal type of the terminal, and different terminal types correspond to the first preview frames of different structures; or,
    所述第一确定单元,被配置为确定所述视频预览界面的显示比例匹配的所述第一预览框架,所述显示比例为所述视频预览界面占显示屏幕的比例,不同显示比例对应于不同结构的所述第一预览框架。The first determining unit is configured to determine the first preview frame that matches the display ratio of the video preview interface, where the display ratio is the ratio of the video preview interface to the display screen, and different display ratios correspond to different The first preview frame of the structure.
  26. 根据权利要求24所述的视频预览装置,其中,所述视频预览界面包括可预览的多个目标视频,所述多个目标视频包括所述视频;所述第一展示单元,被配置为确定所述多个视频在所述视频预览界面中的布局信息;确定所述布局信息匹配的第二预览框架;在所述第二预览框架中同时预览展示所述多个视频的多媒体资源;The video preview device according to claim 24, wherein the video preview interface includes a plurality of target videos that can be previewed, and the plurality of target videos include the video; the first display unit is configured to determine the The layout information of the plurality of videos in the video preview interface; determine the second preview frame that the layout information matches; preview and display the multimedia resources of the plurality of videos in the second preview frame;
    其中,所述第二预览框架包括多个所述第一预览框架,每个所述第一预览框架用于预览展示一个所述目标视频的多媒体资源。Wherein, the second preview frame includes a plurality of the first preview frames, and each of the first preview frames is used to preview a multimedia resource showing one target video.
  27. 根据权利要求17所述的视频预览装置,其中,所述第一展示单元,被配置为基于所述多个多媒体资源的展示顺序,在所述视频预览界面中确定每个所述多媒体资源的展示位置,在每个所述多媒体资源的展示位置上,同时播放所述多个多媒体资源;或者,The video preview device according to claim 17, wherein the first presentation unit is configured to determine the presentation of each of the multimedia resources in the video preview interface based on the presentation order of the plurality of multimedia resources position, playing the multiple multimedia resources at the same time at each display position of the multimedia resource; or,
    所述第一展示单元,被配置为基于所述多个多媒体资源的展示顺序,在所述视频预览界面中轮流播放所述多个多媒体资源,展示未播放的所述多媒体资源的缩略图。The first display unit is configured to play the multiple multimedia resources in turn on the video preview interface based on the display sequence of the multiple multimedia resources, and display thumbnails of the unplayed multimedia resources.
  28. 根据权利要求17所述的视频预览装置,其中,所述视频预览界面中展示有所述视频的封面,所述封面用于触发视频预览请求;所述装置还包括:The video preview device according to claim 17, wherein, the cover of the video is displayed in the video preview interface, and the cover is used to trigger a video preview request; the device further comprises:
    接收单元,被配置为接收所述视频预览请求;a receiving unit configured to receive the video preview request;
    所述生成单元,被配置为基于所述视频预览请求,从所述视频中提取所述多个视频帧,将所述多个视频帧生成所述多个多媒体资源。The generating unit is configured to extract the multiple video frames from the video based on the video preview request, and generate the multiple multimedia resources from the multiple video frames.
  29. 根据权利要求28所述的视频预览装置,其中,所述接收单元,被配置为响应于在所述封面上检测到鼠标的悬停操作,接收基于所述悬停操作的所述视频预览请求;或者,The video preview device according to claim 28, wherein the receiving unit is configured to receive the video preview request based on the hovering operation in response to detecting a mouse hovering operation on the cover; or,
    所述视频预览界面包括预览入口,所述接收单元,被配置为响应于基于所述预览入口的触发操作,接收基于所述触发操作的所述视频预览请求。The video preview interface includes a preview entry, and the receiving unit is configured to, in response to a trigger operation based on the preview entry, receive the video preview request based on the trigger operation.
  30. 根据权利要求17所述的视频预览装置,其中,所述装置还包括:The video preview device according to claim 17, wherein the device further comprises:
    第一确定单元,被配置为基于每个所述多媒体资源对应的视频帧在所述视频中的位置,确定所述多个多媒体资源的展示顺序;或者,The first determining unit is configured to determine the display sequence of the multiple multimedia resources based on the position of the video frame corresponding to each of the multimedia resources in the video; or,
    所述第一确定单元,被配置为基于所述多个多媒体资源之间的相似度,确定所述多个多媒体资源的展示顺序,其中,相似度小于相似度阈值的多个多媒体资源在所述视频预览界面中的展示位置不相邻。The first determining unit is configured to determine a display order of the multiple multimedia resources based on the similarity between the multiple multimedia resources, wherein the multiple multimedia resources whose similarity is smaller than a similarity threshold are in the The placements in the video preview interface are not adjacent.
  31. 一种视频预览装置,包括:A video preview device, comprising:
    第二展示单元,被配置为展示视频预览界面,所述视频预览界面中展示有视频的封面;The second display unit is configured to display a video preview interface, and the cover of the video is displayed in the video preview interface;
    所述第二展示单元,被配置为响应于基于所述封面的视频预览操作,在所述视频预览界面中展示所述视频对应的第一预览框架,所述第一预览框架包括多个多媒体资源,且每个所述多媒体资源由所述视频中的至少一个视频帧生成。The second presentation unit is configured to display a first preview frame corresponding to the video in the video preview interface in response to the video preview operation based on the cover, and the first preview frame includes a plurality of multimedia resources , and each of the multimedia resources is generated by at least one video frame in the video.
  32. 根据权利要求31所述的视频预览装置,其中,所述装置还包括:The video preview device according to claim 31, wherein the device further comprises:
    第二确定单元,被配置为响应于在所述封面上检测到鼠标的悬停操作,确定检测到所述视频预览操作;或者,The second determining unit is configured to determine that the video preview operation is detected in response to detecting a mouse hovering operation on the cover; or,
    所述视频预览界面包括预览入口,所述第二确定单元,被配置为响应于基于所述预览入口的触发操作,确定检测到所述视频预览操作。The video preview interface includes a preview entry, and the second determining unit is configured to determine that the video preview operation is detected in response to a trigger operation based on the preview entry.
  33. 一种终端,包括:A terminal comprising:
    处理器;processor;
    用于存储所述处理器可执行指令的存储器;memory for storing said processor-executable instructions;
    其中,所述处理器被配置为执行所述指令,以实现下述步骤:Wherein, the processor is configured to execute the instructions to achieve the following steps:
    展示视频预览界面,所述视频预览界面包括可预览的视频;displaying a video preview interface, the video preview interface including previewable videos;
    从所述视频中提取多个视频帧,将所述多个视频帧生成多个多媒体资源;extracting a plurality of video frames from the video, and generating a plurality of multimedia resources from the plurality of video frames;
    基于所述多个多媒体资源的展示顺序,在所述视频预览界面中,同时预览展示所述多个多媒体资源。Based on the presentation sequence of the multiple multimedia resources, the multiple multimedia resources are simultaneously previewed and displayed on the video preview interface.
  34. 根据权利要求33所述的终端,其中,所述处理器还被配置为执行所述指令,以实现下述步骤:The terminal according to claim 33, wherein the processor is further configured to execute the instructions to implement the following steps:
    将所述视频转换为视频帧序列;converting said video to a sequence of video frames;
    获取当前登录账户的标签信息;Obtain the label information of the currently logged in account;
    基于所述标签信息,从所述视频帧序列中提取与所述标签信息匹配的所述多个视频 帧。Based on the tag information, extracting the plurality of video frames matching the tag information from the sequence of video frames.
  35. 根据权利要求34所述的终端,其中,所述处理器还被配置为执行所述指令,以实现下述步骤:The terminal according to claim 34, wherein the processor is further configured to execute the instructions to implement the following steps:
    确定所述视频帧序列中的每个视频帧的视频标签;determining a video tag for each video frame in the sequence of video frames;
    确定每个所述视频帧的视频标签与所述标签信息之间的匹配度;determining a degree of matching between the video tag of each of the video frames and the tag information;
    基于每个所述视频帧与所述标签信息之间的匹配度,从所述视频帧序列中提取匹配度最高的第一数量的视频帧。Based on the matching degree between each of the video frames and the tag information, extract a first number of video frames with the highest matching degree from the sequence of video frames.
  36. 根据权利要求35所述的终端,其中,所述处理器还被配置为执行所述指令,以实现下述步骤:The terminal according to claim 35, wherein the processor is further configured to execute the instructions to implement the following steps:
    对每个所述视频帧图像识别,确定所述视频帧的风格信息;For each video frame image recognition, determine the style information of the video frame;
    基于所述视频帧的风格信息,确定所述视频帧的视频标签。Based on the style information of the video frame, a video tag of the video frame is determined.
  37. 根据权利要求33所述的终端,其中,所述处理器还被配置为执行所述指令,以实现下述步骤:The terminal according to claim 33, wherein the processor is further configured to execute the instructions to implement the following steps:
    将所述视频转换为视频帧序列;converting said video to a sequence of video frames;
    在所述视频帧序列中,每间隔第二数量的视频帧提取一个目标视频帧,得到所述多个视频帧。In the sequence of video frames, a target video frame is extracted every interval of a second number of video frames to obtain the plurality of video frames.
  38. 根据权利要求34或37所述的终端,其中,所述处理器还被配置为执行所述指令,以实现下述步骤:The terminal according to claim 34 or 37, wherein the processor is further configured to execute the instructions to implement the following steps:
    基于采样时长,将所述视频划分成多个视频段;Based on the sampling duration, dividing the video into multiple video segments;
    从每个所述视频段中提取第三数量的视频帧;extracting a third number of video frames from each of said video segments;
    将从每个所述视频段中提取的视频帧组成所述视频帧序列。The video frames extracted from each of the video segments are composed into the video frame sequence.
  39. 根据权利要求33所述的终端,其中,所述处理器还被配置为执行所述指令,以实现下述步骤:The terminal according to claim 33, wherein the processor is further configured to execute the instructions to implement the following steps:
    基于所述多个多媒体资源的展示顺序,在所述视频预览界面中的第一预览框架内,同时预览展示所述多个多媒体资源;Based on the presentation order of the multiple multimedia resources, simultaneously preview and display the multiple multimedia resources in the first preview frame in the video preview interface;
    其中,所述多个多媒体资源的数量为M×N,所述第一预览框架包括M×N个预览框,每个所述预览框用于展示一个所述多媒体资源,M和N均为大于1的整数。Wherein, the number of the plurality of multimedia resources is M×N, the first preview frame includes M×N preview frames, each of the preview frames is used to display one of the multimedia resources, and both M and N are greater than Integer of 1.
  40. 根据权利要求39所述的终端,其中,所述处理器还被配置为执行所述指令,以实现下述步骤:The terminal according to claim 39, wherein the processor is further configured to execute the instructions to implement the following steps:
    确定每个所述多媒体资源与当前登录账户的标签信息之间的匹配度;determining the degree of matching between each of the multimedia resources and the label information of the current login account;
    基于所述匹配度,设置用于展示所述多媒体资源的预览框的尺寸。Based on the matching degree, a size of a preview frame for displaying the multimedia resource is set.
  41. 根据权利要求39所述的终端,其中,所述处理器还被配置为执行所述指令,以实现下述步骤:The terminal according to claim 39, wherein the processor is further configured to execute the instructions to implement the following steps:
    确定所述视频的视频类型匹配的所述第一预览框架,不同视频类型对应于不同结构的所述第一预览框架;或者,Determine the first preview frame that matches the video type of the video, and different video types correspond to the first preview frames of different structures; or,
    确定所述终端的终端类型匹配的所述第一预览框架,不同终端类型对应于不同结构的所述第一预览框架;或者,determining the first preview frame that matches the terminal type of the terminal, where different terminal types correspond to the first preview frames of different structures; or,
    确定所述视频预览界面的显示比例匹配的所述第一预览框架,所述显示比例为所述视频预览界面占显示屏幕的比例,不同显示比例对应于不同结构的所述第一预览框架。Determine the first preview frame that matches the display ratio of the video preview interface, where the display ratio is the ratio of the video preview interface to the display screen, and different display ratios correspond to the first preview frames with different structures.
  42. 根据权利要求39所述的终端,其中,所述视频预览界面包括可预览的多个目标视频,所述多个目标视频包括所述视频;所述处理器还被配置为执行所述指令,以实现下述步骤:The terminal according to claim 39, wherein the video preview interface includes a plurality of target videos that can be previewed, and the plurality of target videos include the video; the processor is also configured to execute the instructions to Perform the following steps:
    确定所述多个目标视频在所述视频预览界面中的布局信息;determining the layout information of the plurality of target videos in the video preview interface;
    确定所述布局信息匹配的第二预览框架;determining a second preview frame matching the layout information;
    在所述第二预览框架中同时预览展示所述多个目标视频的多媒体资源;Simultaneously preview multimedia resources displaying the plurality of target videos in the second preview frame;
    其中,所述第二预览框架包括多个所述第一预览框架,每个所述第一预览框架用于预览展示一个所述目标视频的多媒体资源。Wherein, the second preview frame includes a plurality of the first preview frames, and each of the first preview frames is used to preview a multimedia resource displaying one of the target videos.
  43. 根据权利要求33所述的终端,其中,所述处理器还被配置为执行所述指令,以实现下述步骤:The terminal according to claim 33, wherein the processor is further configured to execute the instructions to implement the following steps:
    基于所述多个多媒体资源的展示顺序,在所述视频预览界面中确定每个所述多媒体资源的展示位置,在每个所述多媒体资源的展示位置上,同时播放所述多个多媒体资源;或者,Based on the display order of the multiple multimedia resources, determine the display position of each of the multimedia resources in the video preview interface, and play the multiple multimedia resources at the same time at each display position of the multimedia resources; or,
    基于所述多个多媒体资源的展示顺序,在所述视频预览界面中轮流播放所述多个多媒体资源,展示未播放的所述多媒体资源的缩略图。Based on the presentation order of the multiple multimedia resources, the multiple multimedia resources are played in turn in the video preview interface, and thumbnails of the unplayed multimedia resources are displayed.
  44. 根据权利要求33所述的终端,其中,所述视频预览界面中展示有所述视频的封面,所述封面用于触发视频预览请求;所述处理器还被配置为执行所述指令,以实现下述步骤:The terminal according to claim 33, wherein the cover of the video is displayed in the video preview interface, and the cover is used to trigger a video preview request; the processor is further configured to execute the instructions to realize Follow the steps below:
    接收所述视频预览请求;receiving the video preview request;
    基于所述视频预览请求,执行所述从所述视频中提取多个视频帧,将所述多个视频帧生成多个多媒体资源的步骤。Based on the video preview request, the step of extracting multiple video frames from the video and generating multiple multimedia resources from the multiple video frames is performed.
  45. 根据权利要求44所述的终端,其中,所述处理器还被配置为执行所述指令,以实现下述步骤:The terminal according to claim 44, wherein the processor is further configured to execute the instructions to implement the following steps:
    响应于在所述封面上检测到鼠标的悬停操作,接收基于所述悬停操作的所述视频预览请求;或者,receiving the video preview request based on the hover operation in response to detecting a mouse hover operation on the cover; or,
    所述视频预览界面包括预览入口,响应于基于所述预览入口的触发操作,接收基于所述触发操作的所述视频预览请求。The video preview interface includes a preview entry, and in response to a trigger operation based on the preview entry, the video preview request based on the trigger operation is received.
  46. 根据权利要求33所述的终端,其中,所述处理器还被配置为执行所述指令,以实现下述步骤:The terminal according to claim 33, wherein the processor is further configured to execute the instructions to implement the following steps:
    基于每个所述多媒体资源对应的视频帧在所述视频中的位置,确定所述多个多媒体资源的展示顺序;或者,Based on the position of the video frame corresponding to each of the multimedia resources in the video, determine the presentation order of the multiple multimedia resources; or,
    基于所述多个多媒体资源之间的相似度,确定所述多个多媒体资源的展示顺序,其中,相似度小于相似度阈值的多个多媒体资源在所述视频预览界面中的展示位置不相邻。Based on the similarity between the multiple multimedia resources, determine the display order of the multiple multimedia resources, wherein the display positions of the multiple multimedia resources whose similarity is smaller than the similarity threshold in the video preview interface are not adjacent .
  47. 一种终端,包括:A terminal comprising:
    处理器;processor;
    用于存储所述处理器可执行指令的存储器;memory for storing said processor-executable instructions;
    其中,所述处理器被配置为执行所述指令,以实现下述步骤:Wherein, the processor is configured to execute the instructions to achieve the following steps:
    展示视频预览界面,所述视频预览界面中展示有视频的封面;Displaying a video preview interface, where a cover of the video is displayed in the video preview interface;
    响应于基于所述封面的视频预览操作,在所述视频预览界面中展示所述视频对应的第一预览框架,所述第一预览框架包括多个多媒体资源,且每个所述多媒体资源由所述视频中的至少一个视频帧生成。In response to the video preview operation based on the cover, a first preview frame corresponding to the video is displayed in the video preview interface, the first preview frame includes a plurality of multimedia resources, and each of the multimedia resources is determined by the At least one video frame in the video is generated.
  48. 根据权利要求47所述的终端,其中,所述处理器还被配置为执行所述指令,以实现下述步骤:The terminal according to claim 47, wherein the processor is further configured to execute the instructions to implement the following steps:
    响应于在所述封面上检测到鼠标的悬停操作,确定检测到所述视频预览操作;或者,In response to detecting a hovering operation of a mouse on the cover, determining that the video preview operation is detected; or,
    所述视频预览界面包括预览入口,响应于基于所述预览入口的触发操作,确定检测到所述视频预览操作。The video preview interface includes a preview entry, and in response to a trigger operation based on the preview entry, it is determined that the video preview operation is detected.
  49. 一种非易失性计算机可读存储介质,其中,当所述非易失性计算机可读存储介质中的指令由终端的处理器执行时,使得所述终端能够执行下述步骤:A non-volatile computer-readable storage medium, wherein when instructions in the non-volatile computer-readable storage medium are executed by a processor of a terminal, the terminal is enabled to perform the following steps:
    展示视频预览界面,所述视频预览界面包括可预览的视频;displaying a video preview interface, the video preview interface including previewable videos;
    从所述视频中提取多个视频帧,将所述多个视频帧生成多个多媒体资源;extracting a plurality of video frames from the video, and generating a plurality of multimedia resources from the plurality of video frames;
    基于所述多个多媒体资源的展示顺序,在所述视频预览界面中,同时预览展示所述多个多媒体资源。Based on the presentation sequence of the multiple multimedia resources, the multiple multimedia resources are simultaneously previewed and displayed on the video preview interface.
  50. 一种非易失性计算机可读存储介质,其中,当所述非易失性计算机可读存储介质中的指令由终端的处理器执行时,使得所述终端能够执行下述步骤:A non-volatile computer-readable storage medium, wherein when instructions in the non-volatile computer-readable storage medium are executed by a processor of a terminal, the terminal is enabled to perform the following steps:
    展示视频预览界面,所述视频预览界面中展示有视频的封面;Displaying a video preview interface, where a cover of the video is displayed in the video preview interface;
    响应于基于所述封面的视频预览操作,在所述视频预览界面中展示所述视频对应的第一预览框架,所述第一预览框架包括多个多媒体资源,且每个所述多媒体资源由所述视频中的至少一个视频帧生成。In response to the video preview operation based on the cover, a first preview frame corresponding to the video is displayed in the video preview interface, the first preview frame includes a plurality of multimedia resources, and each of the multimedia resources is determined by the At least one video frame in the video is generated.
  51. 一种计算机程序产品,包括计算机程序/指令,其中,所述计算机程序/指令被处理器执行时实现下述步骤:A computer program product comprising computer programs/instructions, wherein the computer programs/instructions implement the following steps when executed by a processor:
    展示视频预览界面,所述视频预览界面包括可预览的视频;displaying a video preview interface, the video preview interface including previewable videos;
    从所述视频中提取多个视频帧,将所述多个视频帧生成多个多媒体资源;extracting a plurality of video frames from the video, and generating a plurality of multimedia resources from the plurality of video frames;
    基于所述多个多媒体资源的展示顺序,在所述视频预览界面中,同时预览展示所述多个多媒体资源。Based on the presentation sequence of the multiple multimedia resources, the multiple multimedia resources are simultaneously previewed and displayed on the video preview interface.
  52. 一种计算机程序产品,包括计算机程序/指令,其中,所述计算机程序/指令被处理器执行时实现下述步骤:A computer program product comprising computer programs/instructions, wherein the computer programs/instructions implement the following steps when executed by a processor:
    展示视频预览界面,所述视频预览界面中展示有视频的封面;Displaying a video preview interface, where a cover of the video is displayed in the video preview interface;
    响应于基于所述封面的视频预览操作,在所述视频预览界面中展示所述视频对应的第一预览框架,所述第一预览框架包括多个多媒体资源,且每个所述多媒体资源由所述视频中的至少一个视频帧生成。In response to the video preview operation based on the cover, a first preview frame corresponding to the video is displayed in the video preview interface, the first preview frame includes a plurality of multimedia resources, and each of the multimedia resources is determined by the At least one video frame in the video is generated.
PCT/CN2021/133221 2021-08-31 2021-11-25 Video preview method and terminal WO2023029237A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202111016537 2021-08-31
CN202111016537.3 2021-08-31
CN202111241441.7A CN114125531B (en) 2021-08-31 2021-10-25 Video preview method, device, terminal and storage medium
CN202111241441.7 2021-10-25

Publications (1)

Publication Number Publication Date
WO2023029237A1 true WO2023029237A1 (en) 2023-03-09

Family

ID=80376564

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/133221 WO2023029237A1 (en) 2021-08-31 2021-11-25 Video preview method and terminal

Country Status (2)

Country Link
CN (1) CN114125531B (en)
WO (1) WO2023029237A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117097954A (en) * 2023-09-13 2023-11-21 北京饼干科技有限公司 Video processing method, device, medium and equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080005128A1 (en) * 2006-06-30 2008-01-03 Samsung Electronics., Ltd. Method and system for addition of video thumbnail
CN102915194A (en) * 2012-11-13 2013-02-06 北京奇艺世纪科技有限公司 Method, device and mobile terminal for implementing video previews based on ME (mobile equipment)
CN102917270A (en) * 2011-08-04 2013-02-06 形山科技(深圳)有限公司 Multi-video dynamic-previewing method, device and system
CN103024567A (en) * 2012-12-06 2013-04-03 广东欧珀移动通信有限公司 Method and system for video preview of mobile terminal
CN104780417A (en) * 2015-03-20 2015-07-15 广东欧珀移动通信有限公司 Display method for preview video file, mobile terminal and system
CN109257611A (en) * 2017-07-12 2019-01-22 阿里巴巴集团控股有限公司 A kind of video broadcasting method, device, terminal device and server
CN109756767A (en) * 2017-11-06 2019-05-14 腾讯科技(深圳)有限公司 Preview data playback method, device and storage medium
CN111182359A (en) * 2019-12-30 2020-05-19 咪咕视讯科技有限公司 Video preview method, video frame extraction method, video processing device and storage medium
CN111641868A (en) * 2020-05-27 2020-09-08 维沃移动通信有限公司 Preview video generation method and device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104238893B (en) * 2013-06-08 2018-08-03 腾讯科技(深圳)有限公司 A kind of method and apparatus that video preview picture is shown
CN108924626B (en) * 2018-08-17 2021-02-23 腾讯科技(深圳)有限公司 Picture generation method, device, equipment and storage medium
CN110225390B (en) * 2019-06-20 2021-07-23 广州酷狗计算机科技有限公司 Video preview method, device, terminal and computer readable storage medium
CN110337011A (en) * 2019-07-17 2019-10-15 百度在线网络技术(北京)有限公司 Method for processing video frequency, device and equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080005128A1 (en) * 2006-06-30 2008-01-03 Samsung Electronics., Ltd. Method and system for addition of video thumbnail
CN102917270A (en) * 2011-08-04 2013-02-06 形山科技(深圳)有限公司 Multi-video dynamic-previewing method, device and system
CN102915194A (en) * 2012-11-13 2013-02-06 北京奇艺世纪科技有限公司 Method, device and mobile terminal for implementing video previews based on ME (mobile equipment)
CN103024567A (en) * 2012-12-06 2013-04-03 广东欧珀移动通信有限公司 Method and system for video preview of mobile terminal
CN104780417A (en) * 2015-03-20 2015-07-15 广东欧珀移动通信有限公司 Display method for preview video file, mobile terminal and system
CN109257611A (en) * 2017-07-12 2019-01-22 阿里巴巴集团控股有限公司 A kind of video broadcasting method, device, terminal device and server
CN109756767A (en) * 2017-11-06 2019-05-14 腾讯科技(深圳)有限公司 Preview data playback method, device and storage medium
CN111182359A (en) * 2019-12-30 2020-05-19 咪咕视讯科技有限公司 Video preview method, video frame extraction method, video processing device and storage medium
CN111641868A (en) * 2020-05-27 2020-09-08 维沃移动通信有限公司 Preview video generation method and device and electronic equipment

Also Published As

Publication number Publication date
CN114125531B (en) 2023-02-17
CN114125531A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN111079012B (en) Live broadcast room recommendation method and device, storage medium and terminal
CN109982102B (en) Interface display method and system for live broadcast room, live broadcast server and anchor terminal
CN109729372B (en) Live broadcast room switching method, device, terminal, server and storage medium
CN112118477B (en) Virtual gift display method, device, equipment and storage medium
CN109327608B (en) Song sharing method, terminal, server and system
CN113411680B (en) Multimedia resource playing method, device, terminal and storage medium
CN111026992B (en) Multimedia resource preview method, device, terminal, server and storage medium
WO2023000677A1 (en) Content item display method and apparatus
CN111711838B (en) Video switching method, device, terminal, server and storage medium
CN109982129B (en) Short video playing control method and device and storage medium
CN109618192B (en) Method, device, system and storage medium for playing video
CN111368114A (en) Information display method, device, equipment and storage medium
CN114245218B (en) Audio and video playing method and device, computer equipment and storage medium
CN114302160B (en) Information display method, device, computer equipment and medium
CN112257006A (en) Page information configuration method, device, equipment and computer readable storage medium
CN112131422A (en) Expression picture generation method, device, equipment and medium
CN113609358B (en) Content sharing method, device, electronic equipment and storage medium
CN113204672B (en) Resource display method, device, computer equipment and medium
CN112511889B (en) Video playing method, device, terminal and storage medium
CN112822544B (en) Video material file generation method, video synthesis method, device and medium
WO2023029237A1 (en) Video preview method and terminal
CN112004134B (en) Multimedia data display method, device, equipment and storage medium
CN113141538B (en) Media resource playing method, device, terminal, server and storage medium
CN112492331B (en) Live broadcast method, device, system and storage medium
CN114186083A (en) Information display method, device, terminal, server and storage medium

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE