CN109309880B - Video playing method and device, computer equipment and storage medium - Google Patents

Video playing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN109309880B
CN109309880B CN201811166702.1A CN201811166702A CN109309880B CN 109309880 B CN109309880 B CN 109309880B CN 201811166702 A CN201811166702 A CN 201811166702A CN 109309880 B CN109309880 B CN 109309880B
Authority
CN
China
Prior art keywords
video
target
barrage
play
slow
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.)
Active
Application number
CN201811166702.1A
Other languages
Chinese (zh)
Other versions
CN109309880A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201811166702.1A priority Critical patent/CN109309880B/en
Publication of CN109309880A publication Critical patent/CN109309880A/en
Application granted granted Critical
Publication of CN109309880B publication Critical patent/CN109309880B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4314Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for fitting data in a restricted space on the screen, e.g. EPG data in a rectangular grid
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Abstract

The application provides a video playing method, a video playing device, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring a bullet screen file corresponding to a video selected to be played by a user; acquiring the number of bullet screens in one or more target time periods in the video according to the bullet screen files; and controlling the playing speed of the video in the one or more target time periods according to the number of the bullet screens. By the method, the automatic adjustment of the video playing speed can be realized, the trouble caused by manually executing fast forward and fast backward operation is avoided, the operation cost is reduced, the convenience of playing speed control is improved, and the technical problems of poor convenience and high operation cost of manually adjusting the video playing speed in the prior art are solved.

Description

