[go: up one dir, main page]

CN105979348B - A kind of matching process and device based on video shearing and barrage - Google Patents

A kind of matching process and device based on video shearing and barrage Download PDF

Info

Publication number
CN105979348B
CN105979348B CN201610486844.0A CN201610486844A CN105979348B CN 105979348 B CN105979348 B CN 105979348B CN 201610486844 A CN201610486844 A CN 201610486844A CN 105979348 B CN105979348 B CN 105979348B
Authority
CN
China
Prior art keywords
video
barrage
fragments
matching
time
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.)
Expired - Fee Related
Application number
CN201610486844.0A
Other languages
Chinese (zh)
Other versions
CN105979348A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201610486844.0A priority Critical patent/CN105979348B/en
Publication of CN105979348A publication Critical patent/CN105979348A/en
Application granted granted Critical
Publication of CN105979348B publication Critical patent/CN105979348B/en
Expired - Fee Related 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • 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
    • H04N21/4355Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream involving reformatting operations of additional data, e.g. HTML pages on a television screen

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

本发明涉及互联网直播/视频弹幕领域,尤其是涉及一种基于视频剪切与弹幕的匹配方法及装置。包括:步骤1,对保存后的直播录制的视频进行剪切,同时对视频与弹幕的内容进行匹配,得到匹配后的弹幕匹配视频;步骤2,将弹幕匹配视频中存在的视频碎片删除,得到删除视频碎片后的视频,再次针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配后保存。因此,本发明具有如下优点:通过视频与弹幕信息的对应关系,关联保存剪辑后的视频与其对应的弹幕信息,并且能够针对视频中存在的视频碎片,自动过滤不必要的弹幕以及视频碎片,防止弹幕与视频显示错位。

The invention relates to the field of Internet live broadcast/video barrage, in particular to a matching method and device based on video cutting and barrage. Including: step 1, cutting the saved live recording video, and matching the content of the video with the content of the barrage at the same time, to obtain the matched video of the barrage matching; step 2, matching the barrage with the video fragments existing in the video Delete, get the video after deleting the video fragments, re-match the time stamp corresponding to the video after deleting the video fragments with the barrage again, and save it. Therefore, the present invention has the following advantages: through the corresponding relationship between video and barrage information, the clipped video and its corresponding barrage information can be associated and saved, and unnecessary barrage and video fragments can be automatically filtered for the video fragments existing in the video. Fragments to prevent the misalignment of the barrage and video display.

Description

一种基于视频剪切与弹幕的匹配方法及装置A matching method and device based on video clipping and barrage

技术领域technical field

本发明涉及互联网直播/视频弹幕领域,尤其是涉及一种基于视频剪切与弹幕的匹配方法及装置。The invention relates to the field of Internet live broadcast/video barrage, in particular to a matching method and device based on video cutting and barrage.

背景技术Background technique

当前,视频直播方式已经得到了广泛的应用。人们可以通过互联网随时随地在PC、手机等多种客户端观看视频直播,目前绝大多数直播网站都采用了弹幕,弹幕能极大地加强观众与主播、观众和观众之间的互动。Currently, live video broadcasting has been widely used. People can watch live video on various clients such as PCs and mobile phones anytime and anywhere through the Internet. At present, most live streaming websites use barrage, which can greatly strengthen the interaction between viewers and hosts, and between viewers and viewers.

直播视频内容众多,并且也存在用户对历史直播视频进行回放的需求;因而需要对直播视频进行保存。保存时,为了节省存储空间,往往需要对视频进行剪辑。但是,现有技术中只存在对视频进行剪辑的方法,不能关联保存剪辑前的弹幕信息,从而损失了大量的弹幕信息。Live video has a lot of content, and there is also a user's demand for replaying historical live video; therefore, it is necessary to save the live video. When saving, in order to save storage space, it is often necessary to edit the video. However, in the prior art, there is only a method for editing the video, and the barrage information before editing cannot be associated and saved, thus losing a large amount of barrage information.

发明内容Contents of the invention

本发明主要是解决现有技术所存在的技术问题;提供了一种通过视频与弹幕信息的对应关系,关联保存剪辑后的视频与其对应的弹幕信息,并且能够针对视频中存在的视频碎片,自动过滤不必要的弹幕以及视频碎片,放置弹幕与视频显示错位的一种基于视频剪切与弹幕的匹配方法及装置。The present invention mainly solves the technical problems existing in the prior art; it provides a method of associating and saving the edited video and its corresponding bullet chat information through the corresponding relationship between video and barrage information, and can target the video fragments existing in the video A matching method and device based on video cutting and barrage, which automatically filters unnecessary barrage and video fragments, and places barrage and video display misalignment.

本发明的上述技术问题主要是通过下述技术方案得以解决的:Above-mentioned technical problem of the present invention is mainly solved by following technical scheme:

