CN111800673A - Video playing method, display equipment and server - Google Patents
Video playing method, display equipment and server Download PDFInfo
- Publication number
- CN111800673A CN111800673A CN202010756708.5A CN202010756708A CN111800673A CN 111800673 A CN111800673 A CN 111800673A CN 202010756708 A CN202010756708 A CN 202010756708A CN 111800673 A CN111800673 A CN 111800673A
- Authority
- CN
- China
- Prior art keywords
- video
- time length
- playing
- segments
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 79
- 238000011156 evaluation Methods 0.000 claims description 80
- 238000012545 processing Methods 0.000 claims description 65
- 230000011218 segmentation Effects 0.000 claims description 40
- 230000015654 memory Effects 0.000 claims description 30
- 238000012216 screening Methods 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 6
- 238000012163 sequencing technique Methods 0.000 claims description 6
- 230000009467 reduction Effects 0.000 claims description 5
- 238000004891 communication Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 16
- 230000008569 process Effects 0.000 description 9
- 238000004904 shortening Methods 0.000 description 8
- 230000001133 acceleration Effects 0.000 description 6
- 230000003993 interaction Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 239000000284 extract Substances 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8549—Creating video summaries, e.g. movie trailer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26208—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
- H04N21/26233—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints involving content or additional data duration or size, e.g. length of a movie, size of an executable file
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/65—Transmission of management data between client and server
- H04N21/658—Transmission by the client directed to the server
- H04N21/6587—Control parameters, e.g. trick play commands, viewpoint selection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The application provides a video playing method, a display device and a server, when a user selects to watch a certain video through the display device, the display device sends a corresponding video playing message to the server, the server can determine a target video which is sent to the display device to be played based on the video playing message, the target video is a first video with the original time length not exceeding a limited time length, or a second video which is obtained according to the first video with the original time length exceeding the limited time length and has the time length not exceeding the limited time length, so that the user can be ensured to finish watching the target video within the limited time length, and the inconvenience brought to the user due to the fact that the video cannot be played within the limited time length can be avoided.
Description
Technical Field
The present application relates to the field of video playing technologies, and in particular, to a video playing method, a display device, and a server.
Background
With the rapid development of internet technology, users can use terminal devices to access and use network resources in more and more places.
When a user travels in a car, a high-speed rail or an airplane, the most common network resource access behavior is to watch videos through a display device, so that the purpose of issuing travel time is achieved.
However, when the travel distance is short or the user rides on a high-speed travel tool such as a high-speed rail or an airplane, the travel time of the user is also short, so that the user may not be able to watch the video within the travel time, which may cause inconvenience to the user.
Disclosure of Invention
The application provides a video playing method, a display device and a server, which are used for solving the problem that in the prior art, a user is inconvenient because a video cannot be played in a limited time.
In one aspect, the present application provides a video playing method applied to a server, where the method includes:
receiving a video playing message sent by a display device, wherein the video playing message comprises a video identifier of a first video to be played and playing duration limiting information corresponding to the first video;
acquiring a first video to be played according to the video identifier;
determining the limited time length for playing the first video according to the limited information of the playing time length;
determining a target video based on the original time length of the first video and the limited time length, wherein the target video is the first video when the original time length does not exceed the limited time length, and the target video is a second video which is obtained according to the first video and has the time length not exceeding the limited time length when the original time length exceeds the limited time length;
and sending the target video to the display equipment for video playing.
In another aspect, the present application provides a video playing method applied to a display device, where the method includes:
determining a first video to be played;
determining playing time limit information corresponding to the first video;
sending a video playing message containing the video identifier of the first video and the playing duration limiting information to a server, wherein the video playing message is used for indicating the server to acquire the first video to be played according to the video identifier; determining the limited time length for playing the first video according to the limited information of the playing time length; determining a target video based on the original time length of the first video and the limited time length, wherein the target video is the first video when the original time length does not exceed the limited time length, and the target video is a second video which is obtained according to the first video and has the time length not exceeding the limited time length when the original time length exceeds the limited time length;
and receiving the target video sent by the server, and playing the target video.
In another aspect, the present application provides a video playing apparatus, including:
the message receiving module is used for receiving a video playing message sent by display equipment, wherein the video playing message comprises a video identifier of a first video to be played and playing duration limiting information corresponding to the first video;
the first determining module is used for acquiring a first video to be played according to the video identifier;
the second determining module is used for determining the limited time length for playing the first video according to the limited information of the playing time length;
a third determining module, configured to determine a target video based on an original time length of the first video and the limited time length, where the target video is the first video when the original time length does not exceed the limited time length, and the target video is a second video obtained according to the first video and having a time length not exceeding the limited time length when the original time length exceeds the limited time length;
and the video sending module is used for sending the target video to the display equipment for video playing.
In another aspect, the present application provides a video playing apparatus, including:
the fourth determining module is used for determining the first video to be played;
a fifth determining module, configured to determine play duration limiting information corresponding to the first video;
a message sending module, configured to send a video playing message including a video identifier of the first video and the playing duration limiting information to a server, where the video playing message is used to instruct the server to obtain the first video to be played according to the video identifier; determining the limited time length for playing the first video according to the limited information of the playing time length; determining a target video based on the original time length of the first video and the limited time length, wherein the target video is the first video when the original time length does not exceed the limited time length, and the target video is a second video which is obtained according to the first video and has the time length not exceeding the limited time length when the original time length exceeds the limited time length;
and the video receiving module is used for receiving the target video sent by the server and playing the target video.
In another aspect, the present application provides a display device, including:
a display;
the communicator is used for carrying out data communication with the server, receiving data sent by the server and sending the data to the server;
a controller connected to the display and the communicator, the controller configured to perform the steps of the video playback method described above.
In another aspect, the present application provides a server, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the video playing method when executing the computer program.
In another aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are executed by a processor to implement the video playing method described above.
The application provides a video playing method, a display device and a server, wherein the video playing method comprises the following steps: receiving a video playing message sent by display equipment, wherein the video playing message comprises a video identifier of a first video to be played and playing duration limiting information corresponding to the first video; acquiring a first video to be played according to the video identifier; determining the limited time length for playing the first video according to the limited information of the playing time length; determining a target video based on the original time length and the limited time length of the first video, wherein the target video is the first video when the original time length does not exceed the limited time length, and the target video is a second video which is obtained according to the first video and has the time length not exceeding the limited time length when the original time length exceeds the limited time length; and sending the target video to a display device for video playing. When a user selects to watch a certain video through the display device, the display device sends a corresponding video playing message to the server, the server can determine a target video which is sent to the display device for playing based on the video playing message, the target video is a first video with the original time length not exceeding a limited time length, or a second video which is obtained according to the first video with the original time length exceeding the limited time length and has the time length not exceeding the limited time length, so that the user can be ensured to finish watching the target video within the limited time length, and the inconvenience brought to the user due to the fact that the video cannot be played within the limited time length can be avoided.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram of a video playing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of performing video time-scaling processing on a first video to obtain a second video in the embodiment of the present application;
fig. 3 is a schematic diagram of a video playing method according to an embodiment of the present application;
FIG. 4 is a schematic view of an interface for a user to select a video to be played through keyword search in an embodiment of the present application;
FIG. 5a is a schematic interface diagram of a display device when a user watches a first video in an embodiment of the present application;
fig. 5b is a schematic view of an interface of a display device in which a user sets a play duration after clicking a play type switching control K6 in the embodiment of the present application;
fig. 5c is a schematic view of an interface of a display device for watching a second video after setting a play duration for a user in the embodiment of the present application;
FIG. 6 is a timing diagram illustrating information interaction between a display device and a server according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a video playback device according to an embodiment of the present application;
fig. 8 is a schematic diagram of a video playback device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a display device according to an embodiment of the present application.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the embodiments of the present application, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of additional like elements in the article or system in which the element is included.
With the rapid development of the internet technology and the popularization construction of the communication base station, a user can watch videos through a mobile display device or a vehicle-mounted video playing device carried by the user in the travel process, and in order to release travel time, the user usually watches movies.
Most of the existing movie time is between 1.5 hours and 2 hours, and if the travel time of the user is less than the movie time, for example, the appearance time is 1 hour, the user cannot watch a whole video within the travel time, thereby bringing inconvenience to the user. For example, if a user continues to watch a movie through a mobile display device carried by the user while walking off, there is a certain safety risk.
The application provides a video playing method, a display device and a server, and aims to solve the above technical problems in the prior art.
The application provides a video playing method, a display device and a server, when a user selects to watch a certain video through the display device, the display device sends a corresponding video playing message to the server, the server can determine a target video which is sent to the display device to be played based on the video playing message, the target video is a first video with the original time length not exceeding a limited time length, or a second video which is obtained according to the first video with the original time length exceeding the limited time length and has the time length not exceeding the limited time length, so that the user can be ensured to finish watching the target video within the limited time length, and the inconvenience brought to the user due to the fact that the video cannot be played within the limited time length can be avoided.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
In some embodiments, a video playback method is provided.
Fig. 1 is a schematic diagram of a video playing method provided in an embodiment of the present application, where the video playing method may be applied to a server, and as shown in fig. 1, the method mainly includes the following steps:
s110, receiving a video playing message sent by the display device, wherein the video playing message comprises a video identifier of a first video to be played and playing duration limiting information corresponding to the first video.
When a user wants to watch a video, the display device sends a video playing message including a video identifier and a playing time limit message to the server, wherein the video identifier is an identifier which can be used for uniquely determining the video, the first video is a video which the user wants to watch, and the first video can be a video which is played online through a network.
And S120, acquiring a first video to be played according to the video identifier.
And the server acquires the first video to be played from the network resource according to the video identifier.
And S130, determining the limited time length for playing the first video according to the limited information of the playing time length.
The playing time limit information refers to specific information that limits the time for the user to watch the video in the user trip process, and the time for the user to watch the video is equivalent to the playing time of the video, so that the playing time limit information limits the playing time of the video within a certain time range, for example, 1 hour or half an hour. After acquiring the playing time length limiting information, the server determines a limited time length of the first playing time based on the playing time length limiting information, where the limited time length may be, for example, half an hour, 1 hour, or 2 hours.
S140, determining a target video based on the original time length and the limited time length of the first video, wherein the target video is the first video when the original time length does not exceed the limited time length, and the target video is a second video which is obtained according to the first video and has the time length not exceeding the limited time length when the original time length exceeds the limited time length.
The original time length refers to the video playing time length of the first video. After determining the limited time length for playing the first video based on the limited information of the playing time length, the server compares the original time length of the first video with the limited time length to determine a target video to be played.
When the original time length of the first video does not exceed the limited time length, it is indicated that the user can completely watch the first video within the limited time length, and at this time, the server can determine that the first video is the target video, that is, the user only needs to watch the first video directly. Since the duration of the first video does not exceed the limited duration, the user can watch the first video completely during the travel.
When the original time length of the first video exceeds the limited time length, the fact that the user cannot watch the first video completely within the limited time length is indicated, at the moment, the server carries out video processing on the first video to obtain a second video with the video time length smaller than or equal to the limited time length, and then the second video is determined to be the target video. Therefore, through video processing, the duration of the obtained second video can be ensured to be less than or equal to the limited duration, and therefore, a user can watch the second video completely in the traveling process.
And S150, sending the target video to display equipment for video playing.
After the target video is determined, the server sends the target video to the display equipment for video playing, so that the user can watch the target video through the display equipment.
The embodiment provides a video playing method, when a user selects to watch a certain video through a display device, the display device sends a corresponding video playing message to a server, the server can determine a target video to be sent to the display device for playing based on the video playing message, the target video is a first video with the original time length not exceeding a limited time length, or a second video with the original time length not exceeding the limited time length, and is obtained according to the first video with the original time length exceeding the limited time length, so that the user can be ensured to finish watching the target video within the limited time length, and the inconvenience brought to the user due to the fact that the video cannot be played within the limited time length can be avoided.
In some embodiments, determining the target video based on the native duration and the defined duration of the first video comprises: when the original time length of the first video does not exceed a limited time length, determining the first video as a target video; when the original time length of the first video exceeds the limited time length, video time-reducing processing is carried out on the first video to obtain a second video with the time length not exceeding the limited time length, and the second video is determined to be the target video.
When the original time length of the first video does not exceed the limited time length, it is indicated that the user can completely watch the first video within the limited time length, and at this time, the server can determine that the first video is the target video, that is, the user only needs to watch the first video directly. Since the duration of the first video does not exceed the limited duration, the user can watch the first video completely during the travel.
When the original time length of the first video exceeds the limited time length, the fact that the user cannot watch the first video completely within the limited time length is indicated, at the moment, the server carries out video processing on the first video to obtain a second video with the video time length smaller than or equal to the limited time length, and then the second video is determined to be the target video.
The video processing may specifically be video time-shortening processing, where the video time-shortening processing refers to processing for shortening the video time length, and thus, by performing the video time-shortening processing, it can be ensured that the time length of the second video does not exceed a limited time length.
In the embodiment, when the original time length of the first video does not exceed the limited time length, the first video is determined to be the target video; when the original time length of the first video exceeds the limited time length, video time-reducing processing is carried out on the first video to obtain a second video with the time length not exceeding the limited time length, and the second video is determined to be a target video, so that the time length of the target video can be ensured not to exceed the limited time length, a user can be ensured to finish watching the target video within the limited time length, and the inconvenience brought to the user due to the fact that the video cannot be played within the limited time length can be avoided.
In some embodiments, a process flow of video time-scaling processing on a first video by a server to obtain a second video with a time duration not exceeding a defined time duration is explained.
Fig. 2 is a schematic diagram of performing video time-scaling processing on a first video to obtain a second video in the embodiment of the present application, and as shown in fig. 2, the processing flow includes the following steps:
s141, performing video segmentation processing on the first video to obtain at least two video segments;
s142, carrying out importance evaluation on each video segment to obtain an importance evaluation result of each video segment;
s143, performing video segmentation screening according to the importance evaluation result of each video segmentation to obtain a target video segmentation, wherein the total time length of the target video segmentation does not exceed a limited time length;
and S144, constructing a second video according to the target video segment.
Specifically, when the server performs video segmentation processing, equal-time segmentation or unequal-time segmentation may be adopted, that is, the time durations of the video segments may be the same or different. When equal-length time segments are employed, a specified time segment or a specified number of segments may be employed.
The specified time segment is a plurality of video segments obtained by dividing the first video into a specified time length, and the specified time length may be 30 seconds or one minute, for example, so as to obtain a plurality of video segments with the specified time length. For example, if the duration of the first video is 90 minutes and the specified duration is 30 seconds, 90/0.5-180 video segments with a duration of 30 seconds can be obtained by performing specified time segmentation on the first video.
The specified number of segments refers to dividing the first video into the specified number of video segments, and the specified number may be, for example, 100 or 200, etc., so that the specified number of video segments can be obtained. For example, if the duration of the first video is 120 minutes and the specified number is 120, by segmenting the first video by the specified number, 120 video segments with duration of 120/120-1 minute can be obtained.
Optionally, when unequal-duration segmentation is adopted, segmentation may be performed in combination with specific content of the video, so as to obtain a plurality of video segments of different durations. For example, video segmentation can be performed according to scenarios, wherein the first video segment contains the first scenario, and each subsequent video segment contains a separate scenario, so as to ensure the continuity of the video scenarios in the video segments.
After obtaining at least two video segments, the server performs importance evaluation on each video segment to obtain an importance evaluation result of each video segment, and the importance evaluation result can be understood as the importance degree of the video segment. The higher the importance evaluation result, the more important the video segment is, and the more likely the video segment is to be the content that the user wants to watch. Accordingly, the lower the importance assessment result, the less important the video segment is, and the more likely the video segment is to be content that the user does not need to view.
After the importance evaluation result of each video segment is obtained, the server performs video segment screening according to the importance evaluation result of each video segment to obtain a target video segment, wherein the target video segment is a video segment of which the importance evaluation result meets the preset requirement, namely, the target video segment belongs to an important video segment and belongs to the content which a user wants to watch.
And after the target video segment is obtained, the server constructs a second video according to the target video segment. Because the second video is constructed by segmenting part of the video in the first video, the time length of the second video is less than that of the first video, and therefore, the requirement that the time length of the second video does not exceed the limited time length can be met. In addition, because the video segments in the second video are all important video segments, the user can play a role in watching important contents in the first video by watching the second video, and therefore the user can be prevented from missing the important contents in the first video.
In this embodiment, when the duration of the first video exceeds the limited duration, video segmentation processing is performed on the first video, and video segmentation screening is performed according to the importance evaluation result of each video segment, so that a second video including important video segments and having a duration not exceeding the limited duration can be obtained. Furthermore, the user can be enabled to watch the whole second video within the limited time length, and the user can be prevented from missing important contents in the first video.
In some embodiments, the importance assessment is performed on video segments, including: and carrying out importance evaluation according to the historical playing times of the video segments.
Specifically, the historical playing times of the video segments can represent the user-liked degree of the video segments, and the more the historical playing times are, the higher the user-liked degree of the video segments is, so that the higher the importance of the video segments is.
In the embodiment, the importance evaluation is performed according to the historical playing times of the video segments, so that the user preference degree of the video segments can be accurately obtained, and the accuracy of the importance evaluation result of the video segments can be improved.
In some embodiments, the importance assessment is performed on video segments, including: and carrying out importance evaluation according to the heat value of each video segment.
The popularity value can be a weighting result of the playing quantity and the comment quantity of the video segments, and can be embodied specifically through the number of barrages and the like, wherein the barrages refer to comment subtitles popped up when videos are watched on a network, the larger the number of the barrages is, the higher the playing quantity and the comment quantity corresponding to the video segments are, the higher the popularity value is, and correspondingly, the higher the importance of the video segments is.
In this embodiment, the importance evaluation is performed according to the heat value of each video segment, so that the accuracy of the importance evaluation result of the video segment can be improved.
In some embodiments, the importance assessment is performed on video segments, including: the importance assessment is made based on the video content of each video segment.
The video content may specifically be, for example, an object or a scene, and the object may specifically be a person, an animal, an object, or the like. In the importance evaluation according to the video content, the importance of the video content may be evaluated according to the number of times or the duration of the occurrence of the important target object or target scene.
For example, when a user watches a movie that is played by a movie star, the movie star may be manually determined as a target object by the user, or automatically determined as a target object by the server, and then the server evaluates the importance of each video segment based on the number of times and the duration that the movie star appears.
For another example, when a user watches a movie of a specific material, a specific scene of the specific material may be set as a target scene, and for example, for a racing movie, a racing scene may be set as a target scene. The server then evaluates the importance of each video segment based on the number of times the racing scene occurred and the duration. It will be appreciated that the determination of the target scene may also be determined manually by the user, or automatically by the server.
In this embodiment, the accuracy of the importance evaluation result of the video segment can be improved by performing importance evaluation according to the video content of each video segment.
In some embodiments, the importance assessment is performed on video segments, including: and performing importance evaluation on each video segment according to user preference.
The server can determine the user preference based on the video watching record of the user, and then perform importance evaluation on the video segments based on the consistency of the video segments and the user preference. The higher the conformity of the video segment with the user preferences, the more important it is to represent the video segment.
In the embodiment, the importance evaluation of the video segmentation is performed according to the preference of the user, so that the accuracy of the importance evaluation result of the video segmentation can be improved.
In some embodiments, any combination of the above importance evaluation methods may be employed in evaluating the importance of the video segments.
Specifically, any two, any three, or four of the above importance evaluation methods may be adopted to perform importance evaluation, respectively, and then a final importance evaluation result is obtained based on the evaluation results corresponding to the respective methods.
For example, when the above four methods are simultaneously used for importance evaluation, for a certain video segment, the result obtained by importance evaluation according to the historical playing times is Ya, the result obtained by importance evaluation according to the heat value is Yb, the result obtained by importance evaluation according to the video content is Yc, the result obtained by importance evaluation according to the user preference is Yd, and the final importance evaluation result of the video segment is Yd
Y=A×Ya+B×Yb+C×Yc+D×Yd
Wherein Y is the final importance evaluation result of the video segment, and A, B, C, D is the weight corresponding to the importance evaluation results obtained by the above four methods.
In this embodiment, the importance evaluation is performed by using any combination of the above importance evaluation methods, so that the importance of video segmentation can be evaluated from multiple dimensions and multiple aspects, thereby further improving the accuracy of the result of the importance evaluation of video segmentation.
In some embodiments, the video segmentation screening is performed according to the importance evaluation result of each video segment to obtain a target video segment, which includes any one of the following:
s143a, screening the video segments with the importance evaluation results larger than or equal to a preset threshold value to obtain target video segments;
s143b, sorting the video segments according to the importance evaluation result from high to low, and extracting a first preset number of video segments from the head to obtain a target video segment;
s143c, after the video segments are sorted from high to low according to the importance evaluation result, deleting a second preset number of video segments from the end until the total duration of the remaining video segments is less than or equal to the defined duration, and determining the remaining video segments as the target video segments.
Specifically, after the importance evaluation result of each video segment is obtained, video segment screening is performed based on the importance evaluation result of each video segment to obtain a target video segment with high importance.
For example, assuming that the number of video segments is 5, i.e., the first video segment to the fifth video segment are sequentially included, the importance evaluation results corresponding to the video segments are Y1 to Y5, respectively.
(1) When the method corresponding to S143a is used to perform video segmentation screening, the importance evaluation results are respectively compared with a preset threshold Y0, and the video segments with the importance evaluation results greater than or equal to the preset threshold are taken as target video segments. For example, if Y1> Y0, Y2< Y0, Y3> Y0, Y4> Y0, and Y5< Y0, then Y1, Y3, and Y4 are taken as target video segments.
Optionally, when the video segmentation screening is performed by using the method corresponding to S143a, after the target video segments are obtained, determining whether the total duration of all the target video segments exceeds the defined duration, if so, increasing the preset threshold, and performing video segmentation screening by using the method corresponding to S143a again until the total duration of all the target video segments does not exceed the defined duration, thereby ensuring that the duration of the second video constructed by all the target video segments does not exceed the defined duration.
(2) When the method corresponding to the S143b is adopted to perform video segmentation screening, the video segments are sorted in the order from high to low according to the importance assessment result, for example, Y2> Y3> Y1> Y4> Y5; then, a first preset number of video segments are extracted from the beginning to obtain a target video segment, for example, when the first preset number is 3, a second video segment, a third video segment and the first video segment are extracted as the target video segments.
It will be appreciated that the total duration of the first predetermined number of video segments does not exceed the defined duration, thereby ensuring that the duration of the second video constructed from all of the target video segments does not exceed the defined duration.
(3) When the method corresponding to the S143c is adopted to perform video segmentation screening, the video segments are sorted in the order from high to low according to the importance assessment result, for example, Y2> Y3> Y1> Y4> Y5; then, deleting a second preset number of video segments from the end, and explaining by taking the second preset number as 1, firstly deleting a fifth video segment; then, determining whether the total duration of the remaining video segments exceeds a limited duration, if so, continuing to delete the last video segment, namely deleting the fourth video segment; then, whether the total duration of the remaining video segments exceeds the defined duration is determined again, and if not, the remaining video segments are determined as the target video segments, namely, the second video segment, the third video segment and the first video segment are determined as the target video segments.
In this embodiment, after the importance evaluation result of the video segment is obtained, the video segment is screened based on the importance evaluation result of the video segment, so that the total duration of all the target video segments is ensured to be less than or equal to the defined duration, and all the target video segments are ensured to be the video segments with high importance, thereby ensuring that the second video contains the important content in the original first video.
In some embodiments, constructing the second video from the target video segment includes: and sequencing the target video segments according to the time sequence, and constructing a second video according to the sequenced target video segments.
Specifically, after the target video segments are obtained, the second video may be constructed based on the time sequence of each target video segment, so as to ensure the continuity of the video segments in the second video in the time sequence.
For example, with reference to the foregoing embodiment, after determining the second video segment, the third video segment, and the first video segment as target video segments, the target video segments are sequentially the first video segment, the second video segment, and the third video segment according to a time sequence, and then the second video is constructed according to an order of the first video segment, the second video segment, and the third video segment.
In this embodiment, after the target video segments are determined, the second video is constructed based on the time sequence of each target video segment, so that the continuity of the content in the second video in the time sequence can be ensured, and confusion is avoided.
In some embodiments, the video time-scaling processing is performed on the first video to obtain a second video with a time length not exceeding a defined time length, and the method can further be implemented by the following steps: performing video segmentation processing on a first video to obtain at least two video segments; carrying out importance evaluation on each video segment to obtain an importance evaluation result of each video segment; performing video segmentation screening according to the importance evaluation result of each video segment to determine the video segment to be accelerated; carrying out acceleration processing on the video segment to be accelerated to obtain an accelerated video segment; and constructing a second video according to the accelerated video segment and other video segments which are not accelerated in all the video segments, wherein the total time length of the accelerated video segment and the other video segments does not exceed a limited time length.
Specifically, when the first video is subjected to the time-reducing processing, the acceleration processing may be performed on a part of the video segments, and the video playing speed of the accelerated video segments obtained through the acceleration processing is greater than the original playing speed of the video segments, for example, the video playing speed of the accelerated video segments is 1.25 times, 1.5 times, 1.75 times, or 2 times of the original playing speed, so that the playing time of the accelerated video segments is shortened, and the purpose of shortening the video time is achieved.
It is understood that when the importance evaluation of the video segment is performed, the evaluation method in the previous embodiment can be adopted.
In this embodiment, the purpose of shortening the video duration can be achieved by performing accelerated processing on a part of the video segments. Meanwhile, all video segments can be reserved, and the continuity of video content is guaranteed.
In some embodiments, the video segmentation screening is performed according to the importance evaluation result of each video segmentation, and the video segmentation to be accelerated is determined, including any one of the following: screening the video segments with the importance evaluation results smaller than a preset threshold value to obtain video segments to be accelerated; or after the video segments are sorted from high to low according to the importance evaluation result, extracting a third preset number of video segments from the end to obtain the video segments to be accelerated.
Specifically, when the video segmentation is accelerated, the video segment with a lower importance degree may be selected as the video segment to be accelerated, that is, the video segment with the importance evaluation result smaller than the preset threshold value is selected as the video segment to be accelerated, or all the video segments are sorted according to the importance degree, and then the video segments with the third preset number are extracted from the end as the video segments to be accelerated.
In the embodiment, the video segments to be accelerated are obtained by screening the video segments with the importance evaluation results smaller than the preset threshold value; or after the video segments are sorted from high to low according to the importance evaluation result, a third preset number of video segments are extracted from the end to obtain the video segments to be accelerated, and the video segments with lower importance degree can be used as the video segments to be accelerated, so that the user can watch the video segments with high importance degree normally and watch the video segments with low importance degree in an accelerated manner.
In some embodiments, constructing the second video from the accelerated video segments and other video segments of all video segments not subjected to the acceleration process comprises: and sequencing the acceleration video segments and other video segments according to the time sequence, and constructing a second video according to the sequenced video segments.
In this embodiment, after the acceleration processing of the video segment is performed, the second video is constructed based on the time sequence of the accelerated video segment and the time sequence of other video segments that are not accelerated, so that the continuity of the content in the second video in the time sequence can be ensured, and confusion is avoided.
In some embodiments, determining the defined duration for playing the first video based on the play duration definition information comprises: and when the limited information of the playing time length comprises the limited time length which is set manually or automatically, extracting the limited time length according to the limited information of the playing time length.
Specifically, the video playing message sent by the display device to the server includes the playing duration limitation information corresponding to the first video, and the playing duration limitation information may specifically include a manually set or automatically set limitation duration, so that the server may directly extract the limitation duration according to the playing duration limitation information.
For example, a user may set the limited duration of the current video to be 1 hour through the display device, and then the display device sends a video playing message including the limited duration to the server, so that the server performs video time-scaling processing to obtain a second video with the video duration not exceeding 1 hour.
In this embodiment, when the play duration limiting information includes a manually set or automatically set limiting duration, the server may extract the limiting duration according to the play duration limiting information, so as to determine whether video time reduction processing is required based on the limiting duration, thereby ensuring that the user can watch the entire video within the travel time.
In some embodiments, determining the defined duration for playing the first video based on the play duration definition information comprises: when the play-time-length restriction information includes travel information of the user, the restriction time length is determined based on the travel information.
Specifically, the video playing message sent by the display device to the server includes the playing duration limitation information corresponding to the first video, and the playing duration limitation information may specifically include the trip information of the user, where the trip information of the user may be input by the user through the display device or automatically acquired by the display device, and thus, the server may determine the limitation duration based on the trip information.
For example, the user may set the travel information of the current travel through the display device, and then the display device sends a video playing message including the travel information to the server, so that the server performs video time-scaling processing to obtain a second video with a video time length not exceeding the limited time length corresponding to the travel information.
In this embodiment, when the play duration limiting information includes the travel information of the user, the server may determine the limiting duration based on the travel information, so as to determine whether video time reduction processing is required based on the limiting duration, thereby ensuring that the user can watch the entire video within the travel time.
In some embodiments, determining the defined duration for playing the first video based on the play duration definition information comprises: when the limited information of the playing time length comprises the equipment identifier corresponding to the display equipment or the identity identifier of the user, searching the corresponding travel information according to the equipment identifier or the identity identifier, and determining the limited time length based on the travel information.
Specifically, the video playing message sent by the display device to the server includes the playing duration limitation information corresponding to the first video, and the playing duration limitation information may specifically include a device identifier corresponding to the display device or an identity identifier of the user, so that the server may search for corresponding travel information according to the device identifier or the identity identifier of the user, and determine the limitation duration based on the travel information.
For example, the display device may specifically be a vehicle-mounted playing device or an airplane multimedia playing device, and the vehicle-mounted playing device may specifically be a vehicle that is installed in a relatively fixed trip, for example, a fixed shift vehicle from a place a to a place B; the aircraft multimedia playing device may be specifically an aircraft with a relatively fixed travel, for example, a fixed shift aircraft from C to D. For the vehicle-mounted playing device or the airplane multimedia playing device of the type, because the corresponding travel is relatively fixed, the server can search the travel information corresponding to the display device according to the device identifier, so that the limited duration is determined based on the travel information.
For another example, when the playing time length limiting information includes the user's identity, the user's identity may be input by the user through the display device, or may be automatically obtained by the display device, so that the server may search the user's current travel information based on the user's identity, thereby determining the limited time length based on the travel information.
In this embodiment, when the play duration limiting information includes the device identifier corresponding to the display device or the identity identifier of the user, the server may search for corresponding travel information according to the device identifier or the identity identifier of the user, and determine the limiting duration based on the travel information, so that whether video time reduction processing is required or not may be determined based on the limiting duration, and it is further ensured that the user can finish the whole video within the travel time. In addition, the server automatically determines the user travel information, and the user does not need to input the user travel information manually, so that the additional operation of the user can be reduced.
In some embodiments, when determining the limited duration for playing the first video based on the playing duration limitation information, a combination of the above-described limited duration determination methods may be used for evaluation.
For example, when the play-time-length restriction information includes a manually set restricted time length T1 and travel information of the user, the server first determines a corresponding restricted time length T2 based on the travel information of the user, and then determines whether T1 and T2 match.
Specifically, when T1> T2 indicates that the limited time determined based on the trip of the user is less than the limited time period manually set by the user, the server may send a corresponding prompt message to the display device and display the prompt message by the display device to inform the user that the set limited time period T1 is unreasonable, and the user may reset the limited time period T1.
When T1< T2 or T1 is T2, indicating that the defined time determined based on the user trip is greater than or equal to the user-set defined time period, the server may preferentially adopt the user-set time period T1 as the final defined time period.
In the embodiment, the limited duration is determined by adopting a plurality of methods, so that the situation that the durations obtained by the methods conflict can be avoided, and the accuracy of the obtained limited duration is ensured.
In some embodiments, the trip information includes a start location, an end location, and a travel pattern.
Accordingly, determining a defined duration based on trip information includes: determining a travel route based on the starting point position and the end point position; acquiring road condition information of a travel path; and determining the limited time length based on the travel mode and the road condition information of the travel path.
When the stroke is not carried out, the starting point position is the initial starting point position of the stroke; when the trip has been made, the starting position is the current position of the user. The end position is the end position of the stroke. The travel modes specifically comprise automobiles, high-speed rails, airplanes and the like. The road conditions comprise road surface conditions, traffic jam conditions, weather conditions and the like.
In this embodiment, the server determines a travel route based on the starting point position and the end point position; acquiring road condition information of a travel path; the limited time length is determined based on the travel mode and the road condition information of the travel path, so that whether video time-shortening processing is needed or not can be determined based on the limited time length, and the user can be guaranteed to see the whole video within the travel time.
In some embodiments, when the play duration limiting information includes travel information of the user, a device identifier corresponding to the display device, or an identity identifier of the user, before performing video time-scaling processing on the first video, the method further includes: sending a playing request for playing the second video to the display equipment; after request passing information fed back by the display equipment based on the playing request is received, executing video time-scaling processing on the first video; and after receiving the request non-passing information fed back by the display equipment based on the playing request, not executing the step of video time-scaling processing on the first video, and determining that the first video is the target video.
Specifically, when the play duration limiting information includes travel information of a user, an equipment identifier corresponding to the display device, or an identity identifier of the user, that is, the user does not manually set the limiting duration, or the display device does not automatically set the limiting duration, at this time, if the server determines that the original duration of the first video exceeds the limiting duration, the server does not directly perform video time-reduction processing, but first sends a play request for playing the second video to the display device, at this time, the display device may perform corresponding prompt to the user after receiving the play request, for example: "the video duration to be played exceeds the current travel duration, please confirm whether to watch the time-lapse video".
And if the user selects to watch the time-shrinking video, the display equipment sends request passing information to the server, and at the moment, the server starts to execute the step of performing video time-shrinking processing on the first video until the second video is obtained and sends the second video to the display equipment for playing.
If the user selects to watch the original video, the display device sends a request to the server to stop passing the information, at this time, the server does not execute the step of video time-scaling processing on the first video, determines that the first video is the target video, and directly sends the first video to the display device to be played.
In this embodiment, when it is determined that video scaling processing is required, the server does not immediately perform the scaling processing, but first sends a corresponding play request to the display device, and the user determines whether to watch the scaled video, so that the situation that the user wants to watch the original video and plays the scaled video to the user can be avoided, and the video watching experience of the user is improved.
In some embodiments, the video identification includes a video address or a video ID.
The video address may be an access address of a network resource corresponding to the video, and the video ID may be a unique ID corresponding to the video itself. The first video to be played can be uniquely determined by the video address or the video ID.
In this embodiment, the video identifier includes a video address or a video ID, so that the server can accurately obtain the video content that the user wants to watch based on the video address or the video ID, determine whether video compression processing is required according to the obtained first video, and further ensure that the user can watch the entire video within the travel time.
In some embodiments, a video playback method is provided.
Fig. 3 is a schematic view of a video playing method provided in an embodiment of the present application, where the video playing method may be applied to a display device, and the display device may specifically be a mobile display device carried by a user, or a video playing device disposed on a travel tool, for example, a vehicle-mounted playing device disposed in a vehicle or an airplane multimedia playing device disposed in an airplane. As shown in fig. 3, the method mainly includes the following steps:
s210, determining a first video to be played.
Specifically, the display device may determine the first video to be played based on a user operation. The user operation may specifically be: a user selects a video to be played on a video classification menu interface displayed by display equipment; a user selects a video to be played through keyword search; and selecting a video to be played on the video recommendation interface by the user, and the like.
Fig. 4 is a schematic interface diagram of a user selecting a video to be played through keyword search in the embodiment of the present application, and as shown in fig. 4, the user may perform video search by inputting a video name in a P1 area, and at the same time, the user may select a video to be played by clicking a video recommended by a display device in a P2 area.
And S220, determining the limited information of the playing time length corresponding to the first video.
After the display device determines the first video to be played, play duration limiting information corresponding to the first video is further determined, and the play duration limiting information is used for determining the limiting duration corresponding to the first video.
S230, sending a video playing message containing a video identifier of the first video and playing duration limiting information to the server, wherein the video playing message is used for indicating the server to acquire the first video to be played according to the video identifier; determining the limited time length for playing the first video according to the limited information of the playing time length; and determining a target video based on the original time length and the limited time length of the first video, wherein the target video is the first video when the original time length does not exceed the limited time length, and the target video is a second video which is obtained according to the first video and has the time length not exceeding the limited time length when the original time length exceeds the limited time length.
The display device sends a video playing message containing a video address of a first video and playing time limit information to a server after determining the first video to be played and determining the playing time limit information corresponding to the first video, so that the server determines a target video based on the first video and the corresponding limit time.
And S240, receiving the target video sent by the server, and playing the target video.
After the server determines the target video, the target video is sent to the display device. The display device receives the target video sent by the server and plays the target video, so that the user can watch the target video.
Fig. 5a to 5c are schematic views of an interface of a display device when a user watches a video in the embodiment of the present application, wherein as shown in fig. 5a to 5c, a video playing interface of the display device includes a first functional region P3, a video playing region P4, and a second functional region P5.
The first functional area P3 is provided with a pop-up screen function opening control K1 and a television projection control K2, which are respectively used for opening the pop-up screen function and the television projection function. It will be appreciated that the first functional area P3 may also include other functional controls.
The video playback area P4 is used to present video pictures. The video playback area P4 is also used to show the bullet screen sent by the user when the user turns on the bullet screen function.
The second functional region P5 is provided with a play control K3, a play time length display control K4, a progress bar K5, and a play type switching control K6. The playing control K3 is used for pause and video switching control, the playing duration display control K4 is used for displaying the current playing duration and the total video duration to a user, the progress bar K5 is used for displaying the playing progress of the video to the user, the playing type switching control K6 is used for switching the video playing types, the video playing types comprise playing an original video and playing a video during zooming, wherein the original video is a first video in the application, and the video during zooming is a second video in the application.
Specifically, referring to fig. 5a, which is a schematic view of an interface of a display device when a user watches a first video, after the user selects the watched video, the display device communicates with a server to obtain video content of the first video, and displays the video content of the first video in a video playing area P4, according to the display content of the playing time duration display control K4 in fig. 5a, the original time duration of the first video is 1 hour, 20 minutes, and 50 seconds. At this time, the display content of the play-type switching control K6 is "video at zoom", that is, the user can view the second video by clicking the play-type switching control K6 while viewing the first video.
Referring to fig. 5b, a schematic diagram of a display device interface for setting the playing time length after the user clicks the playing type switching control K6, after the user selects "see and zoom in video", at this time, the playing time length setting control K7 pops up from the video playing area P4, the user can set the playing time length through the playing time length setting control K7, and the playing time length set by the user is the limited time length in this application.
Referring to fig. 5c, a schematic view of an interface of a display device for watching a second video after setting a playing time for a user, where after setting the playing time, the display device sends the playing time to a server, the server performs time-scaling processing on a first video according to the playing time to obtain the second video, and sends the second video to the display device, and the display device displays the second video to the user. According to the display content of the play duration display control K4 in fig. 5c, the duration of the second video is 30 minutes, so that the user can finish the second video within 30 minutes. In addition, the display content of the play type switching control K6 becomes "see original video", that is, the user can view the first video by clicking the play type switching control K6 while viewing the second video.
It is understood that when the user watches the video, the user may select "watch time-lapse video" when the user just starts to watch the first video, that is, the video content watched by the user is the video content of the entire second video.
In addition, the user may select "watch the time-lapse video" after watching the video content of the part of the first video, and at this time, the server may perform time-lapse processing on the video content that is not watched by the user in the first video in combination with the playing time set by the user, that is, the video content watched by the user is the video content of the part of the first video and the video content of the whole second video.
For example, when the user watches a middle position of the first video, if the user thinks that the user cannot watch the remaining video content at present, the user can select "watch the time-lapse video" by clicking the play type switching control K6, and set the play duration of the remaining video content, at this time, the display device sends the related information to the server, the server performs time-lapse processing on the remaining video content, and sends the time-lapse processed video to the display device for playing, thereby ensuring that the user can watch the time-lapse video of the remaining video content.
The embodiment provides a video playing method, when a user selects to watch a certain video through a display device, the display device sends a video play message containing the video address of the first video and play duration definition information to the server, so that the server can determine the definition duration of video play based on the play duration definition information, when the original time length of the first video to be played exceeds the limited time length, the server carries out video time-reducing processing on the video to be played, the time length of the second video after time-reducing processing is less than or equal to the limited time length, and sends the second video to the display equipment, therefore, the display equipment can receive and play the second video, so that the user can see the processed video in the limited time length, and the inconvenience brought to the user due to the fact that the user cannot see the video in the travel time is avoided.
In some embodiments, the limited playing time length information includes a manually set or automatically set limited time length, travel information of the user, a device identifier corresponding to the display device, or an identity of the user.
Specifically, when the play time limit information sent by the display device includes a manually set or automatically set limit time, the server extracts the limit time according to the play time limit information.
When the play-time-length restriction information transmitted from the display device includes travel information of the user, the server determines the restriction time length based on the travel information.
When the playing time length limiting information sent by the display equipment comprises an equipment identifier corresponding to the display equipment or an identity identifier of a user, the server searches corresponding travel information according to the equipment identifier or the identity identifier, and determines the limiting time length based on the travel information.
In this embodiment, based on different play duration limiting information, the server correspondingly determines the corresponding limited duration by using different strategies, so that the limited duration can be accurately obtained, and whether video time reduction processing is required or not can be determined based on the limited duration, thereby ensuring that a user can finish the whole video within the travel time.
In some embodiments, the video playing method further comprises: receiving a playing request for playing a second video sent by a server; displaying the playing request, and acquiring operation information of a user based on the playing request; a step of sending request passing information or request failing information to the server based on the operation information, wherein the request passing information is used for instructing the server to execute video time-scaling processing on the first video; the request-not-pass information is used for instructing the server not to execute the step of performing video time-scaling processing on the first video, and determining that the first video is the target video.
In this embodiment, when it is determined that video scaling processing is required, the server does not immediately perform the scaling processing, but first sends a corresponding play request to the display device, and the user determines whether to watch the scaled video, so that the situation that the user wants to watch the original video and plays the scaled video to the user can be avoided, and the video watching experience of the user is improved.
In one embodiment, a process of information interaction between a display device and a server is explained.
Fig. 6 is a timing diagram illustrating information interaction between a display device and a server in an embodiment of the present application, and as shown in fig. 6, the information interaction between the display device and the server includes the following steps:
s301, the display device determines a first video to be played,
s302, the display device determines the limited information of the playing time length corresponding to the first video
S303, the display equipment sends a video playing message containing the video address of the first video and the limited information of the playing time length to the server;
s304, the server acquires a first video based on the video address, and determines the limited time length for playing the first video based on the limited information of the playing time length;
s305, when the original time length of the first video does not exceed the limited time length, the server does not perform video time-shortening processing and sends the first video to the display equipment;
when the original time length of the first video exceeds the limited time length, the server performs video time-reducing processing on the first video to obtain a second video with the time length less than or equal to the limited time length, and sends the second video to the display equipment;
s306, the display equipment receives the first video or the second video sent by the server and plays the video.
It should be understood that, although the respective steps in the flowcharts in the above-described embodiments are sequentially shown as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
In one embodiment, a video playback device is provided.
Fig. 7 is a schematic diagram of a video playing apparatus according to an embodiment of the present application, and as shown in fig. 7, the apparatus includes:
a message receiving module 110, configured to receive a video playing message sent by a display device, where the video playing message includes a video identifier of a first video to be played and playing duration limiting information corresponding to the first video;
a first determining module 120, configured to obtain a first video to be played according to the video identifier;
a second determining module 130, configured to determine a limited duration for playing the first video according to the limited play duration information;
a third determining module 140, configured to determine a target video based on an original time length and a limited time length of the first video, where the target video is the first video when the original time length does not exceed the limited time length, and the target video is a second video obtained according to the first video and having a time length not exceeding the limited time length when the original time length exceeds the limited time length;
and the video sending module 150 is configured to send the target video to a display device for video playing.
For specific limitations of the video playing apparatus, reference may be made to the above limitations of the video playing method, which is not described herein again. The modules in the video playing apparatus can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The application provides a video playing device, when a user selects to watch a certain video through a display device, the display device sends a corresponding video playing message to a server, the server can determine a target video which is sent to the display device for playing based on the video playing message, the target video is a first video which is originally not longer than a limited time length, or a second video which is obtained according to the first video which is originally longer than the limited time length and is not longer than the limited time length, so that the user can be ensured to finish watching the target video within the limited time length, and the condition that the user is inconvenient because the video cannot be played within the limited time length can be avoided.
In one embodiment, a video playback device is provided.
Fig. 8 is a schematic diagram of a video playing apparatus according to an embodiment of the present application, and as shown in fig. 8, the apparatus includes:
a fourth determining module 210, configured to determine a first video to be played;
a fifth determining module 220, configured to determine the playing duration limiting information corresponding to the first video;
a message sending module 230, configured to send a video playing message including a video identifier of the first video and the playing duration limiting information to the server, where the video playing message is used to instruct the server to obtain the first video to be played according to the video identifier; determining the limited time length for playing the first video according to the limited information of the playing time length; determining a target video based on the original time length and the limited time length of the first video, wherein the target video is the first video when the original time length does not exceed the limited time length, and the target video is a second video which is obtained according to the first video and has the time length not exceeding the limited time length when the original time length exceeds the limited time length;
and the video receiving module 240 is configured to receive the target video sent by the server and play the target video.
For specific limitations of the video playing apparatus, reference may be made to the above limitations of the video playing method, which is not described herein again. The modules in the video playing apparatus can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The application provides a video playing device, when a user selects to watch a certain video through a display device, the display device sends a corresponding video playing message to a server, the server can determine a target video which is sent to the display device for playing based on the video playing message, the target video is a first video which is originally not longer than a limited time length, or a second video which is obtained according to the first video which is originally longer than the limited time length and is not longer than the limited time length, so that the user can be ensured to finish watching the target video within the limited time length, and the condition that the user is inconvenient because the video cannot be played within the limited time length can be avoided.
In one embodiment, a display device is provided.
Fig. 9 is a schematic structural diagram of a display device according to an embodiment of the present application, and as shown in fig. 9, the display device includes: a processor 111, a memory 112, and a display 113. The memory 112 is used for storing programs and data, and the processor 111 calls the programs stored in the memory to execute the technical solution of any one of the foregoing video playing method embodiments.
In the above display device, the memory and the processor are electrically connected directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines, such as a bus. The memory stores computer-executable instructions for implementing the data access control method, and includes at least one software functional module which can be stored in the memory in the form of software or firmware, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory.
The Memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory is used for storing programs, and the processor executes the programs after receiving the execution instructions. Further, the software programs and modules within the aforementioned memories may also include an operating system, which may include various software components and/or drivers for managing system tasks (e.g., memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.
The processor may be an integrated circuit chip having signal processing capabilities. The processor may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In one embodiment, a server is provided, which is constructed to include a processor, a hard disk, a memory, a system bus, etc., and is similar to a general-purpose computer architecture, but has higher processing power, stability, reliability, security, scalability, and manageability. Wherein, the processor in the server may be configured to execute the technical solution of any one of the foregoing video playing method embodiments.
In one embodiment, a computer-readable storage medium having stored thereon computer-executable instructions for performing the steps of the method embodiments of the present application when executed by a processor is provided.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, the computer program can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (18)
1. A video playing method is applied to a server, and is characterized in that the method comprises the following steps:
receiving a video playing message sent by a display device, wherein the video playing message comprises a video identifier of a first video to be played and playing duration limiting information corresponding to the first video;
acquiring a first video to be played according to the video identifier;
determining the limited time length for playing the first video according to the limited information of the playing time length;
determining a target video based on the original time length of the first video and the limited time length, wherein the target video is the first video when the original time length does not exceed the limited time length, and the target video is a second video which is obtained according to the first video and has the time length not exceeding the limited time length when the original time length exceeds the limited time length;
and sending the target video to the display equipment for video playing.
2. The method of claim 1, wherein determining a target video based on the native duration of the first video and the defined duration comprises:
when the original time length of the first video does not exceed the limited time length, determining the first video as the target video;
when the original time length of the first video exceeds the limited time length, performing video time-reducing processing on the first video to obtain a second video with the time length not exceeding the limited time length, and determining the second video as the target video.
3. The method of claim 2, wherein the video time-scaling the first video to obtain a second video with a duration not exceeding the defined duration comprises:
performing video segmentation processing on the first video to obtain at least two video segments;
performing importance evaluation on each video segment to obtain an importance evaluation result of each video segment;
performing video segmentation screening according to the importance evaluation result of each video segmentation to obtain a target video segmentation, wherein the total duration of the target video segmentation does not exceed the limited duration;
and constructing the second video according to the target video segment.
4. The method of claim 3, wherein each of the video segments is evaluated for importance by at least one of:
carrying out importance evaluation according to the historical playing times of the video segments;
carrying out importance evaluation according to the heat value of each video segment;
performing importance evaluation according to the video content of each video segment; or
And performing importance evaluation on each video segment according to user preference.
5. The method according to claim 3, wherein the screening of the video segments according to the importance evaluation result of each video segment to obtain the target video segment comprises any one of:
screening video segments with the importance evaluation result larger than or equal to a preset threshold value to obtain the target video segments;
after all the video segments are sequenced from high to low according to the importance evaluation result, extracting a first preset number of video segments from the head to obtain the target video segment; or
And after sequencing the video segments according to the importance evaluation result from high to low, deleting a second preset number of video segments from the end until the total duration of the remaining video segments is less than or equal to the limited duration, and determining the remaining video segments as the target video segments.
6. The method of claim 3, wherein said constructing the second video from the target video segment comprises:
and sequencing the target video segments according to the time sequence, and constructing the second video according to the sequenced target video segments.
7. The method of claim 2, wherein the video time-scaling the first video to obtain a second video with a duration not exceeding the defined duration comprises:
performing video segmentation processing on the first video to obtain at least two video segments;
performing importance evaluation on each video segment to obtain an importance evaluation result of each video segment;
performing video segmentation screening according to the importance evaluation result of each video segmentation to determine a video segmentation to be accelerated;
accelerating the video segment to be accelerated to obtain an accelerated video segment;
and constructing the second video according to the accelerated video segment and other video segments which are not accelerated in all the video segments, wherein the total time length of the accelerated video segment and the other video segments does not exceed the limited time length.
8. The method according to claim 7, wherein the performing video segmentation screening according to the importance evaluation result of each video segment to determine the video segment to be accelerated comprises any one of:
screening the video segments with the importance evaluation results smaller than a preset threshold value to obtain the video segments to be accelerated; or the like, or, alternatively,
and sequencing all the video segments according to the importance evaluation result from high to low, and extracting a third preset number of video segments from the end to obtain the video segments to be accelerated.
9. The method of claim 7, wherein constructing the second video from the accelerated video segments and other video segments of all video segments not subjected to accelerated processing comprises:
and sequencing the accelerated video segments and the other video segments according to a time sequence, and constructing the second video according to the sequenced video segments.
10. The method of claim 2, wherein determining the defined duration for playing the first video based on the play duration definition information comprises at least one of:
when the limited information of the playing time length comprises the limited time length which is set manually or automatically, extracting the limited time length according to the limited information of the playing time length; or the like, or, alternatively,
when the play time length limiting information comprises travel information of a user, determining the limiting time length based on the travel information; or the like, or, alternatively,
when the limited information of the playing time length comprises the equipment identifier corresponding to the display equipment or the identity identifier of the user, searching corresponding travel information according to the equipment identifier or the identity identifier, and determining the limited time length based on the travel information.
11. The method according to claim 10, wherein the trip information includes a start position, an end position, and a travel pattern;
correspondingly, the determining the limited duration based on the travel information includes:
determining a travel route based on the starting point position and the end point position;
acquiring road condition information of the travel path;
and determining the limited duration based on the travel mode and the road condition information of the travel path.
12. The method according to claim 10, wherein when the playback time limit information includes travel information of a user, a device identifier corresponding to the display device, or an identity identifier of the user, before the video time reduction processing on the first video, further comprising:
sending a playing request for playing the second video to the display equipment;
after request passing information fed back by the display equipment based on the playing request is received, executing the step of video time-scaling processing on the first video;
and after receiving the request non-passing information fed back by the display equipment based on the playing request, not executing the step of video time-scaling processing on the first video, and determining that the first video is the target video.
13. The method of any of claims 1-12, wherein the video identification comprises a video address or a video ID.
14. A video playing method is applied to display equipment, and is characterized by comprising the following steps:
determining a first video to be played;
determining playing time limit information corresponding to the first video;
sending a video playing message containing the video identifier of the first video and the playing duration limiting information to a server, wherein the video playing message is used for indicating the server to acquire the first video to be played according to the video identifier; determining the limited time length for playing the first video according to the limited information of the playing time length; determining a target video based on the original time length of the first video and the limited time length, wherein the target video is the first video when the original time length does not exceed the limited time length, and the target video is a second video which is obtained according to the first video and has the time length not exceeding the limited time length when the original time length exceeds the limited time length;
and receiving the target video sent by the server, and playing the target video.
15. The method according to claim 14, wherein the limited information of the playing time duration comprises a manually set or automatically set limited time duration, travel information of a user, a device identifier corresponding to the display device, or an identity of the user.
16. The method of claim 14, further comprising:
receiving a playing request for playing the second video sent by the server;
displaying the playing request and acquiring operation information of a user based on the playing request;
sending request passing information or request failing information to the server based on the operation information, wherein the request passing information is used for indicating the server to execute the video time-scaling processing on the first video; the request no-pass information is used for indicating the server not to execute the step of performing video time-scaling processing on the first video and determining that the first video is the target video.
17. A display device, comprising:
a display;
the communicator is used for carrying out data communication with the server, receiving data sent by the server and sending the data to the server;
a controller connected to the display and the communicator, the controller configured to perform the steps of the video playback method of any one of claims 14 to 16.
18. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the video playback method according to any one of claims 1 to 13 are implemented when the computer program is executed by the processor.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010756708.5A CN111800673A (en) | 2020-07-31 | 2020-07-31 | Video playing method, display equipment and server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010756708.5A CN111800673A (en) | 2020-07-31 | 2020-07-31 | Video playing method, display equipment and server |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111800673A true CN111800673A (en) | 2020-10-20 |
Family
ID=72828983
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010756708.5A Pending CN111800673A (en) | 2020-07-31 | 2020-07-31 | Video playing method, display equipment and server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111800673A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112866805A (en) * | 2021-04-23 | 2021-05-28 | 北京金和网络股份有限公司 | Video acceleration processing method and device and electronic equipment |
| CN115209218A (en) * | 2022-06-27 | 2022-10-18 | 联想(北京)有限公司 | Video information processing method, electronic equipment and storage medium |
Citations (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020087972A1 (en) * | 2000-12-28 | 2002-07-04 | International Business Machines Corporation | Squeezable rebroadcast files |
| CN102770861A (en) * | 2010-12-13 | 2012-11-07 | 英特尔公司 | Data highlighting and extraction |
| CN104883478A (en) * | 2015-06-17 | 2015-09-02 | 北京金山安全软件有限公司 | Video processing method and device |
| CN105611366A (en) * | 2015-12-29 | 2016-05-25 | 大连楼兰科技股份有限公司 | Internet of Vehicles Internet Radio Playing Sorting Method and Device, Internet of Vehicles Internet Radio and Car |
| CN106708986A (en) * | 2016-12-07 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Multimedia information recommendation method and device thereof |
| CN107295352A (en) * | 2017-06-14 | 2017-10-24 | 北京蜜莱坞网络科技有限公司 | A kind of video-frequency compression method, device, equipment and storage medium |
| CN107820108A (en) * | 2016-09-12 | 2018-03-20 | 法乐第(北京)网络科技有限公司 | Video recommendation method and system |
| CN108235123A (en) * | 2016-12-15 | 2018-06-29 | 优视科技有限公司 | Video broadcasting method and device |
| US10097879B1 (en) * | 2017-12-29 | 2018-10-09 | Rovi Guides, Inc. | Systems and methods for extending storage space of a user device |
| CN109167934A (en) * | 2018-09-03 | 2019-01-08 | 咪咕视讯科技有限公司 | A kind of method for processing video frequency, device and computer readable storage medium |
| CN110234037A (en) * | 2019-05-16 | 2019-09-13 | 北京百度网讯科技有限公司 | Generation method and device, the computer equipment and readable medium of video clip |
| CN110622517A (en) * | 2018-01-19 | 2019-12-27 | 深圳市大疆创新科技有限公司 | Video processing method and device |
| CN110798716A (en) * | 2019-11-19 | 2020-02-14 | 深圳市迅雷网络技术有限公司 | Video highlight playing method and related device |
| CN110856042A (en) * | 2019-11-18 | 2020-02-28 | 腾讯科技(深圳)有限公司 | Video playing method and device, computer readable storage medium and computer equipment |
-
2020
- 2020-07-31 CN CN202010756708.5A patent/CN111800673A/en active Pending
Patent Citations (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020087972A1 (en) * | 2000-12-28 | 2002-07-04 | International Business Machines Corporation | Squeezable rebroadcast files |
| CN102770861A (en) * | 2010-12-13 | 2012-11-07 | 英特尔公司 | Data highlighting and extraction |
| CN104883478A (en) * | 2015-06-17 | 2015-09-02 | 北京金山安全软件有限公司 | Video processing method and device |
| CN105611366A (en) * | 2015-12-29 | 2016-05-25 | 大连楼兰科技股份有限公司 | Internet of Vehicles Internet Radio Playing Sorting Method and Device, Internet of Vehicles Internet Radio and Car |
| CN107820108A (en) * | 2016-09-12 | 2018-03-20 | 法乐第(北京)网络科技有限公司 | Video recommendation method and system |
| CN106708986A (en) * | 2016-12-07 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Multimedia information recommendation method and device thereof |
| CN108235123A (en) * | 2016-12-15 | 2018-06-29 | 优视科技有限公司 | Video broadcasting method and device |
| CN107295352A (en) * | 2017-06-14 | 2017-10-24 | 北京蜜莱坞网络科技有限公司 | A kind of video-frequency compression method, device, equipment and storage medium |
| US10097879B1 (en) * | 2017-12-29 | 2018-10-09 | Rovi Guides, Inc. | Systems and methods for extending storage space of a user device |
| CN110622517A (en) * | 2018-01-19 | 2019-12-27 | 深圳市大疆创新科技有限公司 | Video processing method and device |
| CN109167934A (en) * | 2018-09-03 | 2019-01-08 | 咪咕视讯科技有限公司 | A kind of method for processing video frequency, device and computer readable storage medium |
| CN110234037A (en) * | 2019-05-16 | 2019-09-13 | 北京百度网讯科技有限公司 | Generation method and device, the computer equipment and readable medium of video clip |
| CN110856042A (en) * | 2019-11-18 | 2020-02-28 | 腾讯科技(深圳)有限公司 | Video playing method and device, computer readable storage medium and computer equipment |
| CN110798716A (en) * | 2019-11-19 | 2020-02-14 | 深圳市迅雷网络技术有限公司 | Video highlight playing method and related device |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112866805A (en) * | 2021-04-23 | 2021-05-28 | 北京金和网络股份有限公司 | Video acceleration processing method and device and electronic equipment |
| CN115209218A (en) * | 2022-06-27 | 2022-10-18 | 联想(北京)有限公司 | Video information processing method, electronic equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106998494B (en) | Video recording method and related device | |
| CN112019920B (en) | Video recommendation method, device and system and computer equipment | |
| CN112256225B (en) | Screen projection method, server, terminal device and computer-readable storage medium | |
| US20210160577A1 (en) | Method for playing video, electronic device and storage medium | |
| CN108847259B (en) | Short video production method and device, electronic equipment and computer storage medium | |
| KR102370699B1 (en) | Method and apparatus for acquiring information based on an image | |
| CN106488270B (en) | Live broadcast room switching method and device | |
| CN106993202B (en) | Method and device for recommending home page | |
| US12192540B2 (en) | Video processing method and apparatus, storage medium, and device | |
| CN110958470A (en) | Multimedia content processing method, device, medium and electronic equipment | |
| CN108712667B (en) | Smart television, screen capture application method and device thereof, and readable storage medium | |
| CN111327917A (en) | Live content preview method, device, equipment and storage medium | |
| CN111800673A (en) | Video playing method, display equipment and server | |
| US20220286716A1 (en) | Method and apparatus for live streaming, server, system and storage medium | |
| CN111556370B (en) | Interactive video interaction method, device, system and storage medium | |
| CN113949933B (en) | Playing data analysis method, device, equipment and storage medium | |
| CN117032848A (en) | Content display method, device, electronic equipment and storage medium | |
| CN109005423A (en) | A kind of video broadcasting method and device | |
| CN116594580B (en) | On-vehicle central control split screen display method, device and readable storage medium | |
| CN110166801B (en) | Media file processing method and device and storage medium | |
| CN115328585A (en) | Navigation processing method and device, electronic equipment and computer readable storage medium | |
| CN112822552A (en) | Multimedia resource loading method, device, equipment and computer storage medium | |
| CN115734037B (en) | Video display method, device, server and storage medium | |
| CN111935497A (en) | Video stream management method and data server for traffic police system | |
| CN110401865B (en) | Method and device for realizing video interaction function |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201020 |