Video playing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of video playing technologies, and in particular, to a video playing method and apparatus, a computer device, and a storage medium.
Background
With the development of the internet technology, the video playing technology is more intelligent. When a user watches videos through the network television or various video players, the videos can be paused, fast forwarded or fast reversed at any time according to the requirements of the user. For example, when a user watches a tv drama, the user may perform fast forward operation on the draggy segments of the drama by using a remote controller, a mouse, a keyboard, a touch screen slide, and the like to adjust the playing rate of the video and skip over segments that the user does not want to watch.
However, currently, the adjustment of the playing rate of the video is mostly realized by manually executing fast forward and fast backward operations by a user, and the operation mode is not convenient enough, needs manual operation by the user, has certain operation cost, and is poor in user experience.
Disclosure of Invention
The application provides a video playing method, a video playing device, computer equipment and a storage medium, which are used for solving the technical problems of poor convenience and high operation cost in the prior art of manually adjusting the playing speed of a video.
An embodiment of an aspect of the present application provides a video playing method, including:
acquiring a bullet screen file corresponding to a video selected to be played by a user;
acquiring the number of bullet screens in one or more target time periods in the video according to the bullet screen files;
and controlling the playing speed of the video in the one or more target time periods according to the number of the bullet screens.
Another embodiment of the present application provides a video playing apparatus, including:
the acquisition module is used for acquiring a bullet screen file corresponding to the video selected to be played by the user;
the statistic module is used for acquiring the number of bullet screens in one or more target time periods in the video according to the bullet screen files;
And the control module is used for controlling the playing speed of the video in the one or more target time periods according to the number of the bullet screens.
An embodiment of another aspect of the present application provides a computer device, including: a processor and a memory; the processor reads the executable program codes stored in the memory to run programs corresponding to the executable program codes, so as to implement the video playing method according to the embodiment of the application.
A fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a video playing method according to an embodiment of the present application.
According to the video playing method, the video playing device, the computer equipment and the storage medium, the bullet screen file corresponding to the video selected to be played by the user is obtained, the bullet screen number of one or more target time periods in the video is obtained according to the bullet screen file, and then the playing speed of the video in the one or more target time periods is controlled according to the bullet screen number. Therefore, the purpose of controlling the video playing speed according to the number of the barrage related to the video is achieved, the automatic adjustment of the video playing speed is achieved, the trouble caused by manual fast forward and fast backward execution is avoided, the operation cost is reduced, the convenience of playing speed control is improved, and the series pursuit experience of a user is improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a video playing method according to an embodiment of the present application;
FIG. 2 is a diagram illustrating an example of a portion of the contents of a bullet screen file;
fig. 3 is a schematic flowchart of another video playing method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another video playing method according to an embodiment of the present application;
fig. 5 is a schematic flowchart illustrating a video playing method according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of a video playback device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another video playback device according to an embodiment of the present application; and
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
A video playback method, an apparatus, a computer device, and a storage medium according to embodiments of the present application are described below with reference to the drawings.
Fig. 1 is a schematic flowchart of a video playing method according to an embodiment of the present application, where the method can be applied to a video playing website and a video player. For convenience of unified description, the following embodiments will explain the present application by taking the video playing method as an example applied to a video player, where the video player performs playing rate control on a video selected to be played by a user.
As shown in fig. 1, the video playing method may include the following steps:
step 101, acquiring a bullet screen file corresponding to a video selected by a user to be played.
With the development of bullet screen culture, most video websites, video APPs and the like support the input and display of bullet screens at present. The barrage refers to a comment subtitle popped up when a video is watched on the network, and the barrages displayed at the same specific time point in the video generally have the same theme, and the larger the number of the barrages, the stronger the topicality of the current video picture is.
When watching videos, the user can release the bullet screen at any time through the bullet screen input frame, and can also open the bullet screen display function to view bullet screens released by other users. The bullet screen that the user has published is stored in bullet screen database, when saving the bullet screen, can be with belonging to all bullet screens storage of same video in same bullet screen file, in the bullet screen database, different bullet screen files can distinguish according to the video identification that corresponds the video, and the video that the video identification can only confirm corresponds.
In this embodiment, when a user selects to play a certain video in the video player, the video player may obtain, according to the video identifier of the video, a bullet screen file corresponding to the video currently selected to be played by the user from the bullet screen database, where the bullet screen file includes all bullet screens related to the video currently selected by the user. For example, if the video currently selected by the user is the first episode of the 25 th episode of the sitcom series, "the video player obtains a bullet screen file matching with the video identifier from a bullet screen database according to the video identifier of the" sitcom ", where the bullet screen file includes all bullet screens from the 1 st episode to the 25 th episode.
Fig. 2 is an exemplary diagram of a part of contents of a bullet screen file, and as shown in fig. 2, the bullet screen file includes a plurality of bullet screens, and each bullet screen is composed of related information of the bullet screen (for example, information such as a corresponding video collection identifier, a timestamp, and the like) and specific contents of the bullet screen.
In a possible implementation manner of the embodiment of the present application, a user may select whether to start the video playing rate automatic adjustment function. For example, an "automatic play rate adjustment" function selection switch may be set in a setting interface of the video player, or an "automatic play rate adjustment" function selection switch may be set in a related information display interface of the video, and when the user starts the function, if the user selects the video, the video player acquires a bullet screen file corresponding to the video currently selected to be played by the user. Therefore, the user can autonomously and selectively control the video playing speed, the personalized requirements of the user can be met, and the user experience is improved.
And 102, acquiring the number of bullet screens in one or more target time periods in the video according to the bullet screen file.
In this embodiment, after the bullet screen file corresponding to the video currently selected to be played by the user is obtained, the number of bullet screens in one or more target time periods in the video can be counted according to the bullet screen file. For example, the number of bullet screens in one or more target time periods in the video may be obtained according to information corresponding to each bullet screen in the bullet screen file, where the information corresponding to each bullet screen may be an album identifier and/or a timestamp, and the timestamp refers to a time when the bullet screen appears in the video content, for example, when the video content plays to 23 '55 ", the timestamp of the bullet screen is 23' 55".
The target time period may be a playing time length of one video content, or may be a part of the playing time length of one video content, for example, one fifth of the playing time length is taken as one target time period.
As an example, for a video including multiple collections, the target time period may be the playing duration of each collection, that is, one collection in the video is used as one target time period, and according to the acquired bullet screen file and the collection identifier corresponding to each bullet screen in the bullet screen file, the number of bullet screens corresponding to each collection may be determined; or, the target time period may also be a part of the play time of one selection, for example, the play time of the selection is 40 minutes, and 30 seconds may be used as one target time period, and each selection is divided into 80 target time periods, so that the number of bullet screens included in each selection in every 30 seconds may be determined according to the acquired bullet screen file and the selection identifier and the timestamp corresponding to each bullet screen in the bullet screen file.
As an example, for a stand-alone video, the target time period may be a fraction of the play-out duration of the video. For example, for a movie, the playing time is 90 minutes, 1 minute can be taken as a target time period, the video content of the movie is divided into 90 target time periods, and the number of bullet screens included in each 1 minute in the movie can be determined according to the acquired bullet screen file and the time stamp corresponding to each bullet screen in the bullet screen file.
And 103, controlling the playing rate of the video in one or more target time periods according to the number of the bullet screens.
In this embodiment, after the number of the barrages in one or more target time periods in the video is determined, the playing rate of the corresponding time period can be controlled according to the number of the barrages included in each time period. Specifically, the larger the number of bullet screens, the slower the playback rate.
As an example, a threshold of the number of bullet screens may be predetermined, after the number of bullet screens in one or more target time periods is obtained, the number of bullet screens in one or more target time periods is compared with the threshold of the number of bullet screens, video content corresponding to a target time period in which the number of bullet screens exceeds the threshold of the number of bullet screens is played at a lower playing speed, and video content corresponding to a target time period in which the number of bullet screens does not exceed the threshold of the number of bullet screens is played at a lower playing speed. For example, the video content corresponding to the target time period in which the number of bullet screens exceeds the threshold of the number of bullet screens is played at a standard playing rate (represented by x), and the video content corresponding to the target time period in which the number of bullet screens does not exceed the threshold of the number of bullet screens is played at a playing rate of 1.5 x.
As an example, a corresponding relation table between different bullet screen numbers and playing rates may be preset, and after the bullet screen numbers of one or more target time periods are obtained, the playing rates of the one or more target time periods are determined by querying the preset relation table. For example, when the target time period is a selected set of videos, the table of the correspondence between the number of barrages and the playing rate may be as shown in table 1; when the target time period is a portion of the playing time of a selected set or an independent video in the video, the table of the correspondence between the number of bullet screens and the playing speed may be as shown in table 2.
TABLE 1
Number of bullet screens (y) Play Rate (x)
y≥6000 0.5x
5000≤y<6000 x
3000≤y<5000 1.1x
y<3000 1.5x
TABLE 2
Number of bullet screens (y) Play Rate (x)
y≥500 0.5x
300≤y<500 x
100≤y<300 1.1x
y<100 1.5x
After the number of the barrages in the target time period is obtained, the play rate corresponding to the target time period can be determined by inquiring the table 1 or the table 2, and then the video content is played according to the determined play rate when the video content is played to the target time period.
In a possible implementation manner of the embodiment of the application, the number of bullet screens with preset intentions included in bullet screen contents in one or more target time periods can be counted by utilizing a semantic recognition technology according to the content of each bullet screen in the acquired bullet screen file. The preset intention may be, for example, fast forward, slow play, etc. For example, for the barrage with the barrage content of "woman is annoying, does not want to see", "the plot is too draggy, wastes time", the corresponding intentions of these barrages are identified as fast-forwarding; for the barrage with the barrage content of 'too fast progress bar walking' and 'wonderful', the corresponding intention of the barrage is identified as slow playing. And then, according to the number of the bullet screens obtained through statistics, the playing speed of one or more target time periods is adjusted.
Further, for the same adjustment mode, different bullet screen numbers can be set corresponding to different playing rates. For example, for fast forward, when the number of barrage is less than 100, the corresponding play rate is the standard play rate; when the number of the barrage is not less than 100 and not more than 200, the corresponding playing speed is (1.1 × standard playing speed); and so on. For slow play, when the number of the barrage is less than 100, the corresponding play rate is the standard play rate; when the number of the barrage is not less than 100 and not more than 200, the corresponding playing speed is (0.9 × standard playing speed); and so on.
For example, if the number of barrages identified as fast-forward intentions in a target time period is 87, and if the number of barrages identified as slow-play intentions is 63, the play rate of the video in the target time period is a standard play rate; if the number of barrage identified as the slow-play intention is 118, the play rate of the video for the target time period is (0.9 × standard play rate). If the number of barrage identified as fast-forward intent is 142 and the number of barrage identified as slow-play intent is 105, the playback rate of the video for the target time period is (1.1 × standard playback rate).
According to the video playing method, the bullet screen file corresponding to the video selected to be played by the user is obtained, the bullet screen quantity of one or more target time periods in the video is obtained according to the bullet screen file, and then the playing speed of the video in the one or more target time periods is controlled according to the bullet screen quantity. Therefore, the purpose of controlling the video playing speed according to the number of the barrage related to the video is achieved, the automatic adjustment of the video playing speed is achieved, the trouble caused by manual fast forward and fast backward execution is avoided, the operation cost is reduced, the convenience of playing speed control is improved, and the series pursuit experience of a user is improved.
As described above, the current internet televisions, video players, etc. can provide different types of videos such as tv series, movies, and art programs for the user to select, and the user can watch tv series or art programs with multiple selections, or can select to watch independent videos such as movies. In a possible implementation manner of the embodiment of the present application, when a video selected by a user to be played is one of the video collections, for example, the user selects the 5 th collection of the drama "western blotting", the play rate of the collection may be controlled according to the number of barrages included in the collection, so as to achieve the purpose of controlling the play rate of different collections according to the wonderful degree of different collections included in the video. Thus, the present application provides another video playing method, and fig. 3 is a schematic flow chart of another video playing method provided in the embodiment of the present application.
As shown in fig. 3, the video playing method may include the following steps:
step 201, acquiring a bullet screen file corresponding to a video selected by a user to be played, wherein the video selected by the user to be played is a selection set in a video set, and the bullet screen file includes a selection set identifier corresponding to each bullet screen.
In this embodiment, when the video selected to be played by the user is one of the video sets, the bullet screen file corresponding to the video selected to be played by the user and acquired by the video player is the bullet screen file corresponding to the video set, that is, the bullet screen file acquired by the video player includes all bullet screens corresponding to each of the video sets.
Step 202, screening the first target barrage matched with the selection identifier of the video according to the selection identifier corresponding to each barrage, and determining the number of all the first target barrages.
In this embodiment, the barrage file acquired by the video player includes the album identifier corresponding to each barrage, and then the first target barrage matched with the album identifier of the video can be screened from the barrage file according to the album identifier corresponding to each barrage, and the number of all the first target barrages is acquired.
For example, if the video currently selected by the user is set 20 of 25 tv series sitter recording, each bullet screen identified by the selection identifier 20 in the acquired bullet screen files may be determined as a first target bullet screen, and the number of bullet screens identified by the selection identifier 20 is counted as the first target bullet screen number.
Step 203, judging whether the number of the first target barrage is larger than a threshold value of the selected barrage of the preset video set.
The selection set barrage threshold may be preset, for example, the selection set barrage threshold is set to 5000.
In this embodiment, after determining the number of first target barrage corresponding to the selection set in the video set currently selected by the user, the number of first target barrage may be compared, and if the number of first target barrage is greater than a preset selection set barrage threshold value, step 205 is executed; otherwise, step 204 is performed.
In a possible implementation manner of the embodiment of the present application, the selection set barrage threshold of the video set may also be determined according to the number of barrages included in a barrage file corresponding to the video set. Specifically, the number of barrages corresponding to each selection set in the video set may be obtained according to the selection set identifier included in each barrage, an average value of the number of barrages corresponding to each selection set is calculated, and the obtained average value is determined as the selection set barrage threshold value of the video set. Therefore, the selection bullet screen threshold value can be set in a targeted manner, so that the accuracy of playing rate control is improved, the problem that the user misses the content of a wonderful selection or spends a long time in play chase due to the fact that the selection bullet screen threshold value is too large or too small is avoided to a certain extent, and play chase experience of the user is further improved.
And 204, acquiring a preset first rate corresponding to the number of the first target barrage, and playing all contents of the video according to the first rate.
Step 205, obtaining a preset second rate corresponding to the first target bullet screen quantity, and playing the whole content of the video according to the second rate, wherein the second rate is smaller than the first rate.
In this embodiment, when it is known that the number of the first target barrage is less than or equal to the selection barrage threshold value through comparison, a preset first rate corresponding to the number of the first target barrage is obtained, and all contents of the video are played according to the first rate; and when the comparison shows that the number of the first target barrage is larger than the selection barrage threshold value, acquiring a preset second rate corresponding to the number of the first barrage targets, and playing the whole content of the video according to the second rate, wherein the second rate is smaller than the first rate.
For example, assume that the preset corresponding relationship between the first target barrage number and the playing rate is: the number of the first target barrage is larger than the threshold value of the selection barrage, and the playing speed is x; the number of the first target barrage is less than or equal to the threshold value of the selection barrage, and the playing speed is 1.5 x. Assuming that the selection currently selected by the user is the "journey to the west" set 5, the number of first target barrage corresponding to the selection is 3700, and the threshold value of the selection barrage is 3500, it may be determined that the first rate corresponding to the number of first target barrage is x, and the video player plays all the contents of the "journey to the west" set 5 at the play rate of x.
In the video playing method of this embodiment, when a video selected by a user to be played is a selected set in a video set, a first target barrage matched with an identifier of the selected set of the video is screened according to the identifier of the selected set corresponding to each barrage, and the number of all first target barrages is determined, and then the number of the first target barrages is compared with a preset threshold value of the selected set barrage of the video set, when the number of the first target barrages is less than or equal to the threshold value of the selected set barrage, a preset first rate corresponding to the number of the first target barrages is obtained, and all videos are played according to the first rate, when the number of the first target barrages is greater than the threshold value of the selected set, a preset second rate corresponding to the number of the first barrage targets is obtained, the second rate is less than the first rate, and the entire content of the video is played according to the second rate, thereby achieving the purpose of controlling the playing rate of the selected set according to the number of the barrages of the selected set, automatic adjustment of the play rates of different selections is achieved.
The video playing method disclosed by the application can also adjust the playing speed of different video segments in the video according to the wonderful degree of the video content for the video selected to be played by the user at present, so that the user can efficiently chase after the play without missing the wonderful video segments.
Fig. 4 is a schematic flowchart of another video playing method according to an embodiment of the present application.
As shown in fig. 4, the video playing method may include the following steps:
step 301, acquiring a bullet screen file corresponding to a video selected to be played by a user, where the video selected to be played by the user is an option in a video set, and the bullet screen file includes an option identifier and a timestamp corresponding to each bullet screen.
Step 302, screening second target barrages matched with the selection identifications of the videos and the preset time period identifications according to the selection identifications and the time stamps corresponding to each barrage, and determining the number of all the second target barrages.
The period identifier may be preset, for example, for each selection in the video set, each selection may be divided into a plurality of time periods, and each time period may be marked with a unique period identifier.
In this embodiment, the barrage file acquired by the video player includes the album identifier and the timestamp corresponding to each barrage, and according to the album and the timestamp corresponding to each barrage, the second target barrage matched with the album identifier of the video currently selected by the user and the preset time interval identifier can be screened from the barrage file, and the number of all the second target barrages corresponding to each time interval identifier is determined.
For example, suppose that the playing time of each selection of 25 television series "western shorthand" is 40 minutes, 30 seconds is taken as a time period, each selection is divided into 80 time periods, and the time period identifier of each time period is 1 to 80 in turn, that is, the time period identifier of 0 '0 "to 0' 30" in each selection is 1, the time period identifier of 0 '31 "to 1' 00" is 2, and so on, the time period identifier of 39 '31 "to 40' 00" is 80. Assuming that the selection currently selected by the user is set 5 of the western-style notes, and the corresponding selection identifier of one of the barrages is 5 and the timestamp is 0 '21' in the acquired barrage file, it can be determined that the barrage matches with the time identifier 1 in the set 5, and the barrage is one of the second target barrages in the video segments with the time interval identifier 1 in the set 5. According to the mode, all second target barrage respectively matched with the time interval identifications in the 5 th set can be screened out from the barrage file, and the number of all second target barrage matched with the time interval identifications is counted for each time interval identification and is used as the number of the second target barrage of the time interval identification.
And 303, acquiring the number of bullet screens corresponding to each preset unit time interval in the video according to the collection identification and the timestamp contained in each bullet screen.
For a video set containing a plurality of collections, after a bullet screen file corresponding to the video set is obtained, each bullet screen in the bullet screen file can be analyzed, collection identification and timestamp contained in each bullet screen are extracted, and then the number of bullet screens corresponding to each preset unit time period in the video is obtained according to the collection identification and the timestamp contained in each bullet screen.
The preset unit time period may be preset, for example, the duration of the unit time period is set to 10 seconds, and each selection included in the video set is divided into a plurality of unit time periods with 10 seconds as a time period. Furthermore, according to the collection identification and the timestamp corresponding to each bullet screen in the bullet screen file, the number of bullet screens contained in each collection within every 10 seconds can be determined.
It should be noted that the duration of the unit time interval may be the same as or different from the duration of the preset time interval, that is, the duration used for time interval division of the selection is different when determining the number of bullet screens corresponding to each preset unit time interval and determining the number of the second target bullet screens, for example, when determining the number of the second target bullet screens, the selection is divided into a plurality of preset time intervals by taking 30 seconds as a time interval, and when determining the number of bullet screens corresponding to each preset unit time interval, the selection is divided into a plurality of unit time intervals by taking 10 seconds as a time interval. Preferably, the duration of the unit period is the same as the duration of the preset period to ensure the accuracy of the play rate control.
And 304, calculating the average value of the number of the barrages corresponding to each preset unit time interval, and determining the video barrage threshold value of the video.
In this embodiment, after the number of barrage corresponding to each preset unit time period in each selected set of the video set is determined, an average value of the number of barrage corresponding to each preset unit time period may be further calculated, and the obtained average value is determined as the video barrage threshold of the video.
It should be noted that the video bullet screen threshold value corresponding to the selected set may be determined only according to the number of bullet screens corresponding to each preset unit time period in the selected set currently selected by the user, or the video bullet screen threshold value corresponding to all the selected sets, that is, the video bullet screen threshold value corresponding to the video set, may also be determined according to the number of bullet screens corresponding to each preset unit time period in all the selected sets in the video selected set.
Step 305, determining whether the second target barrage quantity is greater than a preset video barrage threshold value of the video.
In this embodiment, after the video barrage threshold of the video is obtained, the number of second target barrages matched with each preset time period identifier in the selection currently selected by the user may be compared with the video barrage threshold, and if the number of second target barrages is greater than the video barrage threshold, step 307 is executed; otherwise, step 306 is performed.
It should be noted here that the preset video bullet screen threshold value may also be preset, for example, the video bullet screen threshold value is set to 300, 400, and the like, so as to simplify the calculation process of the video player and reduce the processing load.
And step 306, acquiring a preset third rate corresponding to the number of the second target barrages, and playing the video clips corresponding to the time interval identifications in the video according to the third rate.
And 307, acquiring a preset fourth rate corresponding to the number of the second target barrages, and playing a video segment corresponding to the time interval identification in the video according to the fourth rate, wherein the fourth rate is less than the third rate.
In this embodiment, the number of second target barrage is compared with a preset video barrage threshold value of the video, and when the comparison result shows that the number of second target barrage is less than or equal to the video barrage threshold value, a preset third rate corresponding to the number of second target barrage is obtained, and a video segment corresponding to the time interval identifier in the video is played according to the third rate; and when the comparison result shows that the number of the second target barrage is greater than the threshold value of the video barrage, acquiring a preset fourth rate corresponding to the number of the second target barrage, and playing a video clip corresponding to the time interval identification in the video according to the fourth rate, wherein the fourth rate is less than the third rate.
For example, assume that the preset corresponding relationship between the second target barrage number and the playing rate is: the number of the second target barrage is larger than the threshold value of the video barrage, and the playing speed is 0.5 x; the number of the second target barrage is less than or equal to the threshold value of the video barrage, and the playing speed is x. Assuming that the selection set currently selected by the user is the 'journey to the west' set 5, the number of second target barrage matched with the time interval identifier 1 in the selection set is 330, the number of second target barrage matched with the time interval identifier 2 is 270, and the threshold value of the video barrage is 300, when the video player plays the 'journey to the west' set 5, the video segment corresponding to the time interval identifier 1 is played at the play rate of 0.5x, and the video segment corresponding to the time interval identifier 2 is played at the play rate of x.
In a possible implementation manner of the embodiment of the present application, after acquiring the number of bullet screens corresponding to each preset unit time period in a video according to the collection identifier and the timestamp included in each bullet screen, the number of bullet screens corresponding to each preset unit time period may be compared, and a first unit time period corresponding to the maximum number of bullet screens and a second unit time period corresponding to the minimum number of bullet screens are determined. Furthermore, when the playing rate of the video in one or more target time periods is controlled according to the number of the barrage, a preset fifth rate corresponding to the maximum number of the barrage can be obtained, a video clip corresponding to the first unit time period in the video is played according to the fifth rate, a preset sixth rate corresponding to the minimum number of the barrage is obtained, and a video clip corresponding to the second unit time period in the video is played according to the sixth rate, wherein the sixth rate is greater than the fifth rate. Further, for video clips corresponding to unit periods other than the first unit period and the second unit period, the video clips can be played at a playing rate greater than the fifth rate but less than the sixth rate.
It should be noted that, the magnitude relationships between the fourth rate and the fifth rate, and between the third rate and the sixth rate are not compared, when the time period marked by the time period identifier of the second target barrage number greater than the video barrage threshold value is just the first unit time period corresponding to the maximum barrage number, it may be predefined to play the video segment corresponding to the time period identifier according to the fourth rate, or it may be predefined to play the video segment corresponding to the time period identifier according to the fifth rate, which is not limited in this application.
In a possible implementation manner of the embodiment of the present application, after the second target barrage matched with the collection identifier of the video and the preset time period identifier is screened according to the collection identifier and the timestamp corresponding to each barrage, and after the number of all the second target barrages is determined, the maximum number of the second target barrages and the minimum number of the second target barrages can be screened from the number of the second target barrages corresponding to each preset time period identifier, a video clip corresponding to the time period identifier of the maximum number of the second target barrages is played according to a rate v1, a video clip corresponding to the time period identifier of the minimum number of the second target barrages is played according to a rate v2, and video clips corresponding to other time period identifiers in the collection are played according to a rate v 3. Wherein v1 < v3 < v 2.
The method comprises the steps of comparing the number of the bullet screens corresponding to each preset unit time interval, determining a first unit time interval corresponding to the maximum number of the bullet screens and a second unit time interval corresponding to the minimum number of the bullet screens, playing a video clip corresponding to the first unit time interval in the video according to a fifth speed, playing a video clip corresponding to the second unit time interval in the video according to a sixth speed which is higher than the fifth speed, dividing the video clips in the same selected set into a most wonderful clip and a least wonderful clip, playing the video clips according to different playing speeds, automatically controlling the playing speeds of different video clips without calculating a threshold value, and reducing the processing burden of a video player.
The video playing method of this embodiment screens, according to the collection identifier and the timestamp corresponding to each bullet screen, second target bullet screens matching the collection identifier and the preset time interval identifier of the video, determines the number of all the second target bullet screens, compares the number of the second target bullet screens with a preset video bullet screen threshold value of the video, when the number of the second target bullet screens is less than or equal to the video bullet screen threshold value, obtains a preset third rate corresponding to the number of the second target bullet screens, plays a video clip corresponding to the time interval identifier in the video according to the third rate, when the number of the second target bullet screens is greater than the video bullet screen threshold value, obtains a preset fourth rate corresponding to the number of the second target bullet screens, wherein the fourth rate is less than the third rate, and plays the video clip corresponding to the time interval identifier in the video according to the fourth rate. Therefore, the effect of automatically adjusting the playing speed of different video clips in the same selection is achieved, the time of a user for tracing the drama is saved, the watching efficiency is improved, and the experience of tracing the drama is improved. In addition, the number of the barrages corresponding to each preset unit time interval in the video is obtained according to the selection set identification and the timestamp contained in each barrage, the average value of the number of the barrages corresponding to each preset unit time interval is calculated, and the video barrage threshold value of the video is determined, so that the determined video barrage threshold value has pertinence, and the accuracy of playing rate control is improved.
It should be noted that, when the video selected by the user to be played is one selection in the video set, and after the selection is played, the user can automatically jump to the next selection, and the video playing method in the embodiment shown in fig. 3 and fig. 4 is also suitable for controlling the playing rate of the next selection.
Fig. 5 is a flowchart illustrating a video playing method according to another embodiment of the present application.
As shown in fig. 5, the video playing method may include the following steps:
step 401, acquiring a bullet screen file corresponding to a video selected to be played by a user, wherein the video selected to be played by the user is an independent video, and the bullet screen file includes a timestamp corresponding to each bullet screen.
Wherein the independent video is, for example, a movie, an MV, etc.
Step 402, screening second target barrages matched with the preset time period identification in the video according to the time stamp corresponding to each barrage, and determining the number of all the second target barrages.
And 403, acquiring the number of bullet screens corresponding to each preset unit time interval in the video according to the timestamp contained in each bullet screen.
And step 404, calculating an average value of the number of the barrages corresponding to each preset unit time interval, and determining a video barrage threshold value of the video.
It should be noted that, in the present embodiment, for the description of the steps 402 to 404, reference may be made to the description of the steps 302 to 304 in the foregoing embodiment, and the implementation principle is similar, except that in this embodiment, when the number of the second target barrage corresponding to each preset time period identifier and the number of the barrages corresponding to each preset unit time period are determined, the barrages are screened according to the timestamp corresponding to each barrage in the barrage file, which is not described herein again.
Step 405, determining whether the number of the second target barrage is greater than a preset video barrage threshold value of the video.
In this embodiment, after determining the number of second target barrage corresponding to each preset time interval identifier in the video and the video barrage threshold of the video, the number of second target barrage may be compared with the video barrage threshold, and if the number of second target barrage is greater than the video barrage threshold, step 407 is executed; otherwise, step 406 is performed.
And 406, acquiring a preset third rate corresponding to the number of the second target barrages, and playing the video clips corresponding to the time interval identifications in the video according to the third rate.
Step 407, obtaining a preset fourth rate corresponding to the number of the third target barrages, and playing a video segment corresponding to the time interval identifier in the video according to the fourth rate, where the fourth rate is less than the third rate.
In this embodiment, the number of the second target barrage is compared with the video barrage threshold, and when the comparison result shows that the number of the second target barrage is less than or equal to the video barrage threshold, a preset third rate corresponding to the number of the second target barrage is obtained, and a video clip corresponding to the time interval identifier in the video is played according to the third rate; and when the comparison result shows that the number of the second target barrage is greater than the threshold value of the video barrage, acquiring a preset fourth rate corresponding to the number of the second target barrage, and playing a video clip corresponding to the time interval identification in the video according to the fourth rate, wherein the fourth rate is less than the third rate.
In a possible implementation manner of the embodiment of the application, after the number of the bullet screens corresponding to each preset unit time period in the video is acquired according to the timestamp included in each bullet screen, the number of the bullet screens corresponding to each preset unit time period may be compared, and a first unit time period corresponding to the maximum number of the bullet screens and a second unit time period corresponding to the minimum number of the bullet screens are determined. Therefore, when the playing speed of the video in one or more target time periods is controlled according to the number of the barrage, a preset fifth speed corresponding to the maximum number of the barrage can be obtained, a video segment corresponding to the first unit time period in the video is played according to the fifth speed, a preset sixth speed corresponding to the minimum number of the barrage is obtained, and a video segment corresponding to the second unit time period in the video is played according to the sixth speed, wherein the sixth speed is greater than the fifth speed. Further, for video clips corresponding to unit periods other than the first unit period and the second unit period, the video clips can be played at a playing rate greater than the fifth rate but less than the sixth rate. Therefore, the purpose of dividing the independent video into the most wonderful segment and the least wonderful segment is achieved, the independent video is played according to different playing rates, the automatic control of the playing rates of the different video segments can be realized without calculating threshold values, and the processing burden of the video player is reduced.
The video playing method of this embodiment screens second target barrages matched with a preset time interval identifier in a video according to a timestamp corresponding to each barrage, determines the number of all the second target barrages, compares the number of the second target barrages with a preset video barrage threshold value of the video, obtains a preset third rate corresponding to the number of the second target barrages when the number of the second target barrages is less than or equal to the video barrage threshold value, plays a video clip corresponding to the time interval identifier in the video according to the third rate, obtains a preset fourth rate corresponding to the number of the second target barrages when the number of the second target barrages is greater than the video barrage threshold value, wherein the fourth rate is less than the third rate, and plays the video clip corresponding to the time interval identifier in the video according to the fourth rate. Therefore, the effect of automatically adjusting the playing speed of different video clips in the video is achieved, the time for a user to chase after a series is saved, the watching efficiency is improved, and the experience of chase after a series is improved. In addition, the number of the bullet screens corresponding to each preset unit time interval in the video is obtained according to the timestamp contained in each bullet screen, the average value of the number of the bullet screens corresponding to each preset unit time interval is calculated, and the video bullet screen threshold value of the video is determined, so that the determined video bullet screen threshold value has pertinence, and the accuracy of playing rate control is improved.
In order to implement the above embodiments, the present application further provides a video playing device.
Fig. 6 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present application.
As shown in fig. 6, the video playback apparatus 50 includes: an acquisition module 510, a statistics module 520, and a control module 530.
The obtaining module 510 is configured to obtain a bullet screen file corresponding to a video selected by a user to be played.
And the counting module 520 is configured to obtain the number of bullet screens in one or more target time periods in the video according to the bullet screen file.
And the control module 530 is configured to control the playing rate of the video in one or more target time periods according to the number of the bullet screens.
Further, in a possible implementation manner of the embodiment of the present application, the video selected by the user to be played is an option in the video set, and the bullet screen file includes an option identifier corresponding to each bullet screen. Therefore, in this embodiment, the statistics module 520 is specifically configured to filter the first target barrage matched with the collection identifier of the video according to the collection identifier corresponding to each barrage, and determine the number of all the first target barrages. The control module 530 is specifically configured to compare the first target barrage number with a preset collection barrage threshold of the video set; if the comparison result shows that the number of the first target barrage is smaller than or equal to the selection barrage threshold value, acquiring a preset first rate corresponding to the number of the first target barrage, and playing all contents of the video according to the first rate; and if the comparison shows that the number of the first target barrage is larger than the selection barrage threshold value, acquiring a preset second rate corresponding to the number of the first barrage targets, and playing the whole content of the video according to the second rate, wherein the second rate is smaller than the first rate. Therefore, the purpose of controlling the play rate of the selection according to the number of the bullet screens of the selection is achieved, and the automatic adjustment of the play rates of different selections is realized.
The selection set barrage threshold value may be preset, for example, the selection set barrage threshold value is set to 5000; or, the determination may be performed according to the number of bullet screens included in the bullet screen file corresponding to the video set.
When determining the selection set bullet screen threshold value according to the number of bullet screens included in the bullet screen file corresponding to the video set, as shown in fig. 7, on the basis of the embodiment shown in fig. 6, the video playing apparatus 50 may further include:
the preprocessing module 500 is configured to obtain the number of barrages corresponding to each option in the video set according to the option identifier included in each barrage; and calculating the average value of the number of the barrages corresponding to each selection set, and determining the selection set barrage threshold value of the video set.
Acquiring the number of bullet screens corresponding to each selection in the video set according to the selection identification contained in each bullet screen; the average value of the number of the barrages corresponding to each selection is calculated, the selection barrage threshold value of the video set is determined, and the selection barrage threshold value can be set in a targeted manner, so that the accuracy of playing rate control is improved, the problem that the user misses the content of a wonderful selection set or consumes long time for play chase due to the fact that the selection barrage threshold value is too large or too small is avoided to a certain extent, and play chase experience of the user is further improved.
In a possible implementation manner of the embodiment of the present application, the video playing apparatus 50 of the embodiment of the present application may further control the playing rate of each time period according to the number of bullet screens included in each time period for different time periods of one video.
In this embodiment, the statistics module 520 is specifically configured to filter, according to the bullet screen file corresponding to each bullet screen, second target bullet screens matched with the preset time period identifier of the video, and determine the number of all the second target bullet screens.
Specifically, in a possible implementation manner of the embodiment of the present application, a video selected by a user to be played is an album in a video set, and a bullet screen file includes an album identifier and a timestamp corresponding to each bullet screen. In this embodiment, the statistical module 520 is specifically configured to screen the second target barrage matched with the collection identifier of the video and the preset time period identifier according to the collection identifier and the timestamp corresponding to each barrage, and determine the number of all the second target barrages.
In a possible implementation manner of the embodiment of the application, the video selected by the user to be played is an independent video, and the bullet screen file includes a timestamp corresponding to each bullet screen. In this embodiment, the statistical module 520 is specifically configured to screen the second target barrage matched with the preset time period identifier in the video according to the timestamp corresponding to each barrage, and determine the number of all the second target barrages.
The control module 530 is specifically configured to compare the second target barrage number with a preset video barrage threshold of the video; if the comparison result shows that the number of the second target barrage is less than or equal to the threshold value of the video barrage, acquiring a preset third rate corresponding to the number of the second target barrage, and playing a video clip corresponding to the time interval identification in the video according to the third rate; and if the comparison result shows that the number of the second target barrage is greater than the threshold value of the video barrage, acquiring a preset fourth rate corresponding to the number of the second target barrage, and playing a video clip corresponding to the time interval identification in the video according to the fourth rate, wherein the fourth rate is less than the third rate.
The preprocessing module 500 is specifically configured to obtain, according to the bullet screen file corresponding to each bullet screen, the number of bullet screens corresponding to each preset unit time period in the video; and calculating the average value of the number of the corresponding barrages in each preset unit time period, and determining the video barrage threshold value of the video.
Specifically, in a possible implementation manner of the embodiment of the present application, a video selected by a user to be played is an album in a video set, and a bullet screen file includes an album identifier and a timestamp corresponding to each bullet screen. In this embodiment, the preprocessing module 500 is specifically configured to obtain the number of bullet screens corresponding to each preset unit time period in the video according to the collection identifier and the timestamp included in each bullet screen.
In a possible implementation manner of the embodiment of the application, the video selected by the user to be played is an independent video, and the bullet screen file includes a timestamp corresponding to each bullet screen. In this embodiment, the preprocessing module 500 is specifically configured to obtain the number of bullet screens corresponding to each preset unit time period in the video according to the timestamp included in each bullet screen.
Therefore, the effect of automatically adjusting the playing speed of different video clips in the same collection or the same independent video is achieved, the time of a user for tracing the drama is saved, the watching efficiency is improved, and the experience of tracing the drama is improved.
In a possible implementation manner of the embodiment of the present application, after the preprocessing module 500 obtains the number of bullet screens corresponding to each preset unit time period in the video according to the bullet screen file corresponding to each bullet screen, the number of bullet screens corresponding to each preset unit time period may be compared, and a first unit time period corresponding to the maximum number of bullet screens and a second unit time period corresponding to the minimum number of bullet screens are determined. At this time, the control module 530 may be further configured to obtain a preset fifth rate corresponding to the maximum number of barrage, and play the video segment corresponding to the first unit time interval in the video according to the fifth rate, and obtain a preset sixth rate corresponding to the minimum number of barrage, and play the video segment corresponding to the second unit time interval in the video according to the sixth rate, where the sixth rate is greater than the fifth rate.
The method comprises the steps of comparing the number of the bullet screens corresponding to each preset unit time interval, determining a first unit time interval corresponding to the maximum number of the bullet screens and a second unit time interval corresponding to the minimum number of the bullet screens, playing a video clip corresponding to the first unit time interval in the video according to a fifth speed, playing a video clip corresponding to the second unit time interval in the video according to a sixth speed which is higher than the fifth speed, dividing the video clips in the same collection or an independent video into a most wonderful clip and a least wonderful clip, playing according to different playing speeds, automatically controlling the playing speeds of different video clips without calculating a threshold value, and reducing the processing load of a video player.
It should be noted that the foregoing explanation on the embodiment of the video playing method is also applicable to the video playing apparatus of the embodiment, and the implementation principle thereof is similar and will not be described herein again.
The video playing device of the embodiment obtains the number of the barrage in one or more target time periods in the video according to the barrage file by obtaining the barrage file corresponding to the video selected to be played by the user, and then controls the playing rate of the video in one or more target time periods according to the number of the barrage. Therefore, the purpose of controlling the video playing speed according to the number of the barrage related to the video is achieved, the automatic adjustment of the video playing speed is achieved, the trouble caused by manual fast forward and fast backward execution is avoided, the operation cost is reduced, the convenience of playing speed control is improved, and the series pursuit experience of a user is improved.
In order to implement the above embodiments, the present application also provides a computer device.
Fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
As shown in fig. 8, the computer device 90 includes: a processor 910 and a memory 920. Wherein, the processor 910 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 920, so as to implement the video playing method as described in the foregoing embodiments.
In order to implement the above embodiments, the present application also proposes a non-transitory computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the video playing method as described in the foregoing embodiments.
In order to implement the foregoing embodiments, the present application also proposes a computer program product, wherein instructions of the computer program product, when executed by a processor, implement the video playing method according to the foregoing embodiments.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means 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 application. In this specification, the schematic representations of the terms used above are not necessarily intended to 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. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (5)