一种基于视频剪切与弹幕的匹配方法,其特征在于,包括:A matching method based on video clipping and barrage, characterized in that it includes:

步骤1,对保存后的直播录制的视频进行剪切,同时对视频与弹幕的内容进行匹配,得到匹配后的弹幕匹配视频;Step 1: Cut the saved live recorded video, and match the content of the video with the content of the barrage to obtain the matched video of the barrage;

步骤2,将弹幕匹配视频中存在的视频碎片删除,得到删除视频碎片后的视频,再次针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配后保存。Step 2, delete the video fragments existing in the bullet chat matching video, obtain the video after the deleted video fragments, re-match the timestamp corresponding to the deleted video fragments with the bullet chatting again, and save it.

优选地,所述步骤2中,所述视频碎片为剪切的视频中时间长度小于设定时间T的视频片段,将弹幕匹配视频中存在的长度小于设定时间T的视频片段删除,并同时删除与视频碎片匹配的弹幕。Preferably, in the step 2, the video fragments are video fragments whose time length is less than the set time T in the cut video, and the video fragments whose length is less than the set time T in the barrage matching video are deleted, and At the same time, delete the barrage that matches the video fragments.

优选地,所述步骤2中,针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配时,若存在视频片段的时间长度M满足:M大于设定时间T且小于等于设定时间N时,则不删除视频片段,针对满足该条件的视频片段,根据视频片段对应的时间戳进行弹幕的重新匹配。Preferably, in the step 2, when re-matching the time stamp corresponding to the video fragment after deleting the video fragment and the barrage, if the time length M of the video segment exists: M is greater than the set time T and less than or equal to the set time When N, the video segment is not deleted, and for the video segment satisfying the condition, the barrage is re-matched according to the time stamp corresponding to the video segment.

优选地,所述步骤2中,若存在有两个视频片段之间存在大于或等于设定时间的时间间隔P,则为跳跃视频片段,将当前正在匹配的跳跃视频对应的上一分钟的视频弹幕加载至当前正在匹配的跳跃视频。Preferably, in said step 2, if there is a time interval P greater than or equal to the set time between the two video clips, it is a jump video clip, and the video of the previous minute corresponding to the jump video currently being matched is The barrage is loaded to the jumping video currently being matched.

优选地,若存在有两个以上的视频片段之间存在大于或等于设定时间的时间间隔P,则为跳跃视频片段组,针对跳跃视频组不匹配弹幕。Preferably, if there is a time interval P greater than or equal to the set time between two or more video clips, it is a jumping video clip group, and the jumping video group does not match the barrage.

一种基于视频剪切与弹幕的匹配装置,包括:A matching device based on video cutting and barrage, including:

剪切匹配模块:对保存后的直播录制的视频进行剪切,剪切匹配模块同时对视频与弹幕的内容进行匹配,得到匹配后的弹幕匹配视频;Cutting and matching module: cut the saved live recorded video, and the cutting and matching module matches the content of the video and the barrage at the same time to obtain the matched barrage matching video;

弹幕二次匹配模块:将弹幕匹配视频中存在的视频碎片删除,得到删除视频碎片后的视频,弹幕二次匹配模块再次针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配后保存。Bullet screen secondary matching module: delete the video fragments existing in the bullet screen matching video, and obtain the video after deleting the video fragments. Save after matching.

优选地,所述视频碎片为剪切的视频中时间长度小于设定时间T的视频片段,将弹幕匹配视频中存在的长度小于设定时间T的视频片段删除,并同时删除与视频碎片匹配的弹幕。Preferably, the video fragments are video fragments whose time length is less than the set time T in the cut video, and delete the video fragments whose length is less than the set time T in the barrage matching video, and delete the video fragments matching the video fragments at the same time. barrage.

优选地,弹幕二次匹配模块针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配时,若存在视频片段的时间长度M满足:M大于设定时间T且小于等于设定时间N时,则不删除视频片段,针对满足该条件的视频片段,根据视频片段对应的时间戳进行弹幕的重新匹配。Preferably, when the barrage secondary matching module re-matches the time stamp corresponding to the video after deleting the video fragments with the barrage, if there is a time length M of the video segment that satisfies: M is greater than the set time T and is less than or equal to the set time When N, the video segment is not deleted, and for the video segment satisfying the condition, the barrage is re-matched according to the time stamp corresponding to the video segment.

优选地,弹幕二次匹配模块针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配时,若存在有两个视频片段之间存在大于或等于设定时间的时间间隔P,则为跳跃视频片段,将当前正在匹配的跳跃视频对应的上一分钟的视频弹幕加载至当前正在匹配的跳跃视频。Preferably, when the barrage secondary matching module re-matches the time stamp corresponding to the video after deleting the video fragments with the barrage, if there is a time interval P greater than or equal to the set time between two video clips, then For jumping video clips, the video barrage of the previous minute corresponding to the jumping video currently being matched is loaded into the jumping video currently being matched.

