CN110121098A - Video broadcasting method, device, storage medium and electronic device - Google Patents

Video broadcasting method, device, storage medium and electronic device Download PDF

Info

Publication number
CN110121098A
CN110121098A CN201810111768.4A CN201810111768A CN110121098A CN 110121098 A CN110121098 A CN 110121098A CN 201810111768 A CN201810111768 A CN 201810111768A CN 110121098 A CN110121098 A CN 110121098A
Authority
CN
China
Prior art keywords
video
video frame
target
frame
broadcasting
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.)
Granted
Application number
CN201810111768.4A
Other languages
Chinese (zh)
Other versions
CN110121098B (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 CN201810111768.4A priority Critical patent/CN110121098B/en
Publication of CN110121098A publication Critical patent/CN110121098A/en
Application granted granted Critical
Publication of CN110121098B publication Critical patent/CN110121098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. 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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • H04N21/4532Management of client data or end-user data involving end-user characteristics, e.g. viewer profile, preferences

Landscapes

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

Abstract

The invention discloses a kind of video broadcasting method, device, storage medium and electronic devices.Wherein, this method comprises: during carrying out speed broadcasting to target video, the label of the first video frame to be played in target video is obtained, wherein the label of the first video frame is used to indicate the content type of the first video frame;Under the label and the different situation of preset target labels of the first video frame, the broadcasting of the first video frame is skipped;In the identical situation of label and target labels of the first video frame, the first video frame is played according to target broadcasting speed, wherein the difference of target broadcasting speed and the original broadcasting speed of the first video frame is in first object threshold value.The present invention solves the technical issues of low efficiency of the relevant technologies when video speed plays.

Description

Video broadcasting method, device, storage medium and electronic device
Technical field
The present invention relates to video fields, in particular to a kind of video broadcasting method, device, storage medium and electronics Device.
Background technique
Currently, when playing video, video clip uninterested for some users, it will usually be dragged using progress bar Mode skip.But since position of the progress bar in dragging is too fuzzy, it is difficult to reach accurately, especially in terminal In the lesser situation of screen itself, progress bar dragging can not be very accurate.Therefore, when playing video, it will usually to video into Row speed plays.
Speed, which plays, to be achieved the goal by the way of fixed frame-skipping, per second according to multiple set by user The frame frequency number of broadcasting, allows player fixedly to skip the picture of certain amount, to achieve the purpose that video speed.
Although aforesaid way is simple, the point of interest of user is not only accounted for come fixedly frame-skipping according to a number With the hot spot region of video content, will lead to content excellent in video and poor content all may equally be skipped, and And film hot spot region can not sufficiently be showed user, the resource of film is wasted, to affect the essence of video itself Coloured silk and visibility do not meet the purpose of video speed broadcasting truly, and there are the low efficiencys when broadcasting of video speed Problem.
Aiming at the problem that the above-mentioned low efficiency when video speed plays, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of video broadcasting method, device, storage medium and electronic devices, at least to solve The relevant technologies video speed play when low efficiency the technical issues of.
According to an aspect of an embodiment of the present invention, a kind of video broadcasting method is provided.The video broadcasting method includes: During carrying out speed broadcasting to target video, the label of the first video frame to be played in target video is obtained, wherein The label of first video frame is used to indicate the content type of the first video frame;In the label and preset target mark of the first video frame It signs in different situation, skips the broadcasting of the first video frame;In the label of the first video frame situation identical with target labels Under, the first video frame is played according to target broadcasting speed, wherein the original broadcasting speed of target broadcasting speed and the first video frame Difference in first object threshold value.
According to an aspect of an embodiment of the present invention, a kind of video broadcasting method is additionally provided.This method comprises: in client During end carries out speed broadcasting to target video, client obtains the mark of the first video frame to be played in target video Label, wherein the label of the first video frame is used to indicate the content type of the first video frame;In the label of the first video frame and default The different situation of target labels under, client skips the broadcasting of the first video frame;In the label and target of the first video frame In the identical situation of label, client plays the first video frame according to target broadcasting speed, wherein target broadcasting speed and first The difference of the original broadcasting speed of video frame is in first object threshold value.
According to another aspect of an embodiment of the present invention, a kind of video play device is additionally provided.The video play device packet It includes: acquiring unit, for during carrying out speed broadcasting to target video, obtaining the first view to be played in target video The label of frequency frame, wherein the label of the first video frame is used to indicate the content type of the first video frame;Unit is skipped, is used for Under the label of first video frame and the different situation of preset target labels, the broadcasting of the first video frame is skipped;Broadcast unit, For playing the first video frame according to target broadcasting speed under the label of the first video frame and the identical situation of target labels, Wherein, the difference of target broadcasting speed and the original broadcasting speed of the first video frame is in first object threshold value.
According to another aspect of an embodiment of the present invention, a kind of video play device is additionally provided.The device includes: to obtain list Member, for obtaining client to be played in target video during client carries out speed broadcasting to target video The label of first video frame, wherein the label of the first video frame is used to indicate the content type of the first video frame;Unit is skipped, For making client skip the first video frame under the label of the first video frame and the different situation of preset target labels It plays;Broadcast unit, for broadcasting client according to target under the label of the first video frame and the identical situation of target labels It puts speed and plays the first video frame, wherein the difference of target broadcasting speed and the original broadcasting speed of the first video frame is in the first mesh It marks in threshold value.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided.Meter is stored in the storage medium Calculation machine program, wherein computer program is arranged to execute the video broadcasting method of the embodiment of the present invention when operation.
According to another aspect of an embodiment of the present invention, a kind of electronic device is additionally provided.The electronic device includes memory And processor, which is characterized in that computer program is stored in memory, processor is arranged to execute by computer program The video broadcasting method of the embodiment of the present invention.
In embodiments of the present invention, it during carrying out speed broadcasting to target video, obtains in target video wait broadcast The label for the first video frame put, wherein the label of the first video frame is used to indicate the content type of the first video frame;First Under the label of video frame and the different situation of preset target labels, the broadcasting of the first video frame is skipped;In the first video frame Label and the identical situation of target labels under, according to target broadcasting speed play the first video frame, wherein target broadcasting speed And the difference of the original broadcasting speed of the first video frame is in first object threshold value.After target video is played using speed, skip Label and different first video frame of preset target labels play label and preset target mark according to target broadcasting speed Sign identical first video frame, that is to say, that skip the uninterested video frame of user, and play and use according to target broadcasting speed The interested video frame in family avoids the fixed video frame for skipping certain amount, causes user interested and loses interest in Video frame all equally skipped, affect video speed play when efficiency, thus realize improve video speed play When efficiency technical effect, and then solve the relevant technologies video speed play when low efficiency the technical issues of.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of the hardware environment of video broadcasting method according to an embodiment of the present invention;
Fig. 2 is a kind of flow chart of video broadcasting method according to an embodiment of the present invention;
Fig. 3 is the flow chart of another video broadcasting method according to an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of video speed playing device according to an embodiment of the present invention;
Fig. 5 is a kind of flow chart of the scaling method of Intelligent Calibration module according to an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of transcoding server according to an embodiment of the present invention;
Fig. 7 is a kind of flow chart of the video broadcasting method of player according to an embodiment of the present invention;
Fig. 8 A is a kind of schematic diagram of a scenario of video playing according to an embodiment of the present invention;
Fig. 8 B is the schematic diagram of a scenario of another video playing according to an embodiment of the present invention;
Fig. 8 C is the schematic diagram of a scenario of another video playing according to an embodiment of the present invention;
Fig. 8 D is the schematic diagram of another video playing scene according to an embodiment of the present invention;
Fig. 9 is a kind of schematic diagram of video play device according to an embodiment of the present invention;
Figure 10 is the schematic diagram of another video play device according to an embodiment of the present invention;And
Figure 11 is a kind of structural block diagram of electronic device according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
According to an aspect of an embodiment of the present invention, a kind of embodiment of video broadcasting method is provided.
Optionally, in the present embodiment, above-mentioned video broadcasting method can be applied to as shown in Figure 1 by server 102 In the hardware environment constituted with terminal 104.Fig. 1 is a kind of hardware environment of video broadcasting method according to an embodiment of the present invention Schematic diagram.As shown in Figure 1, server 102 is attached by network with terminal 104, above-mentioned network includes but is not limited to: wide Domain net, Metropolitan Area Network (MAN) or local area network, terminal 104 are not limited to PC, mobile phone, tablet computer etc..The video of the embodiment of the present invention is broadcast The method of putting can be executed by server 102, can also be executed, be can also be by server 102 and terminal by terminal 104 104 common execution.Wherein, the video broadcasting method that terminal 104 executes the embodiment of the present invention is also possible to by mounted thereto Client executes.
Fig. 2 is a kind of flow chart of video broadcasting method according to an embodiment of the present invention.As shown in Fig. 2, this method can be with The following steps are included:
Step S202 is obtained to be played first in target video during carrying out speed broadcasting to target video The label of video frame.
In the technical solution that the application above-mentioned steps S202 is provided, in the process for carrying out speed broadcasting to target video In, obtain the label of the first video frame to be played in target video, wherein the label of the first video frame is used to indicate the first view The content type of frequency frame.
In this embodiment, target video can need the video that play for user, can by video player or Browser plays target video.The target video is played out by the way of speed broadcasting, for example, target video is according to twice Original broadcasting speed carry out acceleration broadcasting.
Optionally, destination request is sent to server, which is used for the unified resource of request target video Finger URL (Uniform Resource Locator, referred to as URL).After the URL for obtaining target video, obtained according to URL Target video is taken, for example, obtaining the video flowing of target video.
Optionally, the target video of the embodiment includes media encapsulation of data and audio, video data.To in target video Media encapsulation of data and audio, video data are parsed, if playing target video by the way of normal play, play mesh Video is marked until terminating.
Optionally, if the embodiment using speed broadcasting by the way of play target video, can within the unit time, The first video frame to be played in target video is obtained, which can be 1 second, and the video frame in target video is target Picture frame in video.In the case where the currently playing speed of target video does not meet speed requirement, first video is obtained The label of frame obtains the label of the first video frame for example, being decoded to target video from obtained decoding data, this The label of one video frame can serve to indicate that the content type of the first video frame, for example, content type be personage, landscape, gunbattle, Wushu, love, beauty, male mind etc., no limitations are hereby intended.
Step S204 skips the first view under the label and the different situation of preset target labels of the first video frame The broadcasting of frequency frame.
In the technical solution that the application above-mentioned steps S204 is provided, the first video to be played in target video is being obtained After the label of frame, judge whether the label of the first video frame and preset target labels are identical, it can be in scene matching module Whether the middle label for judging the first video frame and preset target labels are identical.If the label of the first video frame and preset mesh It is not identical to mark label, then skips the broadcasting of the first video frame.
In this embodiment, preset target labels can be the interest tags of user, be used to indicate the interest of user.It can Selection of land is used to indicate the data of user's watching behavior by background server statistics, demarcates, obtain pre- to the interest of user If target labels, the preset target labels can serve to indicate that personage, landscape, gunbattle, wushu, love, beauty, male mind in Any one, no limitations are hereby intended.
After the label and preset target labels for judging the first video frame be not identical, if the label of the first video frame It is not identical with preset target labels, then illustrate the interest of content type indicated by the label of the first video frame and user not Symbol then skips that is, first video frame video content that is presented and the interested video content of non-user when playing The broadcasting of one video frame, for example, the plot high speed to the uninterested video of user is skipped, to improve the considerable of target video The property seen improves efficiency of the target video when speed plays.
Step S206 is broadcast in the identical situation of label and target labels of the first video frame according to target broadcasting speed Put the first video frame.
In the technical solution that the application above-mentioned steps S206 is provided, in the label and preset mesh for judging the first video frame After whether mark label is identical, if the label of the first video frame is identical with target labels, played according to target broadcasting speed First video frame, wherein the difference of target broadcasting speed and the original broadcasting speed of the first video frame is in first object threshold value.
In this embodiment, if the label of the first video frame is identical with target labels, illustrate the mark of the first video frame The indicated content type of label is consistent with the interest of user, that is, the label of target labels and the first video frame matches, this The video content that one video frame is presented when playing is the interested video content of user, can be broadcast according to target broadcasting speed The first video frame is put, that is, playing the video content of interested first video frame of user according to target broadcasting speed.It is optional Ground plays the first video frame according to the original broadcasting speed of first video frame or slightly fast speed.
It optionally, can be according to the original of the first video frame in the case where target video has met the requirement of current speed Beginning broadcasting speed plays the first video frame;It, can be according in the case where target video frame does not also meet the requirement of current speed The speed value determination of setting will meet the video frame number that the speed value of setting needs to skip, and obtain the video frame number skipped, will The difference of the video frame number for needing to skip and the video frame number skipped is determined as the video frame number for also needing to skip, and jumps as needed The video frame number crossed determines the target broadcasting speed for playing the first video frame, and the target broadcasting speed is slightly than original broadcasting speed It is quicker, but target broadcasting speed and original broadcasting speed be in first object threshold value, so that not influencing user watches target video In interested video content.
Optionally, in this embodiment, within the unit time, when the frame number for the video frame skipped reaches and target video Speed be worth it is corresponding need skip video frame number when, then the remaining video frame not played in the unit time can be normal It plays, may include the interested video frame of user in the remaining video frame not played, also may include that user does not feel emerging The video frame of interest;If the frame number of the video frame skipped determined is not up to the speed value with target video within the unit time The corresponding video frame number for needing to skip, then can travel further into motion compensating module, according to the phase between adjacent video frames Frame-skipping is selected like degree, a video frame in the high two adjacent video frames of similarity is skipped, and plays another Video frame, so that it is determined that the video frame that the video frame and needs that need to skip in the unit time play, is existed with meeting target video Broadcasting speed when speed plays.
The video frame selection of target video is skipped or played according to the method described above within a unit time, next In a unit time, the video frame selection of target video can be skipped or be played also according to the above method, thus by mesh The interested content of user in video is marked to show user to the maximum extent, improves effect of the video when speed plays Rate.
S202 to step S206 through the above steps obtains target during carrying out speed broadcasting to target video The label of first video frame to be played in video, wherein the label of the first video frame is used to indicate the content of the first video frame Type;Under the label and the different situation of preset target labels of the first video frame, the broadcasting of the first video frame is skipped;? In the identical situation of label and target labels of first video frame, the first video frame is played according to target broadcasting speed, wherein mesh The difference of the original broadcasting speed of broadcasting speed and the first video frame is marked in first object threshold value.It is broadcast in target video using speed After putting, label and different first video frame of preset target labels are skipped, according to target broadcasting speed broadcasting label and in advance If identical first video frame of target labels, that is to say, that skip the uninterested video frame of user, and played according to target Speed plays the interested video frame of user, avoids the fixed video frame for skipping certain amount, causes user interested It is all equally skipped with uninterested video frame, affects efficiency of the video when speed plays, to realize raising view The technical effect of efficiency when frequency speed plays, and then solve the technology of low efficiency of the relevant technologies when video speed plays Problem.
As an alternative embodiment, in step S206, after playing the first video frame according to target broadcasting speed, This method further include: in the case that the similarity between the second video frame and the first video frame is greater than the second targets threshold, jump Cross the broadcasting of the second video frame, wherein the second video frame is next video frame of the first video frame in target video.
In this embodiment, within the unit time, after playing the first video frame according to target broadcasting speed, mesh is obtained Next second video frame in video frame is marked, that is, the second video frame and the first video frame are continuous two in target video A video frame, the similarity between available second video frame and the first video frame.Optionally, according to the second video frame and Correlation between first video frame determines the similarity between the second video frame and the first video frame.Obtaining the second video After similarity between frame and the first video frame, judge whether the similarity between the second video frame and the first video frame is greater than Second targets threshold, second targets threshold can be determining according to speed value of target video when currently playing, for example, according to Speed value determines frame-skipping coefficient V0, and the product between frame-skipping coefficient V0 and target value T0 is determined as the second targets threshold.Sentencing Whether the similarity between disconnected second video frame and the first video frame is greater than after the second targets threshold, if it is judged that the second view Similarity between frequency frame and the first video frame is greater than the second targets threshold, then can determine that the second video frame is the first video frame Redundant video frame, the broadcasting of the second video frame is skipped, so that the splendid contents in target video be showed to the maximum extent User improves efficiency of the video when speed plays.
Optionally, which can also be during target video carries out speed broadcasting, while obtaining target video In the first video frame and the second video frame to be played.Similarity between the first video frame and the second video frame is greater than second In the case where targets threshold, then it can determine that the first video frame and the second video frame similarity are higher, from the first video frame and It selects the higher video frame of video quality to play out in two video frames, and skips the broadcasting of another video frame, In, clarity etc. that video quality can be video frame when playing and other it can serve to indicate that the good of presentation of video frames The parameter etc. of bad degree improves video in speed so that the splendid contents in target video are showed user to the maximum extent Efficiency when broadcasting.
Optionally, which can also be during carrying out speed broadcasting to target video, while it includes upper for obtaining The multiple video frames for stating the first video frame and the second video frame, the similarity between multiple video frames are greater than the second targets threshold In the case where, then it can determine that the similarity of multiple video frames is higher, video quality highest one is selected from multiple video frames A video frame plays out, and skips the broadcasting of other video frames, thus to the maximum extent by the splendid contents in target video User is showed, efficiency of the video when speed plays is improved.
As an alternative embodiment, in step S204, before the broadcasting for skipping the first video frame, alternatively, in step Rapid S206, before playing the first video frame according to target broadcasting speed, this method further include: obtain tag set, wherein label It include multiple target labels in set, each target labels are used to indicate a kind of viewing interest of target object, and target object is Watch the object of target video;In the different situation of label and target labels of the first video frame, the first video frame is skipped Broadcasting in the case where include: that multiple target labels in the label and tag set of the first video frame are all different, skip The broadcasting of first video frame;In the identical situation of label and target labels of the first video frame, broadcast according to target broadcasting speed Putting the first video frame includes: to press in the identical situation of a target labels in the label and tag set of the first video frame The first video frame is played according to target broadcasting speed.
In this embodiment, tag set includes multiple target labels, and each target labels therein are used to indicate target A kind of viewing interest of object, for example, the viewing interest of target object can be personage, landscape, gunbattle, wushu, love, beauty Female, male mind etc., no limitations are hereby intended.The target labels set count by the watching behavior to target object Arrive, for example, statistics target object watching behavior, the watching behavior of target object is demarcated, for example, be demarcated as personage, Landscape, gunbattle, wushu, love, beauty, male mind etc., thus the mistake for obtaining multiple target labels, and being played in target video speed The label of video frame is compared by Cheng Zhong with multiple target labels in tag set.
Multiple target marks during target video speed plays, in the label and tag set of the first video frame In the case that label are all different, that is, the interest of the label of the first video frame and the target object counted at present does not comply with, Then first video frame may be the uninterested video frame of target object, skip the broadcasting of the first video frame at this time.First In the identical situation of a target labels in the label and tag set of video frame, then first video frame with count at present An interest of target object be consistent, which may be the interested video frame of target object, then according to mesh Mark broadcasting speed and play the first video frame, for example, played out to the first video frame using original broadcasting speed, or use than The slightly faster speed of original broadcasting speed plays out, so that the wonderful in target video be shown to the maximum extent To user, efficiency of the video when speed plays is improved, further improves the experience that user watches target video.
As an alternative embodiment, obtaining tag set includes: the tally set for obtaining and being sent by first server It closes, wherein tag set is generated by first server according to the history watching behavior of target object, history watching behavior and target The viewing interest of object is associated.
In this embodiment, target labels set can be obtained by behavioral statistics module, for example, being united by first server The watching behavior of target object is counted, which can collect the number for being largely used to indicate the watching behavior of target object According to the watching behavior is associated with the viewing interest of target object, for example, the viewing interest of target object is landscape, then target The watching behavior of object is to watch the video of landscape class, or watch the webpage etc. of landscape class, that is, the viewing of target object is emerging Interest is corresponding with the watching behavior of target object.The embodiment can be by first server to the watching behavior of target object Demarcated, thus obtain include multiple target labels tag set.The first server can be background server.
As an alternative embodiment, in step S204, after the broadcasting for skipping the first video frame, alternatively, in step Rapid S206, after playing the first video frame according to target broadcasting speed, this method further include: response object run instruction plays The video of target playback progress is in target video;The mark of the content type of the video of target playback progress will be used to indicate Label, are added to tag set, to update tag set.
In this embodiment, after the broadcasting for skipping the first video frame, alternatively, playing the according to target broadcasting speed After one video frame, the tag set for including multiple target labels can be updated.Obtain object run instruction, the target Operational order can be for after the broadcasting of target video speed, the playback progress of target video be adjusted to mesh again by target object The operational order generated when marking playback progress, for example, the related play position that user drags to target video again is watched The operational order of generation.Object run instruction is responded, the video for being in target playback progress in target video is played, mesh should be in The video for marking playback progress can be the interested video content of target object, obtain the video for being used to indicate target playback progress Content type label, for example, will be used to indicate target for personage, landscape, gunbattle, wushu, love, beauty, male mind etc. and broadcast The label of the content type of the video of degree of putting into, is added to tag set, to update tag set, so as to subsequent in target video During speed plays, it is compared with the label of video frame, judges whether video frame is the interested video of target object Frame, to meet to the maximum extent when video speed plays, watches user in interested to determine whether to skip Hold, and the excellent property of video content can also be protected, promote the viewing of video, improves effect of the video when speed plays Rate.
As an alternative embodiment, target playback progress is used to indicate the video not played in target video in mesh The position in video is marked, or is used to indicate position of the video that played in target video in target video.
In this embodiment, target playback progress can serve to indicate that the video not played in target video in target video In position, introduced for example, user passes through others, it is thus understood that the video content for the certain time period not played in target video is Target playback progress can be adjusted to the play time of the above-mentioned a certain section of video not played by oneself interested video content On, it is watched.
Optionally, the target playback progress of the embodiment can also be video played in target video in target video In position.Since target video sets certain speed value when speed plays, if within the unit time, target video The frame number for the video frame skipped when speed plays meets speed and is worth the corresponding video frame number for needing to skip, then in unit Remaining video frame in time is with regard to normal play, and the video content of normal remaining video frame may be that user is interested, It is also likely to be uninterested.The playback progress of target video can be adjusted to the video institute that played in target video by user Corresponding play position, and the played video can be the interested video of user, obtain the interior of the played video The label for holding type, is added to tag set for the label, to update tag set, broadcasts so as to subsequent in target video speed It during putting, is compared with the label of video frame, judges whether video frame is the interested video frame of target object, with true It is fixed whether to skip, to improve the viewing of video, improve efficiency of the video when speed plays.
As an alternative embodiment, after the broadcasting for skipping the first video frame, this method is also wrapped in step S204 Include: the frame number for determining the video frame that target video needs to skip when carrying out speed broadcasting is the first frame number, wherein the first frame number It is determined by broadcasting speed of the target video when carrying out speed broadcasting;The frame number for determining the video frame that target video has been skipped is the Two frame numbers;The difference of first frame number and the second frame number is determined as third frame number, wherein third frame number is that target video is to be skipped The frame number of video frame;In the case where third frame number is 0, the second video frame in target video frame is obtained, wherein the second video Frame is next video frame of the first video frame in target video.
In this embodiment, during target video carries out speed broadcasting, within the unit time, the first view is being skipped After the broadcasting of frequency frame, determine that the frame number for the video frame that target video needs to skip when carrying out speed broadcasting is the first frame number. Optionally, the speed according to target video when speed plays is worth corresponding broadcasting speed, determines target video in the unit time The interior video frame number for needing to skip, for example, determining the target video video frame number per second for needing to skip, the video per second skipped Frame number is above-mentioned first frame number, that is, the frame number for the video frame for needing to skip when carrying out speed broadcasting in target video is the When one frame number, meet broadcasting speed of the target video when speed plays.
The embodiment determines that the frame number for the video frame that target video has been skipped is the second frame number, by the first frame number and the second frame The difference of number is determined as third frame number, which is target video video frame number to be skipped within the unit time, that is, mesh Mark video also needs to skip the video frame of third frame number within the unit time, is just able to satisfy target video broadcasting when speed plays Speed is put, motion compensating module can be entered, so that broadcasting speed of the target video when speed plays meets the speed of setting It is worth corresponding broadcasting speed.
If third frame number is 0, that is, target video did not needed to skip video frame again within the unit time, it is available The second video frame in target video, second video frame are next video frame of the first video frame in target video.If Unit time is also not finished, then normal play second video frame, if the unit time has terminated, arrives next unit time, The label of the second video frame is then obtained, the label of second video frame is used to indicate the content type of the second video frame.Second Under the label of video frame and the different situation of preset target labels, the broadcasting of the second video frame is skipped, in the second video frame Label and the identical situation of target labels under, play the second video frame according to certain broadcasting speed, certain broadcasting speed The difference of degree and the original broadcasting speed of the second video frame is in first object threshold value, for example, broadcasting according to the original of the second video frame It puts speed and plays the second video frame, or broadcast according to the slightly faster broadcasting speed of the original broadcasting speed than the second video frame The second video frame is put, to guarantee the play quality of the second video frame.
As an alternative embodiment, after the difference of the first frame number and the second frame number is determined as third frame number, This method further include: in the case where third frame number is greater than 0, obtain the target video frame group where the first video frame, wherein mesh Mark video frame group includes continuous multiple video frames in target video with same label;It determines and is not played in target video frame group Video frame frame number be the 4th frame number;In the case where the 4th frame number is 0, the second video frame in target video frame is obtained.
Within the unit time, after the difference of the first frame number and the second frame number is determined as third frame number, if third frame Number is greater than 0, then target video also needs to skip the video frame of third frame number within the unit time, is just able to satisfy target video again Broadcasting speed when speed plays.In the case where third frame number is greater than 0, the target video frame group where the first video frame is obtained, The target video frame group includes continuous multiple video frames in target video with same label.
Within the unit time, after obtaining the target video frame group where the first video frame, target video frame group is determined In the frame number of video frame that does not play be the 4th frame number, that is, surplus in the target video frame group where obtaining the first video frame The frame number Y0 of remaining video frame.If the 4th frame number is 0, that is, the remaining video in the target video frame group with same label The frame number of frame is 0, obtains the second video frame in target video frame, which is the first video frame in target video Next video frame.If the unit time is also not finished, normal play second video frame, if the unit time has terminated, To next unit time, then the label of the second video frame is obtained, the label of second video frame is used to indicate the second video frame Content type skip the second video frame under the label and the different situation of preset target labels of the second video frame It plays, in the identical situation of label and target labels of the second video frame, plays the second video according to certain broadcasting speed The difference of the original broadcasting speed of frame, certain broadcasting speed and the second video frame is in first object threshold value, for example, according to The original broadcasting speed of two video frames plays the second video frame, or slightly fast according to the original broadcasting speed than the second video frame Some broadcasting speeds play the second video frame, to guarantee the play quality of the second video frame.
As an alternative embodiment, the frame number for the video frame not played in determining target video frame group is the 4th After frame number, this method further include: in the case where the 4th frame number is greater than 0, obtain between the second video frame and third video frame Similarity, wherein third video frame be target video in the second video frame next video frame;It is more than second in similarity In the case where targets threshold, the broadcasting of the second video frame or third video frame is skipped.
The frame number for the video frame not played in determining target video frame group be the 4th frame number after, if the 4th frame number is big In 0, that is, with same label target video frame group in remaining video frame frame number be it is big by 0, at this time enter motion compensation Module, so that the corresponding needs of speed value that the video frame number that target video is skipped meets setting are skipped within the unit time Video frame number, with meet target video speed play when broadcasting speed.
The embodiment obtains the similarity between the second video frame and third video frame, can pass through histograms of oriented gradients (Histogram of Oriented Gradient, referred to as HOG) is obtained between the second video frame and third video frame Similarity, the third video frame are next video frame of the second video frame in target video.Judge the second video frame and third Whether the similarity between video frame is greater than the second targets threshold, which can broadcast according to target video currently Speed value when putting determines, for example, frame-skipping coefficient V0 is determined according to speed value, by multiplying between frame-skipping coefficient V0 and target value T0 Product is determined as the second targets threshold.Judging whether the similarity between the second video frame and third video frame is greater than the second target After threshold value, if it is judged that the similarity between the second video frame and third video frame is greater than the second targets threshold, it is determined that Similarity-rough set between second video frame and third video frame is high, can be considered as redundant video frame, can skip second at this time The broadcasting of video frame or third video frame.
Optionally, which selects the higher video frame of play quality from the second video frame and third video frame It plays out, to be compared the base for determining whether to skip video frame with scheduled target labels in the label by video frame On plinth, further within the unit time, frame-skipping is carried out to the video frame of target video, to meet the requirement of speed broadcasting, in turn Splendid contents in target video are showed into user to the maximum extent, further promote user experience, improve video again Efficiency when speed plays.
Optionally, the case where similarity between the second video frame and third video frame is less than the second targets threshold Under, then continue to obtain remaining video frame number in target video frame group.If remaining video frame number is in target video frame group 0, then obtain next 4th video frame of third video frame, if be also not finished in the unit time, normal play the 4th Video frame arrives next unit time if the unit time has terminated, then obtains the label of the 4th video frame, the 4th video The label of frame is used to indicate the content type of the 4th video frame, not identical in the label of the 4th video frame and preset target labels In the case where, the broadcasting of the 4th video frame is skipped, under the label and the identical situation of target labels of the 4th video frame, according to one Fixed broadcasting speed plays the 4th video frame, and the difference of the original broadcasting speed of certain broadcasting speed and the 4th video frame is the In one targets threshold, for example, playing the 4th video frame according to the original broadcasting speed of the 4th video frame, or according to than the 4th view The slightly faster broadcasting speed of the original broadcasting speed of frequency frame plays the 4th video frame, to guarantee the broadcasting matter of the 4th video frame Amount.
If remaining video frame number is available 4th video frame and the 5th view greater than 0 in target video frame group Frequency frame, the 5th video frame are next video frame of the 4th video frame in target video, and then judge the 4th video frame and the 5th Similarity between video frame, if the similarity between the 4th video frame and the 5th video frame is greater than the second targets threshold, Skip the 4th video frame or the 5th video frame.Optionally, quality lower one is selected in the 4th video frame and the 5th video frame Video frame is skipped, and normal play another video frame, so that the splendid contents in target video be shown to the maximum extent To user, efficiency of the video when speed plays is improved.
As an alternative embodiment, the target video frame group where obtaining the first video frame includes: to obtain by the Target video frame group where the first video frame that two servers are sent, wherein target video carries out transcoding by second server, Multiple video frames are obtained, and multiple video frames are divided into multiple video frame groups by second server, each video frame group includes mesh Continuous multiple video frames in video with same label are marked, multiple video frame groups include target video frame group.
In this embodiment, available by second service when obtaining the target video frame group where the first video frame Target video frame group where the first video frame that device is sent, the second server can be transcoding server, transcoding server For carrying out transcoding to target video.
Optionally, which will have through transcoding server when carrying out transcoding to target video in target video Continuous multiple video frames of same label are divided into a video frame group.Optionally, for target video, transcoding server starting turns Code, into Intelligent Calibration module.The Intelligent Calibration module while transcoding with artificial intelligence to the target video of transcoding into Row intellectual analysis analyzes a video frame in target video, and the label for extracting video frame is K0, and video frame group is arranged For S0.Next next video frame in target video is read, next video frame in target video is analyzed, and The label K of next video frame is extracted, which is current video frame.If the label K of current video frame is with before The label K0 of one video frame is different, then current video frame is arranged and belongs to new video frame group Sn.Previous video frame group S0 is completed Grouping.If the label K of current video frame is identical with the label of previous video frame, current video frame is added to previous video In video frame group belonging to frame, and label K0 is the label of this video frame group, thus by the continuous videos with same label Frame forms a video frame group,
Optionally, the successive video frames with same label are up to the video frame number that target video plays in 1 second, most Small is 1 frame.After the division for completing a video frame group, Intelligent Calibration module is exited, continues to complete and target video is turned Code continues to be grouped in the case where transcoding is not completed to multiple video frames in target video frame.Thus by target video In multiple video frames be divided into multiple video frame groups, each video frame group includes continuous more with same label in target video A video frame, multiple video frame groups include target video frame group.
As an alternative embodiment, in the identical situation of label and target labels of the first video frame, according to It includes: the speed value in target video when carrying out speed broadcasting that target broadcasting speed, which plays the first video frame, reaches target times In the case where speed value, the first video frame is played according to the target broadcasting speed equal with original broadcasting speed;Exist in target video Speed value when speed broadcasting is carried out, in the case where miss the mark speed value, is broadcast according to the target for being greater than original broadcasting speed It puts speed and plays the first video frame.
In this embodiment, according to target broadcasting speed play the first video frame when, it can be determined that target video into Whether speed value when row speed plays reaches target speed value, which can be the speed of user setting.If Speed value of the target video when carrying out speed broadcasting has reached target speed value, then according to equal with original broadcasting speed Target broadcasting speed plays the first video frame;If speed value of the target video when carrying out speed broadcasting, goes back miss the mark In the case where speed value, then need to broadcast to meet target speed value according to the target broadcasting speed for being greater than original broadcasting speed Put the first video frame.
It is alternatively possible to meet the video frame number that target speed value needs to skip according to target speed value determination, obtain The video frame number skipped will need the difference of the video frame number skipped and the video frame number skipped to be determined as also needing to skip Video frame number, the video frame number skipped as needed determine the target broadcasting speed for playing the first video frame, which plays speed Degree can be slightly more quicker than original broadcasting speed, but target broadcasting speed and original broadcasting speed be in first object threshold value, from Interested video content in target video is watched without influencing user.
As an alternative embodiment, within the unit time, the frame number for the video frame that target video is skipped and broadcasting The sum of the frame number of video frame, and when being played within the unit time according to original broadcasting speed, the frame number of the video frame of broadcasting Between quotient, be speed value of the target video when carrying out speed broadcasting.
In this embodiment, speed value of the target video when carrying out speed broadcasting, target video when being played for speed Broadcasting speed and target video original broadcasting speed quotient.Within the unit time, the video frame that target video is skipped is obtained Frame number and the sum of the frame number of video frame of broadcasting, obtain when being played within the unit time according to original broadcasting speed, play The frame number of video frame obtain the frame of the frame number for the video frame that target video is skipped and the video frame of broadcasting for example, in 1 second The sum of number A, obtain when playing within the unit time according to original broadcasting speed, the frame number B of the video frame of broadcasting, then A and B it Between quotient, be speed value when the current speed of target video plays.
Fig. 3 is the flow chart of another video broadcasting method according to an embodiment of the present invention.As shown in figure 3, this method packet Include following steps:
Step S302, during client carries out speed broadcasting to target video, client is obtained in target video The label of first video frame to be played.
In the technical solution that the application above-mentioned steps S302 is provided, speed broadcasting is carried out to target video in client In the process, client obtains the label of the first video frame to be played in target video, wherein the label of the first video frame is used for Indicate the content type of the first video frame.
In this embodiment, target video can need the video of client terminal playing for user, can pass through video consumer End plays target video.The target video is played out by the way of speed broadcasting.
Optionally, user end to server sends destination request, which obtains target view for client request The URL of frequency.After the URL that client obtains target video, client obtains target video according to URL, for example, client obtains Take the video flowing of target video.
Optionally, the target video of the embodiment includes media encapsulation of data and audio, video data.Client regards target Media encapsulation of data and audio, video data in frequency are parsed, if client plays target view by the way of normal play Frequently, then client terminal playing target video until terminate.
Optionally, if client plays target video by the way of speed broadcasting, client can be in unit In, obtain the first video frame to be played in target video.Speed requirement is not met in the currently playing speed of target video In the case where, client obtains the label of first video frame, for example, client is decoded target video, from what is obtained The label of the first video frame is obtained in decoding data, the label of first video frame can serve to indicate that the content of the first video frame Type.
Step S304, under the label and the different situation of preset target labels of the first video frame, client is skipped The broadcasting of first video frame.
In the technical solution that the application above-mentioned steps S304 is provided, obtained to be played the in target video in client After the label of one video frame, client judges whether the label of the first video frame and preset target labels are identical, client Can judge whether label and the preset target labels of the first video frame are identical in scene matching module.If the first video The label of frame and preset target labels are not identical, then client skips the broadcasting of the first video frame.
In this embodiment, preset target labels can be the interest tags of user, be used to indicate the interest of user.? After client judges that the label of the first video frame and preset target labels are not identical, if the label of the first video frame and pre- If target labels it is not identical, then illustrate that the interest of content type indicated by the label of the first video frame and user are not inconsistent, That is, video content and the interested video content of non-user that first video frame is presented when playing, then client is skipped The broadcasting of first video frame, for example, skipped to the plot of the uninterested video of user high speed, so that improves target video can Viewing property improves efficiency of the target video when speed plays.
Step S306, in the identical situation of label and target labels of the first video frame, client is played according to target Speed plays the first video frame.
It is identical with target labels in the label of the first video frame in the technical solution that the application above-mentioned steps S306 is provided In the case where, client plays the first video frame according to target broadcasting speed, wherein target broadcasting speed and the first video frame The difference of original broadcasting speed is in first object threshold value.
After client judges the label of the first video frame and whether preset target labels are identical, if the first video The label of frame is identical with target labels, then client plays the first video frame, the target broadcasting speed according to target broadcasting speed And the difference of the original broadcasting speed of the first video frame is in first object threshold value.
In this embodiment, if the label of the first video frame is identical with target labels, illustrate the mark of the first video frame The indicated content type of label is consistent with the interest of user, that is, the label of target labels and the first video frame matches, this The video content that one video frame is presented when playing is the interested video content of user, and client can be played according to target Speed plays the first video frame, that is, client plays the view of interested first video frame of user according to target broadcasting speed Frequency content.Optionally, the first video frame is played according to the original broadcasting speed of first video frame or slightly fast speed.
Optionally, in the case where target video has met the requirement of current speed, client can be according to the first video The original broadcasting speed of frame plays the first video frame;In the case where target video frame does not also meet the requirement of current speed, visitor Family end can will meet the video frame number that the speed value of setting needs to skip according to the speed value determination of setting, what acquisition had been skipped Video frame number will need the difference of the video frame number skipped and the video frame number skipped to be determined as the video frame for also needing to skip Number, the video frame number that client is skipped as needed determine the target broadcasting speed for playing the first video frame, which plays speed Spend slightly more quicker than original broadcasting speed, but target broadcasting speed and original broadcasting speed be in first object threshold value, thus not It influences user and watches interested video content in target video.
Optionally, in this embodiment, within the unit time, when the frame number for the video frame that client has been skipped reaches and mesh When the speed of mark video is worth the corresponding video frame number for needing to skip, then the remaining video frame not played in the unit time can With normal play, it may include the interested video frame of user in the remaining video frame not played, also may include user Uninterested video frame;If the frame number of the video frame skipped determined is not up to and target video within the unit time Speed is worth the corresponding video frame number for needing to skip, then client can travel further into motion compensating module, according to adjacent view Similarity between frequency frame selects frame-skipping, and a video frame in the high two adjacent video frames of similarity is skipped, And another video frame is played, so that it is determined that the video that video frame and needs that client needs to skip within the unit time play Frame, to meet broadcasting speed of the target video when speed plays.
Client was skipped or is played to the video frame selection of target video according to the method described above within a unit time, Within next unit time, the video frame selection of target video can be skipped or be played also according to the above method, from And by the interested content of user in target video to show user to the maximum extent, video is improved when speed plays Efficiency.
S302 to step S306 through the above steps, during client carries out speed broadcasting to target video, visitor Family end obtains the label of the first video frame to be played in target video, wherein the label of the first video frame is used to indicate first The content type of video frame;Under the label and the different situation of preset target labels of the first video frame, client is skipped The broadcasting of first video frame;In the identical situation of label and target labels of the first video frame, client is played according to target Speed plays the first video frame, wherein the difference of target broadcasting speed and the original broadcasting speed of the first video frame is in first object In threshold value.After target video is played using speed, client skips label and different first view of preset target labels Frequency frame plays label and identical first video frame of preset target labels according to target broadcasting speed, that is to say, that client The uninterested video frame of user is skipped, and plays the interested video frame of user according to target broadcasting speed, avoids fixation The video frame for skipping certain amount, cause user interested and uninterested video frame all equally skipped, affect Efficiency of the video when speed plays to realize the technical effect for improving efficiency when video speed plays, and then solves The technical issues of low efficiency of the relevant technologies when video speed plays.
The embodiment can use the algorithm of artificial intelligence, distinguish to the content of target video, to target video After carrying out speed broadcasting, the interested video content of user is played using former speed or is slightly quickly played, not for user Interested video content is using skipping at a high speed.It can also be skipped by way of artificial intelligence similar between adjacent video frames One video frame, further to promote user experience, thus promote user to the speed viewing experience of video, it also can be by video Splendid contents show user to the maximum extent, improve efficiency of the video when speed plays.
Technical solution of the present invention is illustrated below with reference to preferred embodiment.
The embodiment provides a kind of video speed playing device, which is mainly used in player or browser On, it is satisfied with user and quick looks at the demand of video using accelerating to play in playing process.
Optionally, the video speed playing device of the embodiment carries out area to video content with the algorithm of artificial intelligence Point.After user is played using speed, the interested content of user is played using former speed or is slightly quickly played, for user Uninterested content is using skipping at a high speed;It can also be on the basis of artificial intelligence identifies, according to the phase between adjacent image Video frame is skipped in the selection of closing property, can greatly promote user in this way to the speed viewing experience of video, also can be by the essence of video Color content shows user to greatest extent.
Fig. 4 is a kind of schematic diagram of video speed playing device according to an embodiment of the present invention.As shown in figure 4, the video Speed playing device includes: Intelligent Calibration module 1, scene matching module 2, motion compensating module 3 and behavioral statistics module 4.
Intelligent Calibration module 1, while transcoding end carries out transcoding to video, with artificial intelligence to the source video of transcoding Carry out intellectual analysis, to same label successive frame form a group, this successive frame maximum include video in 1 second just The video frame number often played, minimum can be a frame.
Fig. 5 is a kind of flow chart of the scaling method of Intelligent Calibration module according to an embodiment of the present invention.As shown in figure 5, Method includes the following steps:
Step S501 analyzes the first frame image of video, and the label of the first frame image of extraction is K0.
The embodiment starts transcoding to video source by transcoding server, into Intelligent Calibration module.It can be with view-based access control model Library OpenCV analyzes the first frame image of video, and the label of the first frame image of extraction is K0, and setting is grouped into S0.Its In, OpenCV is a cross-platform computer vision library, be may operate in operating system.
Step S502 analyzes the second frame image of video, and the label for extracting the second frame image is K.
A new frame image is read, is analyzed using OpenCV, and extracting label is K.
Step S503 judges whether the label K0 of first frame image is identical as the label K of the second frame image.
It is analyzed in the second frame image to video, after the label K for extracting the second frame image, judges first frame image Label K0 it is whether identical as the label K of the second frame image.If it is judged that the label K0 of first frame image and the second frame figure The label K of picture is identical, step S504 is executed, if it is judged that the label of the label K0 of first frame image and the second frame image K is not identical, executes step S505.
Second frame image is added in the grouping that first frame image belongs to by step S504, and label is the mark of this grouping Label.
After whether the label K of the label K0 for judging first frame image and the second frame image are identical, if first frame The label K0 of image is identical as the label K of the second frame image, then the second frame image is added to point that first frame image belongs to In group, label is the label of this grouping.
Step S505, the second frame image of setting belong to new grouping Sn.
After whether the label K of the label K0 for judging first frame image and the second frame image are identical, if first frame The label K0 of image is not identical as the label K of the second frame image, then the second frame image is arranged and belongs to new grouping Sn.Previous point Group S0 completes grouping.
Step S506 exits Intelligent Calibration module.
It is added in the grouping that first frame image belongs to by the second frame image, after label of the label for this grouping, Or after the second frame image is set and belongs to new grouping Sn, exit Intelligent Calibration module.
Step S507 continues to complete the transcoding of video.
Step S508, judges whether transcoding is completed.
If transcoding does not complete, the method after S501 is thened follow the steps, multiple video frames in video are continued Grouping;If transcoding has not completed, terminate to execute process.
Fig. 6 is a kind of schematic diagram of transcoding server according to an embodiment of the present invention.As shown in fig. 6, in transcoding server Media encoders obtain audio-video input equipment send media data, media data is encoded, video flowing is obtained, will Video flowing is input to hypertext transfer protocol (HyperText Transport Protocol, referred to as HTTP) server In, it handles as the media file of certain type.Also video flowing is distributed in web page server, visitor is sent to by http protocol In the end of family, realizes and transcoding is carried out to video source.
Scene matching module 2 is used for during player plays, right if user plays video using speed Than the label of every frame and the interest tags of user, unmatched video frame is selectively skipped according to speed.
Motion compensating module 3, after scene matching module skipped frame, if not still being able to satisfy target video again Demand when speed plays then enters the motion compensating module 3.The motion compensating module 3 mainly makes a reservation for a window, the window It is determined according to the successive frame with same label.Window size is exactly the frame number with the successive frame of same label.With window In the second video frame start, according to previous video frame with the correlation between current video frame, continuous regarded to calculate the two Whether the similarity between frequency frame is more than threshold value, can be with if it exceeds threshold value then thinks that the similarity of the two video frames is higher The video frame that play quality is poor in this two frame is selected to skip.Optionally, the threshold value of the embodiment can be worked as according to video The speed value of preceding setting determines.
Behavioral statistics module 4, for analyzing behavior and the video tab of each user's speed, to be continuously updated user's Interest tags, user behavior when playing for subsequent video speed are matched.
In this embodiment it is possible to demarcated the interest of user by background server counting user watching behavior, For example, the behavior of user is designated as personage, landscape, gunbattle, wushu, love, beauty, male mind etc., no limitations are hereby intended.
The player of the embodiment is introduced below.
Fig. 7 is a kind of flow chart of the video broadcasting method of player according to an embodiment of the present invention.As shown in fig. 7, should Method the following steps are included:
Step S701, the URL of request target video.
According to the needs of users, the URL of request target video.It is regarded according to the URL of target video to server request target The video flowing of frequency.
Step S702 receives the video flowing that server is sent.
Step S703 parses media encapsulation of data and audio, video data in video flowing.
Whether step S704, detection target video are arranged speed broadcasting.
If detecting that the not set speed of target video plays, step S705 is executed;If detecting that target video is arranged Speed broadcasting executes step S706.
Step S705, normal play is until playing terminates.
Step S706 obtains the current video frame of target video within the unit time.
Step S707 obtains the label of current video frame in the case where needing to target video speed.
In the case where needing to target video speed, current video frame can be decoded, obtain current video frame Label.
Step S708 judges whether the label of current video frame and user interest label are identical.
After the label for obtaining current video frame, judge the label of current video frame and user interest label whether phase Together.If it is judged that the label of current video frame is identical as user interest label, step S709 is executed;If it is judged that working as forward sight The label of frequency frame and user interest label be not identical, executes step S710.
Step S709 plays current video frame.
Step S710, skips current video frame.
Step S711 obtains the frame number Tn for the video frame for also needing to skip within the unit time.
The speed value that can be arranged according to current goal video, determines the frame for the video frame for needing to skip within the unit time Number, by the difference between the frame number for the video frame in the frame number for the video frame for needing to skip in the unit time and currently skipped, really It is set to the frame number Tn for the video frame for also needing to skip.
Step S712, judges whether Tn is equal to 0.
After the frame number Tn for obtaining the video frame for also needing to skip within the unit time, judge whether Tn is greater than 0.If Judge that Tn not equal to 0, executes step S713;If it is judged that Tn is equal to 0, step S706 is executed.
Step S713 obtains the remaining frame number Y0 of the S group where current video frame.
After judging whether Tn is greater than 0, if it is judged that Tn is not equal to 0, then the S group where current video frame is obtained Remaining frame number Y0.
Step S714, judges whether remaining frame number Y0 is equal to 0.
After obtaining the remaining frame number Y0 of the S group where current video frame, judge whether remaining frame number Y0 is equal to 0.Such as Fruit judges that residue frame number Y0 is equal to 0, executes step S706;If it is judged that residue frame number Y0 is not equal to 0, step S715 is executed.
Step S715 obtains frame-skipping coefficient V0 and target value T0 according to the speed value of current setting.
After judging whether residue frame number Y0 is equal to 0, if it is judged that residue frame number Y0 is not equal to 0, according to currently setting The speed value set obtains frame-skipping coefficient V0 and target value T0, T0*V0 is determined as threshold value.
Step S716 obtains new current video frame into motion compensating module.
Step S717 analyzes new current video frame and next video frame, obtains current video frame and next Similarity between a video frame.
Step S718 judges whether the similarity between current video frame and next video frame is more than threshold value.
It is analyzed to new current video frame and next video frame, obtains current video frame and next video frame Between similarity after, judge whether the similarity between current video frame and next video frame is more than threshold value T0*V0.Such as Fruit judges that the similarity between current video frame and next video frame is more than threshold value T0*V0, thens follow the steps S719;If Judge that the similarity between current video frame and next video frame is less than threshold value T0*V0, executes step S713.
Step S719 skips new current video frame.
The behavioral statistics module 4 of the embodiment, can the matching label during the speed to above-mentioned user be updated. Optionally, it is watched if user's speed drags to relevant position after playing again, the label of current location is divided Analysis, updates the interest tags of user.
The above-mentioned speed playing device that the embodiment provides can carry out the content of video with the algorithm of artificial intelligence It distinguishes.After video is using speed playing function, the interested content of user is played using former speed or is slightly quickly played, And content uninterested for user is using skipping at a high speed.It is identical similarity can also to be skipped by way of artificial intelligence Video frame, to further promote user experience.The speed viewing experience that user can greatly be promoted in this way, also can be by video Splendid contents show user to the maximum extent.
By the Intelligent Calibration module 1 of the embodiment, video is demarcated and is grouped in transcoding;Pass through scene matching Module 2 compares the interest tags of user with the label of current video frame, skips the uninterested video frame of user;If The requirement of speed is not met by after frame-skipping by above-mentioned scene matching module 2, then window is compared by motion compensating module 3 The similarity of middle front and back picture reaches the demand of user's speed;It is played by behavioral statistics module 4 according to each user's speed Behavior, statistics and update user label, thus with meet to greatest extent user's speed play when see interested content, And the excellent property of video content can also be protected, promote the viewing of video.
The application environment of the embodiment of the present invention can be, but not limited to referring to the application environment in above-described embodiment, the present embodiment In this is repeated no more.The embodiment of the invention provides optionally specifically answer for implementing a kind of of above-mentioned video broadcasting method With.
Fig. 8 A is a kind of schematic diagram of a scenario of video playing according to an embodiment of the present invention.As shown in Figure 8 A, user uses Terminal watches the video that playing duration is 36 points: 20 seconds, wherein terminal is not limited to PC, mobile phone, tablet computer etc..It is regarding During frequency plays, " speed " function button is shown in the upper right corner of display interface, is somebody's turn to do " speed " function button for again Speed plays video.
Fig. 8 B is the schematic diagram of a scenario of another video playing according to an embodiment of the present invention.As shown in Figure 8 B, in video During broadcasting, the operational order of user is received by " speed " function button of display interface, is shown in drop-down option Different speed values, for example, display speed value 1.5 ×, 2 ×, 2.5 ×, 3 × etc., user can also input customized speed Value plays currently playing video according to the speed value speed of setting.
Fig. 8 C is the schematic diagram of a scenario of another video playing according to an embodiment of the present invention.As shown in Figure 8 C, video times The speed value that speed plays is set as 2.5 ×, the playback progress of video starts display landscape video the 00:20 second positions a at this time Content, and the video content between ab also will be landscape video content.The embodiment can use the algorithm of artificial intelligence, right The content of video distinguishes, and the label of the video frame by the interest tags of user with will currently play compares, user Interest tags it is not identical as the label for the video frame that will currently play, then can determine the landscape video that will currently play Content is the uninterested video content of user.
Fig. 8 D is the schematic diagram of another video playing scene according to an embodiment of the present invention.As in fig. 8d, due to figure Landscape video content between ab shown in 8C is the uninterested video content of user, which is guaranteeing video playing Speed value be 2.5 × in the case where, directly skip the broadcasting of video frame between ab, directly display the personage's video next played Content.The embodiment uses the algorithm of artificial intelligence, distinguishes to the content of video, the corresponding video of personage's video content The label of frame and the interest tags of user are identical, then are 2.5 × in the case where in the speed value of guarantee video playing, use former speed It plays or slightly quickly plays and continue the corresponding video frame of personage's video content.
Optionally, which can also skip the similar view between adjacent video frames by way of artificial intelligence Frequency frame, further to promote user experience, to promote user to the speed viewing experience of video, also can by video it is excellent in Appearance shows user to the maximum extent, improves efficiency of the video when speed plays.
It should be noted that the application scenarios of above-mentioned video playing are only the citing of the embodiment of the present invention, this is not represented The application scenarios of invention are only limitted to above-mentioned application scenarios, further include it is other can video broadcasting method through the embodiment of the present invention It realizes that video speed plays, and improves the application scenarios of efficiency when video speed plays, no longer illustrate one by one herein.
The embodiment can be used in the products such as net cast, program request.The embodiment by using artificial intelligence side Method, the point of interest different from each user enable user farthest to guarantee the complete of video-see when speed plays Whole property and excellent degree.The user experience for quick looking at video can also be provided simultaneously, product competitiveness is improved, also can increase view The excellent property and viewing property of frequency prevent simple and crude ground speed mode from destroying the excellent property and viewing property of video, improve video Efficiency when self-love speed plays.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Other side according to an embodiment of the present invention additionally provides a kind of for implementing the view of above-mentioned video broadcasting method Frequency playing device.Fig. 9 is a kind of schematic diagram of video play device according to an embodiment of the present invention.As shown in figure 9, the device can To include: acquiring unit 10, skip unit 20 and broadcast unit 30.
Acquiring unit 10, it is to be played in target video for obtaining during carrying out speed broadcasting to target video The first video frame label, wherein the label of the first video frame is used to indicate the content type of the first video frame.
Unit 20 is skipped, for skipping under the label of the first video frame and the different situation of preset target labels The broadcasting of first video frame.
Broadcast unit 30, for being played according to target under the label of the first video frame and the identical situation of target labels Speed plays the first video frame, wherein the difference of target broadcasting speed and the original broadcasting speed of the first video frame is in first object In threshold value.
It should be noted that the acquiring unit 10 in the embodiment can be used for executing the step in the embodiment of the present application S202, the unit 20 of skipping in the embodiment can be used for executing step S204 in the embodiment of the present application, in the embodiment Broadcast unit 30 can be used for executing the step S206 in the embodiment of the present application.
Other side according to an embodiment of the present invention additionally provides a kind of for implementing the view of above-mentioned video broadcasting method Frequency playing device.Figure 10 is a kind of schematic diagram of video play device according to an embodiment of the present invention.As shown in Figure 10, the device It may include: acquiring unit 40, skip unit 50 and broadcast unit 60.
Acquiring unit 40, for making client obtain mesh during client carries out speed broadcasting to target video Mark the label of the first video frame to be played in video, wherein the label of the first video frame is used to indicate the interior of the first video frame Hold type;
Unit 50 is skipped, for making visitor under the label of the first video frame and the different situation of preset target labels Skip the broadcasting of the first video frame in family end;
Broadcast unit 60, under the label of the first video frame and the identical situation of target labels, make client according to Target broadcasting speed plays the first video frame, wherein the difference of target broadcasting speed and the original broadcasting speed of the first video frame exists In first object threshold value.
It should be noted that the acquiring unit 30 in the embodiment can be used for executing the step in the embodiment of the present application S302, the unit 40 of skipping in the embodiment can be used for executing step S304 in the embodiment of the present application, in the embodiment Broadcast unit 50 can be used for executing the step S306 in the embodiment of the present application.
The embodiment skips label and preset target labels different first after target video is played using speed Video frame plays label and identical first video frame of preset target labels according to target broadcasting speed, that is to say, that skip The uninterested video frame of user, and the interested video frame of user is played according to target broadcasting speed, avoid fixed jump The video frame for crossing certain amount, causes user interested and uninterested video frame is all equally skipped, and affects video Efficiency when speed plays to realize the technical effect for improving efficiency when video speed plays, and then solves phase Pass technology video speed play when low efficiency the technical issues of.
Herein it should be noted that said units are identical as example and application scenarios that corresponding step is realized, but not It is limited to above-described embodiment disclosure of that.It should be noted that said units as a part of device may operate in as In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization, wherein hardware environment includes network Environment.
Another aspect according to an embodiment of the present invention additionally provides a kind of for implementing the electricity of above-mentioned video broadcasting method Sub-device.As shown in figure 11, Figure 11 is a kind of structural block diagram of electronic device according to an embodiment of the present invention.The electronic device packet It includes: processor 111, memory 113.It is stored with computer program in the memory, which is arranged to pass through computer Program executes the step in any of the above-described embodiment of the method.Optionally, as shown in figure 11, which can also include passing Defeated device 115 and input-output equipment 117.
Optionally, in the present embodiment, above-mentioned electronic device can be located in multiple network equipments of computer network At least one network equipment.
Wherein, specifically, memory 113 is for storing application program.
Optionally, in the present embodiment, above-mentioned processor 111 can be set to execute following step by computer program It is rapid:
During carrying out speed broadcasting to target video, the mark of the first video frame to be played in target video is obtained Label, wherein the label of the first video frame is used to indicate the content type of the first video frame;
Under the label and the different situation of preset target labels of the first video frame, broadcasting for the first video frame is skipped It puts;
In the identical situation of label and target labels of the first video frame, the first video is played according to target broadcasting speed Frame, wherein the difference of target broadcasting speed and the original broadcasting speed of the first video frame is in first object threshold value.
Processor 111 is also used to execute following step: after playing the first video frame according to target broadcasting speed, the In the case that similarity between two video frames and the first video frame is greater than the second targets threshold, broadcasting for the second video frame is skipped It puts, wherein the second video frame is next video frame of the first video frame in target video.
Processor 111 is also used to execute following step: before the broadcasting for skipping the first video frame, alternatively, according to mesh Before marking broadcasting speed the first video frame of broadcasting, tag set is obtained, wherein include multiple target labels in tag set, often A target labels are used to indicate a kind of viewing interest of target object, and target object is the object for watching target video;First In the case that multiple target labels in the label and tag set of video frame are all different, the broadcasting of the first video frame is skipped; In the identical situation of label and target labels of the first video frame, playing the first video frame according to target broadcasting speed includes: In the identical situation of a target labels in the label and tag set of the first video frame, played according to target broadcasting speed First video frame.
Processor 111 is also used to execute following step: obtaining the tag set sent by first server, wherein label Set is generated by first server according to the history watching behavior of target object, and the viewing of history watching behavior and target object is emerging Interest is associated.
Processor 111 is also used to execute following step: after the broadcasting for skipping the first video frame, alternatively, according to mesh After marking broadcasting speed the first video frame of broadcasting, response object run instruction plays and is in target playback progress in target video Video;It will be used to indicate the label of the content type of the video of target playback progress, be added to tag set, to update label Set.
Processor 111 is also used to execute following step: after the broadcasting for skipping the first video frame, determining that target video exists The frame number for the video frame for needing to skip when carrying out speed broadcasting is the first frame number, wherein the first frame number is being carried out by target video Broadcasting speed when speed plays determines;The frame number for determining the video frame that target video has been skipped is the second frame number;By first frame Several and the second frame number difference is determined as third frame number, wherein third frame number is the frame number of target video video frame to be skipped;? In the case that third frame number is 0, the second video frame in target video frame is obtained, wherein the second video frame is in target video Next video frame of first video frame.
Processor 111 is also used to execute following step: the difference of the first frame number and the second frame number is being determined as third frame number Later, in the case where third frame number is greater than 0, the target video frame group where the first video frame is obtained, wherein target video frame Group includes continuous multiple video frames in target video with same label;Determine the video frame not played in target video frame group Frame number be the 4th frame number;In the case where the 4th frame number is 0, the second video frame in target video frame is obtained.
Processor 111 is also used to execute following step: the frame number for the video frame not played in determining target video frame group After the 4th frame number, in the case where the 4th frame number is greater than 0, obtain similar between the second video frame and third video frame Degree, wherein third video frame is next video frame of the second video frame in target video;It is more than the second target threshold in similarity In the case where value, the broadcasting of the second video frame or third video frame is skipped.
Processor 111 is also used to execute following step: the mesh where obtaining the first video frame sent as second server Mark video frame group, wherein target video carries out transcoding by second server, obtains multiple video frames, and will by second server Multiple video frames are divided into multiple video frame groups, and each video frame group includes continuous multiple views in target video with same label Frequency frame, multiple video frame groups include target video frame group.
Processor 111 is also used to execute following step: in speed value of the target video when carrying out speed broadcasting, reaching mesh In the case where marking speed value, the first video frame is played according to the target broadcasting speed equal with original broadcasting speed;It is regarded in target In the case where speed value miss the mark speed value of the frequency when carrying out speed broadcasting, according to the mesh for being greater than original broadcasting speed It marks broadcasting speed and plays the first video frame.
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment, the present embodiment Details are not described herein.
Optionally, it will appreciated by the skilled person that structure shown in Figure 11 is only to illustrate, electronic device can also To be smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC and mobile internet device The terminal devices such as (Mobile Internet Devices, MID), PAD.Figure 11 it does not make to the structure of above-mentioned electronic device At restriction.For example, electronic device may also include more or less component (such as network interface, display dress than shown in Figure 11 Set), or with the configuration different from shown in Figure 11.
Wherein, memory 113 can be used for storing software program and module, such as the video playing side in the embodiment of the present invention Method and the corresponding program instruction/module of device, processor 111 by the software program that is stored in memory 113 of operation and Module realizes above-mentioned video broadcasting method thereby executing various function application and data processing.Memory 113 can wrap Include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage device, flash memory or Other non-volatile solid state memories of person.In some instances, memory 113 can further comprise remote relative to processor 111 The memory of journey setting, these remote memories can pass through network connection to terminal.The example of above-mentioned network includes but unlimited In internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 115 is used to that data to be received or sent via a network.Above-mentioned network specific example It may include cable network and wireless network.In an example, transmitting device 115 includes a network adapter (Network Interface Controller, NIC), can be connected by cable with other network equipments with router so as to interconnection Net or local area network are communicated.In an example, transmitting device 115 is radio frequency (Radio Frequency, RF) module, For wirelessly being communicated with internet.
Using the embodiment of the present invention, during carrying out speed broadcasting to target video, obtain in target video wait broadcast The label for the first video frame put, wherein the label of the first video frame is used to indicate the content type of the first video frame;First Under the label of video frame and the different situation of preset target labels, the broadcasting of the first video frame is skipped;In the first video frame Label and the identical situation of target labels under, according to target broadcasting speed play the first video frame, wherein target broadcasting speed And the difference of the original broadcasting speed of the first video frame is in first object threshold value.After target video is played using speed, skip Label and different first video frame of preset target labels play label and preset target mark according to target broadcasting speed Sign identical first video frame, that is to say, that skip the uninterested video frame of user, and play and use according to target broadcasting speed The interested video frame in family avoids the fixed video frame for skipping certain amount, causes user interested and loses interest in Video frame all equally skipped, affect video speed play when efficiency, thus realize improve video speed play When efficiency technical effect, and then solve the relevant technologies video speed play when low efficiency the technical issues of.
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps Calculation machine program:
During carrying out speed broadcasting to target video, the mark of the first video frame to be played in target video is obtained Label, wherein the label of the first video frame is used to indicate the content type of the first video frame;
Under the label and the different situation of preset target labels of the first video frame, broadcasting for the first video frame is skipped It puts;
In the identical situation of label and target labels of the first video frame, the first video is played according to target broadcasting speed Frame, wherein the difference of target broadcasting speed and the original broadcasting speed of the first video frame is in first object threshold value.
Optionally, storage medium is also configured to store the program code for executing following steps: broadcasting according to target After putting speed the first video frame of broadcasting, the similarity between the second video frame and the first video frame is greater than the second targets threshold In the case where, skip the broadcasting of the second video frame, wherein the second video frame is next view of the first video frame in target video Frequency frame.
Optionally, storage medium is also configured to store the program code for executing following steps: skipping the first view Before the broadcasting of frequency frame, alternatively, obtaining tag set before playing the first video frame according to target broadcasting speed, wherein mark It include multiple target labels in label set, each target labels are used to indicate a kind of viewing interest of target object, target object For the object for watching target video;In the different situation of label and target labels of the first video frame, the first video is skipped In the case that the broadcasting of frame includes: that multiple target labels in the label and tag set of the first video frame are all different, jump Cross the broadcasting of the first video frame;In the identical situation of a target labels in the label and tag set of the first video frame, The first video frame is played according to target broadcasting speed.
Optionally, storage medium is also configured to store the program code for executing following steps: obtaining by the first clothes The tag set that business device is sent, wherein tag set is generated by first server according to the history watching behavior of target object, is gone through History watching behavior is associated with the viewing interest of target object.
Optionally, storage medium is also configured to store the program code for executing following steps: skipping the first view After the broadcasting of frequency frame, alternatively, after playing the first video frame according to target broadcasting speed, response object run instruction is broadcast Put the video that target playback progress is in target video;The mark of the content type of the video of target playback progress will be used to indicate Label, are added to tag set, to update tag set.
Optionally, storage medium is also configured to store the program code for executing following steps: target playback progress It is used to indicate position of the video not played in target video in target video, or is used to indicate in target video and played Position of the video in target video.
Optionally, storage medium is also configured to store the program code for executing following steps: skipping the first view After the broadcasting of frequency frame, determine that the frame number for the video frame that target video needs to skip when carrying out speed broadcasting is the first frame number, Wherein, the first frame number is determined by broadcasting speed of the target video when carrying out speed broadcasting;Determine the view that target video has been skipped The frame number of frequency frame is the second frame number;The difference of first frame number and the second frame number is determined as third frame number, wherein third frame number is mesh Mark the frame number of video video frame to be skipped;In the case where third frame number is 0, the second video in target video frame is obtained Frame, wherein the second video frame is next video frame of the first video frame in target video.
Optionally, storage medium is also configured to store the program code for executing following steps: by the first frame number After being determined as third frame number with the difference of the second frame number, in the case where third frame number is greater than 0, where the first video frame of acquisition Target video frame group, wherein target video frame group includes continuous multiple video frames in target video with same label;It determines The frame number for the video frame not played in target video frame group is the 4th frame number;In the case where the 4th frame number is 0, target view is obtained The second video frame in frequency frame.
Optionally, storage medium is also configured to store the program code for executing following steps: determining target view The frame number for the video frame not played in frequency frame group is after the 4th frame number, in the case where the 4th frame number is greater than 0, acquisition second is regarded Similarity between frequency frame and third video frame, wherein third video frame is next view of the second video frame in target video Frequency frame;In the case where similarity is more than the second targets threshold, the broadcasting of the second video frame or third video frame is skipped.
Optionally, storage medium is also configured to store the program code for executing following steps: obtaining by the second clothes Target video frame group where the first video frame that device is sent of being engaged in, wherein target video carries out transcoding by second server, obtains Multiple video frames, and multiple video frames are divided into multiple video frame groups by second server, each video frame group includes target view With continuous multiple video frames of same label in frequency, multiple video frame groups include target video frame group.
Optionally, storage medium is also configured to store the program code for executing following steps: existing in target video Speed value when carrying out speed broadcasting is broadcast in the case where reaching target speed value according to the target equal with original broadcasting speed It puts speed and plays the first video frame;In speed value of the target video when carrying out speed broadcasting, the feelings of miss the mark speed value Under condition, the first video frame is played according to the target broadcasting speed for being greater than original broadcasting speed.
Optionally, storage medium is also configured to store for executing step included in the method in above-described embodiment Computer program, this is repeated no more in the present embodiment.
Optionally, in the present embodiment, those of ordinary skill in the art will appreciate that in the various methods of above-described embodiment All or part of the steps be that the relevant hardware of terminal device can be instructed to complete by program, the program can store in In one computer readable storage medium, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (15)

1. a kind of video broadcasting method characterized by comprising
During carrying out speed broadcasting to target video, the mark of the first video frame to be played in the target video is obtained Label, wherein the label of first video frame is used to indicate the content type of first video frame;
Under the label and the different situation of preset target labels of first video frame, first video frame is skipped It plays;
Under the label and the identical situation of the target labels of first video frame, according to described in the broadcasting of target broadcasting speed First video frame, wherein the difference of the target broadcasting speed and the original broadcasting speed of first video frame is in first object In threshold value.
2. the method according to claim 1, wherein playing first view according to the target broadcasting speed After frequency frame, the method also includes:
In the case that similarity between the second video frame and first video frame is greater than the second targets threshold, skip described The broadcasting of second video frame, wherein second video frame is next view of the first video frame described in the target video Frequency frame.
3. the method according to claim 1, wherein
Before the broadcasting for skipping first video frame, alternatively, playing first view according to the target broadcasting speed Before frequency frame, the method also includes: obtain tag set, wherein it include multiple target labels in the tag set, Each target labels are used to indicate a kind of viewing interest of target object, and the target object is to watch the target video Object;
Under the label and the different situation of the target labels of first video frame, broadcasting for first video frame is skipped Put includes: that the multiple target labels in the label and the tag set of first video frame are all different In the case of, skip the broadcasting of first video frame;
Under the label and the identical situation of the target labels of first video frame, played according to the target broadcasting speed First video frame includes: a target labels phase in the label and the tag set of first video frame With in the case where, first video frame is played according to the target broadcasting speed.
4. according to the method described in claim 3, it is characterized in that, obtaining the tag set and including:
Obtain the tag set that is sent by first server, wherein the tag set by the first server according to The history watching behavior of the target object generates, the viewing interest phase of the history watching behavior and the target object Association.
5. according to the method described in claim 3, it is characterized in that, after the broadcasting for skipping first video frame, alternatively, After playing first video frame according to target broadcasting speed, the method also includes:
Object run instruction is responded, the video for being in target playback progress in the target video is played;
It will be used to indicate the label of the content type of the video of the target playback progress, the tag set is added to, with more The new tag set.
6. according to the method described in claim 5, it is characterized in that, the target playback progress is used to indicate the target video In the position of the video that does not play in the target video, or be used to indicate the video that played in the target video and exist Position in the target video.
7. described the method according to claim 1, wherein after the broadcasting for skipping first video frame Method further include:
The frame number for determining the video frame that the target video needs to skip when carrying out speed broadcasting is the first frame number, wherein institute The first frame number is stated to be determined by broadcasting speed of the target video when carrying out speed broadcasting;
The frame number for determining the video frame that the target video has been skipped is the second frame number;
The difference of first frame number and second frame number is determined as third frame number, wherein the third frame number is the mesh Mark the frame number of video video frame to be skipped;
In the case where the third frame number is 0, the second video frame in the target video frame is obtained, wherein described second Video frame is next video frame of the first video frame described in the target video.
8. the method according to the description of claim 7 is characterized in that the difference of first frame number and second frame number is true It is set to after the third frame number, the method also includes:
In the case where the third frame number is greater than 0, the target video frame group where first video frame is obtained, wherein institute Stating target video frame group includes continuous multiple video frames in the target video with same label;
The frame number for determining the video frame not played in the target video frame group is the 4th frame number;
In the case where the 4th frame number is 0, second video frame in the target video frame is obtained.
9. according to the method described in claim 8, it is characterized in that, determining video to be skipped in the target video frame group The frame number of frame be the 4th frame number after, the method also includes:
In the case where the 4th frame number is greater than 0, the similarity between second video frame and third video frame is obtained, In, the third video frame is next video frame of the second video frame described in the target video;
In the case where the similarity is more than the second targets threshold, second video frame or the third video frame are skipped Broadcasting.
10. according to the method described in claim 8, it is characterized in that, obtaining the target video frame where first video frame Group includes:
The target video frame group where obtaining first video frame sent as second server, wherein the target Video carries out transcoding by the second server, obtains multiple video frames, and by the second server by multiple videos Frame is divided into multiple video frame groups, and each video frame group includes continuous multiple views in the target video with same label Frequency frame, the multiple video frame group include the target video frame group.
11. a kind of video broadcasting method characterized by comprising
During client carries out speed broadcasting to target video, the client obtains to be played in the target video The first video frame label, wherein the label of first video frame is used to indicate the content type of first video frame;
Under the label and the different situation of preset target labels of first video frame, the client skips described The broadcasting of one video frame;
Under the label and the identical situation of the target labels of first video frame, the client plays speed according to target Degree plays first video frame, wherein the difference of the target broadcasting speed and the original broadcasting speed of first video frame In first object threshold value.
12. a kind of video play device characterized by comprising
Acquiring unit, for obtaining to be played in the target video during carrying out speed broadcasting to target video The label of first video frame, wherein the label of first video frame is used to indicate the content type of first video frame;
Unit is skipped, for skipping institute under the label of first video frame and the different situation of preset target labels State the broadcasting of the first video frame;
Broadcast unit, for being broadcast according to target under the label of first video frame and the identical situation of the target labels It puts speed and plays first video frame, wherein the original broadcasting speed of the target broadcasting speed and first video frame Difference in first object threshold value.
13. a kind of video play device characterized by comprising
Acquiring unit, for during client carries out speed broadcasting to target video, making described in the client acquisition The label of first video frame to be played in target video, wherein the label of first video frame is used to indicate described first The content type of video frame;
Unit is skipped, it is described for making under the label of first video frame and the different situation of preset target labels Client skips the broadcasting of first video frame;
Broadcast unit, for making the client under the label of first video frame and the identical situation of the target labels End plays first video frame according to target broadcasting speed, wherein the target broadcasting speed and first video frame The difference of original broadcasting speed is in first object threshold value.
14. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to execute video broadcasting method described in any one of claim 1 to 11 when operation.
15. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to execute view described in any one of claim 1 to 11 by the computer program Frequency playback method.
CN201810111768.4A 2018-02-05 2018-02-05 Video playing method and device, storage medium and electronic device Active CN110121098B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810111768.4A CN110121098B (en) 2018-02-05 2018-02-05 Video playing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810111768.4A CN110121098B (en) 2018-02-05 2018-02-05 Video playing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN110121098A true CN110121098A (en) 2019-08-13
CN110121098B CN110121098B (en) 2021-08-17

Family

ID=67519611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810111768.4A Active CN110121098B (en) 2018-02-05 2018-02-05 Video playing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN110121098B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110674349A (en) * 2019-09-27 2020-01-10 北京字节跳动网络技术有限公司 Video POI (Point of interest) identification method and device and electronic equipment
CN111131883A (en) * 2019-12-31 2020-05-08 深圳Tcl数字技术有限公司 Video progress adjusting method, television and storage medium
CN111343483A (en) * 2020-02-18 2020-06-26 北京奇艺世纪科技有限公司 Prompting method and device for media content segments, storage medium and electronic device
CN111491203A (en) * 2020-03-16 2020-08-04 浙江大华技术股份有限公司 Video playback method, device, equipment and computer readable storage medium
CN112004117A (en) * 2020-09-02 2020-11-27 维沃移动通信有限公司 Video playing method and device
CN112565909A (en) * 2020-11-30 2021-03-26 维沃移动通信有限公司 Video playing method and device, electronic equipment and readable storage medium
CN112866805A (en) * 2021-04-23 2021-05-28 北京金和网络股份有限公司 Video acceleration processing method and device and electronic equipment
CN113347475A (en) * 2021-05-31 2021-09-03 北京达佳互联信息技术有限公司 Method and device for adjusting playing speed of multimedia information
CN113766299A (en) * 2021-05-06 2021-12-07 腾讯科技(深圳)有限公司 Video data playing method, device, equipment and medium
CN114745600A (en) * 2022-06-10 2022-07-12 中国传媒大学 Video label labeling method and device based on SEI

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120328268A1 (en) * 2007-11-23 2012-12-27 Research In Motion Limited System and Method For Providing a Variable Frame Rate and Adaptive Frame Skipping on a Mobile Device
CN103517124A (en) * 2012-06-29 2014-01-15 鸿富锦精密工业(深圳)有限公司 Video playing method and electronic device using same
CN103686411A (en) * 2013-12-11 2014-03-26 深圳Tcl新技术有限公司 Method for playing video and multimedia device
CN104025465A (en) * 2011-09-13 2014-09-03 索尼公司 Logging events in media files including frame matching
CN104602117A (en) * 2015-01-31 2015-05-06 华为技术有限公司 Double-speed video playing method and device
WO2015168092A1 (en) * 2014-04-28 2015-11-05 Arris Enterprises, Inc. User interface with video frame tiles
CN105359544A (en) * 2013-07-12 2016-02-24 苹果公司 Trick play in digital video streaming
CN105723720A (en) * 2012-03-13 2016-06-29 谷歌公司 Adaptive trick play streaming
CN106454417A (en) * 2016-11-11 2017-02-22 青岛海信宽带多媒体技术有限公司 Streaming media speed multiplication playing method and apparatus
CN106792154A (en) * 2016-12-02 2017-05-31 广东赛特斯信息科技有限公司 The frame-skipping synchronization system and its control method of video player
CN106878767A (en) * 2017-01-05 2017-06-20 腾讯科技(深圳)有限公司 Video broadcasting method and device
CN106911961A (en) * 2017-02-22 2017-06-30 北京小米移动软件有限公司 Multimedia data playing method and device
CN107172475A (en) * 2017-04-21 2017-09-15 腾讯科技(深圳)有限公司 The playing method and device of video
CN107454475A (en) * 2017-07-28 2017-12-08 珠海市魅族科技有限公司 Control method and device, computer installation and the readable storage medium storing program for executing of video playback
CN107592568A (en) * 2017-09-08 2018-01-16 维沃移动通信有限公司 A kind of video broadcasting method and terminal device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120328268A1 (en) * 2007-11-23 2012-12-27 Research In Motion Limited System and Method For Providing a Variable Frame Rate and Adaptive Frame Skipping on a Mobile Device
CN104025465A (en) * 2011-09-13 2014-09-03 索尼公司 Logging events in media files including frame matching
CN105723720A (en) * 2012-03-13 2016-06-29 谷歌公司 Adaptive trick play streaming
CN103517124A (en) * 2012-06-29 2014-01-15 鸿富锦精密工业(深圳)有限公司 Video playing method and electronic device using same
CN105359544A (en) * 2013-07-12 2016-02-24 苹果公司 Trick play in digital video streaming
CN103686411A (en) * 2013-12-11 2014-03-26 深圳Tcl新技术有限公司 Method for playing video and multimedia device
WO2015168092A1 (en) * 2014-04-28 2015-11-05 Arris Enterprises, Inc. User interface with video frame tiles
CN104602117A (en) * 2015-01-31 2015-05-06 华为技术有限公司 Double-speed video playing method and device
CN106454417A (en) * 2016-11-11 2017-02-22 青岛海信宽带多媒体技术有限公司 Streaming media speed multiplication playing method and apparatus
CN106792154A (en) * 2016-12-02 2017-05-31 广东赛特斯信息科技有限公司 The frame-skipping synchronization system and its control method of video player
CN106878767A (en) * 2017-01-05 2017-06-20 腾讯科技(深圳)有限公司 Video broadcasting method and device
CN106911961A (en) * 2017-02-22 2017-06-30 北京小米移动软件有限公司 Multimedia data playing method and device
CN107172475A (en) * 2017-04-21 2017-09-15 腾讯科技(深圳)有限公司 The playing method and device of video
CN107454475A (en) * 2017-07-28 2017-12-08 珠海市魅族科技有限公司 Control method and device, computer installation and the readable storage medium storing program for executing of video playback
CN107592568A (en) * 2017-09-08 2018-01-16 维沃移动通信有限公司 A kind of video broadcasting method and terminal device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110674349A (en) * 2019-09-27 2020-01-10 北京字节跳动网络技术有限公司 Video POI (Point of interest) identification method and device and electronic equipment
CN111131883A (en) * 2019-12-31 2020-05-08 深圳Tcl数字技术有限公司 Video progress adjusting method, television and storage medium
CN111343483A (en) * 2020-02-18 2020-06-26 北京奇艺世纪科技有限公司 Prompting method and device for media content segments, storage medium and electronic device
CN111491203A (en) * 2020-03-16 2020-08-04 浙江大华技术股份有限公司 Video playback method, device, equipment and computer readable storage medium
CN112004117A (en) * 2020-09-02 2020-11-27 维沃移动通信有限公司 Video playing method and device
CN112565909A (en) * 2020-11-30 2021-03-26 维沃移动通信有限公司 Video playing method and device, electronic equipment and readable storage medium
CN112866805A (en) * 2021-04-23 2021-05-28 北京金和网络股份有限公司 Video acceleration processing method and device and electronic equipment
CN113766299A (en) * 2021-05-06 2021-12-07 腾讯科技(深圳)有限公司 Video data playing method, device, equipment and medium
CN113766299B (en) * 2021-05-06 2024-04-19 腾讯科技(深圳)有限公司 Video data playing method, device, equipment and medium
CN113347475A (en) * 2021-05-31 2021-09-03 北京达佳互联信息技术有限公司 Method and device for adjusting playing speed of multimedia information
CN113347475B (en) * 2021-05-31 2023-02-28 北京达佳互联信息技术有限公司 Method and device for adjusting playing speed of multimedia information
CN114745600A (en) * 2022-06-10 2022-07-12 中国传媒大学 Video label labeling method and device based on SEI

Also Published As

Publication number Publication date
CN110121098B (en) 2021-08-17

Similar Documents

Publication Publication Date Title
CN110121098A (en) Video broadcasting method, device, storage medium and electronic device
CN110166827A (en) Determination method, apparatus, storage medium and the electronic device of video clip
CN107633441A (en) Commodity in track identification video image and the method and apparatus for showing merchandise news
CN110460899B (en) Bullet screen content display method, terminal equipment and computer readable storage medium
CN106878767A (en) Video broadcasting method and device
CN113438493B (en) Popup animation generation method, server, system and storage medium
CN103890810A (en) Image processing apparatus, method and computer program product
CN108632676A (en) Display methods, device, storage medium and the electronic device of image
CN110378752A (en) Advertisement recommended method, device, electronic equipment and storage medium
CN108985262A (en) Limb motion guidance method, device, server and storage medium
CN107895161B (en) Real-time attitude identification method and device based on video data and computing equipment
CN109829064A (en) Media resource shares and playing method and device, storage medium and electronic device
CN110251942A (en) Control the method and device of virtual role in scene of game
CN110446056A (en) A kind of method for processing video frequency, equipment, system and computer readable storage medium
CN110427499B (en) Method and device for processing multimedia resources, storage medium and electronic device
CN108310766A (en) Data processing method and device, storage medium, processor and terminal
CN107770602A (en) Method of video image processing and device
CN111428660B (en) Video editing method and device, storage medium and electronic device
CN112312142B (en) Video playing control method and device and computer readable storage medium
CN104901939B (en) Method for broadcasting multimedia file and terminal and server
CN110418148A (en) Video generation method, video generating device and readable storage medium storing program for executing
KR20180025754A (en) Display apparatus and control method thereof
CN107770603A (en) Method of video image processing and device
CN114283349A (en) Data processing method and device, computer equipment and storage medium
CN109165347A (en) Data push method and device, storage medium and electronic device

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