1. A video playback method, comprising:
acquiring a bullet screen file corresponding to a video selected to be played by a user, wherein the video player acquires the bullet screen file corresponding to the video selected to be played by the user from a bullet screen database according to a video identifier of the video selected to be played by the user;
acquiring the number of bullet screens in one or more target time periods in the video according to the bullet screen files; controlling the playing speed of the video in the one or more target time periods according to the number of the bullet screens;
acquiring the number of bullet screens in one or more target time periods in the video according to the bullet screen files; controlling the playing rate of the video in the one or more target time periods according to the number of the barrage comprises:
Counting the number of the bullet screens containing preset intentions in one or more target time periods in the video according to the semantic recognition result of the content of each bullet screen in the bullet screen file to obtain the number of the bullet screens corresponding to each preset intention; the number of the barrages respectively corresponding to each preset intention comprises the number of barrages with fast forward intentions and the number of barrages with slow play intentions;
counting the number of barrages with the preset intentions in each preset unit time period in the video to obtain the number of barrages with the fast forward intentions and the number of barrages with the slow play intentions in each preset unit time period;
setting different fast forward intention bullet screen numbers corresponding to different fast forward playing rates according to the fast forward intention bullet screen numbers contained in each preset unit time interval for adjusting the fast forward; for the slow-play adjustment mode, setting different slow-play playing speed rates corresponding to the number of the bullet screens with the slow-play intention contained in each preset unit time interval;
for any of the one or more target time periods:
determining a target fast-forward playing speed according to the difference of fast-forward playing speed corresponding to the number of the barrage with fast-forward intention and the number of the barrage with different fast-forward intention, and determining a target slow-play playing speed according to the difference of slow-play playing speed corresponding to the number of the barrage with slow-play intention and the number of the barrage with different slow-play intention;
If the target fast forward playing speed is equal to the target slow playing speed, determining that the target fast forward playing speed is not in conflict with the target slow playing speed, and controlling the playing speed of the video in the target time slot according to the target fast forward playing speed;
if the target fast-forward playing speed is not equal to the target slow-play playing speed, determining that the target fast-forward playing speed conflicts with the target slow-play playing speed, if the number of the barrage with the fast-forward intention is a first number, the number of the barrage with the slow-play intention is a second number, the second number is larger than the first number, the playing speed of the video in the target time period is the slow-play playing speed corresponding to the second number in different slow-play playing speeds, if the number of the barrage with the fast-forward intention is a third number, the number of the barrage with the slow-play intention is a fourth number, and the playing speed of the video in the target time period is the fast-play speed corresponding to the third number in different fast-forward playing speeds; the third number is greater than the fourth number.
2. The method of claim 1, wherein the video selected by the user to be played is an album in a video collection, and the barrage file contains an album identifier and a timestamp corresponding to each barrage;
Or, if the video selected to be played by the user is an independent video, the bullet screen file contains a timestamp corresponding to each bullet screen.
3. A video playback apparatus, comprising:
the acquisition module is used for acquiring a bullet screen file corresponding to the video selected to be played by the user, wherein the video player acquires the bullet screen file corresponding to the video selected to be played by the user from a bullet screen database according to the video identifier of the video selected to be played by the user;
the statistic module is used for acquiring the number of bullet screens in one or more target time periods in the video according to the bullet screen files; wherein the acquiring of the number of barrage of one or more target time periods in the video according to the barrage file comprises:
counting the number of the bullet screens containing preset intentions in one or more target time periods in the video according to the semantic recognition result of the content of each bullet screen in the bullet screen file to obtain the number of the bullet screens corresponding to each preset intention; the number of the barrages respectively corresponding to each preset intention comprises the number of barrages with fast forward intentions and the number of barrages with slow play intentions;
the control module is used for controlling the playing speed of the video in the one or more target time periods according to the number of the bullet screens; wherein the controlling the playing rate of the video in the one or more target time periods according to the number of the barrage comprises:
Counting the number of barrages with the preset intentions in each preset unit time period in the video to obtain the number of barrages with the fast forward intentions and the number of barrages with the slow play intentions in each preset unit time period;
setting different fast forward intention bullet screen numbers corresponding to different fast forward playing rates according to the fast forward intention bullet screen numbers contained in each preset unit time interval for adjusting the fast forward; for the slow-play adjustment mode, setting different slow-play playing speed rates corresponding to the number of the bullet screens with the slow-play intention contained in each preset unit time interval;
for any of the one or more target time periods:
determining a target fast-forward playing speed according to the difference of fast-forward playing speed corresponding to the number of the barrage with fast-forward intention and the number of the barrage with different fast-forward intention, and determining a target slow-play playing speed according to the difference of slow-play playing speed corresponding to the number of the barrage with slow-play intention and the number of the barrage with different slow-play intention;
If the target fast forward playing speed is equal to the target slow playing speed, determining that the target fast forward playing speed is not in conflict with the target slow playing speed, and controlling the playing speed of the video in the target time slot according to the target fast forward playing speed;
if the target fast-forward playing speed is not equal to the target slow-play playing speed, determining that the target fast-forward playing speed conflicts with the target slow-play playing speed, if the number of the barrage with the fast-forward intention is a first number, the number of the barrage with the slow-play intention is a second number, the second number is larger than the first number, the playing speed of the video in the target time period is the slow-play playing speed corresponding to the second number in different slow-play playing speeds, if the number of the barrage with the fast-forward intention is a third number, the number of the barrage with the slow-play intention is a fourth number, and the playing speed of the video in the target time period is the fast-play speed corresponding to the third number in different fast-forward playing speeds; the third number is greater than the fourth number.
4. A computer device comprising a processor and a memory;
wherein the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for implementing the video playback method according to any one of claims 1 to 2.
5. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a video playback method according to any one of claims 1-2.
CN201811166702.1A 2018-10-08 2018-10-08 Video playing method and device, computer equipment and storage medium Active CN109309880B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811166702.1A CN109309880B (en) 2018-10-08 2018-10-08 Video playing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811166702.1A CN109309880B (en) 2018-10-08 2018-10-08 Video playing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109309880A CN109309880A (en) 2019-02-05
CN109309880B true CN109309880B (en) 2021-10-22