优选地,弹幕二次匹配模块针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配时,若存在有两个以上的视频片段之间存在大于或等于设定时间的时间间隔P,则为跳跃视频片段组,针对跳跃视频组不匹配弹幕。Preferably, when the barrage secondary matching module re-matches the time stamp corresponding to the video after deleting the video fragments and the barrage, if there is a time interval P greater than or equal to the set time between more than two video clips , it is a jumping video clip group, and the jumping video group does not match the barrage.

因此,本发明具有如下优点:通过视频与弹幕信息的对应关系,关联保存剪辑后的视频与其对应的弹幕信息,并且能够针对视频中存在的视频碎片,自动过滤不必要的弹幕以及视频碎片,防止弹幕与视频显示错位。Therefore, the present invention has the following advantages: through the corresponding relationship between video and barrage information, the clipped video and its corresponding barrage information can be associated and saved, and unnecessary barrage and video fragments can be automatically filtered for the video fragments existing in the video. Fragments to prevent misalignment of bullet chatting and video display.

附图说明Description of drawings

附图1是本发明的一种原理图;Accompanying drawing 1 is a kind of schematic diagram of the present invention;

附图2是本发明的一种工作流程图;Accompanying drawing 2 is a kind of work flowchart of the present invention;

具体实施方式Detailed ways

下面通过实施例,并结合附图,对本发明的技术方案作进一步具体的说明。The technical solutions of the present invention will be further specifically described below through the embodiments and in conjunction with the accompanying drawings.

一种基于视频剪切与弹幕的匹配方法,其特征在于,包括:A matching method based on video clipping and barrage, characterized in that it includes:

步骤1,对保存后的直播录制的视频进行剪切,同时对视频与弹幕的内容进行匹配,得到匹配后的弹幕匹配视频;Step 1: Cut the saved live recorded video, and match the content of the video with the content of the barrage to obtain the matched video of the barrage;

步骤2,将弹幕匹配视频中存在的视频碎片删除,得到删除视频碎片后的视频,再次针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配后保存。其中,视频碎片为剪切的视频中时间长度小于设定时间T的视频片段,将弹幕匹配视频中存在的长度小于设定时间T的视频片段删除,并同时删除与视频碎片匹配的弹幕。具体方法是:Step 2, delete the video fragments existing in the bullet chat matching video, obtain the video after the deleted video fragments, re-match the timestamp corresponding to the deleted video fragments with the bullet chatting again, and save it. Wherein, the video fragment is a video fragment whose time length is less than the set time T in the cut video, and the video fragment whose length is less than the set time T in the bullet chat matching video is deleted, and the bullet chat matched with the video fragment is deleted at the same time . The specific method is:

步骤201、针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配时,若存在视频片段的时间长度M满足:M大于设定时间T且小于等于设定时间N时,则不删除视频片段,针对满足该条件的视频片段,根据视频片段对应的时间戳进行弹幕的重新匹配。Step 201. When re-matching the time stamp corresponding to the deleted video fragment with the barrage, if the time length M of the existing video fragment satisfies: M is greater than the set time T and less than or equal to the set time N, then it is not deleted For video clips, for the video clips that meet the condition, re-match the barrage according to the time stamp corresponding to the video clips.

步骤202、若存在有两个视频片段之间存在大于或等于设定时间的时间间隔P,则为跳跃视频片段,将当前正在匹配的跳跃视频对应的上一分钟的视频弹幕加载至当前正在匹配的跳跃视频;若存在有两个以上的视频片段之间存在大于或等于设定时间的时间间隔P,则为跳跃视频片段组,针对跳跃视频组不匹配弹幕。Step 202, if there is a time interval P greater than or equal to the set time between two video clips, it is a jumping video clip, and the video barrage of the previous minute corresponding to the jumping video currently being matched is loaded to the current Matching jumping video; if there is a time interval P greater than or equal to the set time between two or more video clips, it is a jumping video clip group, and the jumping video group does not match the barrage.

一种基于视频剪切与弹幕的匹配装置,包括:A matching device based on video cutting and barrage, including:

剪切匹配模块:对保存后的直播录制的视频进行剪切,剪切匹配模块同时对视频与弹幕的内容进行匹配,得到匹配后的弹幕匹配视频;Cutting and matching module: cut the saved live recorded video, and the cutting and matching module matches the content of the video and the barrage at the same time to obtain the matched barrage matching video;

弹幕二次匹配模块:将弹幕匹配视频中存在的视频碎片删除,得到删除视频碎片后的视频,弹幕二次匹配模块再次针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配后保存。其中,视频碎片为剪切的视频中时间长度小于设定时间T的视频片段,将弹幕匹配视频中存在的长度小于设定时间T的视频片段删除,并同时删除与视频碎片匹配的弹幕,具体包括:Bullet screen secondary matching module: delete the video fragments existing in the bullet screen matching video, and obtain the video after deleting the video fragments. Save after matching. Wherein, the video fragment is a video fragment whose time length is less than the set time T in the cut video, and the video fragment whose length is less than the set time T in the bullet chat matching video is deleted, and the bullet chat matched with the video fragment is deleted at the same time , including:

