Video playing method, device, equipment, medium and program product
By predicting the playback speed of video clips and building a personalized preview timeline, the problem in the existing technology of being unable to conduct video previews according to user preferences is solved, and the preview efficiency and user experience are improved.
Patent Information
- Application Number
- CN202410804615.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing video platforms cannot conduct video previews based on user preferences, resulting in low preview efficiency, waste of traffic, and network lags.
By predicting the playback speed of video clips based on the target user's historical video information and viewing behavior, we can build a personalized preview timeline, optimize video loading and playback, and provide preview videos that meet user preferences.
It improves preview efficiency, reduces overall preview time, reduces traffic waste and network burden, and provides a video experience that is more in line with user preferences.
Smart Images

Figure CN118764665A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of video processing technology, and in particular to a method, device, equipment, medium and program product for video playback. Background Art
[0002] Currently on long video platforms, the time spent on trial videos accounts for a large proportion of users' viewing time. Current trial videos are usually manually edited or automatically generated by recommendation algorithms, so users still need to perform trial viewing to understand whether they need to watch further. In the process of trial viewing, users need to randomly drag the video progress bar to preview. In the process of dragging the progress, it is easy to miss the content of interest, and thus cannot accurately judge whether they are interested in the current video, resulting in low trial viewing efficiency. In addition, the trial videos automatically generated by the recommendation algorithm are a collection of wonderful videos generated through group viewing behavior. The generated videos and the original videos are physically stored as independent videos and are not edited according to user preferences. Therefore, users still need to perform video preview actions, resulting in waste of traffic and network lag. Summary of the invention
[0003] The embodiments of the present application provide a method, apparatus, device, medium and program product for video playback to solve the existing problem of being unable to preview videos according to user preferences.
[0004] In order to solve the above technical problems, this application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for playing a video, including:
[0006] Predicting the playback speed of each video segment of the target video based on the historical video information and historical video viewing behavior of the target user;
[0007] Constructing a target preview timeline based on the prediction results of the playback speed of each of the video clips, wherein the target preview timeline is used to indicate the playback speed of each of the video clips;
[0008] The target video is loaded according to the playback speed indicated by the target preview timeline to obtain the target preview video.
[0009] Optionally, constructing a target preview timeline based on the prediction results of the playback speeds of the video clips includes:
[0010] Segmenting the target video according to the historical video information and the historical video viewing behavior to obtain multiple video segments of the target video;
[0011] The play speed of the video segments of the plurality of target videos is predicted according to the historical video information and the historical video viewing behavior to obtain the target preview timeline.
[0012] Optionally, predicting the playback speed of each video segment of the target video according to the historical video information and historical video viewing behavior of the target user includes:
[0013] Training a video playback speed prediction model according to the user's historical video information and historical video viewing behavior to obtain a trained video playback speed prediction model;
[0014] Inputting the target video into the trained video playback speed prediction model to obtain a predicted playback behavior of the target video;
[0015] The video playback speed prediction model performs the following processing on the input target video to obtain the predicted playback behavior of the target video:
[0016] The target video is segmented according to the parameters of the video playback speed prediction model to obtain a plurality of target video segments, and the user's playback behavior in each of the target video segments is predicted, and the predicted playback speed of the target video is obtained according to the playback behavior;
[0017] The multiple target video segments are merged, and the predicted playback speed of the target video is indicated in each video segment. The burr phenomenon of the merged target video is reduced through smoothing optimization processing to obtain the target preview timeline.
[0018] Optionally, also include:
[0019] Obtaining an instruction from a target user to end playing of the target preview video, and playing a video segment corresponding to the target video at the video segment corresponding to the instruction from the target user to end playing of the target preview video;
[0020] Obtaining a target viewing behavior of the target user on the target video;
[0021] The parameters of the video playback speed prediction model are optimized according to the target viewing behavior.
[0022] Optionally, the playback speed includes at least one of the following: skip, slow, normal speed and double speed;
[0023] The step of loading the target video according to the playback speed indicated by the target preview timeline includes:
[0024] For the skipped playback speed segment indicated by the target preview timeline, no frame of the corresponding video segment is loaded;
[0025] For the slow playback speed segment indicated by the target preview time axis, load all frames of the corresponding video segment;
[0026] For the normal speed playback speed segment indicated by the target preview time axis, load the corresponding odd number frames of the video segment;
[0027] For the playback speed segment indicated by the target preview time axis, the frame whose loading frame number modulo 1 of the corresponding video segment is loaded.
[0028] Optionally, before predicting the playback speed of each video segment of the target video according to the historical video information and historical video viewing behavior of the target user, the method further includes:
[0029] Get historical video content;
[0030] Extracting information from the historical video content to obtain historical video content information;
[0031] Segmenting the historical video content according to a preset time threshold to obtain a plurality of historical video segments, and marking the positions of the plurality of historical video segments in the video;
[0032] The user's historical video viewing behavior is extracted according to the multiple historical video clips, and the historical video viewing behavior includes at least one of the following: skipping, slowing down, repeatedly watching, pausing for a short time, posting comments, watching at normal speed and watching at double speed.
[0033] In a second aspect, an embodiment of the present application provides a video playback device, including:
[0034] A first processing module is used to predict the playback speed of each video segment of the target video according to the historical video information and historical video viewing behavior of the target user;
[0035] A second processing module, configured to construct a target preview timeline based on the playback speed prediction results of each of the video clips, wherein the target preview timeline is used to indicate the playback speed of each of the video clips;
[0036] The playing module is used to load the target video according to the playing speed indicated by the target preview timeline to obtain the target preview video.
[0037] Optionally, the second processing module includes:
[0038] A segmentation submodule, used for segmenting the target video according to the historical video information and the historical video viewing behavior to obtain a plurality of video segments of the target video;
[0039] The play speed prediction submodule is used to predict the play speed of the video segments of the plurality of target videos according to the historical video information and the historical video viewing behavior to obtain the target preview timeline.
[0040] Optionally, the first processing module includes:
[0041] A model training submodule, used to train a video playback speed prediction model according to the user's historical video information and historical video viewing behavior to obtain a trained video playback speed prediction model;
[0042] A prediction submodule, used for inputting the target video into the trained video playback speed prediction model to obtain the predicted playback behavior of the target video;
[0043] The video playback speed prediction model performs the following processing on the input target video to obtain the predicted playback behavior of the target video:
[0044] The target video is segmented into segments according to the parameters of the video playback speed prediction model to obtain a plurality of target video segments, and the user's playback behavior in each target video segment is predicted to obtain the predicted playback behavior of the target video.
[0045] Optionally, also include:
[0046] A first acquisition module is used to acquire an instruction from a target user to end playing of the target preview video, and to play a video segment corresponding to the target video at the video segment corresponding to the instruction from the target user to end playing of the target preview video;
[0047] A second acquisition module is used to acquire the target viewing behavior of the target user on the target video;
[0048] The optimization module is used to optimize the parameters of the video playback speed prediction model according to the target viewing behavior.
[0049] Optionally, the playback speed includes at least one of the following: skip, slow, normal speed and double speed;
[0050] The playback module comprises:
[0051] A first playback submodule, configured to not load any frame of the corresponding video segment for the skipped playback speed segment indicated by the target preview time axis;
[0052] A second playback submodule is used to load all frames of the corresponding video segment for the slow playback speed segment indicated by the target preview time axis;
[0053] A third playback submodule is used to load the corresponding odd-numbered frames of the video segment for the normal-speed playback speed segment indicated by the target preview time axis;
[0054] The fourth playback submodule is used to load the frame whose loading frame number modulo 1 of the corresponding video segment for the playback speed segment indicated by the target preview time axis.
[0055] Optionally, also include:
[0056] The third acquisition module is used to acquire historical video content;
[0057] A third processing module is used to extract information from the historical video content to obtain historical video content information;
[0058] A fourth processing module, configured to segment the historical video content according to a preset time threshold to obtain a plurality of historical video segments, and mark the positions of the plurality of historical video segments in the video;
[0059] The fifth processing module is used to extract the user's historical video viewing behavior based on the multiple historical video clips, and the historical video viewing behavior includes at least one of the following: skipping, slowing down, repeatedly watching, pausing for a short time, posting comments, watching at normal speed and watching at double speed.
[0060] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps in the method for video playback as described in any one of the first aspects.
[0061] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps in the video playback method as described in any one of the first aspects are implemented.
[0062] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps in the video playback method as described in any one of the first aspects.
[0063] In the present application, the playback speed of each video segment of the target video is predicted according to the historical video information and historical video viewing behavior of the target user; the playback behavior of the user in each segment of the corresponding video is predicted based on the user's historical preferences, so as to reduce the traffic waste caused by directly previewing the video and directly provide personalized preview segments that meet the user's preferences; a target preview timeline is constructed based on the playback speed prediction results of each of the video segments, wherein the target preview timeline is used to indicate the playback speed of each of the video segments; the target video is loaded according to the playback speed indicated by the target preview timeline to obtain the target preview video, and the target preview timeline with the playback speed is formed by the predicted playback behavior to cover the original target preview timeline, and the content is loaded and played according to the playback information of the target preview timeline, so as to obtain a preview video that is more in line with the user's preferences, thereby improving the efficiency of the preview, reducing the time spent on the overall preview, and solving the existing problem that the video cannot be previewed according to the user's preferences. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0065] Figure 1 is a flow chart of a video playback method provided by an embodiment of the present application;
[0066] Figure 2 This is a video loading schematic diagram of a video playback method provided in an embodiment of the present application;
[0067] Figure 3 It is a structural schematic diagram of a video playback device provided in an embodiment of the present application;
[0068] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0070] Please refer to Figure 1 , the embodiment of the present application provides a method for video playback, including:
[0071] Step 11: predicting the playback speed of each video segment of the target video based on the historical video information and historical video viewing behavior of the target user;
[0072] In an embodiment of the present application, the target video can be a video actively acquired by the user, or a video recommended to the user based on the user's preferences; a personalized preview clip that meets the user's preferences can be generated based on the user's historical preferences, thereby reducing the traffic waste caused by directly previewing the video, improving the efficiency of the preview, and reducing the time spent on the overall preview.
[0073] In an embodiment of the present application, the playback behavior of the target video includes at least one of the following: skip, slow, normal speed and double speed; the predicted playback behavior of the target video is obtained by inputting the target video into the trained video playback speed prediction model; the video playback speed prediction model is obtained by training the video playback speed prediction model according to the user's historical video information and historical video viewing behavior; wherein, the video playback speed prediction model performs the following processing on the input target video to obtain the predicted playback behavior of the target video: the target video is segmented according to the parameters of the video playback speed prediction model to obtain multiple target video segments, and the user's playback behavior in each target video segment is predicted to obtain the predicted playback behavior of the target video.
[0074] In an embodiment of the present application, the playback behavior of the target video is predicted based on the user's historical video information and historical video viewing behavior, thereby reducing the traffic waste caused by directly previewing the video and directly providing personalized preview clips that meet the user's preferences, thereby improving the efficiency of the preview and reducing the time spent on the overall preview.
[0075] Step 12: constructing a target preview timeline based on the playback speed prediction results of each of the video clips, wherein the target preview timeline is used to indicate the playback speed of each of the video clips;
[0076] In the embodiment of the present application, optionally, constructing a target preview timeline based on the playback speed prediction results of each of the video clips includes:
[0077] Segmenting the target video according to the historical video information and the historical video viewing behavior to obtain multiple video segments of the target video;
[0078] The play speed of the video segments of the plurality of target videos is predicted according to the historical video information and the historical video viewing behavior to obtain the target preview timeline.
[0079] In an embodiment of the present application, a target preview timeline is constructed based on the playback speed prediction results of each of the video clips, including: merging multiple target video clips in the predicted playback behavior of the target video, and reducing the burr phenomenon of the target preview timeline through smoothing optimization processing to obtain the target preview timeline of the target video.
[0080] In an embodiment of the present application, multiple target video segments in the predicted playback behavior of the target video are merged to obtain a target preview timeline, that is, a playback floating layer axis, and smooth optimization processing is performed through a moving average algorithm to reduce the burr phenomenon of the target preview timeline, and the target preview timeline of the target video is obtained according to the predicted playback behavior of the target video; wherein, due to different user viewing habits, different users watch different target preview timelines, and the target preview timeline displays the possible behavior information of the segment based on the user's historical preferences as a step line, thereby reducing the traffic waste caused by directly previewing the video and directly providing personalized preview segments that meet user preferences, and the target preview timeline contains the playback behavior of each video segment in the target video; content is loaded and played according to the playback information of the target preview timeline to obtain a preview video that is more in line with user preferences, thereby improving the efficiency of the preview and reducing the time spent on the overall preview.
[0081] Step 13: Load the target video according to the playback speed indicated by the target preview timeline to obtain the target preview video.
[0082] In an embodiment of the present application, when a user performs a video preview of the target video, the video is loaded according to the target preview timeline, and the loaded video is played. The user can end the preview at any time and enter the playback of the main film, and can drag the progress bar to adjust the playback speed and other operations. When the user watches the main film, the unloaded frames are supplemented to watch the entire film. By forming a target preview timeline with a playback speed based on the predicted playback behavior, overwriting the original target preview timeline, and loading and playing content according to the playback information of the target preview timeline, a preview video that better meets the user's preferences is obtained, thereby improving the efficiency of the preview and reducing the time spent on the overall preview.
[0083] In an embodiment of the present application, the playback speed of each video segment of the target video is predicted based on the historical video information and historical video viewing behavior of the target user; the playback behavior of the user in each segment of the corresponding video is predicted based on the user's historical preferences, thereby reducing the traffic waste caused by directly previewing the video and directly providing personalized preview segments that meet the user's preferences; a target preview timeline is constructed based on the playback speed prediction results of each of the video segments, wherein the target preview timeline is used to indicate the playback speed of each of the video segments; the target video is loaded according to the playback speed indicated by the target preview timeline to obtain a target preview video, and the target preview timeline with a playback speed is formed by predicting the playback behavior to cover the original target preview timeline, and content is loaded and played according to the playback information of the target preview timeline, so as to obtain a preview video that is more in line with the user's preferences, thereby improving the efficiency of the preview, reducing the time spent on the overall preview, and solving the existing problem of being unable to preview videos according to user preferences.
[0084] In the embodiment of the present application, optionally, predicting the playback speed of each video segment of the target video according to the historical video information and historical video viewing behavior of the target user includes:
[0085] Training a video playback speed prediction model according to the user's historical video information and historical video viewing behavior to obtain a trained video playback speed prediction model;
[0086] Inputting the target video into the trained video playback speed prediction model to obtain a predicted playback behavior of the target video;
[0087] The video playback speed prediction model performs the following processing on the input target video to obtain the predicted playback behavior of the target video:
[0088] The target video is segmented according to the parameters of the video playback speed prediction model to obtain a plurality of target video segments, and the user's playback behavior in each of the target video segments is predicted, and the predicted playback speed of the target video is obtained according to the playback behavior;
[0089] The multiple target video segments are merged, and the predicted playback speed of the target video is indicated in each video segment. The burr phenomenon of the merged target video is reduced through smoothing optimization processing to obtain the target preview timeline.
[0090] In the embodiment of the present application, the video playback speed prediction model can be but is not limited to a multi-classification supervised learning model, and the input parameters of the video playback speed prediction model are the user's historical video information and historical video viewing behavior, that is, the information of each historical video content segment watched by the user (including historical video information, the historical video information includes at least one of the following: video content type, video style, starring, director, year and region; and the order when the video is segmented, such as: which segment of the video; and the historical video content information includes at least one of the following: male lead, female lead, character, specific object, animal, text information, voice subtitle text keyword; the result variable during training is the user watching each The target video playback speed prediction model predicts the playback behavior of a corresponding segment, the playback behavior of the target video including at least one of the following: skip, slow, normal speed and double speed; by performing model training and saving the identity of the corresponding user and the parameter results of the corresponding trained model, the video playback speed prediction model is updated according to a certain time period, the video playback speed prediction model generates a predicted playback behavior of the target video by calling the user's model parameters, and generates a prediction of the user's playback behavior in each segment of the corresponding video based on the user's historical preferences, thereby reducing the traffic waste caused by directly trying out the video and directly providing a personalized trial segment that meets the user's preferences, thereby obtaining a preview video that better meets the user's preferences, improving the efficiency of the trial, and reducing the time spent on the overall trial.
[0091] In the embodiment of the present application, optionally, it also includes:
[0092] Obtaining an instruction from a target user to end playing of the target preview video, and playing a video segment corresponding to the target video at the video segment corresponding to the instruction from the target user to end playing of the target preview video;
[0093] Obtaining a target viewing behavior of the target user on the target video;
[0094] The parameters of the video playback speed prediction model are optimized according to the target viewing behavior.
[0095] In an embodiment of the present application, the video playback speed prediction model is optimized by taking the user's target viewing behavior for the target video as the historical viewing behavior, or obtaining the user's dragging progress bar and / or speed playback behavior in the preview mode and the main film as feedback information to optimize the video playback speed prediction model; wherein, when the number of times a user drags the progress bar for manual adjustment during the preview process exceeds a set threshold (ideally, the preview mode predicts all the user's behaviors and the user does not need to make manual adjustments, so the number of times under rational circumstances is 0), it means that the current video playback speed prediction model for the user is not accurate enough and needs to be retrained based on the user's newly added behaviors, wherein the newly added viewing behaviors need to be given more weights, that is, the weights are increased by repeatedly adding new data to the model; by optimizing the video playback speed prediction model, the accuracy of the model is improved, a more accurate preview video that meets the user's preferences is obtained, the efficiency of the preview is improved, and the time spent on the overall preview is reduced.
[0096] In the embodiment of the present application, optionally, the playback speed includes at least one of the following: skip, slow, normal speed and double speed;
[0097] The step of loading the target video according to the playback speed indicated by the target preview timeline includes:
[0098] For the skipped playback speed segment indicated by the target preview timeline, no frame of the corresponding video segment is loaded;
[0099] For the slow playback speed segment indicated by the target preview time axis, load all frames of the corresponding video segment;
[0100] For the normal-speed playback speed segment indicated by the target preview time axis, load the corresponding odd-numbered frames of the video segment;
[0101] For the playback speed segment indicated by the target preview time axis, the frame whose loading frame number modulo 1 of the corresponding video segment is loaded.
[0102] Please refer to Figure 2 In the embodiment of the present application, all loading corresponds to normal speed playback; loading one frame and dropping one frame corresponds to 2x speed playback; loading one frame and dropping three frames corresponds to 4x speed playback; loading 0 frames corresponds to the skipped part, that is, through learning, it is considered that this part is not very attractive to users during the trial viewing process and can be skipped. Content is loaded and played according to the playback information of the target trial viewing timeline, so a preview video that is more in line with user preferences is obtained, the efficiency of the trial viewing is improved, the time spent on the overall trial viewing is reduced, and the existing problem of not being able to preview videos according to user preferences is solved.
[0103] In the embodiment of the present application, optionally, before predicting the playback speed of each video segment of the target video according to the historical video information and historical video viewing behavior of the target user, the method further includes:
[0104] Get historical video content;
[0105] Extracting information from the historical video content to obtain historical video content information;
[0106] Segmenting the historical video content according to a preset time threshold to obtain a plurality of historical video segments, and marking the positions of the plurality of historical video segments in the video;
[0107] The user's historical video viewing behavior is extracted according to the multiple historical video clips, and the historical video viewing behavior includes at least one of the following: skipping, slowing down, repeatedly watching, pausing for a short time, posting comments, watching at normal speed and watching at double speed.
[0108] In the embodiment of the present application, the historical video content information includes at least one of the following: an actor, an actress, a person, a specific object, an animal, text information, a voice subtitle text keyword;
[0109] The historical video information includes at least one of the following: video content type, video style, starring actor, director, year and region.
[0110] In an embodiment of the present application, extracting information from the historical video content to obtain historical video content information includes: scanning and identifying the historical video content frame by frame, and summarizing object information in the video to extract historical video content information appearing in the historical video content, wherein the historical video content information includes at least one of the following: a male protagonist, a female protagonist, a person, a specific object, an animal, text information, and a voice subtitle text keyword;
[0111] The historical video content is segmented according to a preset time threshold to obtain multiple historical video segments, and the positions of the multiple historical video segments in the video are marked, including: the original video of the historical video content is segmented, and the key frames in the video are first extracted during segmentation, and the relative information difference between two consecutive key frames is calculated, that is, the information difference comparison of the same pixel position, the different number of information of the pixels at the same position / the total number of pixels, for example: in the shot of the video content, the protagonist is always talking, then the information change between the pictures of each frame is relatively small, and basically there is no change, indicating that this is a continuous segment; if it suddenly switches from the protagonist talking to the house scenery, etc., the information difference between the previous frame and this frame is very large, which means that the two frames are If there is a discontinuity between the parts, they can be segmented; by setting a threshold of relative information difference, a pre-cut point is set when the value of the relative information difference exceeds the threshold, and / or when the time length between two pre-cut points of the video exceeds the set time threshold (such as 1 minute), the pre-cut point takes effect as the cutting point, and if it is lower than the time threshold, the pre-cut points are merged, and the merging rule is to retain the pre-cut points to be merged with a higher rate of change; and mark the positions of the multiple historical video clips in the video and store them. By segmenting the video clips, it is more conducive to the model to learn the user's historical viewing behavior, and through the learned information, it can be judged that when the variables appearing in a video clip are calculated, it can be concluded how the video clip can be played, such as: changing speed or skipping.
[0112] The user's historical video viewing behavior is extracted according to the multiple historical video clips, including: extracting the user's behavior information in the multiple historical video clips generated by segmentation, if the user has multiple behaviors in the clip, taking the behavior with the longest time as the behavior of the changed segment (for example: skipping 1s and accelerating playback for 3s, then the user behavior of the changed segment is accelerated playback); extracting the user's historical video viewing behavior can be but not limited to using a multi-classification model for prediction; multiple categories of results can be set according to actual conditions, namely: skipped part; slow (lower than the user's most commonly used viewing speed viewing) or repeatedly viewed or short paused part or posting barrage, etc.; normal speed viewing (viewing at the user's most commonly used viewing speed, for example, the user often uses 1.5 times the speed to watch, then 1.5 times the speed is normal speed); 5 high speed viewing (higher than the user's most commonly used viewing speed).
[0113] In the embodiment of the present application, by collecting and predicting the user's historical video information and historical video viewing behavior, it is convenient to learn and train the video playback speed prediction model, so that the video playback speed prediction model can generate a prediction of the user's playback behavior in each segment of the corresponding video based on the user's historical preferences, thereby reducing the traffic waste caused by directly previewing the video and directly providing personalized preview segments that meet the user's preferences; obtaining a preview video that is more in line with the user's preferences, improving the efficiency of the preview, and reducing the time spent on the overall preview.
[0114] Please refer to Figure 3 , an embodiment of the present application provides a video playback device, comprising:
[0115] The first processing module 31 is used to predict the playback speed of each video segment of the target video according to the historical video information and historical video viewing behavior of the target user;
[0116] A second processing module 32, configured to construct a target preview time axis based on the prediction results of the playback speed of each of the video clips, wherein the target preview time axis is used to indicate the playback speed of each of the video clips;
[0117] The playback module 33 is used to load the target video according to the playback speed indicated by the target preview timeline to obtain the target preview video.
[0118] In the embodiment of the present application, optionally, the second processing module includes:
[0119] A segmentation submodule, used for segmenting the target video according to the historical video information and the historical video viewing behavior to obtain a plurality of video segments of the target video;
[0120] The playback speed prediction submodule is used to predict the playback speed of the video segments of the plurality of target videos according to the historical video information and the historical video viewing behavior, and obtain the target preview timeline.
[0121] In the embodiment of the present application, optionally, the first processing module includes:
[0122] A model training submodule, used to train a video playback speed prediction model according to the user's historical video information and historical video viewing behavior to obtain a trained video playback speed prediction model;
[0123] A prediction submodule, used for inputting the target video into the trained video playback speed prediction model to obtain the predicted playback behavior of the target video;
[0124] The video playback speed prediction model performs the following processing on the input target video to obtain the predicted playback behavior of the target video:
[0125] The target video is segmented into segments according to the parameters of the video playback speed prediction model to obtain a plurality of target video segments, and the user's playback behavior in each target video segment is predicted to obtain the predicted playback behavior of the target video.
[0126] In the embodiment of the present application, optionally, it also includes:
[0127] The first acquisition module is used to obtain the target user's instruction to end the playback of the target preview video, and play the video segment corresponding to the target video at the corresponding video segment when the target user indicates to end the playback of the target preview video.
[0128] A second acquisition module is used to acquire the target viewing behavior of the target user on the target video;
[0129] The optimization module is used to optimize the parameters of the video playback speed prediction model according to the target viewing behavior.
[0130] In the embodiment of the present application, optionally, the playback speed includes at least one of the following: skip, slow, normal speed and double speed;
[0131] The playback module comprises:
[0132] A first playback submodule, configured to not load any frame of the corresponding video segment for the skipped playback speed segment indicated by the target preview time axis;
[0133] A second playback submodule is used to load all frames of the corresponding video segment for the slow playback speed segment indicated by the target preview time axis;
[0134] A third playback submodule is used to load the corresponding odd-numbered frames of the video segment for the normal-speed playback speed segment indicated by the target preview time axis;
[0135] The fourth playback submodule is used to load the frame whose loading frame number modulo 1 of the corresponding video segment for the playback speed segment indicated by the target preview time axis.
[0136] In the embodiment of the present application, optionally, it also includes:
[0137] The third acquisition module is used to acquire historical video content;
[0138] A third processing module is used to extract information from the historical video content to obtain historical video content information;
[0139] The fourth processing module is used to segment the historical video content according to a preset time threshold to obtain multiple historical video segments, and mark the positions of the multiple historical video segments in the video; the fifth processing module is used to extract the user's historical video viewing behavior based on the multiple historical video segments, and the historical video viewing behavior includes at least one of the following: skipping, slowing down, repeatedly watching, pausing for a short time, making comments, watching at normal speed and watching at double speed.
[0140] The video playback device provided in the embodiment of the present application can achieve Figure 1 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.
[0141] The present application embodiment provides an electronic device 40, see Figure 4 As shown, Figure 4 This is a principle block diagram of an electronic device 40 according to an embodiment of the present application, including a processor 41, a memory 42, and a program or instruction stored in the memory 42 and executable on the processor 41. When the program or instruction is executed by the processor, the steps in any video playback method of the present application are implemented.
[0142] An embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of an embodiment of a method for video playback such as any of the above-mentioned ones is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0143] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the above Figure 1 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0144] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0145] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0146] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0147] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a service classification device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0148] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for video playback, characterized in that: include: Predicting the playback speed of each video segment of the target video based on the historical video information and historical video viewing behavior of the target user; Constructing a target preview timeline based on the prediction results of the playback speed of each of the video clips, wherein the target preview timeline is used to indicate the playback speed of each of the video clips; The target video is loaded according to the playback speed indicated by the target preview timeline to obtain the target preview video.
2. The video playback method according to claim 1, characterized in that: The step of constructing a target preview timeline based on the playback speed prediction results of each of the video clips includes: Segmenting the target video according to the historical video information and the historical video viewing behavior to obtain multiple video segments of the target video; The play speed of the video segments of the plurality of target videos is predicted according to the historical video information and the historical video viewing behavior to obtain the target preview timeline.
3. The video playback method according to claim 1, characterized in that: The predicting of the playback speed of each video segment of the target video according to the historical video information and historical video viewing behavior of the target user includes: Training a video playback speed prediction model according to the user's historical video information and historical video viewing behavior to obtain a trained video playback speed prediction model; Inputting the target video into the trained video playback speed prediction model to obtain a predicted playback behavior of the target video; The video playback speed prediction model performs the following processing on the input target video to obtain the predicted playback behavior of the target video: The target video is segmented according to the parameters of the video playback speed prediction model to obtain a plurality of target video segments, and the user's playback behavior in each of the target video segments is predicted, and the predicted playback speed of the target video is obtained according to the playback behavior; The multiple target video segments are merged, and the predicted playback speed of the target video is indicated in each video segment. The burr phenomenon of the merged target video is reduced through smoothing optimization processing to obtain the target preview timeline.
4. The video playback method according to claim 3, characterized in that: Also includes: Obtaining an instruction from a target user to end playing of the target preview video, and playing a video segment corresponding to the target video at the video segment corresponding to the instruction from the target user to end playing of the target preview video; Obtaining a target viewing behavior of the target user on the target video; The parameters of the video playback speed prediction model are optimized according to the target viewing behavior.
5. The video playback method according to claim 1, characterized in that: The playback speed includes at least one of the following: skip, slow, normal and double speed; The step of loading the target video according to the playback speed indicated by the target preview timeline includes: For the skipped playback speed segment indicated by the target preview timeline, no frame of the corresponding video segment is loaded; For the slow playback speed segment indicated by the target preview time axis, load all frames of the corresponding video segment; For the normal speed playback speed segment indicated by the target preview time axis, load the corresponding odd number frames of the video segment; For the playback speed segment indicated by the target preview time axis, the frame whose loading frame number modulo 1 of the corresponding video segment is loaded.
6. The video playback method according to claim 1, characterized in that: Before predicting the playback speed of each video segment of the target video according to the historical video information and historical video viewing behavior of the target user, the method further includes: Get historical video content; Extracting information from the historical video content to obtain historical video content information; Segmenting the historical video content according to a preset time threshold to obtain a plurality of historical video segments, and marking the positions of the plurality of historical video segments in the video; The user's historical video viewing behavior is extracted according to the multiple historical video clips, and the historical video viewing behavior includes at least one of the following: skipping, slowing down, repeatedly watching, pausing for a short time, posting comments, watching at normal speed and watching at double speed.
7. A video playback device, characterized in that: include: The first acquisition module is used to acquire the target video, the historical video information and the historical video viewing behavior of the target user; A first processing module, configured to construct a target preview timeline according to the target video, the historical video information and the historical video viewing behavior, wherein the target preview timeline indicates a playback speed of each video segment in the target video; The second processing module is used to load the target video according to the playback speed indicated by the target preview timeline to obtain the target preview video.
8. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps in the method for video playback as described in any one of claims 1 to 6.
9. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps in the video playback method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps in the method for video playback as claimed in any one of claims 1 to 6.
Citation Information
Patent Citations
Video playing method and device, storage medium and electronic equipment
CN108184169A
Video playing control method and device and electronic equipment
CN115065871A
Method, server and system for controlling play speed of video
KR1020160081043A
Method and system for determining target audio and video
WO2022141142A1
Time shift acceleration-based live streaming viewing method and apparatus
WO2023131081A1