Family

ID=65225454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811166702.1A Active CN109309880B (en) 2018-10-08 2018-10-08 Video playing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109309880B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889918B (en) * 2019-03-22 2020-12-29 清华大学深圳研究生院 Self-adaptive adjustment method for teaching video playing speed
CN110062281B (en) * 2019-05-29 2021-08-24 维沃移动通信有限公司 Play progress adjusting method and terminal equipment thereof
CN110225405B (en) * 2019-07-12 2021-06-25 青岛一舍科技有限公司 Panoramic video playing method and device
CN111416996B (en) * 2020-03-26 2021-06-22 腾讯科技(深圳)有限公司 Multimedia file detection method, multimedia file playing device, multimedia file equipment and storage medium
CN112004117B (en) * 2020-09-02 2023-03-24 维沃移动通信有限公司 Video playing method and device
CN114257874B (en) * 2020-09-24 2023-05-12 腾讯科技(深圳)有限公司 Video playing speed control method and device, electronic equipment and storage medium
CN112516598A (en) * 2020-11-20 2021-03-19 网易(杭州)网络有限公司 Game service fault processing method, device, server and medium
CN112511766A (en) * 2020-11-23 2021-03-16 上海明略人工智能(集团)有限公司 Barrage NLP-based video clipping method and system, electronic equipment and storage medium
CN112565916B (en) * 2020-11-26 2022-09-23 厦门理工学院 Bullet screen display method, bullet screen display device, bullet screen display equipment and computer readable storage medium
CN112689161A (en) * 2020-12-22 2021-04-20 北京达佳互联信息技术有限公司 Multimedia file playing method, device, system, equipment and storage medium
CN112887761A (en) * 2021-01-19 2021-06-01 深圳聚果科技有限公司 Video playing method, device, server and storage medium
CN112911326B (en) * 2021-01-29 2023-04-11 平安科技(深圳)有限公司 Barrage information processing method and device, electronic equipment and storage medium
CN112969100B (en) * 2021-03-24 2023-06-30 西安闻泰信息技术有限公司 Video playing control method, device, equipment and medium
CN113347475B (en) * 2021-05-31 2023-02-28 北京达佳互联信息技术有限公司 Method and device for adjusting playing speed of multimedia information
CN115150663B (en) * 2022-07-01 2023-12-15 北京奇艺世纪科技有限公司 Heat curve generation method and device, electronic equipment and storage medium
CN115209210A (en) * 2022-07-19 2022-10-18 抖音视界有限公司 Method and device for generating information based on bullet screen
CN115484491A (en) * 2022-08-31 2022-12-16 北京奇艺世纪科技有限公司 Video playing speed control method, device, equipment, system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107888948A (en) * 2017-11-07 2018-04-06 北京小米移动软件有限公司 Determine method and device, the electronic equipment of video file broadcasting speed
CN108307230A (en) * 2018-02-07 2018-07-20 北京奇艺世纪科技有限公司 A kind of extracting method and device of video highlight segment
CN108495149A (en) * 2018-03-16 2018-09-04 优酷网络技术(北京)有限公司 Multimedia content playback method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9614977B1 (en) * 2005-12-16 2017-04-04 At&T Intellectual Property Ii, L.P. Real-time media control for audio and multimedia conferencing services
WO2010057195A2 (en) * 2008-11-17 2010-05-20 Stics, Inc. System, method and computer program product for predicting customer behavior
CN101727487A (en) * 2009-12-04 2010-06-09 中国人民解放军信息工程大学 Network criticism oriented viewpoint subject identifying method and system
US9124672B2 (en) * 2012-11-08 2015-09-01 Morega Systems, Inc Adaptive video server with data rate control and methods for use therewith
CN105872623A (en) * 2015-12-14 2016-08-17 乐视网信息技术(北京)股份有限公司 Control method and system for playing video
CN105578301B (en) * 2015-12-23 2018-11-09 武汉斗鱼网络科技有限公司 Barrage sends the optimization method and device of length in a kind of direct broadcasting room
CN107682750B (en) * 2017-05-11 2020-02-18 腾讯科技(北京)有限公司 Video playing method and device
CN107105314B (en) * 2017-05-12 2020-06-02 北京小米移动软件有限公司 Video playing method and device
CN107222780B (en) * 2017-06-23 2020-11-27 中国地质大学(武汉) Method for comprehensive state perception and real-time content supervision of live broadcast platform
CN107438204B (en) * 2017-07-26 2019-12-17 维沃移动通信有限公司 Method for circularly playing media file and mobile terminal
CN107872714B (en) * 2017-10-27 2020-09-18 咪咕视讯科技有限公司 Bullet screen processing method, terminal equipment and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107888948A (en) * 2017-11-07 2018-04-06 北京小米移动软件有限公司 Determine method and device, the electronic equipment of video file broadcasting speed
CN108307230A (en) * 2018-02-07 2018-07-20 北京奇艺世纪科技有限公司 A kind of extracting method and device of video highlight segment
CN108495149A (en) * 2018-03-16 2018-09-04 优酷网络技术(北京)有限公司 Multimedia content playback method and device