弹幕二次匹配模块针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配时,若存在视频片段的时间长度M满足:M大于设定时间T且小于等于设定时间N时,则不删除视频片段,针对满足该条件的视频片段,根据视频片段对应的时间戳进行弹幕的重新匹配。When the barrage secondary matching module re-matches the time stamp corresponding to the deleted video fragment with the barrage, if there is a time length M of the video clip that satisfies: M is greater than the set time T and less than or equal to the set time N, Then the video segment is not deleted, and for the video segment meeting the condition, the barrage is re-matched according to the time stamp corresponding to the video segment.

弹幕二次匹配模块针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配时,若存在有两个视频片段之间存在大于或等于设定时间的时间间隔P,则为跳跃视频片段,将当前正在匹配的跳跃视频对应的上一分钟的视频弹幕加载至当前正在匹配的跳跃视频;若存在有两个以上的视频片段之间存在大于或等于设定时间的时间间隔P,则为跳跃视频片段组,针对跳跃视频组不匹配弹幕。When the barrage secondary matching module re-matches the timestamp corresponding to the deleted video fragment with the barrage, if there is a time interval P greater than or equal to the set time between two video clips, it is a jumping video Segment, load the video barrage of the previous minute corresponding to the jumping video that is currently being matched to the jumping video that is currently being matched; if there is a time interval P greater than or equal to the set time between more than two video segments, It is a jumping video clip group, and the jumping video group does not match the barrage.

在本发明中,涉及到步骤1中,剪切视频并匹配弹幕的方法为本申请人提交的另一个发明申请,具体方法如下:In the present invention, related to step 1, the method of cutting the video and matching the barrage is another invention application submitted by the applicant, and the specific method is as follows:

涉及的一种与弹幕关联的直播视频剪辑方法,包括:A live video clipping method associated with barrage is involved, including:

步骤1,按照预先设置的剪切需求对视频进行剪切;按照视频内容对视频进行剪切,将视频中未包含精彩内容的片段删除;和/或按照预设的时间戳,视频的帧数进行视频进行剪切;对剪切后的视频按照时间戳标记每一段视频的内容。Step 1: Cut the video according to the preset cutting requirements; cut the video according to the video content, and delete the clips that do not contain exciting content in the video; and/or according to the preset time stamp, the number of frames of the video Cut the video; mark the content of each video according to the time stamp on the cut video.

步骤2,读取视频对应的弹幕信息,按照剪切前的视频时间戳与弹幕时间戳的对应关系,从剪切前的视频对应的第一弹幕信息集合中获取剪切后的视频对应的第二弹幕信息集合;Step 2, read the barrage information corresponding to the video, and obtain the cut video from the first barrage information set corresponding to the video before cutting according to the corresponding relationship between the video time stamp before cutting and the barrage time stamp The corresponding second barrage information set;

步骤3,按照时间戳关联存储剪切后的视频与所述第二弹幕信息集合。Step 3: Associate and store the clipped video and the second barrage information set according to the time stamp.

在保存时设置表示直播弹幕和非直播弹幕对应层级关系的层级参数并对视频对应的弹幕信息进行规整。When saving, set the hierarchical parameters representing the corresponding hierarchical relationship between live bullet chatting and non-live bullet chatting, and regularize the bullet chatting information corresponding to the video.

所述直播弹幕是指在视频在直播时对应的弹幕信息;所述非直播弹幕是指视频再次播入时的弹幕信息;其中,所述直播弹幕信息的显示层级低于非直播弹幕信息的显示层级。The live barrage refers to the barrage information corresponding to the live broadcast of the video; the non-live barrage refers to the barrage information when the video is broadcast again; wherein, the display level of the live barrage information is lower than that of the non-live barrage information. The display level of live barrage information.

对视频对应的弹幕信息进行规整包括:在播放剪切后的视频时,若剪切后的视频一分钟内对应多个时间戳的弹幕信息,则默认显示时间戳最近的弹幕信息。Regularizing the barrage information corresponding to the video includes: when playing the cut video, if the cut video corresponds to barrage information with multiple time stamps within one minute, the barrage information with the latest time stamp will be displayed by default.

涉及的一种与弹幕关联的直播视频剪辑装置,包括:It involves a live video editing device associated with barrage, including:

视频剪切模块,按照预先设置的剪切需求对视频进行剪切;按照视频内容对视频进行剪切,将视频中未包含精彩内容的片段删除;和/或按照预设的时间戳,视频的帧数进行视频进行剪切;对剪切后的视频按照时间戳标记每一段视频的内容。The video cutting module cuts the video according to the preset cutting requirements; cuts the video according to the video content, and deletes the clips that do not contain exciting content in the video; and/or according to the preset time stamp, the The video is cut according to the number of frames; the cut video is marked with the content of each video according to the time stamp.

