Video playback method, device, equipment and computer-readable storage medium
By dividing scenes and historical playback data according to video content, combining user portrait group matching, and dynamically adjusting the video playback speed, the problem of users frequently manually adjusting the playback speed in the prior art has been solved, and the video playback experience has been improved.
Patent Information
- Application Number
- CN202110955592.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-19
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2041-08-19
AI Technical Summary
In the existing video playback technology, users need to frequently manually adjust the playback speed. If the speed is too fast, it is easy to miss important information. If the speed is too slow, it wastes time, and the user experience is low.
By obtaining the video logo, the target speed playback command is determined according to the correspondence between the preset scene type and the playback speed or historical playback data, and the target speed playback speed is dynamically adjusted according to the user's portrait to avoid frequent manual intervention by users.
It improves the user's viewing experience, dynamically adjusts the playback speed, reduces the frequency of user manual intervention, and improves the personalization and efficiency of video playback.
Smart Images

Figure CN113613083B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure generally relate to the field of video playback technology, and more specifically, to a video playback method, apparatus, device, and computer-readable storage medium. Background Art
[0002] At present, various video programs are emerging in an endless stream, and a large number of variety shows and long TV series are available for users to watch. When users are watching video programs, if they need to finish watching a video program as soon as possible, or when they encounter uninteresting clips, users can choose to play at double speed, skip playback, or manually drag the progress bar.
[0003] In the prior art, when users use speed playback according to their needs, they need to frequently manually intervene in speed adjustment. If the speed is too fast, it is easy to miss important information, and if the speed is too slow, it is easy to waste time, resulting in a low user experience. Summary of the invention
[0004] According to an embodiment of the present disclosure, a video playback method, apparatus, device, and computer-readable storage medium are provided.
[0005] In a first aspect of the present disclosure, a video playback method is provided. The method comprises:
[0006] Get the ID of the current video;
[0007] According to the identifier, one or more target speed playback instructions of the video are obtained; the target speed playback instructions include corresponding scenes and playback speeds; wherein the scenes correspond to a time period; the target speed playback instructions include the corresponding scenes and the playback speeds at the start time of the scenes, and / or the corresponding scenes and the playback speeds corresponding to the start time and the end time of the scenes respectively;
[0008] The current video is played according to the one or more target speed playback instructions.
[0009] According to the above aspects and any possible implementation manner, an implementation manner is further provided, which obtains a target speed playback instruction of the video, including:
[0010] Determining a target speed playback instruction for the video according to a preset correspondence between the scene type and the playback speed; or
[0011] The target speed playback instruction of the video is determined according to the historical playback data of the preset video set; the historical playback data includes the speed playback instruction of the historical user for any scene in the preset video set.
[0012] According to the above aspects and any possible implementation manner, an implementation manner is further provided, which determines the target speed playback instruction of the video according to the historical playback data of the preset video set, including:
[0013] Grouping the historical users based on user portrait feature information of the historical users;
[0014] Based on the speed playback instructions of the historical users in each group for any scene of the preset video set, the target speed playback instruction of the video corresponding to the group is determined.
[0015] According to the above aspects and any possible implementation manner, an implementation manner is further provided, and determining the target speed playback instruction of the video includes:
[0016] Dividing the speed playback instructions for the preset video set into at least one speed playback instruction set for any scene type and a target speed corresponding to the speed playback instruction set;
[0017] Based on each speed playback instruction set and the corresponding target speed, a target speed playback instruction is determined.
[0018] According to the above aspects and any possible implementation manner, an implementation manner is further provided, which obtains one or more target speed playback instructions of the video, including:
[0019] Based on the user portrait feature information, the current user is matched with the groups of historical users to determine the group to which the current user belongs;
[0020] Get the target speed playback instruction corresponding to the group of historical users to which the current user belongs.
[0021] According to the above aspects and any possible implementation manner, an implementation manner is further provided, in which the video is segmented into scenes based on a video scene segmentation method; and the scene type is determined according to the video content.
[0022] According to the above aspects and any possible implementation manner, an implementation manner is further provided, before playing the current video according to the one or more target speed playback instructions, the method further includes:
[0023] Display the target speed playback confirmation information to the current user;
[0024] If a confirmation instruction from the user is received, the video is played at a multiple speed according to the target multiple speed playback instruction.
[0025] In a second aspect of the present disclosure, a video playback device is provided. The device comprises:
[0026] A video identification acquisition unit, used to acquire the identification of the current video;
[0027] A playback instruction acquisition unit, configured to acquire one or more target speed playback instructions of the video according to the identifier; the target speed playback instruction includes a corresponding scene and a playback speed; wherein the scene corresponds to a time period; the target speed playback instruction includes a corresponding scene and a playback speed at the start time of the scene, and / or a corresponding scene and a playback speed corresponding to the start time and the end time of the scene respectively;
[0028] The playback unit is used to play the current video according to the one or more target speed playback instructions.
[0029] In a third aspect of the present disclosure, an electronic device is provided, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the program, the method described above is implemented.
[0030] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method according to the first aspect and / or the second aspect of the present disclosure is implemented.
[0031] Since the embodiments of the present disclosure adopt the above technical solution, at least the following technical effects are achieved:
[0032] In the embodiment of the present disclosure, one or more target speed playback instructions are set for the video, and the target speed playback instructions include the corresponding time point and playback speed, and the current video is played at a multiple speed according to the target speed playback instructions. In this way, during the playback process, the playback speed can be dynamically adjusted for the current user, avoiding the need for the user to frequently manually adjust the playback speed, thereby improving the user's viewing experience.
[0033] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0035] Figure 1 A flowchart of a video playback method according to an embodiment of the present disclosure is shown;
[0036] Figure 2 A flowchart of a video playback method according to an embodiment of the present disclosure is shown;
[0037] Figure 3 A block diagram of a video playback device according to an embodiment of the present disclosure is shown;
[0038] Figure 4 A block diagram of an exemplary electronic device capable of implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0040] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0041] At present, various video programs emerge in an endless stream, and a large number of variety shows and long TV series are available for users to watch. When watching video programs, if users need to finish watching a video program as soon as possible, or encounter uninteresting clips, users can choose to play at multiple speeds, skip playback, or manually drag the progress bar. Moreover, for a complete video, the amount of video information is too large, there are various scenes, different characters, and different story types. Users have personalized preferences when watching different scenes. For some types of scenes, they may watch them through normal multiple speed playback, and for other types of scenes, they may watch them through multiple speed playback. However, in the prior art, when users use multiple speed playback according to their own needs, they need to frequently manually intervene in the speed adjustment, and if the multiple speed is too fast, it is easy to miss important information, and if the multiple speed is too slow, it is easy to waste time, and the user experience is low.
[0042] Based on the above technical problems, the disclosed embodiment provides a video playback method. When watching a video, the user can play the video according to one or more target speed playback instructions, and the target speed playback instruction is for any scene in the video, that is, after the scene is divided according to the video content in advance, the playback speed corresponding to the scene is determined. Specifically, the playback speed corresponding to any type of scene may be related to, but not limited to, the scene type, and may also be related to the viewing data of historical users. In this way, when the user watches the current video, the playback speed can be dynamically adjusted for the current user based on whether other users play at a certain speed when watching any scene, and the speed playback rate, to avoid the user having to manually adjust the playback speed frequently. In addition, historical users can be grouped by user portraits, and then the current user can be matched with each group of historical users to obtain the group to which the current user belongs. In this way, a suitable target speed playback instruction can be recommended to the current user more accurately to improve the user's viewing experience.
[0043] Figure 1 A flowchart of a video playback method 100 according to an embodiment of the present disclosure is shown, and the specific steps are shown in the following figure:
[0044] Step S110, obtaining the identifier of the current video;
[0045] The disclosed embodiment sets different identifiers for each video, wherein the basic information of the video, such as the duration of the video, the type of the video, etc., can be obtained according to the identifier corresponding to each video, but is not limited to it, and also includes one or more target speed playback instructions corresponding to the video, indicating at what speed at least one scene in the video is played when the current video is played. The above identifiers can be, but are not limited to, represented by numbers. Those skilled in the art can set it according to actual needs, and it is not limited here. Among them, speed playback includes fast playback and slow playback. In the disclosed embodiment, fast playback and slow playback can also be set to different gears, and the speed interval between each gear can be determined by those skilled in the art, for example, 0.01 can be used as the speed interval between each gear, or 0.25 can be used as the speed interval between each gear. Of course, the speed interval between each gear may not be exactly the same. The speed can be, but is not limited to, 2X, 4X, etc., and can also be 1 / 2X, 1 / 4X, etc. It should be noted that the normal speed playback in the disclosed embodiment is single speed playback, that is, 1x speed playback.
[0046] Step S120, obtaining one or more target speed playback instructions of the video according to the identifier; the target speed playback instruction includes a corresponding scene and a playback speed; wherein a scene corresponds to a time period; the target speed playback instruction includes a corresponding scene and a playback speed at the start time of the scene, and / or a corresponding scene and a playback speed corresponding to the start time and the end time of the scene respectively;
[0047] When watching a video, users may have personalized preferences for different scenes in the video. For example, some users prefer to watch action scenes, and some users prefer dialogue scenes. Therefore, if the video can be cut into different segments, or special scenes can be separated, more targeted information can be obtained, which is convenient for users to watch videos according to their own interests and habits, greatly improving the user's experience of watching videos. In the disclosed embodiment, the complete video can be cut into multiple different scenes, but it is not limited to. At this time, since the end time of the previous scene is the start time of the next scene, it can be set to play at a double speed at the start time of each scene. At this time, one scene corresponds to only one play instruction; as an optional implementation method, the special scene in the video can be separated out, and the speed is played at the start time of any special scene, and the normal play speed is restored at the end time of the scene. At this time, one scene corresponds to two play instructions. It should be noted that the above-mentioned special scene is determined according to the pre-set scene type. Specifically, those skilled in the art can set it according to actual needs, and it is not limited here.
[0048] In the disclosed embodiment, the scene type depends on the video content corresponding to the scene, and because the video content is different, it also needs to be played at different speeds. Based on this, in the disclosed embodiment, the correspondence between the scene type and the playback speed can be preset, and then the target speed playback instruction of the video can be determined according to the preset correspondence between the scene type and the playback speed. For example, for dialogue scenes, a faster playback speed can be set; for action scenes, a slower playback speed can be set.
[0049] Since the historical playback data of the video can reflect the user's interest in each scene in the video to a certain extent, the target speed playback instruction of the video can also be determined based on the historical playback data of the preset video set; the historical playback data includes the speed playback instruction of the historical user for any scene in the preset video set. It should be noted that the scene type is determined based on the video content, and different videos may include multiple scenes of the same type. The preset video set here includes multiple different videos, and the video types of these multiple different videos can be the same or different. Determining the target speed playback instruction based on the speed playback instructions of the historical user for multiple scenes in different videos can make the obtained target speed playback instruction more accurate. As an optional implementation, the target speed playback instruction of the video can also be determined based on the historical playback data of the current video by the historical user. Specifically, those skilled in the art can set it according to actual needs, and it is not limited here.
[0050] Historical user speed playback instructions for videos include corresponding scenes and playback speeds. For example, user A plays the action scenes in video 1 at 1.2 times the speed, the dialogue scenes in video 1 at 1.5 times the speed, and the action scenes in video 2 at 1.1 times the speed, etc.
[0051] It should be noted that, since different users have different interests and hobbies, and have different habits when watching videos, different users will play the current video at different speeds for the same scene of a certain video. Therefore, in order to be able to more accurately recommend the most appropriate target speed playback instructions for the current user, the disclosed embodiment needs to group historical users, and then select a group that best matches the current user, and determine the target speed playback instructions for the current user when watching the current video based on the historical playback data of the preset video set by the historical users of the group. The specific steps include: grouping historical users based on user portrait feature information of historical users; determining the target speed playback instructions for the video corresponding to the group based on the speed playback instructions of the historical users in each group for any scene of the preset video set. Then obtain the current user portrait; based on the user portrait feature information, match the current user with each group of historical users to determine the group to which the current user belongs.
[0052] User portrait, also known as user role, is an effective tool for outlining target users and linking user demands with design directions. In the era of big data, user information is flooded in the network. Each specific information of the user is abstracted into a label, and these labels are used to concretize the user image, so as to provide users with targeted services. When determining the user portrait, the user portrait can be divided into different types according to the differences in the behavioral views of the target user. Based on this, the embodiment of the present disclosure can group historical users according to the user portrait feature information of historical users to obtain user portrait groups of various types. Among them, the feature information of the user portrait may include but is not limited to the user's personal basic information, the user's video viewing behavior information, etc. The user's personal basic information may include but is not limited to the user's gender, age, and the type of video the user likes to watch. The video type can be divided into live programs or recorded programs, etc., and can also be divided into sports programs, music programs, etc. The behavior information of historical users watching videos includes the speed of playback when watching programs, etc., which can be set by technicians in this field according to actual needs and are not limited here.
[0053] After obtaining the historical user groups, it is necessary to determine the target speed playback instructions for the current video corresponding to the group based on the speed playback instructions of the historical users in each group for any scene in the preset video set. The specific steps are as follows: divide the speed playback instructions for the preset video set into at least one speed playback instruction set for any scene type, and the target speed corresponding to the speed playback instruction set; determine the target speed playback instruction based on each speed playback instruction set and the corresponding target speed. Since the preset video set includes multiple videos, and each video includes multiple scenes, the speed playback instructions for the preset video set can be divided into at least one speed playback instruction set for any scene type, for example, the speed playback instructions corresponding to multiple dialogue scenes are divided into one speed playback instruction set; and the multiple speed playback instructions corresponding to multiple action scenes are divided into one speed playback instruction set.
[0054] After the speed playback instructions of the preset video set are divided into at least one speed playback instruction set, the speed playback instructions of historical users will be concentrated to form multiple speed playback instruction sets. According to each speed playback instruction set, the target speed corresponding to the speed playback instruction is obtained. As an optional implementation, the weighted sum of multiple speed playback instructions in the speed playback instruction set can be used to obtain an average speed, and then the speed corresponding to the gear closest to the average speed can be used as the target speed; as another optional implementation, the current user's commonly used speed can be used as the target speed. Specifically, those skilled in the art can set it according to actual needs.
[0055] In the above embodiments, it is necessary to group historical users to obtain different types of user portrait groups, so as to more accurately recommend a suitable target speed playback instruction for the current user. It is necessary to match the user portrait of the current user with multiple user portrait groups of historical users to determine the group in which the current user is located. Then, the target speed playback instruction corresponding to the historical user group in which the current user is located is used as one or more target speed playback instructions for the current video. It should be noted that, after the historical users are grouped, the embodiment of the present disclosure can first determine the target speed playback instruction of each group, and then match the current user with the historical user group; of course, the current historical user can also be matched with the historical user group first, and then the target speed playback instruction of the group is determined, which is not limited here.
[0056] It should also be noted that the embodiments of the present disclosure determine the scene type based on the video content, and can, but is not limited to, segmenting the video into various scenes through a video segmentation method. Specifically, those skilled in the art can set it according to actual needs, which is not limited here.
[0057] Step S130, playing the current video according to one or more target speed playback instructions.
[0058] Since each user has different habits when watching videos, some users may be accustomed to watching videos quickly, while some users are accustomed to watching videos at normal speeds, in order to adapt to the personalized needs of users. Therefore, in the embodiment of the present disclosure, it is set that before the current video is played at a multiple speed according to one or more target speed playback instructions, the target speed playback confirmation information can be displayed to the current user, but is not limited to. If the user's confirmation instruction is received, the video is played at a multiple speed according to the target speed playback instruction, otherwise it is not played through the target speed playback instruction. As an optional implementation, the target speed confirmation information can be sent to the current user at the same time as the current video starts playing, or the target speed confirmation information can be sent to the user separately before each target speed playback instruction is executed. Optionally, the target speed playback confirmation information can be, but is not limited to, displayed in a partial area of the current page in the form of a pop-up window. Those skilled in the art can set it according to actual needs, and it is not limited here.
[0059] As an optional implementation, before playing the current video according to one or more target speed playback instructions, determine whether the current user actively plays the current video at a multiple speed. If so, play it without the target speed playback instruction; or display the target speed playback confirmation information to the current user. If the user's confirmation instruction is received, play the video at a multiple speed according to the target speed playback instruction. At this time, the speed corresponding to each target speed playback instruction can be determined based on the user's current speed and the original target speed. For example, but not limited to, if the target speed is fast playback, then at least one gear is added based on the user's current speed. If the target speed is slow playback, then one gear is reduced based on the user's current speed. The specific implementation method is determined by those skilled in the art and is not limited here.
[0060] As an optional implementation, before playing the current video according to one or more target speed playback instructions, the network status of the current terminal can also be obtained. If the network status is good, the step of displaying the target speed playback confirmation information to the current user is executed; however, if the network status of the current terminal is poor, in order to provide the user with a better viewing experience, the current video will not be played at double the speed.
[0061] The following describes in detail a video playback method proposed in an embodiment of the present disclosure in combination with a specific implementation method. Figure 2 A flowchart of a video playback method 200 according to an embodiment of the present disclosure is shown:
[0062] Step S210, obtaining the identifier of the current video, and executing step S220 or step S230;
[0063] Wherein, the video is segmented into scenes based on a video scene segmentation method; and the scene type is determined according to the video content.
[0064] Step S220, after determining the target speed playback instruction of the video according to the preset correspondence between the scene type and the playback speed, execute step 280;
[0065] Step S230, determining a target speed playback instruction of the video according to the historical playback data of the preset video set; the historical playback data includes a speed playback instruction of a historical user for any scene in the preset video set;
[0066] Step S240, grouping historical users based on user portrait feature information of historical users;
[0067] Step S250, dividing the speed playback instructions for the preset video set into at least one speed playback instruction set for any scene type and a target speed corresponding to the speed playback instruction set, and determining the target speed playback instruction based on each speed playback instruction set and the corresponding target speed;
[0068] Step S260, obtaining a current user portrait, matching the current user with each group of historical users, and determining the group to which the current user belongs;
[0069] Step S270, obtaining a target speed playback instruction corresponding to the group of historical users to which the current user belongs;
[0070] Step S280, displaying target speed playback confirmation information to the current user, and if a confirmation instruction from the user is received, playing the video at a multiple speed according to the target speed playback instruction;
[0071] Step S290, playing the current video according to one or more target speed playback instructions.
[0072] According to the video playback method of the embodiment of the present disclosure, when watching a video, the user can play the video according to one or more target speed playback instructions, and the target speed playback instruction is for any scene in the video, that is, after dividing the scene according to the video content in advance, the playback speed corresponding to the scene is determined. Specifically, the playback speed corresponding to any type of scene may be related to, but not limited to, the scene type, and may also be related to the viewing data of historical users. In this way, when the user watches the current video, the playback speed can be dynamically adjusted for the current user based on whether other users play at a certain speed when watching any scene, and the speed playback rate, to avoid the user having to manually adjust the playback speed frequently. In addition, historical users can be grouped by user portraits, and then the current user can be matched with each group of historical users to obtain the group to which the current user belongs. In this way, a suitable target speed playback instruction can be recommended to the current user more accurately to improve the user's viewing experience.
[0073] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present disclosure is not limited by the order of the actions described, because according to the present disclosure, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.
[0074] The above is an introduction to the method embodiment. The following is a further explanation of the disclosed solution through an apparatus embodiment.
[0075] Figure 3 A block diagram of a video playback device according to an embodiment of the present disclosure is shown. Figure 3 As shown, the apparatus 300 includes: a video identification acquisition unit 310, a play instruction acquisition unit 320 and a play unit 330, wherein:
[0076] The video identification acquisition unit 310 is used to obtain the identification of the current video; the playback instruction acquisition unit 320 is used to obtain one or more target speed playback instructions for the video according to the identification; the target speed playback instruction includes the corresponding scene and the playback speed; wherein the scene corresponds to a time period; the target speed playback instruction includes the corresponding scene and the playback speed at the starting time of the scene, and / or the corresponding scene and the playback speed corresponding to the starting time and the ending time of the scene respectively; the playback unit 330 is used to play the current video according to the one or more target speed playback instructions.
[0077] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0078] Figure 4 A schematic block diagram of an electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. As shown, the device 400 includes a CPU 401, which can perform various appropriate actions and processes according to computer program instructions stored in a ROM 402 or loaded from a storage unit 408 into a RAM 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The CPU 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An I / O interface 405 is also connected to the bus 404.
[0079] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0080] The processing unit 401 performs the various methods and processes described above, such as methods 100 and 200. For example, in some embodiments, methods 100 and 200 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the CPU 401, one or more steps of the methods 100 and 200 described above may be performed. Alternatively, in other embodiments, the CPU 401 may be configured to perform methods 100 and 200 in any other suitable manner (e.g., by means of firmware).
[0081] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0082] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0083] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, RAM, ROM, EPROM, optical fibers, CD-ROMs, optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0084] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.
[0085] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A video playback method, characterized in that: include: Get the ID of the current video; According to the identifier, obtaining one or more target speed playback instructions for the video; The target speed playback instruction includes a corresponding scene and a playback speed; wherein the scene corresponds to a time period; the target speed playback instruction includes a corresponding scene and a playback speed at the start time of the scene, and / or a corresponding scene and a playback speed corresponding to the start time and the end time of the scene respectively; obtaining the target speed playback instruction of the video, including: determining the target speed playback instruction of the video according to the historical playback data of a preset video set, wherein the historical playback data includes the speed playback instructions of historical users for any scene in the preset video set; determining the target speed playback instruction of the video, including: The speed playback instructions of the set are divided into at least one speed playback instruction set for any scene type, and a weighted sum of multiple speed playback instructions in the speed playback instruction set is performed to obtain an average speed. The speed corresponding to the gear closest to the average speed is used as the target speed, and the target speed playback instructions are determined based on each speed playback instruction set and the corresponding target speed; the determination of the target speed playback instructions based on each speed playback instruction set and the corresponding target speed includes: dividing the scene according to the video content in advance and then determining the playback speed corresponding to the scene; playing the current video according to the one or more target speed playback instructions.
2. The method according to claim 1, characterized in that Determining a target speed playback instruction of the video according to historical playback data of a preset video set includes: Grouping the historical users based on user portrait feature information of the historical users; Based on the speed playback instructions of the historical users in each group for any scene of the preset video set, the target speed playback instruction of the video corresponding to the group is determined.
3. The method according to claim 2, characterized in that Obtaining one or more target speed playback instructions for the video, including: Based on the user portrait feature information, the current user is matched with the groups of historical users to determine the group to which the current user belongs; Get the target speed playback instruction corresponding to the group of historical users to which the current user belongs.
4. The method according to claim 1, characterized in that: The video is segmented into scenes based on a video scene segmentation method; and the scene type is determined according to the video content.
5. The method according to claim 1, characterized in that Before playing the current video according to the one or more target speed playback instructions, the method further includes: Display the target speed playback confirmation information to the current user; If a confirmation instruction from the user is received, the video is played at a multiple speed according to the target multiple speed playback instruction.
6. A video playback device, characterized in that: include: A video identification acquisition unit, used to acquire the identification of the current video; A playback instruction acquisition unit is used to acquire one or more target speed playback instructions for the video according to the identifier; the target speed playback instruction includes a corresponding scene and a playback speed; wherein the scene corresponds to a time period; the target speed playback instruction includes the corresponding scene and the playback speed at the start time of the scene, and / or the corresponding scene and the playback speeds corresponding to the start time and end time of the scene respectively; acquiring the target speed playback instruction for the video includes: determining the target speed playback instruction for the video according to the historical playback data of a preset video set, the historical playback data including the speed playback instructions of historical users for any scene in the preset video set; determining The target speed playback instruction of the video includes: dividing the speed playback instruction of the preset video set into at least one speed playback instruction set for any scene type, and the target speed corresponding to the speed playback instruction set, and determining the target speed playback instruction based on each speed playback instruction set and the corresponding target speed; the determination of the target speed playback instruction based on each speed playback instruction set and the corresponding target speed includes: performing weighted summation on multiple speed playback instructions in the speed playback instruction set to obtain an average speed, taking the speed corresponding to the gear closest to the average speed as the target speed, and determining the playback speed corresponding to the scene after dividing the scene in advance according to the video content; The playback unit is used to play the current video according to the one or more target speed playback instructions.
7. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the program, the method according to any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
