CN108495184A - A kind of method and apparatus for adding barrage for video - Google Patents

A kind of method and apparatus for adding barrage for video Download PDF

Info

Publication number
CN108495184A
CN108495184A CN201810118808.8A CN201810118808A CN108495184A CN 108495184 A CN108495184 A CN 108495184A CN 201810118808 A CN201810118808 A CN 201810118808A CN 108495184 A CN108495184 A CN 108495184A
Authority
CN
China
Prior art keywords
video
content
information
appointed
bullet screen
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
CN201810118808.8A
Other languages
Chinese (zh)
Other versions
CN108495184B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201810118808.8A priority Critical patent/CN108495184B/en
Publication of CN108495184A publication Critical patent/CN108495184A/en
Application granted granted Critical
Publication of CN108495184B publication Critical patent/CN108495184B/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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
    • 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/44008Processing 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 operations for analysing video streams, e.g. detecting features or characteristics in the video 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/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/278Subtitling

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (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 method, apparatus, electronic equipment and computer readable storage mediums adding barrage for video.This method includes:It identifies the content of designated, obtains recognition result;Corresponding text information is obtained according to recognition result;It is added to the corresponding position of designated using the text information of acquisition as barrage content.By the technical program, it can be that video adds barrage automatically, not need user and add manually, increase video interactive, avoid influencing the quality that user watches video, enhance the usage experience of user.

Description

Method and device for adding barrage to video
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for adding a barrage to a video, electronic equipment and a computer-readable storage medium.
Background
The popularization of the video applications increases the life pleasure of users. Particularly, the development of the barrage function can make users publish their own opinions while playing videos and share the opinions with other users, and the barrage function becomes a common interaction mode for videos. However, the barrage in the current video requires the user to add value to the video by sending the barrage module, that is, the user needs to manually add the barrage, which affects the quality of the video watched by the user, easily misses a wonderful picture, and reduces the user experience.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method, apparatus, electronic device and computer-readable storage medium for adding a bullet screen to a video that overcomes or at least partially solves the above-mentioned problems.
According to an aspect of the present invention, there is provided a method for adding a bullet screen to a video, wherein the method includes:
identifying the content of the appointed video to obtain an identification result;
acquiring corresponding character information according to the recognition result;
and adding the acquired text information as bullet screen content to a corresponding position of the specified video.
Optionally, the identifying the content of the designated video, and obtaining the identification result includes:
and identifying the classification of the content of the appointed video according to preset classification information to obtain the classification information of the content of the appointed video.
Optionally, the preset classification information includes one or more of the following:
comedy, horror, tragedy, dance, singing, children, war.
Optionally, the obtaining of the corresponding text information according to the recognition result includes:
respectively determining matched character information for each classification according to preset classification information, and storing the character information;
and acquiring the stored matched text information according to the classification information to which the content of the specified video belongs.
Optionally, the identifying the content of the designated video, and obtaining the identification result includes:
and judging whether a time interval in which the scene change meets the preset condition exists in the appointed video through detection, and if so, acquiring preset character information corresponding to the scene change.
Optionally, adding the acquired text information as the bullet screen content to a corresponding position of the specified video includes:
and adding the acquired text information as bullet screen content to a time period when the scene change in the appointed video meets the preset condition.
Optionally, the detecting and determining whether there is a time period in which the scene change in the designated video meets the preset condition includes:
judging whether a time period with the picture change speed meeting a preset condition exists in the appointed video or not by detecting the change speed of the appointed color in the appointed video picture;
and/or the presence of a gas in the gas,
and judging whether a time period with the music rhythm change speed meeting the preset condition exists in the appointed video or not by detecting the rhythm change speed of the corresponding audio of the appointed video.
Optionally, the method further comprises:
obtaining comment information of a user on the specified video;
and adding the comment information as barrage content to the corresponding position of the specified video.
Optionally, the adding the comment information as the bullet screen content to the corresponding position of the specified video includes:
according to the generation time point of the comment information when the specified video is played, adding the comment information as a bullet screen to the corresponding time point of the specified video;
or,
and adding the comment information as barrage content to the position of the content of the specified video, which is matched with the comment information.
According to another aspect of the present invention, there is provided an apparatus for adding a bullet screen to a video, wherein the apparatus includes:
the identification unit is suitable for identifying the content of the specified video and obtaining an identification result;
the acquisition unit is suitable for acquiring corresponding character information according to the identification result;
and the adding unit is suitable for adding the acquired text information as the bullet screen content to the corresponding position of the specified video.
Alternatively,
the identification unit is suitable for identifying the classification of the content of the designated video according to the preset classification information and obtaining the classification information of the content of the designated video.
Optionally, the preset classification information includes one or more of the following:
comedy, horror, tragedy, dance, singing, children, war.
Alternatively,
the acquisition unit is suitable for respectively determining and storing the matched text information for each classification according to preset classification information; and acquiring the stored matched text information according to the classification information to which the content of the specified video belongs.
Alternatively,
the identification unit is suitable for judging whether a time interval that the scene change accords with the preset condition exists in the appointed video or not through detection, and if yes, preset character information corresponding to the scene change is obtained.
Alternatively,
the adding unit is suitable for adding the acquired text information as the bullet screen content to a time period when the scene change in the appointed video meets the preset condition.
Alternatively,
the identification unit is suitable for judging whether a time period with the picture change speed meeting a preset condition exists in the appointed video or not by detecting the change speed of the appointed color in the appointed video picture; and/or judging whether a time period with the change speed of the dubbing music rhythm meeting the preset condition exists in the appointed video or not by detecting the change speed of the rhythm of the corresponding audio of the appointed video.
Optionally, the apparatus further comprises:
the comment information acquisition unit is suitable for acquiring comment information of the user on the specified video;
the adding unit is suitable for adding the comment information as the bullet screen content to the corresponding position of the specified video.
Alternatively,
the adding unit is suitable for adding the comment information as a bullet screen to the corresponding time point of the specified video according to the generation time point of the comment information when the specified video is played; or adding the comment information as barrage content to the position of the specified video where the content matched with the comment information is located.
According to still another aspect of the present invention, there is provided an electronic apparatus, wherein the electronic apparatus includes:
a processor; and the number of the first and second groups,
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform a method according to the foregoing.
According to yet another aspect of the present invention, there is provided a computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the aforementioned method.
According to the technical scheme of the invention, the content of the appointed video is identified, and an identification result is obtained; acquiring corresponding character information according to the recognition result; and adding the acquired text information as bullet screen content to a corresponding position of the specified video. Through this technical scheme, can do not need user's manual interpolation for the video automatic bullet curtain that adds, increase video interactivity, avoid influencing the user and watch the video quality, strengthen user's use experience.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow diagram illustrating a method for adding a bullet screen to a video according to one embodiment of the invention;
FIG. 2 is a flow diagram illustrating a method for adding a bullet screen to a video according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram illustrating an apparatus for adding a bullet screen to a video according to an embodiment of the present invention;
FIG. 4 shows a schematic structural diagram of an electronic device according to one embodiment of the invention;
fig. 5 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a flow chart illustrating a method for adding a bullet screen to a video according to an embodiment of the present invention. As shown in fig. 1, the method includes:
in step S110, the content of the designated video is identified, and an identification result is obtained.
In this embodiment, in order to make the added bullet screen more match the specified video, it is first necessary to identify the content of the specified video, such as the classification of the video, the scene change, and the like, so as to obtain the text content of the bullet screen according to the identified content.
And step S120, acquiring corresponding character information according to the identification result.
And step S130, adding the acquired character information as the bullet screen content to the corresponding position of the specified video.
The corresponding position can be according to the demand in this embodiment, according to the content automatic addition barrage of appointed video, need not user's manual addition, increase video interactivity, avoid influencing the quality that the user watched the video, reinforcing user's use experience.
The following describes in detail various ways of identifying the content of a given video, and further adds a bullet screen to the given video.
In one embodiment of the present invention, the identifying the content of the designated video in step S110, and obtaining the identification result includes: and identifying the classification of the content of the appointed video according to the preset classification information to obtain the classification information of the content of the appointed video.
In this embodiment, the classification of the designated video content is identified, specifically, which of the preset classifications to which the content of the designated video belongs is identified.
Specifically, the preset classification information includes one or more of the following: comedy, horror, tragedy, dance, singing, children, war.
It should be noted that the preset classification information is a preferred embodiment. However, the preset classification information should not be limited to the above listed classifications.
Further, the step S120 of acquiring corresponding text information according to the recognition result includes: respectively determining matched character information for each classification according to preset classification information, and storing the character information; and acquiring the stored matched text information according to the classification information to which the content of the specified video belongs.
That is, after the classification information to which the content of the designated video belongs is identified, in order to add a bullet screen matching the classification information, text information matching the classification information of the content of the designated video is acquired. In this embodiment, first, the corresponding text information is determined according to the preset classification information, so that the text information of the corresponding classification can be obtained after the classification information of the content of the designated video is identified. For example, for the horror category, the matching textual information is determined to be "good horror"; for comedy types, the matched text information is determined to be 'good fun' and the like.
In one example, if it is recognized that the classification information of the content of the designated video is comedy type, then it is "nice" to obtain the stored matching text information according to the classification information of the content of the designated video. The acquired text information "nice" can be added as a bullet screen to the corresponding position of the specified video.
Preferably, the identification of the belonging classification information of the content of the designated video here may identify only the key frame of the designated video to increase the identification speed.
In one embodiment of the present invention, the identifying the content of the designated video in step S110, and obtaining the identification result includes: and judging whether a time interval in which the scene change meets the preset condition exists in the appointed video through detection, and if so, acquiring preset character information corresponding to the scene change.
In the present embodiment, a scene change of a given video content is identified so that a matching bullet screen is added according to the scene change. In general, when the plot change of the designated video is large, the user has a need to add a bullet screen, so that the time period in which the scene change in the designated video is large is mainly identified here so as to obtain the corresponding text information.
Further, the adding the acquired text information as the bullet screen content to the corresponding position of the designated video in the step S130 includes: and adding the acquired text information as bullet screen content to a time period when the scene change in the appointed video meets the preset condition.
In the embodiment, the character information corresponding to the scene change is acquired, so that the effect that the scene changes and the corresponding barrage appears can be achieved only when the character information is added and corresponds to the time period of the scene change in the designated video, rather than adding the acquired character information randomly, and the use experience of a user is further improved.
Specifically, the above-mentioned time period for determining whether the scene change in the designated video meets the preset condition by detecting includes: judging whether a time period with the picture change speed meeting a preset condition exists in the appointed video or not by detecting the change speed of the appointed color in the appointed video picture; and/or judging whether a time period with the change speed of the dubbing music rhythm meeting the preset condition exists in the appointed video or not by detecting the change speed of the rhythm of the corresponding audio of the appointed video.
Scene changes in the designated video can be directly reflected on the color or the rhythm of the corresponding background audio, for example, in the designated video of terrorism, when the terrorism scene appears, the audio with fast rhythm or the rhythm of the audio is often slow to severe; in the dance-type video, the background color of the stage can change along with the change of dance motions, and when the change of the dance motions is large, the background color of the stage can correspondingly change greatly, namely the background color in the designated video can change greatly. Therefore, in the present embodiment, when detecting whether there is a scene change in the designated video, it is possible to detect by specifying a change in the designated color in the video screen or the tempo of the corresponding audio. Specifically, the change in color and/or the change in tempo is embodied by specifying a color change speed and/or a tempo change speed, and thus, a corresponding color change speed and/or tempo change speed is also detected. The two modes can be used independently or in combination with each other by detecting the change speed of the designated color and by detecting the change speed of the rhythm.
In one embodiment of the present invention, the method shown in fig. 1 further comprises: obtaining comment information of a user on the specified video; and adding the comment information as barrage content to the corresponding position of the specified video.
In practical application, a user can express his/her own idea through a comment mode, and not through a barrage mode, so in order to ensure better user interactivity of a specified video, in this embodiment, when the user comments on the specified video, comment information can be added to the specified video as a barrage. For example, when a user watches a specified video, a comment "this video is worth seeing" is published in a comment area of the specified video, and then after the user publishes the comment, the comment "this video is worth seeing" can be added to the specified video as a barrage, so that other users can directly obtain the idea of the user.
Further, the adding of the comment information as the bullet screen content to the corresponding position of the specified video in step S130 includes: according to the generation time point of the comment information when the specified video is played, adding the comment information as a bullet screen to the corresponding time point of the specified video; or adding the comment information as barrage content to the position of the specified video where the content matched with the comment information is located.
When a user watches a specified video, the specified video may be commented in real time, and in order that the user comment serving as a bullet screen corresponds to the scene of the specified video, the comment is correspondingly added according to the generation time or content of comment information. For example, when the user views the 2 nd minute of the specified video, the person in the video scene says the caption, the user considers the caption to be very classic, and the comment information "this sentence is too classic" is published in the comment area, then in order to make the comment information of the user correspond to the scene of the specified video, the time point generated according to the comment information "this sentence is too classic" is the 2 nd minute of the specified video, and then the comment information "this sentence is too classic" is added as a bullet screen to the 2 nd minute of the specified video.
Or, the obtained comment information of the user may be used as a material of a barrage, and when the content in the specified video matches the comment information, the comment information may be added as a barrage to the content position corresponding to the specified video, where the generation time of the comment information is not limited, and the comment information may be matched as long as the content matches. For example, following the previous example, if the user published the comment information "this is too classic" at the 2 nd minute, but when the content of the specified video is identified, it is identified that a similar classic expression also appears in the content at the 10 th minute, then the comment information "this is too classic" published by the user at the 2 nd minute can be added as a bullet screen at the 10 th minute of the specified video.
Fig. 2 is a flowchart illustrating a method for adding a bullet screen to a video according to another embodiment of the present invention. As shown in fig. 2, the method for adding a bullet screen to a video specifically includes: firstly, presetting recognition algorithms of content recognition, scene change and video classification, for a video, carrying out preset algorithm recognition on the video, namely content recognition, scene change recognition and video classification, obtaining a recognition result, after obtaining the recognition result, on one hand, generating character information according to the recognition result and the content of a key frame, such as high-energy early warning, highlights, 666 and the like, and generating the character information as a bullet screen, namely, the bullet screen is generated and added into a specified video; on the other hand, after the user performs comment, the user comment is matched with the video (here, matching is time point matching or content matching), and the user comment is added to the corresponding position in the designated video as a barrage (namely, barrage generation).
Fig. 3 is a schematic structural diagram illustrating an apparatus for adding a bullet screen to a video according to an embodiment of the present invention. As shown in fig. 3, the apparatus 300 for adding barrage to video includes:
the identifying unit 310 is adapted to identify the content of the specified video and obtain an identification result.
In this embodiment, in order to make the added bullet screen more match the specified video, it is first necessary to identify the content of the specified video, such as the classification of the video, the scene change, and the like, so as to obtain the text content of the bullet screen according to the identified content.
The obtaining unit 320 is adapted to obtain corresponding text information according to the recognition result.
And the adding unit 330 is adapted to add the acquired text information as the bullet screen content to the corresponding position of the specified video.
The corresponding position can be according to the demand in this embodiment, according to the content automatic addition barrage of appointed video, need not user's manual addition, increase video interactivity, avoid influencing the quality that the user watched the video, reinforcing user's use experience.
The following describes in detail various ways of identifying the content of a given video, and further adds a bullet screen to the given video.
In an embodiment of the present invention, the identifying unit 310 is adapted to identify a category to which the content of the specified video belongs according to preset category information, and obtain category information of the content of the specified video.
In this embodiment, the classification of the designated video content is identified, specifically, which of the preset classifications to which the content of the designated video belongs is identified.
Specifically, the preset classification information includes one or more of the following: comedy, horror, tragedy, dance, singing, children, war.
It should be noted that the preset classification information is a preferred embodiment. However, the preset classification information should not be limited to the above listed classifications.
Further, the obtaining unit 320 is adapted to determine and store the matched text information for each classification according to preset classification information; and acquiring the stored matched text information according to the classification information to which the content of the specified video belongs.
That is, after the classification information to which the content of the designated video belongs is identified, in order to add a bullet screen matching the classification information, text information matching the classification information of the content of the designated video is acquired. In this embodiment, first, the corresponding text information is determined according to the preset classification information, so that the text information of the corresponding classification can be obtained after the classification information of the content of the designated video is identified. For example, for the horror category, the matching textual information is determined to be "good horror"; for comedy types, the matched text information is determined to be 'good fun' and the like.
In one example, if it is recognized that the classification information of the content of the designated video is comedy type, then it is "nice" to obtain the stored matching text information according to the classification information of the content of the designated video. The acquired text information "nice" can be added as a bullet screen to the corresponding position of the specified video.
In an embodiment of the present invention, the identifying unit 310 is adapted to determine whether there is a time period in which a scene change in the designated video meets a preset condition by detecting, and if so, obtain preset text information corresponding to the scene change.
In the present embodiment, a scene change of a given video content is identified so that a matching bullet screen is added according to the scene change. In general, when the plot change of the designated video is large, the user has a need to add a bullet screen, so that the time period in which the scene change in the designated video is large is mainly identified here so as to obtain the corresponding text information.
Further, the adding unit 330 is adapted to add the acquired text information as the bullet screen content to a time period in which the scene change in the designated video meets the preset condition.
In the embodiment, the character information corresponding to the scene change is acquired, so that the effect that the scene changes and the corresponding barrage appears can be achieved only when the character information is added and corresponds to the time period of the scene change in the designated video, rather than adding the acquired character information randomly, and the use experience of a user is further improved.
Specifically, the identifying unit 310 is adapted to determine whether there is a period in the designated video in which the picture change speed meets a preset condition by detecting the change speed of the designated color in the designated video picture; and/or judging whether a time period with the change speed of the dubbing music rhythm meeting the preset condition exists in the appointed video or not by detecting the change speed of the rhythm of the corresponding audio of the appointed video.
Scene changes in the designated video can be directly reflected on the color or the rhythm of the corresponding background audio, for example, in the designated video of terrorism, when the terrorism scene appears, the audio with fast rhythm or the rhythm of the audio is often slow to severe; in the dance-type video, the background color of the stage can change along with the change of dance motions, and when the change of the dance motions is large, the background color of the stage can correspondingly change greatly, namely the background color in the designated video can change greatly. Therefore, in the present embodiment, when detecting whether there is a scene change in the designated video, it is possible to detect by specifying a change in the designated color in the video screen or the tempo of the corresponding audio. Specifically, the change in color and/or the change in tempo is embodied by specifying a color change speed and/or a tempo change speed, and thus, a corresponding color change speed and/or tempo change speed is also detected. The two modes can be used independently or in combination with each other by detecting the change speed of the designated color and by detecting the change speed of the rhythm.
In one embodiment of the present invention, the apparatus shown in fig. 3 further comprises:
and the comment information acquisition unit is suitable for acquiring comment information of the user on the specified video.
The adding unit 330 is adapted to add the comment information as the bullet-screen content to the corresponding position of the specified video.
In practical application, a user can express his/her own idea through a comment mode, and not through a barrage mode, so in order to ensure better user interactivity of a specified video, in this embodiment, when the user comments on the specified video, comment information can be added to the specified video as a barrage. For example, when a user watches a specified video, a comment "this video is worth seeing" is published in a comment area of the specified video, and then after the user publishes the comment, the comment "this video is worth seeing" can be added to the specified video as a barrage, so that other users can directly obtain the idea of the user.
Further, the adding unit 330 is adapted to add the comment information as a bullet screen to a corresponding time point of the specified video according to a generation time point of the comment information when the specified video is played; or adding the comment information as barrage content to the position of the specified video where the content matched with the comment information is located.
When a user watches a specified video, the specified video may be commented in real time, and in order that the user comment serving as a bullet screen corresponds to the scene of the specified video, the comment is correspondingly added according to the generation time or content of comment information. For example, when the user views the 2 nd minute of the specified video, the person in the video scene says the caption, the user considers the caption to be very classic, and the comment information "this sentence is too classic" is published in the comment area, then in order to make the comment information of the user correspond to the scene of the specified video, the time point generated according to the comment information "this sentence is too classic" is the 2 nd minute of the specified video, and then the comment information "this sentence is too classic" is added as a bullet screen to the 2 nd minute of the specified video.
Or, the obtained comment information of the user may be used as a material of a barrage, and when the content in the specified video matches the comment information, the comment information may be added as a barrage to the content position corresponding to the specified video, where the generation time of the comment information is not limited, and the comment information may be matched as long as the content matches. For example, following the previous example, if the user published the comment information "this is too classic" at the 2 nd minute, but when the content of the specified video is identified, it is identified that a similar classic expression also appears in the content at the 10 th minute, then the comment information "this is too classic" published by the user at the 2 nd minute can be added as a bullet screen at the 10 th minute of the specified video.
The present invention also provides an electronic device, wherein the electronic device includes:
a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform a method of adding a barrage to a video according to what is shown in figure 1 and embodiments thereof
Fig. 4 shows a schematic structural diagram of an electronic device according to an embodiment of the invention. As shown in fig. 4, the electronic device 400 includes:
a processor 410; and a memory 420 arranged to store computer executable instructions (program code), in the memory 420 there being a storage space 430 storing the program code, the program code 430 for performing the steps of the method according to the invention being stored in the storage space 430, the program code, when executed, causing the processor 410 to perform the method of adding a bullet screen to a video according to what is shown in fig. 1 and its various embodiments.
Fig. 5 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention. As shown in fig. 5, the computer readable storage medium 500 stores one or more programs (program code) 510, and the one or more programs (program code) 510, when executed by a processor, are for performing the method steps according to the present invention, i.e., the method for adding a bullet screen to a video as shown in fig. 1 and its various embodiments.
It should be noted that the embodiments of the electronic device shown in fig. 4 and the computer-readable storage medium shown in fig. 5 are the same as the embodiments of the method shown in fig. 1, and the detailed description is given above and is not repeated here.
In summary, according to the technical solution of the present invention, the content of the designated video is identified, and an identification result is obtained; acquiring corresponding character information according to the recognition result; and adding the acquired text information as bullet screen content to a corresponding position of the specified video. Through this technical scheme, can do not need user's manual interpolation for the video automatic bullet curtain that adds, increase video interactivity, avoid influencing the user and watch the video quality, strengthen user's use experience.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the apparatus for adding a bullet screen to video, the electronic device, and the computer readable storage medium according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
For example, fig. 4 shows a schematic structural diagram of an electronic device according to an embodiment of the invention. The electronic device 400 conventionally includes a processor 410 and a memory 420 arranged to store computer-executable instructions (program code). The memory 420 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 420 has a memory space 430 that stores program code 440 for performing any of the method steps shown in fig. 1 and in various embodiments. For example, the memory space 430 for the program code may include respective program codes 440 for implementing respective steps in the above method. The program code can be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such a computer program product is generally a computer-readable storage medium 500 such as described in fig. 5. The computer-readable storage medium 500 may have memory segments, memory spaces, etc. arranged similarly to the memory 420 in the electronic device of fig. 4. The program code may be compressed, for example, in a suitable form. In general, the memory unit stores program code 510 for performing the steps of the method according to the invention, i.e. program code readable by a processor such as 410, which when run by an electronic device causes the electronic device to perform the steps of the method described above.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses A1 and a method for adding a barrage for a video, wherein the method comprises the following steps:
identifying the content of the appointed video to obtain an identification result;
acquiring corresponding character information according to the recognition result;
and adding the acquired text information as bullet screen content to a corresponding position of the specified video.
A2, the method as in a1, wherein the identifying the content of the designated video, and the obtaining the identification result comprises:
and identifying the classification of the content of the appointed video according to preset classification information to obtain the classification information of the content of the appointed video.
A3, the method of A2, wherein the preset classification information includes one or more of the following:
comedy, horror, tragedy, dance, singing, children, war.
A4, the method as in a2, wherein the obtaining the corresponding text information according to the recognition result includes:
respectively determining matched character information for each classification according to preset classification information, and storing the character information;
and acquiring the stored matched text information according to the classification information to which the content of the specified video belongs.
A5, the method as in a1, wherein the identifying the content of the designated video, and the obtaining the identification result comprises:
and judging whether a time interval in which the scene change meets the preset condition exists in the appointed video through detection, and if so, acquiring preset character information corresponding to the scene change.
A6, the method as in a5, wherein the adding the acquired text information as bullet screen content to the corresponding position of the designated video comprises:
and adding the acquired text information as bullet screen content to a time period when the scene change in the appointed video meets the preset condition.
A7, the method as in a5, wherein the detecting and judging whether there is a period in which the scene change in the designated video meets the preset condition includes:
judging whether a time period with the picture change speed meeting a preset condition exists in the appointed video or not by detecting the change speed of the appointed color in the appointed video picture;
and/or the presence of a gas in the gas,
and judging whether a time period with the music rhythm change speed meeting the preset condition exists in the appointed video or not by detecting the rhythm change speed of the corresponding audio of the appointed video.
A8, the method of any one of A1-A7, wherein the method further comprises:
obtaining comment information of a user on the specified video;
and adding the comment information as barrage content to the corresponding position of the specified video.
A9, the method as in A8, wherein the adding comment information as bullet screen content to a corresponding position of a specified video comprises:
according to the generation time point of the comment information when the specified video is played, adding the comment information as a bullet screen to the corresponding time point of the specified video;
or,
and adding the comment information as barrage content to the position of the content of the specified video, which is matched with the comment information.
The invention also discloses B10, a device for adding the barrage for the video, wherein the device comprises:
the identification unit is suitable for identifying the content of the specified video and obtaining an identification result;
the acquisition unit is suitable for acquiring corresponding character information according to the identification result;
and the adding unit is suitable for adding the acquired text information as the bullet screen content to the corresponding position of the specified video.
B11, the device of B10, wherein,
the identification unit is suitable for identifying the classification of the content of the designated video according to the preset classification information and obtaining the classification information of the content of the designated video.
B12, the apparatus as in B11, wherein the preset classification information includes one or more of the following:
comedy, horror, tragedy, dance, singing, children, war.
B13, the device of B11, wherein,
the acquisition unit is suitable for respectively determining and storing the matched text information for each classification according to preset classification information; and acquiring the stored matched text information according to the classification information to which the content of the specified video belongs.
B14, the device of B10, wherein,
the identification unit is suitable for judging whether a time interval that the scene change accords with the preset condition exists in the appointed video or not through detection, and if yes, preset character information corresponding to the scene change is obtained.
B15, the device of B14, wherein,
the adding unit is suitable for adding the acquired text information as the bullet screen content to a time period when the scene change in the appointed video meets the preset condition.
B16, the device of B14, wherein,
the identification unit is suitable for judging whether a time period with the picture change speed meeting a preset condition exists in the appointed video or not by detecting the change speed of the appointed color in the appointed video picture; and/or judging whether a time period with the change speed of the dubbing music rhythm meeting the preset condition exists in the appointed video or not by detecting the change speed of the rhythm of the corresponding audio of the appointed video.
A device according to any one of B17 and B10-B16, wherein the device further comprises:
the comment information acquisition unit is suitable for acquiring comment information of the user on the specified video;
the adding unit is suitable for adding the comment information as the bullet screen content to the corresponding position of the specified video.
B18, the device of B17, wherein,
the adding unit is suitable for adding the comment information as a bullet screen to the corresponding time point of the specified video according to the generation time point of the comment information when the specified video is played; or adding the comment information as barrage content to the position of the specified video where the content matched with the comment information is located.
The invention also discloses C19 and an electronic device, wherein the electronic device comprises:
a processor; and the number of the first and second groups,
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform a method according to any one of a1-a 9.
The invention also discloses D20, a computer readable storage medium, wherein the computer readable storage medium stores one or more programs that when executed by a processor implement the method of any one of a1-a 9.

Claims (10)

1. A method for adding a bullet screen to a video, wherein the method comprises:
identifying the content of the appointed video to obtain an identification result;
acquiring corresponding character information according to the recognition result;
and adding the acquired text information as bullet screen content to a corresponding position of the specified video.
2. The method of claim 1, wherein the identifying content of the given video, and obtaining the identification comprises:
and identifying the classification of the content of the appointed video according to preset classification information to obtain the classification information of the content of the appointed video.
3. The method of claim 2, wherein the preset classification information comprises one or more of:
comedy, horror, tragedy, dance, singing, children, war.
4. The method of claim 2, wherein the obtaining of the corresponding text information according to the recognition result comprises:
respectively determining matched character information for each classification according to preset classification information, and storing the character information;
and acquiring the stored matched text information according to the classification information to which the content of the specified video belongs.
5. The method of claim 1, wherein the identifying content of the given video, and obtaining the identification comprises:
and judging whether a time interval in which the scene change meets the preset condition exists in the appointed video through detection, and if so, acquiring preset character information corresponding to the scene change.
6. The method of claim 5, wherein the adding the acquired text information as the bullet screen content to the corresponding position of the designated video comprises:
and adding the acquired text information as bullet screen content to a time period when the scene change in the appointed video meets the preset condition.
7. The method of claim 5, wherein the detecting and determining whether there is a time period in which the scene change in the designated video meets the preset condition comprises:
judging whether a time period with the picture change speed meeting a preset condition exists in the appointed video or not by detecting the change speed of the appointed color in the appointed video picture;
and/or the presence of a gas in the gas,
and judging whether a time period with the music rhythm change speed meeting the preset condition exists in the appointed video or not by detecting the rhythm change speed of the corresponding audio of the appointed video.
8. An apparatus for adding a bullet screen to a video, wherein the apparatus comprises:
the identification unit is suitable for identifying the content of the specified video and obtaining an identification result;
the acquisition unit is suitable for acquiring corresponding character information according to the identification result;
and the adding unit is suitable for adding the acquired text information as the bullet screen content to the corresponding position of the specified video.
9. An electronic device, wherein the electronic device comprises:
a processor; and the number of the first and second groups,
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of any one of claims 1 to 7.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-7.
CN201810118808.8A 2018-02-06 2018-02-06 Method and device for adding barrage to video Active CN108495184B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810118808.8A CN108495184B (en) 2018-02-06 2018-02-06 Method and device for adding barrage to video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810118808.8A CN108495184B (en) 2018-02-06 2018-02-06 Method and device for adding barrage to video

Publications (2)

Publication Number Publication Date
CN108495184A true CN108495184A (en) 2018-09-04
CN108495184B CN108495184B (en) 2021-08-20

Family

ID=63344604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810118808.8A Active CN108495184B (en) 2018-02-06 2018-02-06 Method and device for adding barrage to video

Country Status (1)

Country Link
CN (1) CN108495184B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351596A (en) * 2019-07-17 2019-10-18 刘进 A kind of internet stream media big data barrage processing system and processing method
CN110708588A (en) * 2019-10-17 2020-01-17 腾讯科技(深圳)有限公司 Barrage display method and device, terminal and storage medium
CN110740387A (en) * 2019-10-30 2020-01-31 深圳Tcl数字技术有限公司 bullet screen editing method, intelligent terminal and storage medium
CN114297354A (en) * 2021-12-02 2022-04-08 南京硅基智能科技有限公司 Bullet screen generation method and device, storage medium and electronic device
CN115484503A (en) * 2021-05-31 2022-12-16 上海幻电信息科技有限公司 Bullet screen generation method and device, electronic equipment and storage medium

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508923A (en) * 2011-11-22 2012-06-20 北京大学 Automatic video annotation method based on automatic classification and keyword marking
CN104469487A (en) * 2014-12-31 2015-03-25 合一网络技术(北京)有限公司 Detection method and device for scene switching points
CN104486682A (en) * 2014-12-30 2015-04-01 康佳集团股份有限公司 Method for checking television program comments
CN104618806A (en) * 2014-03-17 2015-05-13 腾讯科技(北京)有限公司 Method, device and system for acquiring comment information of video
CN104954889A (en) * 2014-03-28 2015-09-30 宇龙计算机通信科技(深圳)有限公司 Generating method and generating system of titles
CN104980625A (en) * 2015-06-19 2015-10-14 新奥特(北京)视频技术有限公司 Method and apparatus of video transition detection
CN105592331A (en) * 2015-12-16 2016-05-18 广州华多网络科技有限公司 Method for processing barrage messages, related equipment, and system
CN105791291A (en) * 2016-03-02 2016-07-20 腾讯科技(深圳)有限公司 Display control method for network application and real-time display update method and device
CN105893387A (en) * 2015-01-04 2016-08-24 伊姆西公司 Intelligent multimedia processing method and system
CN105959816A (en) * 2016-06-27 2016-09-21 乐视控股(北京)有限公司 Pop-up subtitle display method and apparatus
CN106454532A (en) * 2016-10-21 2017-02-22 合网络技术(北京)有限公司 Video player and interactive display method thereof
CN106792100A (en) * 2016-12-30 2017-05-31 北京奇艺世纪科技有限公司 A kind of video barrage display methods and device
CN106803985A (en) * 2017-02-28 2017-06-06 网易传媒科技(北京)有限公司 Method, device and computer-readable recording medium for display information when live
CN106937172A (en) * 2017-03-23 2017-07-07 百度在线网络技术(北京)有限公司 Interactive approach and device during video playback based on artificial intelligence
CN107040824A (en) * 2017-04-18 2017-08-11 深圳市金立通信设备有限公司 A kind of method and terminal for sending barrage
CN107436869A (en) * 2016-05-25 2017-12-05 北京奇虎科技有限公司 A kind of impression comment generation method and device
US20170359619A1 (en) * 2015-07-31 2017-12-14 Tencent Technology (Shenzhen) Company Limited Barrage video live broadcast method and apparatus, video source device, and network access device

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508923A (en) * 2011-11-22 2012-06-20 北京大学 Automatic video annotation method based on automatic classification and keyword marking
CN104618806A (en) * 2014-03-17 2015-05-13 腾讯科技(北京)有限公司 Method, device and system for acquiring comment information of video
CN104954889A (en) * 2014-03-28 2015-09-30 宇龙计算机通信科技(深圳)有限公司 Generating method and generating system of titles
CN104486682A (en) * 2014-12-30 2015-04-01 康佳集团股份有限公司 Method for checking television program comments
CN104469487A (en) * 2014-12-31 2015-03-25 合一网络技术(北京)有限公司 Detection method and device for scene switching points
CN105893387A (en) * 2015-01-04 2016-08-24 伊姆西公司 Intelligent multimedia processing method and system
CN104980625A (en) * 2015-06-19 2015-10-14 新奥特(北京)视频技术有限公司 Method and apparatus of video transition detection
US20170359619A1 (en) * 2015-07-31 2017-12-14 Tencent Technology (Shenzhen) Company Limited Barrage video live broadcast method and apparatus, video source device, and network access device
CN105592331A (en) * 2015-12-16 2016-05-18 广州华多网络科技有限公司 Method for processing barrage messages, related equipment, and system
CN105791291A (en) * 2016-03-02 2016-07-20 腾讯科技(深圳)有限公司 Display control method for network application and real-time display update method and device
CN107436869A (en) * 2016-05-25 2017-12-05 北京奇虎科技有限公司 A kind of impression comment generation method and device
CN105959816A (en) * 2016-06-27 2016-09-21 乐视控股(北京)有限公司 Pop-up subtitle display method and apparatus
CN106454532A (en) * 2016-10-21 2017-02-22 合网络技术(北京)有限公司 Video player and interactive display method thereof
CN106792100A (en) * 2016-12-30 2017-05-31 北京奇艺世纪科技有限公司 A kind of video barrage display methods and device
CN106803985A (en) * 2017-02-28 2017-06-06 网易传媒科技(北京)有限公司 Method, device and computer-readable recording medium for display information when live
CN106937172A (en) * 2017-03-23 2017-07-07 百度在线网络技术(北京)有限公司 Interactive approach and device during video playback based on artificial intelligence
CN107040824A (en) * 2017-04-18 2017-08-11 深圳市金立通信设备有限公司 A kind of method and terminal for sending barrage

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351596A (en) * 2019-07-17 2019-10-18 刘进 A kind of internet stream media big data barrage processing system and processing method
CN110351596B (en) * 2019-07-17 2021-07-27 上海播呗网络科技有限公司 Internet streaming media big data bullet screen processing system and processing method
CN110708588A (en) * 2019-10-17 2020-01-17 腾讯科技(深圳)有限公司 Barrage display method and device, terminal and storage medium
CN110708588B (en) * 2019-10-17 2021-10-26 腾讯科技(深圳)有限公司 Barrage display method and device, terminal and storage medium
CN110740387A (en) * 2019-10-30 2020-01-31 深圳Tcl数字技术有限公司 bullet screen editing method, intelligent terminal and storage medium
CN110740387B (en) * 2019-10-30 2021-11-23 深圳Tcl数字技术有限公司 Barrage editing method, intelligent terminal and storage medium
CN115484503A (en) * 2021-05-31 2022-12-16 上海幻电信息科技有限公司 Bullet screen generation method and device, electronic equipment and storage medium
CN115484503B (en) * 2021-05-31 2024-03-08 上海幻电信息科技有限公司 Bullet screen generation method and device, electronic equipment and storage medium
CN114297354A (en) * 2021-12-02 2022-04-08 南京硅基智能科技有限公司 Bullet screen generation method and device, storage medium and electronic device
CN114297354B (en) * 2021-12-02 2023-12-12 南京硅基智能科技有限公司 Bullet screen generation method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN108495184B (en) 2021-08-20

Similar Documents

Publication Publication Date Title
CN108495184B (en) Method and device for adding barrage to video
CN109788345B (en) Live broadcast control method and device, live broadcast equipment and readable storage medium
US11736769B2 (en) Content filtering in media playing devices
CN107948761B (en) Bullet screen play control method, server and bullet screen play control system
CN108377418B (en) Video annotation processing method and device
CN106231362B (en) A kind of information recommendation method based on main broadcaster's program, electronic equipment and server
CN106303578B (en) Information processing method based on anchor program, electronic equipment and server
CN108848416A (en) The evaluation method and device of audio-video frequency content
CN106067992B (en) A kind of information recommendation method and device based on user behavior
CN109508406B (en) Information processing method and device and computer readable storage medium
CN105376148A (en) Chat message arrangement method and device
CN110769312B (en) Method and device for recommending information in live broadcast application
CN105617657B (en) Game intelligence recommended method and device
CN105574110A (en) Intelligent game recommending method and device
CN107566906B (en) Video comment processing method and device
CN113722535B (en) Method for generating book recommendation video, electronic device and computer storage medium
CN105477860A (en) Game activity recommending method and device
CN106331735A (en) Special effect processing method, electronic device and server
CN112866776B (en) Video generation method and device
CN108133718A (en) A kind of method and apparatus handled video
CN106874335A (en) Behavioral data processing method, device and server
CN108124101A (en) Video capture method, device, electronic equipment and computer readable storage medium
CN107547922B (en) Information processing method, device, system and computer readable storage medium
CN106899859A (en) A kind of playing method and device of multi-medium data
CN109558884A (en) A kind of method, apparatus, server and medium that room classes are broadcast live

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