弹幕插入模块,读取视频对应的弹幕信息,按照剪切前的视频时间戳与弹幕时间戳的对应关系,从剪切前的视频对应的第一弹幕信息集合中获取剪切后的视频对应的第二弹幕信息集合;The barrage insertion module reads the barrage information corresponding to the video, and obtains the post-cutting information from the first barrage information set corresponding to the video before cutting according to the corresponding relationship between the video time stamp before cutting and the barrage time stamp. The second barrage information set corresponding to the video;

关联保存模块,按照时间戳关联存储剪切后的视频与所述第二弹幕信息集合。在保存时设置表示直播弹幕和非直播弹幕对应层级关系的层级参数并对视频对应的弹幕信息进行规整。The associative storage module stores the clipped video and the second barrage information set in association according to the time stamp. When saving, set the hierarchical parameters representing the corresponding hierarchical relationship between live bullet chatting and non-live bullet chatting, and regularize the bullet chatting information corresponding to the video.

所述直播弹幕是指在视频在直播时对应的弹幕信息;所述非直播弹幕是指视频再次播入时的弹幕信息;其中,所述直播弹幕信息的显示层级低于非直播弹幕信息的显示层级。The live barrage refers to the barrage information corresponding to the live broadcast of the video; the non-live barrage refers to the barrage information when the video is broadcast again; wherein, the display level of the live barrage information is lower than that of the non-live barrage information. The display level of live barrage information.

对视频对应的弹幕信息进行规整包括:在播放剪切后的视频时,若剪切后的视频一分钟内对应多个时间戳的弹幕信息,则默认显示时间戳最近的弹幕信息。Regularizing the barrage information corresponding to the video includes: when playing the cut video, if the cut video corresponds to barrage information with multiple time stamps within one minute, the barrage information with the latest time stamp will be displayed by default.

实施例1:Example 1:

本发明提供一种基于视频剪切与弹幕的匹配方法,包括:The present invention provides a matching method based on video clipping and barrage, including:

步骤1,对直播录制的视频进行保存,对保存后的视频进行剪切处理,通过后台的视频剪切工具对视频的内容进行处理。Step 1: Save the live recorded video, cut the saved video, and process the content of the video through the video cutting tool in the background.

步骤2,在剪切时对视频与弹幕的内容进行匹配。Step 2, match the content of the video and the barrage when cutting.

步骤3,判断是否存在碎片剪切:对剪切的内容进行处理。对小于1分钟的视频,称为视频碎片。在进行剪切时,需要判断剪切的内容是否存在视频碎片的情况。Step 3, judging whether there is fragment clipping: processing the clipped content. Videos shorter than 1 minute are called video fragments. When cutting, it is necessary to judge whether there are video fragments in the cut content.

步骤301、根据碎片的视频时间戳匹配对应的弹幕:如果存在大于1分钟小于N分钟(N为大于1的正整数)的碎片的视频,需要根据碎片的时间戳进行碎片的弹幕进行匹配。Step 301. Match the corresponding bullet chatting according to the video timestamp of the fragment: if there is a fragmented video longer than 1 minute and less than N minutes (N is a positive integer greater than 1), it is necessary to match the bullet chatting of the fragment according to the timestamp of the fragment .

步骤302、对不足一分钟的视频进行弹幕清除:对不足一分钟的视频碎片,默认进行弹幕清除。不显示小于1分钟的视频对应的弹幕内容。Step 302, clearing bullet chatting for videos less than one minute long: clearing bullet chatting for video fragments less than one minute long by default. The barrage content corresponding to videos shorter than 1 minute is not displayed.

步骤4、按照视频的时间戳进行弹幕匹配:按照新的视频内容,根据视频时间戳进行弹幕的重新匹配,具体包括:Step 4. Match bullet chatting according to the time stamp of the video: According to the new video content, re-match the bullet chatting according to the video timestamp, including:

步骤401、对中间有跳跃的视频默认将上一分钟的视频弹幕加载完成:对中间有跳跃的视频默认将上一分钟的视频弹幕加载完成。Step 401, for videos with jumps in the middle, the video barrage of the previous minute is loaded by default: for videos with jumps in the middle, the video barrage of the previous minute is loaded by default.

步骤402、对连续跳跃的视频碎片不进行弹幕的匹配:对连续跳跃的视频碎片不进行弹幕的匹配。Step 402, not performing barrage matching on continuously jumping video fragments: not performing barrage matching on continuously jumping video fragments.

实施例2:Example 2:

