CN111327965A - Video slicing speed-multiplying playing method, system and storage medium - Google Patents

Video slicing speed-multiplying playing method, system and storage medium Download PDF

Info

Publication number
CN111327965A
CN111327965A CN202010235677.9A CN202010235677A CN111327965A CN 111327965 A CN111327965 A CN 111327965A CN 202010235677 A CN202010235677 A CN 202010235677A CN 111327965 A CN111327965 A CN 111327965A
Authority
CN
China
Prior art keywords
speed
video
playing
doubling
server
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
Application number
CN202010235677.9A
Other languages
Chinese (zh)
Inventor
吴旭
刘兵
伍银河
姜晓飞
曾有兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Coocaa Network Technology Co Ltd
Original Assignee
Shenzhen Coocaa Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Coocaa Network Technology Co Ltd filed Critical Shenzhen Coocaa Network Technology Co Ltd
Priority to CN202010235677.9A priority Critical patent/CN111327965A/en
Publication of CN111327965A publication Critical patent/CN111327965A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234381Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the temporal resolution, e.g. decreasing the frame rate by frame skipping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management 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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Graphics (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a video slicing double-speed playing method, a system and a storage medium, wherein the method comprises the following steps: the server determines the number of fragments of the video according to a preset fragment generation rule, and determines a speed doubling value corresponding to each fragment of the video according to speed doubling play records of historical user terminals; the server performs speed doubling processing on the video according to the speed doubling value corresponding to each fragment of the video to obtain a video file after speed doubling processing; and when the user terminal plays the video, the server pushes the video file subjected to speed doubling processing to the user terminal. The invention can realize the playing of a video at different speeds in different stages, can realize the playing of the video at the speed when the user terminal does not support the speed playing function, can not limit the speed value by the fixed gear of the playing software, and can break through the maximum speed value which can be provided by the existing playing software.

Description

Video slicing speed-multiplying playing method, system and storage medium
Technical Field
The present invention relates to the field of video playing, and in particular, to a method, a system, and a storage medium for playing video at a multiple speed.
Background
At present, when a user watches each large video website, a double-speed playing function is usually used. In the double-speed play mode, the user can quickly watch the video or the movie without losing video plots obviously.
Most of the existing large video websites and video playing software can only provide a double-speed playing function with fixed gear positions, for example, a user can select 0.75, 1.25, 1.5 and 2 times of constant speed rate in the video to play. The user can switch the speed value manually in the watching process. However, in the process of adjusting the speed value by manually adjusting the speed gear, since only a limited number of speed gears can be selected for speed-doubling playing, the selected speed value is too high or too low, which is not reasonable enough, and the experience of watching videos at the speed-doubling speed of the user is affected. In the double-speed playing process, information such as partial video images in the original video cannot be browsed by the user due to the double-speed playing effect, namely the double-speed watching effect of the user cannot be influenced. The server transmits the data content which does not affect the viewing effect to the user terminal, so that a large amount of transmission bandwidth is occupied, and the transmission efficiency is reduced.
Disclosure of Invention
The invention mainly aims to provide a video slicing speed-doubling playing method, a video slicing speed-doubling playing system and a storage medium, and aims to solve the problems that a user cannot select a proper speed-doubling playing scheme to realize automatic speed-doubling playing and a server transmits a large amount of unnecessary data when watching videos at a speed-doubling speed, so that the transmission efficiency is influenced.
In order to achieve the above object, the present invention provides a video slicing double-speed playing method, which comprises the following steps:
the server determines the number of fragments of the video according to a preset fragment generation rule, and determines a speed doubling value corresponding to each fragment of the video according to speed doubling play records of historical user terminals;
the server performs speed doubling processing on the video according to the speed doubling value corresponding to each fragment of the video to obtain a video file after speed doubling processing;
and when the user terminal plays the video, the server pushes the video file subjected to speed doubling processing to the user terminal.
Optionally, the step of determining, by the server, a multiple speed value corresponding to each segment of the video according to a multiple speed play record of the historical user terminal includes:
the server collects the speed-doubling playing behavior of a historical user terminal and generates a corresponding speed-doubling playing record, wherein the speed-doubling playing record comprises video identification information, the starting time and the ending time of speed-doubling playing and a speed-doubling value;
the server carries out fragment processing on the video so as to divide the video into a plurality of fragments;
and the server calculates the speed doubling value corresponding to each fragment of the video according to the speed doubling playing record.
Optionally, the step of calculating, by the server, a multiple speed value corresponding to each segment of the video according to the multiple speed play record includes:
the server acquires the playing time length corresponding to each fragment in each playing from all the multiple-speed playing records so as to calculate and obtain the total playing time length corresponding to all the playing times of each fragment;
the server calculates the average playing time length of each fragment according to the total playing time length of each fragment and all playing times;
and the server calculates the speed doubling value corresponding to each fragment according to the original time length corresponding to each fragment in the video and the average playing time length.
Optionally, the step of calculating, by the server, a multiple speed value corresponding to each segment of the video according to the multiple speed play record includes:
the server extracts a double-speed play record associated with the video from the double-speed play records according to the video identification information corresponding to the video;
and the server calculates the speed doubling value corresponding to each fragment of the video according to the speed doubling playing record associated with the video.
Optionally, the step of acquiring a double-speed play behavior of the historical user terminal by the server and generating a corresponding double-speed play record by the server includes:
the server collects the double-speed playing behavior of a historical user terminal and acquires a historical time interval preset by a user;
and the server generates a corresponding double-speed playing record according to the double-speed playing behavior of the historical user terminal in the historical time interval.
Optionally, the step of performing, by the server, speed-doubling processing on the video according to the speed-doubling value corresponding to each segment of the video to obtain a speed-doubled video file includes:
the server generates a speed doubling index file corresponding to the video according to the time stamp sequence of each fragment in the video and the speed doubling value corresponding to each fragment;
and the server performs speed doubling processing on the video according to the speed doubling index file to obtain a speed doubled video file.
Optionally, the step of performing, by the server, speed-doubling processing on the video according to the speed-doubling index file to obtain a speed-doubled video file includes:
the server performs speed doubling processing on each fragment of the video according to the speed doubling index file;
and the server splices the fragments subjected to speed doubling processing to form a video file subjected to speed doubling processing.
Optionally, the step of performing, by the server, speed doubling processing on each segment of the video according to the speed doubling index file includes:
the server determines a speed multiplying processing mode corresponding to each fragment according to the speed multiplying index file;
when the speed value of the fragment is greater than 1, the server determines a frame extraction ratio according to the speed value corresponding to the fragment, and performs frame extraction processing on the corresponding fragment according to the frame extraction ratio;
and when the speed value of the fragment is less than 1, the server determines the frame interpolation ratio according to the speed value corresponding to the fragment, and performs frame interpolation on the corresponding fragment according to the frame interpolation ratio.
In addition, to achieve the above object, the present invention further provides a video slicing double-speed playing system, which includes a server, where the server includes a memory, a processor, and a video slicing double-speed playing program stored in the memory and operable on the processor, and the video slicing double-speed playing system includes: the video slicing double-speed playing program realizes the steps of the video slicing double-speed playing method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, on which a video slicing double-speed playing program is stored, which when executed by a processor implements the steps of the video slicing double-speed playing method as described above.
According to the video fragment double-speed playing method, system and storage medium provided by the embodiment of the invention, the server can calculate the speed value corresponding to each fragment of the video according to the speed playing record when other historical users play the video at double speed through the historical user terminal, and carry out speed doubling processing on the corresponding fragment according to the speed value to obtain the video file after speed doubling processing. When a user uses the user terminal to play video, the server can push the video file processed at the double speed to the user terminal, and the user terminal can load the video file through a constant speed playing mode to realize the video double speed playing function. By calculating the speed multiplying value corresponding to each segment and processing each segment respectively, the speed multiplying playing of one video at different stages by adopting different speed multiplying values can be realized. Because the user terminal adopts the constant speed playing mode when receiving the video file after the speed doubling processing, the video speed doubling playing can be realized when the user terminal does not support the speed doubling playing function. The speed value of each fragment in the video is only related to the speed value calculated according to the speed playing record, so that the speed value is not limited by the optional gear fixing of the speed value in the playing software, and the limitation of the maximum speed value provided by the existing playing software can be broken through.
Drawings
FIG. 1 is a schematic flow chart of a video slicing double-speed playing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a second embodiment of a video slicing speed-doubling playing method according to the present invention;
fig. 3 is a flowchart illustrating a detailed process of step S13 in the third embodiment of the video slicing double-speed playing method according to the present invention;
fig. 4 is a flowchart illustrating a detailed process of step S13 in the fourth embodiment of the video slicing double-speed playing method according to the present invention;
fig. 5 is a flowchart illustrating a detailed process of step S11 in the fifth embodiment of the video slicing double-speed playing method according to the present invention;
FIG. 6 is a flowchart illustrating a sixth embodiment of a video slicing speed-doubling playing method according to the present invention;
FIG. 7 is a flowchart illustrating a seventh embodiment of a video slicing speed-doubling playing method according to the present invention;
fig. 8 is a schematic view of a detailed flow of step S221 in an eighth embodiment of the video slicing speed-doubling playing method according to the present invention;
fig. 9 and fig. 10 are schematic diagrams of the slicing stages in the third embodiment of the video slicing double-speed playing method of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The terminal of the embodiment of the invention can be a video slicing double-speed playing system, and the video slicing double-speed playing system can be a server arranged at the cloud end.
Referring to fig. 1, fig. 1 is a schematic flow chart of a video slicing double-speed playing method according to a first embodiment of the present invention, wherein the video slicing double-speed playing method includes the following steps:
step S10, the server determines the number of the video fragments according to the preset fragment generating rule, and determines the speed value corresponding to each fragment of the video according to the speed playing record of the historical user terminal;
the user terminal in this embodiment may include an indoor television, a PC, a smart phone, a tablet computer, and other smart devices having a display function. The user can watch the video processed by the speed doubling processing in the user terminal. The following description will be made with a television as a user terminal. The television and the server in this embodiment can perform communication and data transmission with each other. The history user terminal indicates a user terminal used by another user other than the current user to play a video when viewing the video in the past.
After determining the video information of the video selected by the user, the server can fragment the video according to the video information and a plurality of preset fragment generation rules, so as to divide the video into a plurality of video fragments. The fragment generation rule may be a fragment scheme generated by a history user through an editing instruction after the history user finishes watching the video, and the server may perform fragment processing on the video according to the fragment scheme. The fragment generation rule can also be a fragment scheme obtained by a plurality of historical users negotiating and discussing the relevant information of the video after watching the video, and the fragment scheme can be combined with the watching experience of the plurality of users to obtain a more balanced fragment mode. Specifically, after a plurality of historical users set a plurality of different slicing schemes, an average slicing number can be determined according to the slicing schemes, and a start time and an end time of each slice in the video can be further determined. In addition, the video can be segmented and divided according to the content and the plot of the video in advance, and the number and the starting and ending time of the fragments can be determined according to the dividing mode. The different fragment generation rules can be used for determining the fragment number of the video, and are not limited to only adopting one fragment generation rule. For example, after applying one of the above-mentioned slice generation rules, a part of video with a duration of 100 minutes may be divided into N slices, and the format is as follows:
|1|00:00:00|00:10:00|;
|2|00:10:01|00:30:34|;
|N|01:20:23|01:40:00|;
and N is the fragment sequence number of the video fragment, and the first time stamp and the second time stamp are respectively the start time and the end time of the video corresponding to the fragment of the sequence number.
When a historical user plays a video at a double speed through a historical user terminal, corresponding double-speed play records can be collected, and a double-speed value corresponding to each of a plurality of segments contained in one video is determined according to the obtained double-speed play records. The video segment is obtained by segmenting a video according to the corresponding video time length. The server can respectively determine the multiple speed playing record corresponding to each fragment from all the multiple speed playing records, and determine the multiple speed value of each fragment according to the playing record corresponding to each fragment. In the process of playing the multiple speed at the user terminal, the corresponding multiple speed value can be adopted to play when playing the corresponding segment, so as to realize the automatic multiple speed playing of the video and the automatic multiple speed adjustment of the video under different segments.
Step S20, the server performs speed doubling processing on the video according to the speed doubling value corresponding to each fragment of the video to obtain a speed-doubled video file;
after determining the speed doubling value corresponding to each segment of a video, the server may perform speed doubling on the segments corresponding to the video according to the speed doubling value of each segment, and generate a speed-doubled video file. It should be noted that the video file after the double speed processing is also a video file that can perform normal video playing, and may have the same type format as the video file before the processing. The difference between the video file after the speed doubling processing and the video file before the speed doubling processing is that for the video segments, namely the segments, which correspond to each other before and after the processing, the speed doubling playing time required by the playing of the segments after the speed doubling processing and the original playing time required by the actual normal playing have a proportional relation, and the proportional coefficient is related to the speed doubling value. For example, if a fragment with an original playing time of 10 minutes is calculated by the server that the multiple speed value corresponding to the fragment is 2 times, the multiple speed processing is performed by performing frame extraction on an image frame of the fragment, so that the multiple speed playing time required by the fragment in a normal playing state is 5 minutes. Preferably, the frame extraction mode may be a uniform frame extraction process. From the above, the time required for playing the fragment subjected to the speed doubling processing by the user terminal still adopting the normal speed playing mode is only 5 minutes, which is 5 minutes shorter than the original playing time, so that the user can spend less time than the original playing time to watch the fragment, and the speed doubling playing function of the video is realized.
It should be noted that, if the multiple speed value of a certain segment calculated by the server is 0.8 times, it indicates that the segment is in the slow playing state, and at this time, the multiple speed processing mode of the server on the video file is frame insertion processing, so that the time length required for playing the segment after the multiple speed processing is increased, thereby implementing the slow playing effect of the video.
Step S30, when the user terminal plays the video, the server pushes the video file after the speed doubling processing to the user terminal.
When a user uses a user terminal such as a television to play a video, the server can push the generated video file subjected to speed doubling processing to the user terminal, and after receiving the video file subjected to speed doubling processing, the user terminal can further select to play the video at a default playing speed or play the video file subjected to speed doubling processing in a speed doubling playing mode.
It can be understood that, since the user usually employs accelerated playing, a part of the video image in the original video will not be browsed by the user, and if the server still transmits the original file of the video to the user terminal, the part of the video data that is not browsed by the user will waste the data transmission amount of the server. And when the bandwidth of the server is insufficient, if the user adopts a high-definition playing mode, the video transmission speed is lower than the video playing speed, so that the video playing is blocked. The total playing time of the video file after the speed doubling processing is reduced compared with the original playing time, namely the file size of the video file after the speed doubling processing is smaller than that of the original video file before the speed doubling processing. When the server transmits the video file which occupies a smaller space and is processed at a double speed, the time length required by transmission, the total data transmission quantity and the bandwidth requirement required by transmission can be reduced, namely, the network resources and the bandwidth resources occupied by the server can be obviously reduced, and the resource utilization efficiency of the server is improved. Meanwhile, the user terminal can realize the speed-doubling playing function of the video through a constant speed playing mode, and the consumption of computing resources and electric quantity when the user terminal carries out speed-doubling playing can be reduced.
In this embodiment, the server may calculate a speed doubling value corresponding to each segment of the video according to a speed doubling play record of other historical users when performing video speed doubling play through the historical user terminal, and perform speed doubling processing on the corresponding segment according to the speed doubling value to obtain a video file after speed doubling processing. When a user uses the user terminal to play video, the server can push the video file processed at the double speed to the user terminal, and the user terminal can load the video file through a constant speed playing mode to realize the video double speed playing function. By calculating the speed multiplying value corresponding to each segment and processing each segment respectively, the speed multiplying playing of one video at different stages by adopting different speed multiplying values can be realized. Because the user terminal adopts the constant speed playing mode when receiving the video file after the speed doubling processing, the video speed doubling playing can be realized when the user terminal does not support the speed doubling playing function. The speed value of each fragment in the video is only related to the speed value calculated according to the speed playing record, so that the limitation that the speed value in the playing software is only a fixed gear is avoided, and the limitation of the maximum speed value provided by the existing playing software can be broken through.
Further, referring to fig. 2, fig. 2 is a flowchart illustrating a second embodiment of the video slicing double-speed playing method according to the present invention, based on the embodiment shown in fig. 1, in step S10, the step of determining, by the server, the number of slices of the video according to a preset slice generation rule, and determining, according to a double-speed playing record of the historical user terminal, a double-speed value corresponding to each slice of the video includes:
step S11, the server collects the speed-doubling play behavior of the historical user terminal and generates the corresponding speed-doubling play record, wherein the speed-doubling play record comprises video identification information, the start time and the end time of speed-doubling play and a speed-doubling value;
step S12, the server carries out slicing processing on the video so as to divide the video into a plurality of slices;
and step S13, the server calculates the speed value corresponding to each fragment of the video according to the speed playing record.
In this embodiment, the double-speed play record of the historical user terminal acquired by the server is generated by collecting the double-speed play behavior of the historical user when watching a video through the historical user terminal in the past. When a historical user watches a video through a historical user terminal and triggers a speed-doubling playing behavior, the server can acquire the speed-doubling playing behavior and generate a speed-doubling playing record corresponding to the video. The double-speed play record may include video identification information for identifying the video, start time and end time of the double-speed play action, and a double-speed value. The video identification information may include video names, and may further include parameters such as video types, durations, producer or director information, and actor information. The multiple speed value in the playing information includes a multiple speed value (default to 1) before the multiple speed playing and a multiple speed value in the multiple speed process.
The server can perform fragmentation processing on one video to divide the video into a plurality of fragments, namely a plurality of different video fragments, and all fragments of one video can be sorted into a complete video according to the time stamp sequence. After the server obtains the multiple speed play record of the historical user terminal, the average actual play time of each segment can be calculated according to the actual play time when the video is watched in the multiple speed play record. The average speed doubling value of all historical users when watching the segment can be determined according to the average actual playing time length and the original playing time length of each segment, and the average speed doubling value can be used as the speed doubling value corresponding to the segment after the average speed doubling value is calculated by the server. And sequentially calculating the speed value corresponding to each fragment of one video. The speed doubling values adopted by each historical user when watching the video are not completely the same, but for a specific plot of the video, the speed doubling values selected by different historical users are relatively similar, for example, in the beginning and ending caption parts of the video, most users can adopt a fast forward playing mode with a higher speed doubling value, and in the climax part of the video, most users can reduce the speed doubling value of the speed doubling playing to avoid missing an important plot. By calculating the average speed doubling value adopted by the historical user for watching the video to serve as the speed doubling value of speed doubling processing, the important plot that the user can watch the video completely can be ensured under the function of realizing automatic speed doubling playing, and omission is avoided.
Further, referring to fig. 3, fig. 3 is a schematic diagram illustrating a detailed flow of step S13 in a third embodiment of the video-slicing double-speed playing method of the present invention, based on the embodiment shown in fig. 2, in step S13, the step of the server calculating a double-speed value corresponding to each slice of the video according to the double-speed playing record includes:
step S131, the server acquires the playing time length corresponding to each fragment in each playing from all the multiple-speed playing records so as to calculate and obtain the total playing time length corresponding to all the playing times of each fragment;
step S132, the server calculates the average playing time length of each fragment according to the total playing time length of each fragment and all playing times;
step S133, the server calculates, according to the original time length of each segment in the video and the average playing time length, a multiple speed value corresponding to each segment.
In this embodiment, the server may obtain the original playing time length of each segment and the average actual playing time length of the historical user when viewing the segment, and obtain the multiple speed value of each segment through division.
The specific calculation formula is as follows:
Figure RE-GDA0002484536880000091
referring to fig. 9 and 10, SRn is the calculated multiple speed value of the nth slice, STn is the original time length of the nth slice in the normal playing state,
Figure RE-GDA0002484536880000092
and the average playing time length of the current user terminal which watches the nth segment of the video when playing the segment at the double speed is obtained. Specifically, please refer to fig. 10, which takes calculating the speed doubling value corresponding to the 2 nd slice as an example. The method comprises the steps that after a server obtains all double-speed play records, the double-speed play records of M times of playing of a video are obtained, wherein in the mth playing process of a 2 nd fragment, a history user tries to switch multiple double-speed values in the fragment, so that k different double-speed stages exist in the 2 nd fragment, the actual time used for double-speed playing in the jth stage is STIj, and then the actual time used for double-speed playing in the jth stage is STIj
Figure RE-GDA0002484536880000093
The sum of the playing time lengths of all k stages of the 2 nd segment in the ith playing is the actual playing time length of the 2 nd segment in the ith playing;
Figure RE-GDA0002484536880000094
the total playing time of the 2 nd slice of the video in all the M playing processes is obtained. Therefore, the temperature of the molten metal is controlled,
Figure RE-GDA0002484536880000095
i.e. the average playing time of the 2 nd slice of the video in the process of playing M times. And dividing the original time length by the average playing time length to obtain the speed multiplication value corresponding to the 2 nd fragment. For example, if the original time length of the 2 nd segment is 10 minutes, there are 50 plays in the multiple speed play record of the history user terminal, and the total time length of the 50 plays is 400 minutes, the average play time length is 8 minutes. The speed value of the slice is 1.25 times according to the original time length of 10 minutes and the average playing time length of 8 minutes. The server canAnd calculating the speed value corresponding to each fragment of the video in the above way. Because the calculated speed value of each segment is associated with the speed playing record of the historical user, the obtained speed value more meets the requirement of the actual plot of the video, and the user can not miss important contents in the speed playing process.
Further, referring to fig. 4, fig. 4 is a schematic diagram illustrating a detailed flow of step S13 in a fourth embodiment of the video-slicing double-speed playing method of the present invention, based on the embodiment shown in fig. 2, in step S13, the step of the server calculating a double-speed value corresponding to each slice of the video according to the double-speed playing record includes:
step S134, the server extracts a double-speed play record associated with the video from the double-speed play records according to the video identification information corresponding to the video;
step S135, the server calculates a multiple speed value corresponding to each segment of the video according to the multiple speed play record associated with the video.
In this embodiment, the multiple speed play records include video identification information of corresponding videos, and the server may sort and filter all the multiple speed play records according to the video identification information included in the multiple speed play records. When the slicing double-speed value of a certain video is calculated, the server can screen out the double-speed play record associated with the video, namely the double-speed play record containing the video identification information of the video, from the double-speed play record according to the video identification information corresponding to the video. After the server extracts the multiple speed play records associated with the video from all the multiple speed play records in a summary manner, the server can calculate the multiple speed value corresponding to each fragment of the video according to the associated multiple speed play records. Because the server collects corresponding speed playing behaviors when the historical user plays at a speed multiple through the historical user terminal, the generated speed multiple playing records comprise different speed multiple playing records of the video. Before a certain video is subjected to speed doubling processing, speed doubling playing records of the video can be screened out from all speed doubling playing records according to video identification information, and then speed doubling values corresponding to all fragments of the video are calculated according to the speed doubling playing records of the video, so that the data volume of the speed doubling playing records in the calculating process is effectively reduced, and the processing speed is improved.
Further, referring to fig. 5, fig. 5 is a schematic detailed flowchart of a step S11 in a fifth embodiment of the video slicing double-speed playing method of the present invention, based on the embodiments shown in fig. 2 to fig. 4, in step S11, the step of the server acquiring the double-speed playing behavior of the historical user terminal and generating a corresponding double-speed playing record includes:
step S111, the server collects the double-speed playing behavior of the historical user terminal and acquires the historical time interval preset by the user;
and step S112, the server generates a corresponding double-speed playing record according to the double-speed playing behavior of the historical user terminal in the historical time interval.
In the present embodiment, the user can set in advance the history time interval of the double-speed play record for performing the calculation. After the server collects the multiple speed playing behaviors of all historical user terminals, the multiple speed playing behaviors of the historical user terminals in the historical time interval are generated into corresponding multiple speed playing records. For example, the user may preset the historical time interval to be one month before to the present, and the server may extract the multiple speed play behaviors from one month before to the present from the multiple speed play behaviors of all the historical user terminals, and generate the corresponding multiple speed play record. By setting the historical time interval, the data volume of the extracted speed-doubling playing behavior can be reduced, and the operation efficiency and the accuracy of the generated speed-doubling playing record are improved.
Further, referring to fig. 6, fig. 6 is a schematic flowchart of a sixth embodiment of the video slicing double-speed playing method according to the present invention, based on the embodiment shown in fig. 1, in step S20, the step of performing double-speed processing on the video by the server according to the double-speed value corresponding to each slice of the video to obtain a double-speed processed video file includes:
step S21, the server generates a speed index file corresponding to the video according to the time stamp sequence of each fragment in the video and the speed value corresponding to each fragment;
and step S22, the server performs speed doubling processing on the video according to the speed doubling index file to obtain a speed-doubled video file.
In this embodiment, each slice of the video contains a corresponding timestamp in the video, and all slices can be combined into a complete video according to the timestamp order. And after acquiring the time stamp in the video corresponding to each fragment, the server generates a speed doubling index file of the video according to the sequence of the time stamps of the fragments and the corresponding speed doubling value. The format corresponding to each fragment in the double-speed index file can be as follows:
| segment index number | start timestamp | end timestamp | speed multiplier |;
the server can determine the corresponding playing position and the corresponding speed value of each fragment of the video in the video according to the speed index file, and perform speed processing on the video to obtain a speed-processed video file, and the user terminal can realize speed-doubled playing of the video in a normal speed playing mode after receiving the speed-doubled video file.
Further, referring to fig. 7, fig. 7 is a flowchart illustrating a seventh embodiment of the video slicing double-speed playing method according to the present invention, based on the embodiment shown in fig. 6, in step S22, the step of performing double-speed processing on the video by the server according to the double-speed index file to obtain a double-speed processed video file includes:
step S221, the server performs speed doubling processing on each fragment of the video according to the speed doubling index file;
step S222, the server splices the segments after the speed doubling processing to form a video file after the speed doubling processing.
In this embodiment, the server may determine, according to a segment index number of a segment of the video, an entry corresponding to the segment index number from the multiple speed index file, where the entry corresponds to a start time, an end time, and a multiple speed value of the segment, and may perform multiple speed processing on the segment according to data corresponding to the segment, so that a proportional relationship between an actual playing time length of the segment subjected to the multiple speed processing and an original playing time length of the segment is the multiple speed value. For example, for a slice with a certain duration of 10 minutes, the start time, the end time, and the multiple speed value corresponding to the slice index number of the slice in the multiple speed index file are 10:00, 20:00, and 2 times, respectively. The actual playing time of the fragment after the server performs the speed doubling processing is 5 minutes, that is, the speed doubling processing is performed by shortening the playing time of the fragment to one half of the original playing time. Therefore, when playing the slice after the double speed processing, the user terminal can realize the double speed playing of the 10 minutes content by the playing time of 5 minutes. And the server performs speed doubling processing on each fragment of the video and splices the fragments subjected to speed doubling processing according to a time sequence to obtain a speed-doubled video file. The user terminal can play the video file processed by the speed doubling processing through a constant speed playing mode under the condition that the speed doubling playing function is not supported so as to realize the automatic speed doubling playing function of the video.
Further, referring to fig. 8, fig. 8 is a schematic view of a detailed flow of step S221 in an eighth embodiment of the video segment double-speed playing method of the present invention, based on the embodiment shown in fig. 7, in step S221, the step of the server performing double-speed processing on each segment of the video according to the double-speed index file includes:
step S40, the server determines the speed processing mode corresponding to each segment according to the speed index file;
step S41, when the multiple speed value of the fragment is larger than 1, the server determines the frame extraction ratio according to the multiple speed value corresponding to the fragment, and performs frame extraction processing on the corresponding fragment according to the frame extraction ratio;
and step S42, when the multiple speed value of the fragment is less than 1, the server determines the frame interpolation ratio according to the multiple speed value corresponding to the fragment, and performs frame interpolation processing on the corresponding fragment according to the frame interpolation ratio.
In this embodiment, the server may determine the speed doubling processing mode of each segment according to the speed doubling value corresponding to the segment in the speed doubling index file. When the speed value of the fragment is 1, the fragment is indicated to be at a normal playing speed, and the server does not perform speed doubling processing on the fragment.
When the multiple speed value of a slice is greater than 1, it indicates that the slice is accelerated playing during the multiple speed playing, and therefore, frame extraction processing needs to be performed on the slice to obtain the slice after the multiple speed processing. The proportion of the frame image extracted by the slice to all the frame images can be calculated by the speed value of the slice. For example, when the frame rate of a slice of the video is F and the duration is T seconds, the slice corresponds to F × T frame images, and the original speed doubling value and the speed doubling value after speed doubling are S1 and S2, respectively, S1 is S2 × b, and b is the speed doubling value of the slice. Under the original playing speed, the time duration T1 which is required by the user terminal to play the slicing is F T/S1; at the playback speed after the double speed, the time duration T2 required for the user terminal to play the slice is F × T/S2. Since the speed value of the slice is greater than 1, the playing duration after the speed is doubled is reduced compared with the original duration, i.e. t1> t 2. The number N of frame images that need to be discarded is the number of frame images required by the user terminal at the playback speed S1 during the reduced playback time period (t1-t2), that is:
N=S1*(t1-t2)=F*T*(b-1)/b;(2)
that is, the server may extract N frame images from a total of F × T frame images in the segment to implement the double-speed processing of the segment. Preferably, the extraction mode may be uniform extraction, that is, N frame images are extracted at equal intervals, and after the N frame images are extracted, the time length required for the video to play the fragment processed at the double speed at the original playing speed is reduced, thereby implementing the double speed playing function of the video.
It can be understood that when the multiple speed value is less than 1, it indicates that the slice is in slow speed playing during the multiple speed playing, and therefore, frame insertion processing needs to be performed on the slice to obtain the slice after the multiple speed processing. The server may obtain an insertable frame image by using an interpolation algorithm for the fragment, and insert the frame image into a proper position of the fragment. Wherein, t1< t2 because the time length required by the slice after the double speed processing is increased. Therefore, the number N of frame images that the server needs to insert is the number of frame images required by the user terminal at the playing speed S1 in the period of increased playing time (t2-t1), that is:
N=S1*(t2-t1)=F*T*(1-b)/b;(3)
that is, the server may implement the double-speed processing of the slice by uniformly inserting N frame images, in the same manner as the above frame extraction processing, and the frame insertion processing may also be a uniform insertion mode, which is not described herein again.
The server performs frame extraction or frame insertion processing on the fragments according to the multiple speed values of the fragments, can reduce or increase the total number of frame images of the fragments, and when the user terminal still plays at the original playing speed, the number of the frame images is reduced or increased, so that the reduction or increase of the playing time length, namely the corresponding function of accelerating playing or slow playing, is realized.
It should be noted that, when the user plays the video through the user terminal, whether to perform the double-speed playing can be determined by triggering the corresponding instruction, and if the user does not select to use the double-speed playing function, the user terminal loads the original video file to normally play the video.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a video slicing double-speed playing program is stored, where the computer-readable storage medium includes several instructions for causing a server to execute the video slicing double-speed playing method according to the embodiments of the present invention.
It is to be understood that throughout the description of the present specification, reference to the term "one embodiment", "another embodiment", "other embodiments", or "first through nth embodiments", etc., is intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, 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 process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A video slicing double-speed playing method is characterized by comprising the following steps:
the server determines the number of fragments of the video according to a preset fragment generation rule, and determines a speed doubling value corresponding to each fragment of the video according to speed doubling play records of historical user terminals;
the server performs speed doubling processing on the video according to the speed doubling value corresponding to each fragment of the video to obtain a video file after speed doubling processing;
and when the user terminal plays the video, the server pushes the video file subjected to speed doubling processing to the user terminal.
2. The video-slicing-double-speed playing method according to claim 1, wherein the step of determining, by the server, a double-speed value corresponding to each slice of the video according to the double-speed playing record of the historical user terminal comprises:
the server collects the speed-doubling playing behavior of a historical user terminal and generates a corresponding speed-doubling playing record, wherein the speed-doubling playing record comprises video identification information, the starting time and the ending time of speed-doubling playing and a speed-doubling value;
the server carries out fragment processing on the video so as to divide the video into a plurality of fragments;
and the server calculates the speed doubling value corresponding to each fragment of the video according to the speed doubling playing record.
3. The video-slicing double-speed playing method according to claim 2, wherein the step of calculating, by the server, a double-speed value corresponding to each slice of the video according to the double-speed playing record comprises:
the server acquires the playing time length corresponding to each fragment in each playing from all the multiple-speed playing records so as to calculate and obtain the total playing time length corresponding to all the playing times of each fragment;
the server calculates the average playing time length of each fragment according to the total playing time length of each fragment and all playing times;
and the server calculates the speed doubling value corresponding to each fragment according to the original time length corresponding to each fragment in the video and the average playing time length.
4. The video-slicing double-speed playing method according to claim 2, wherein the step of calculating, by the server, a double-speed value corresponding to each slice of the video according to the double-speed playing record comprises:
the server extracts a double-speed play record associated with the video from the double-speed play records according to the video identification information corresponding to the video;
and the server calculates the speed doubling value corresponding to each fragment of the video according to the speed doubling playing record associated with the video.
5. The video slicing double-speed playing method according to any of claims 2-4, wherein said step of the server collecting the double-speed playing behavior of the historical user terminal and generating the corresponding double-speed playing record comprises:
the server collects the double-speed playing behavior of a historical user terminal and acquires a historical time interval preset by a user;
and the server generates a corresponding double-speed playing record according to the double-speed playing behavior of the historical user terminal in the historical time interval.
6. The video slicing speed-doubling playing method according to claim 1, wherein the step of performing speed-doubling processing on the video by the server according to the speed-doubling value corresponding to each slice of the video to obtain a speed-doubled video file comprises:
the server generates a speed doubling index file corresponding to the video according to the time stamp sequence of each fragment in the video and the speed doubling value corresponding to each fragment;
and the server performs speed doubling processing on the video according to the speed doubling index file to obtain a speed doubled video file.
7. The video slicing speed-doubling playing method according to claim 6, wherein the step of the server performing speed-doubling processing on the video according to the speed-doubling index file to obtain a speed-doubled video file comprises:
the server performs speed doubling processing on each fragment of the video according to the speed doubling index file;
and the server splices the fragments subjected to speed doubling processing to form a video file subjected to speed doubling processing.
8. The video segment double-speed playing method of claim 7, wherein the step of the server performing double-speed processing on each segment of the video according to the double-speed index file comprises:
the server determines a speed multiplying processing mode corresponding to each fragment according to the speed multiplying index file;
when the speed value of the fragment is greater than 1, the server determines a frame extraction ratio according to the speed value corresponding to the fragment, and performs frame extraction processing on the corresponding fragment according to the frame extraction ratio;
and when the speed value of the fragment is less than 1, the server determines the frame interpolation ratio according to the speed value corresponding to the fragment, and performs frame interpolation on the corresponding fragment according to the frame interpolation ratio.
9. A video slicing speed-doubling playing system, comprising a server, wherein the server comprises a memory, a processor and a video slicing speed-doubling playing program stored in the memory and operable on the processor, wherein: the video slicing speed playback program when executed by the processor implements the steps of the video slicing speed playback method according to any one of claims 1 to 8.
10. A computer-readable storage medium, having stored thereon a video-slicing double-speed playback program, which when executed by a processor, implements the steps of the video-slicing double-speed playback method according to any one of claims 1 to 8.
CN202010235677.9A 2020-03-27 2020-03-27 Video slicing speed-multiplying playing method, system and storage medium Pending CN111327965A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010235677.9A CN111327965A (en) 2020-03-27 2020-03-27 Video slicing speed-multiplying playing method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010235677.9A CN111327965A (en) 2020-03-27 2020-03-27 Video slicing speed-multiplying playing method, system and storage medium

Publications (1)

Publication Number Publication Date
CN111327965A true CN111327965A (en) 2020-06-23

Family

ID=71166241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010235677.9A Pending CN111327965A (en) 2020-03-27 2020-03-27 Video slicing speed-multiplying playing method, system and storage medium

Country Status (1)

Country Link
CN (1) CN111327965A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
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
CN112887643A (en) * 2021-01-27 2021-06-01 北京翔云颐康科技发展有限公司 Method, device, storage medium and electronic device for recording video
CN113329238A (en) * 2021-08-03 2021-08-31 武汉中科通达高新技术股份有限公司 Video file management method and device and server
CN113691873A (en) * 2021-07-23 2021-11-23 北京奇艺世纪科技有限公司 Video playing method, device, system, terminal and storage medium
CN114388001A (en) * 2021-12-31 2022-04-22 北京梧桐车联科技有限责任公司 Multimedia file playing method, device, equipment and storage medium
CN114697700A (en) * 2020-12-28 2022-07-01 北京小米移动软件有限公司 Video editing method, video editing device and storage medium
CN116993253A (en) * 2023-07-12 2023-11-03 哈尔滨商业大学 Real-time logistics information tracking method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869430A (en) * 2015-05-18 2015-08-26 北京中熙正保远程教育技术有限公司 Video speed multiplication playing method and apparatus
US20150378589A1 (en) * 2014-06-27 2015-12-31 International Business Machines Corporation Utilizing key points in a progress bar to browse through content
CN107888948A (en) * 2017-11-07 2018-04-06 北京小米移动软件有限公司 Determine method and device, the electronic equipment of video file broadcasting speed
CN108235123A (en) * 2016-12-15 2018-06-29 优视科技有限公司 Video broadcasting method and device
CN108495149A (en) * 2018-03-16 2018-09-04 优酷网络技术(北京)有限公司 Multimedia content playback method and device
CN110278450A (en) * 2018-03-16 2019-09-24 优酷网络技术(北京)有限公司 Multimedia content playback method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150378589A1 (en) * 2014-06-27 2015-12-31 International Business Machines Corporation Utilizing key points in a progress bar to browse through content
CN104869430A (en) * 2015-05-18 2015-08-26 北京中熙正保远程教育技术有限公司 Video speed multiplication playing method and apparatus
CN108235123A (en) * 2016-12-15 2018-06-29 优视科技有限公司 Video broadcasting method and device
CN107888948A (en) * 2017-11-07 2018-04-06 北京小米移动软件有限公司 Determine method and device, the electronic equipment of video file broadcasting speed
CN108495149A (en) * 2018-03-16 2018-09-04 优酷网络技术(北京)有限公司 Multimedia content playback method and device
CN110278450A (en) * 2018-03-16 2019-09-24 优酷网络技术(北京)有限公司 Multimedia content playback method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697700A (en) * 2020-12-28 2022-07-01 北京小米移动软件有限公司 Video editing method, video editing device and storage medium
CN112887643A (en) * 2021-01-27 2021-06-01 北京翔云颐康科技发展有限公司 Method, device, storage medium and electronic device for recording video
CN112866805A (en) * 2021-04-23 2021-05-28 北京金和网络股份有限公司 Video acceleration processing method and device and electronic equipment
CN113691873A (en) * 2021-07-23 2021-11-23 北京奇艺世纪科技有限公司 Video playing method, device, system, terminal and storage medium
CN113329238A (en) * 2021-08-03 2021-08-31 武汉中科通达高新技术股份有限公司 Video file management method and device and server
CN114388001A (en) * 2021-12-31 2022-04-22 北京梧桐车联科技有限责任公司 Multimedia file playing method, device, equipment and storage medium
CN116993253A (en) * 2023-07-12 2023-11-03 哈尔滨商业大学 Real-time logistics information tracking method and system

Similar Documents

Publication Publication Date Title
CN111327965A (en) Video slicing speed-multiplying playing method, system and storage medium
US8171515B2 (en) Automatically generated TV favorites list
US7614064B2 (en) Determining program boundaries through viewing behavior
CN111327966B (en) Video double-speed playing method, system and storage medium
EP2541963A2 (en) Method for identifying video segments and displaying contextually targeted content on a connected television
EP1538837B1 (en) Method for extracting program and apparatus for extracting program
US20040123318A1 (en) Personal channel service providing method and apparatus for providing preferred program at user preferred time
CN111432235A (en) Live video generation method and device, computer readable medium and electronic equipment
CN104378662B (en) The system and method that a kind of smart television judges the effective viewed programs of user
CN111327967B (en) Intelligent video speed-multiplying playing method, system and storage medium
CN108810580B (en) Media content pushing method and device
US20110066961A1 (en) Method and apparatus for presenting a summary of a content item
JP2000023062A (en) Digest production system
CN111698261A (en) Video playing method, device, equipment and storage medium based on streaming media
US8321895B2 (en) Selecting program items depending on a period of time in which the program items are to be stored
CN106844683B (en) Information sharing method and device
JP6028505B2 (en) Recording / playback apparatus and program search method
JP2017167908A (en) Device, method, and program for recommending tv programs
JP6567715B2 (en) Information processing apparatus, information processing method, and program
CN112511904A (en) Video playing progress control method, device, equipment and storage medium
JPH1042234A (en) Reception terminal equipment
CN112163878A (en) Virtual carousel method, system, computer device and computer storage medium
CN106507183B (en) Method and device for acquiring video name
CN115065837B (en) Video inter-cut method, device, equipment and computer readable storage medium
JP2017011438A (en) Information processing apparatus, program, information processing system, and receiving apparatus

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
CB02 Change of applicant information

Address after: Room 2306, east block, Skyworth semiconductor design building, 18 Gaoxin South 4th Road, Gaoxin community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518108

Applicant after: Shenzhen Kukai Network Technology Co.,Ltd.

Address before: 518108 Room 601, block C, Skyworth building, 008 Gaoxin South 1st Road, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen Coocaa Network Technology Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20200623

RJ01 Rejection of invention patent application after publication