Also Published As

Publication number Publication date
CN109309880A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
CN109309880B (en) Video playing method and device, computer equipment and storage medium
US9350967B2 (en) Recording system
US8171515B2 (en) Automatically generated TV favorites list
US20110251988A1 (en) Adaptive implicit learning for recommender system
US20220007085A1 (en) Automatically generating supercuts
CN101444092A (en) Video reproduction device, video reproduction method, and video reproduction program
US10178436B2 (en) Method to auto-select media channel programs
US9906837B1 (en) Binge content recommendation system
US20110066961A1 (en) Method and apparatus for presenting a summary of a content item
US8700556B2 (en) Biased recommender system based on age parameter
CN106576181B (en) Method, apparatus and medium for reverse recording
CN105959805B (en) Television program playing method and device
US10812873B2 (en) Identifying segment boundaries of recorded video events based on aggregated viewer measurement data
US20170094370A1 (en) Digital video recorder and a method for dynamic management of advertising content on a digital video recorder
CN106844683B (en) Information sharing method and device
US20160316275A1 (en) Automatic adjustment of user-defined settings for a video program or channel
CN112689165B (en) Video playing method and device
US11477541B2 (en) Automatically generating supercuts
GB2466692A (en) Recorder that records everything except exclusions
US11910059B2 (en) Method for retrieving program data and circuit system
KR20130013938A (en) Digital broadcasting system viewing classified corner of contents and service method thtereof
JP2005353112A (en) Recording apparatus
GB2491344A (en) Programme list management using assigned priorities

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
GR01 Patent grant
GR01 Patent grant