剪切匹配模块:对直播录制的视频进行保存,对保存后的视频进行剪切处理,通过后台的视频剪切工具对视频的内容进行处理,在剪切时对视频与弹幕的内容进行匹配。Cutting and matching module: save the live recorded video, cut the saved video, process the content of the video through the video cutting tool in the background, and match the content of the video and the barrage when cutting .

弹幕二次匹配模块:判断是否存在碎片剪切:对剪切的内容进行处理。对小于1分钟的视频,称为视频碎片。在进行剪切时,需要判断剪切的内容是否存在视频碎片的情况,具体包括:Barrage secondary matching module: judge whether there is fragment cutting: process the cut content. Videos shorter than 1 minute are called video fragments. When cutting, it is necessary to judge whether there are video fragments in the cut content, including:

根据碎片的视频时间戳匹配对应的弹幕:如果存在大于1分钟小于N分钟(N为大于1的正整数)的碎片的视频,需要根据碎片的时间戳进行碎片的弹幕进行匹配。Match the corresponding barrage according to the video timestamp of the fragment: If there is a fragmented video longer than 1 minute and less than N minutes (N is a positive integer greater than 1), match the barrage of the fragment according to the timestamp of the fragment.

对不足一分钟的视频进行弹幕清除:对不足一分钟的视频碎片,默认进行弹幕清除。不显示小于1分钟的视频对应的弹幕内容。Bullet chatting for videos that are less than one minute long: For video fragments that are less than one minute long, bullet chatting is cleared by default. The barrage content corresponding to videos shorter than 1 minute is not displayed.

删除视频碎片后,按照视频的时间戳进行弹幕匹配:按照新的视频内容,根据视频时间戳进行弹幕的重新匹配,具体包括:After deleting the video fragments, match the bullet chatting according to the video timestamp: according to the new video content, re-match the bullet chatting according to the video timestamp, including:

对中间有跳跃的视频默认将上一分钟的视频弹幕加载完成:对中间有跳跃的视频默认将上一分钟的视频弹幕加载完成。For videos with jumps in the middle, the video barrage of the previous minute is loaded by default: for videos with jumps in the middle, the video barrage of the previous minute is loaded by default.

对连续跳跃的视频碎片不进行弹幕的匹配:对连续跳跃的视频碎片不进行弹幕的匹配。Do not match the barrage of video fragments that jump continuously: do not match the barrage of video fragments that jump continuously.

本文中所描述的具体实施例仅仅是对本发明精神作举例说明。本发明所属技术领域的技术人员可以对所描述的具体实施例做各种各样的修改或补充或采用类似的方式替代,但并不会偏离本发明的精神或者超越所附权利要求书所定义的范围。The specific embodiments described herein are merely illustrative of the spirit of the invention. Those skilled in the art to which the present invention belongs can make various modifications or supplements to the described specific embodiments or adopt similar methods to replace them, but they will not deviate from the spirit of the present invention or go beyond the definition of the appended claims range.

Claims (6)

1.一种基于视频剪切与弹幕的匹配方法,其特征在于,包括:1. A matching method based on video clipping and barrage, comprising: 步骤1,对保存后的直播录制的视频进行剪切,同时对剪切后的视频与弹幕的内容进行匹配,得到匹配后的弹幕匹配视频;Step 1, cutting the saved live recorded video, and matching the cut video with the content of the barrage to obtain the matched barrage matching video; 步骤2,将弹幕匹配视频中存在的视频碎片删除,得到删除视频碎片后的视频,再次针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配后保存;Step 2, delete the video fragments existing in the bullet chat matching video, obtain the video after deleting the video fragments, and re-match the time stamp corresponding to the video fragments after deleting the video fragments with the bullet chatting before saving; 所述步骤2中,所述视频碎片为剪切的视频中时间长度小于设定时间T的视频片段,将弹幕匹配视频中存在的长度小于设定时间T的视频片段删除,并同时删除与视频碎片匹配的弹幕;In the step 2, the video fragments are video fragments whose time length is less than the set time T in the cut video, and the video fragments with a length less than the set time T that exist in the barrage matching video are deleted, and simultaneously delete the video fragments with Barrage matching of video fragments; 所述步骤2中,若存在有两个视频片段之间存在大于或等于设定时间的时间间隔P,则为跳跃视频片段,将当前正在匹配的跳跃视频对应的上一分钟的视频弹幕加载至当前正在匹配的跳跃视频;视频片段为步骤1中对保存后的直播录制的视频进行剪切后得到的若干段的视频。In said step 2, if there is a time interval P greater than or equal to the set time between the two video clips, it is a jumping video clip, and the video barrage of the previous minute corresponding to the jumping video currently being matched is loaded To the jumping video currently being matched; the video segment is several segments of video obtained after cutting the saved live recorded video in step 1. 2.根据权利要求1所述的一种基于视频剪切与弹幕的匹配方法,其特征在于,所述步骤2中,针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配时,若存在视频片段的时间长度M满足:M大于设定时间T且小于等于设定时间N时,则不删除视频片段,针对满足该条件的视频片段,根据视频片段对应的时间戳进行弹幕的重新匹配。2. A kind of matching method based on video clipping and barrage according to claim 1, characterized in that, in said step 2, when the time stamp corresponding to the video after deleting the video fragments is re-matched with the barrage , if the time length M of the existing video clip satisfies: M is greater than the set time T and less than or equal to the set time N, then the video clip will not be deleted, and for the video clip that meets this condition, the barrage will be performed according to the time stamp corresponding to the video clip re-match. 3.根据权利要求2所述的一种基于视频剪切与弹幕的匹配方法,其特征在于,若存在有两个以上的视频片段之间存在大于或等于设定时间的时间间隔P,则为跳跃视频片段组,针对跳跃视频组不匹配弹幕。3. A kind of matching method based on video cutting and barrage according to claim 2, wherein, if there is a time interval P greater than or equal to the set time between more than two video clips, then It is a jumping video segment group, and the jumping video group does not match the barrage. 4.一种基于视频剪切与弹幕的匹配装置,其特征在于,包括:4. A matching device based on video clipping and barrage, characterized in that it comprises: 剪切匹配模块:对保存后的直播录制的视频进行剪切,剪切匹配模块同时对视频与弹幕的内容进行匹配,得到匹配后的弹幕匹配视频;Cutting and matching module: cut the saved live recorded video, and the cutting and matching module matches the content of the video and the barrage at the same time to obtain the matched barrage matching video; 弹幕二次匹配模块:将弹幕匹配视频中存在的视频碎片删除,得到删除视频碎片后的视频,弹幕二次匹配模块再次针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配后保存;Bullet screen secondary matching module: delete the video fragments existing in the bullet screen matching video, and obtain the video after deleting the video fragments. Save after matching; 所述视频碎片为剪切的视频中时间长度小于设定时间T的视频片段,将弹幕匹配视频中存在的长度小于设定时间T的视频片段删除,并同时删除与视频碎片匹配的弹幕;The video fragments are video fragments whose time length is less than the set time T in the cut video, delete the video fragments whose length is less than the set time T in the bullet chat matching video, and delete the bullet chat matched with the video fragments at the same time ; 弹幕二次匹配模块针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配时,若存在有两个视频片段之间存在大于或等于设定时间的时间间隔P,则为跳跃视频片段,将当前正在匹配的跳跃视频对应的上一分钟的视频弹幕加载至当前正在匹配的跳跃视频;视频片段为剪切匹配模块对保存后的直播录制的视频进行剪切后得到的若干段的视频。When the barrage secondary matching module re-matches the timestamp corresponding to the deleted video fragment with the barrage, if there is a time interval P greater than or equal to the set time between two video clips, it is a jumping video Fragment, load the video barrage of the previous minute corresponding to the jumping video that is currently being matched to the jumping video that is currently being matched; the video clips are several segments obtained by cutting the saved live recorded video by the cutting matching module video. 5.根据权利要求4所述的一种基于视频剪切与弹幕的匹配装置,其特征在于,弹幕二次匹配模块针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配时,若存在视频片段的时间长度M满足:M大于设定时间T且小于等于设定时间N时,则不删除视频片段,针对满足该条件的视频片段,根据视频片段对应的时间戳进行弹幕的重新匹配。5. A kind of matching device based on video clipping and barrage according to claim 4, characterized in that, when the barrage secondary matching module re-matches the time stamp corresponding to the video after deleting the video fragments and the barrage , if the time length M of the existing video clip satisfies: M is greater than the set time T and less than or equal to the set time N, then the video clip will not be deleted, and for the video clip that meets this condition, the barrage will be performed according to the time stamp corresponding to the video clip re-match. 6.根据权利要求5所述的一种基于视频剪切与弹幕的匹配装置,其特征在于,弹幕二次匹配模块针对删除视频碎片后的视频对应的时间戳与弹幕进行重新匹配时,若存在有两个以上的视频片段之间存在大于或等于设定时间的时间间隔P,则为跳跃视频片段组,针对跳跃视频组不匹配弹幕。6. A matching device based on video clipping and barrage according to claim 5, wherein when the barrage secondary matching module re-matches the time stamp corresponding to the video after deleting the video fragments with the barrage , if there is a time interval P greater than or equal to the set time between two or more video clips, it is a jumping video clip group, and the jumping video group does not match the barrage.
CN201610486844.0A 2016-06-28 2016-06-28 A kind of matching process and device based on video shearing and barrage Expired - Fee Related CN105979348B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610486844.0A CN105979348B (en) 2016-06-28 2016-06-28 A kind of matching process and device based on video shearing and barrage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610486844.0A CN105979348B (en) 2016-06-28 2016-06-28 A kind of matching process and device based on video shearing and barrage

Publications (2)

Publication Number Publication Date
CN105979348A CN105979348A (en) 2016-09-28
CN105979348B true CN105979348B (en) 2019-09-10

Family

ID=57020819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610486844.0A Expired - Fee Related CN105979348B (en) 2016-06-28 2016-06-28 A kind of matching process and device based on video shearing and barrage

Country Status (1)

Country Link
CN (1) CN105979348B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488253A (en) * 2016-11-04 2017-03-08 合网络技术(北京)有限公司 Live video interactive data processing method and processing device
CN108419138B (en) * 2018-02-05 2021-06-22 平安科技(深圳)有限公司 Live broadcast interaction device and method and computer readable storage medium
CN109089170A (en) * 2018-09-11 2018-12-25 传线网络科技(上海)有限公司 Barrage display methods and device
CN110708571B (en) * 2019-10-18 2020-12-08 腾讯科技(深圳)有限公司 Video clip playing control method and related product
CN111031397B (en) * 2019-12-05 2022-09-30 北京奇艺世纪科技有限公司 Method, device, equipment and storage medium for collecting clip comments
CN111741333B (en) * 2020-06-10 2021-12-28 广州酷狗计算机科技有限公司 Live broadcast data acquisition method, device, computer equipment and storage medium
CN113411620B (en) * 2021-05-25 2023-04-28 北京达佳互联信息技术有限公司 Live fragment display method and device, electronic equipment and storage medium
CN115529497B (en) * 2021-06-25 2025-06-06 腾讯科技(深圳)有限公司 Bullet screen playback method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101740082A (en) * 2009-11-30 2010-06-16 孟智平 Method and system for clipping video based on browser
CN104376131A (en) * 2013-08-13 2015-02-25 苏州广海信息科技有限公司 Camera assistant software
CN104731944A (en) * 2015-03-31 2015-06-24 努比亚技术有限公司 Video searching method and device
CN104796795A (en) * 2014-01-17 2015-07-22 乐视网信息技术(北京)股份有限公司 Video content publishing method and device
CN105245960A (en) * 2014-07-07 2016-01-13 乐视网信息技术(北京)股份有限公司 Live comment display method and device for videos

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101740082A (en) * 2009-11-30 2010-06-16 孟智平 Method and system for clipping video based on browser
CN104376131A (en) * 2013-08-13 2015-02-25 苏州广海信息科技有限公司 Camera assistant software
CN104796795A (en) * 2014-01-17 2015-07-22 乐视网信息技术(北京)股份有限公司 Video content publishing method and device
CN105245960A (en) * 2014-07-07 2016-01-13 乐视网信息技术(北京)股份有限公司 Live comment display method and device for videos
CN104731944A (en) * 2015-03-31 2015-06-24 努比亚技术有限公司 Video searching method and device

Also Published As

Publication number Publication date
CN105979348A (en) 2016-09-28

Similar Documents

Publication Publication Date Title
CN105979348B (en) A kind of matching process and device based on video shearing and barrage
CN103348690B (en) A kind of method and device of Video processing
CN106060644A (en) Live broadcast video clipping method and device associated with bullet screens
CN109729371B (en) A live broadcast time-shift system and method based on HLS protocol multi-level management
CN103024603B (en) A kind of for solving playing network video time the device and method that pauses in short-term
CN104284241B (en) A kind of video clipping method and device
CN104244023B (en) Video cloud editing system and method
CN109194887B (en) Cloud shear video recording and editing method and plug-in
CN109168015B (en) Cloud cut live editing method and system
US9036980B2 (en) Methods for efficiently combining partial ABR recordings
CN102984600B (en) Method for non-linear editing software to access file according to time slices, based on internet HTTP
CN101197840A (en) Method, system, device for downloading and storing files and method for generating identification
JP4598627B2 (en) Content editing apparatus and playback apparatus thereof
JP4891847B2 (en) Recording apparatus, recording / reproducing system, and recording method
CN106792150A (en) A kind of poster generation method and device
WO2015081893A1 (en) Media fragment rotation method, client and system
CN105357544A (en) HLS-based multimedia file processing method and server
CN106658113A (en) Multimedia data processing method and multimedia data processing device
CN104283729A (en) Kinescope recording system and working method thereof
CN103067745B (en) A kind of cutting method of video data and device, online editing method and system
CN104104895A (en) Method for carrying out video playback on video data and hard-disk video recorder
CN102186022A (en) Audio/video editing method and device in television system
CN109511008B (en) A method for supporting video and audio file content appending based on object storage
CN106096027A (en) A kind of barrage persistence method and device for video website
CN102740001B (en) A program broadcasting time adaptive processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20160928

Assignee: Hubei Special Automobile Network Technology Co.,Ltd.

Assignor: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

Contract record no.: X2023980034618

Denomination of invention: A Matching Method and Device Based on Video Clipping and Bullet Screen

Granted publication date: 20190910

License type: Common License

Record date: 20230413

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190910