CN103247318B - A method and device for obtaining video, and a method and device for playing video - Google Patents
A method and device for obtaining video, and a method and device for playing video Download PDFInfo
- Publication number
- CN103247318B CN103247318B CN201210023046.6A CN201210023046A CN103247318B CN 103247318 B CN103247318 B CN 103247318B CN 201210023046 A CN201210023046 A CN 201210023046A CN 103247318 B CN103247318 B CN 103247318B
- Authority
- CN
- China
- Prior art keywords
- videos
- topic
- video
- key information
- information related
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/48—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/43—Querying
- G06F16/432—Query formulation
- G06F16/433—Query formulation using audio data
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Mathematical Physics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明提供一种获得视频的方法、装置及播放视频的方法、装置,用于对M个视频进行处理,获得与一主题相关的视频,其中,所述M为大于等于1的整数,其中,获得视频的方法包括:获得所述M个视频;判断所述M个视频中是否有N个视频与所述主题相关,其中,所述N为小于等于所述M且大于0的整数;在有所述N个视频与所述主题相关时,收集所述N个视频。
The present invention provides a method and device for obtaining videos and a method and device for playing videos, which are used to process M videos to obtain videos related to a topic, wherein M is an integer greater than or equal to 1. The method for obtaining videos includes: obtaining the M videos; judging whether N videos among the M videos are related to the topic, wherein N is an integer less than or equal to M and greater than 0; and collecting the N videos when there are N videos related to the topic.
Description
技术领域 technical field
本发明涉及视频播放领域,尤其涉及一种获得视频的方法、装置及播放视频的方法、装置。The present invention relates to the field of video playback, in particular to a method and device for obtaining video and a method and device for playing video.
背景技术 Background technique
随着视频播放技术的不断发展,视频能够使用多种方式进行播放,而当用户在使用电子设备观看视频时,却仅能观看完全由制作厂商提供的或是已经制作好的视频,而不能随心的去观看自己关注的视频,如在很多情况下,用户只关心某个场景,比如介绍饮食视频中的某个餐馆,新闻中的某个故事等等。With the continuous development of video playback technology, videos can be played in a variety of ways, but when users use electronic devices to watch videos, they can only watch videos that are completely provided by the manufacturer or have already been produced, instead of watching videos as they wish. For example, in many cases, users only care about a certain scene, such as introducing a certain restaurant in a food video, a certain story in the news, and so on.
而这些用户关心的视频仅仅为某个视频的一部分,比如中间部分;或是同时分散在多个视频中,当用户需要观看自己关心的视频时,就必须将整个视频从头播放,直到播放到自己关心的视频为止,或者需要搜索很多视频以寻找自己需要的视频。The videos that these users care about are only a part of a certain video, such as the middle part; or they are scattered in multiple videos at the same time. The video you care about, or you need to search a lot of videos to find the video you need.
而在现有技术中,为了解决上述技术问题,将有相似内容的视频通过关联推荐,比如同导演,同演员,同类型等展示给用户,以便用户查找到自己感兴趣的视频。In the prior art, in order to solve the above-mentioned technical problems, videos with similar content, such as the same director, the same actor, and the same genre, are shown to users through association recommendations, so that users can find videos they are interested in.
但本发明人在实现本发明的过程中,发现上述方案虽然通过关联推荐以使用户搜索自己感兴趣的视频,却并不能提供关联视频,需要用户手动查找自己感兴趣的视频。However, in the process of realizing the present invention, the inventors found that although the above solution allows users to search for videos they are interested in through association recommendations, it cannot provide associated videos, requiring users to manually search for videos they are interested in.
进一步的,视频的关联推荐的相关性却仅来源于文字叙述的相关性,并没有针对视频的内容进行相关性的匹配,因此关联性不高,不能提供准确的或是相似度高的视频。Furthermore, the relevance of video association recommendations only comes from the relevance of text descriptions, and does not match the relevance of video content. Therefore, the relevance is not high, and accurate or highly similar videos cannot be provided.
发明内容 Contents of the invention
有鉴于此,本发明提供一种获得视频的方法、装置及播放视频的方法、装置,用以解决不能自动提供关联视频,且不能提供准确的或是相似度高的视频的技术问题。In view of this, the present invention provides a method and device for obtaining video and a method and device for playing video to solve the technical problem that related videos cannot be automatically provided, and accurate or highly similar videos cannot be provided.
本发明一方面提供一种获得视频的方法,用于对M个视频进行处理,获得与一主题相关的视频,其中,所述M为大于等于1的整数,所述方法包括:One aspect of the present invention provides a method for obtaining videos, which is used to process M videos to obtain videos related to a topic, wherein, the M is an integer greater than or equal to 1, and the method includes:
获得所述M个视频;Obtain the M videos;
判断所述M个视频中是否有N个视频与所述主题相关,其中,所述N为小于等于所述M且大于0的整数;Judging whether there are N videos in the M videos related to the topic, wherein the N is an integer less than or equal to the M and greater than 0;
在有所述N个视频与所述主题相关时,收集所述N个视频。When there are the N videos related to the topic, collect the N videos.
可选的,在所述收集所述N个视频之后,所述方法还包括:对所述N个视频中每个视频进行处理,获得P个视频,其中,所述P个视频中每个视频都包括与所述主题对应的视频数据,所述P为大于0的整数。Optionally, after the collection of the N videos, the method further includes: processing each of the N videos to obtain P videos, wherein each of the P videos All include video data corresponding to the theme, and the P is an integer greater than 0.
可选的,在所述获得P个视频之后,所述方法还包括:对所述P个视频进行处理,获得Q个视频,其中,所述Q为小于所述P的正整数。Optionally, after the P videos are obtained, the method further includes: processing the P videos to obtain Q videos, where the Q is a positive integer smaller than the P.
可选的,所述N个视频与所述主题相关具体为:所述N个视频的每个视频中,有一个或多个片段与所述主题相关;或者全部片段与所述主题相关。Optionally, that the N videos are related to the theme specifically includes: in each of the N videos, one or more segments are related to the theme; or all segments are related to the theme.
可选的,对所述N个视频中每个视频进行处理,获得P个视频,具体包括:在有所述N个视频与所述主题相关时,语音分析所述N个视频,判断所述N个视频中是否具有与所述主题相关的第一关键信息;在有所述N个视频与所述主题相关时,文字分析所述N个视频中,判断N个视频中是否具有与所述主题相关的第二关键信息;当所述N个视频中有R个视频具有与所述主题相关的第一关键信息和\或与所述主题相关的第二关键信息,则对所述N个视频进行处理,获得R个视频,其中,R为正整数;将所述R个视频合成为所述P个视频。Optionally, processing each of the N videos to obtain P videos specifically includes: when the N videos are related to the topic, analyzing the N videos by voice, and judging the Whether there is the first key information related to the topic in the N videos; when there are the N videos related to the topic, text analysis is performed in the N videos, and it is judged whether there is any information related to the topic in the N videos The second key information related to the theme; when there are R videos in the N videos that have the first key information related to the theme and/or the second key information related to the theme, then for the N The video is processed to obtain R videos, where R is a positive integer; and the R videos are synthesized into the P videos.
可选的,所述在有所述N个视频与所述主题相关时,语音分析所述N个视频,判断所述N个视频中是否具有与所述主题相关的第一关键信息,具体包括:在有所述N个视频与所述主题相关时,语音分析所述N个视频,获得与所述主题相关的语音关键词;将所述语音关键词与预先设置的第一关键信息进行匹配;当匹配成功时,则判断所述N个视频中具有与所述主题相关的第一关键信息。Optionally, when the N videos are related to the topic, the N videos are analyzed by speech to determine whether the N videos have the first key information related to the topic, specifically including : When the N videos are related to the topic, analyze the N videos by voice to obtain voice keywords related to the topic; match the voice keywords with the preset first key information ; When the matching is successful, it is judged that there is the first key information related to the theme in the N videos.
可选的,所述在有所述N个视频与所述主题相关时,文字分析所述N个视频中,判断N个视频中是否具有与所述主题相关的第二关键信息,具体包括:在有所述N个视频与所述主题相关时,文字分析所述N个视频,获得与所述主题相关的文字关键词;将所述文字关键词与预先设置的第一关键信息进行匹配;当匹配成功时,则判断所述N个视频中具有与所述主题相关的第二关键信息。Optionally, when the N videos are related to the topic, the text analysis of the N videos determines whether the N videos have the second key information related to the topic, specifically including: When the N videos are related to the theme, textually analyze the N videos to obtain text keywords related to the topic; match the text keywords with the preset first key information; When the matching is successful, it is determined that the N videos contain the second key information related to the topic.
本发明另一方面提供一种获得视频的装置,用于对M个视频进行处理,获得与一主题相关的视频,其中,所述M为大于等于1的整数,所述装置包括:Another aspect of the present invention provides a device for obtaining videos, which is used to process M videos and obtain videos related to a topic, wherein, M is an integer greater than or equal to 1, and the device includes:
获得模块,用于获得所述M个视频;An obtaining module, configured to obtain the M videos;
判断模块,用于判断所述M个视频中是否有N个视频与所述主题相关,其中,所述N为小于等于所述M且大于0的整数;A judging module, configured to judge whether N videos among the M videos are related to the topic, wherein the N is an integer less than or equal to the M and greater than 0;
收集模块,用于在有所述N个视频与所述主题相关时,收集所述N个视频。A collecting module, configured to collect the N videos when there are the N videos related to the topic.
可选的,所述装置具体还包括:处理模块,用于对所述N个视频中每个视频进行处理,获得P个视频,其中,所述P个视频中每个视频都包括与所述主题对应的视频数据,所述P为大于0的整数。Optionally, the device specifically further includes: a processing module, configured to process each of the N videos to obtain P videos, wherein each of the P videos includes the The video data corresponding to the theme, the P is an integer greater than 0.
可选的,所述处理模块,具体还包括:第一分析模块,用于在有所述N个视频与所述主题相关时,语音分析所述N个视频,判断所述N个视频中是否具有与所述主题相关的第一关键信息;第二分析模块,用于文字分析所述N个视频中,判断N个视频中是否具有与所述主题相关的第二关键信息;剪切模块,用于当所述N个视频中有R个视频具有与所述主题相关的第一关键信息和\或与所述主题相关的第二关键信息,则剪切所述N个视频,获得R个视频,其中,R为正整数;合成模块,用于将所述R个视频合成为所述P个视频。Optionally, the processing module specifically further includes: a first analysis module, configured to analyze the N videos by voice when the N videos are related to the topic, and determine whether any of the N videos are Having the first key information related to the theme; the second analysis module is used to analyze the N videos in the text, and judges whether there is the second key information related to the theme in the N videos; the cutting module, For when R videos in the N videos have the first key information related to the topic and/or the second key information related to the topic, then cut the N videos to obtain R Videos, wherein, R is a positive integer; a synthesis module, configured to synthesize the R videos into the P videos.
本发明另一方面提供一种播放视频的方法,所述视频通过上述技术方案的方法获得,所述方法包括:Another aspect of the present invention provides a method for playing a video, the video is obtained through the method of the above technical solution, and the method includes:
接收一视频播放信号;receiving a video playback signal;
根据所述视频播放信号播放与所述视频播放信号相对应的视频。The video corresponding to the video playing signal is played according to the video playing signal.
本发明另一方面提供一种播放视频的装置,所述视频通过上述技术方案的方法获得,所述装置包括:Another aspect of the present invention provides a device for playing video, the video is obtained through the method of the above technical solution, and the device includes:
接收模块,用于接收一视频播放信号;The receiving module is used to receive a video playback signal;
播放模块,用于根据所述视频播放信号播放与所述视频播放信号相对应的视频。The playing module is used to play the video corresponding to the video playing signal according to the video playing signal.
上述技术方案中的一个或多个技术方案,具有以下技术效果或优点:One or more technical solutions in the above technical solutions have the following technical effects or advantages:
本申请由于在众多的视频中收集与主题相关的视频,避免了对不相关的视频进行处理的过程,节省了内存。Since the present application collects videos related to a subject among numerous videos, it avoids the process of processing irrelevant videos and saves memory.
进一步的,由于筛选与主题相关的视频,并对该视频进行文字和语音的两重匹配,避免了关联推荐的相关性仅来源于文字叙述的相关性以及不能提供准确的或是相似度高的视频的技术问题,具有能够提供准确的或是相似度高的视频给用户,并且提高用户体验度的技术效果。Further, since the video related to the topic is screened, and the video is matched with text and voice, it avoids that the relevance of the association recommendation only comes from the correlation of the text description and cannot provide accurate or highly similar The technical problem of video has the technical effect of being able to provide accurate or highly similar video to users and improve user experience.
附图说明 Description of drawings
图1为本发明实施例一中获得视频的方法流程图;FIG. 1 is a flowchart of a method for obtaining video in Embodiment 1 of the present invention;
图2为本发明实施例一中对N个视频经过了一系列处理流程图;Fig. 2 is a flow chart of a series of processes for N videos in Embodiment 1 of the present invention;
图3为本发明实施例一中获得视频的装置示意图;3 is a schematic diagram of a device for obtaining video in Embodiment 1 of the present invention;
图4为本发明实施例一中处理模块304的具体示意图;FIG. 4 is a specific schematic diagram of the processing module 304 in Embodiment 1 of the present invention;
图5为本发明实施例二中播放视频的方法流程图;5 is a flowchart of a method for playing a video in Embodiment 2 of the present invention;
图6为本发明实施例二中播放视频的装置示意图。FIG. 6 is a schematic diagram of an apparatus for playing video in Embodiment 2 of the present invention.
具体实施方式detailed description
为了解决关联不准确的技术问题,本发明实施例提出了一种获得视频的方法、装置及播放视频的方法、装置,下面结合说明书附图对本发明实施例的主要实现原理、具体实施过程及其对应能够达到的有益效果进行详细的阐述。In order to solve the technical problem of inaccurate correlation, the embodiment of the present invention proposes a method and device for obtaining video and a method and device for playing video. The corresponding beneficial effects that can be achieved are described in detail.
实施例一:Embodiment one:
实施例一提供了一种获得视频的方法,用于对M个视频进行处理,获得与一主题相关的视频,其中,M为大于等于1的整数。Embodiment 1 provides a method for obtaining videos, which is used for processing M videos to obtain videos related to a theme, where M is an integer greater than or equal to 1.
请参考图1,该方法包括以下步骤:Referring to Figure 1, the method includes the following steps:
S101,获得M个视频。S101. Obtain M videos.
S102,判断M个视频中是否有N个视频与主题相关,其中,N为小于等于M且大于0的整数。S102. Determine whether N videos among the M videos are related to the theme, where N is an integer less than or equal to M and greater than 0.
在具体的实施过程中,在这M个视频中,包括与主题不相关的视频,也包括与主题相关的视频,当该视频与主题相关时,该视频中可能有一个片段与该主题相关,也可能有多个片段与该主题相关,当有N个视频与主题相关时,则执行S103,即在有N个视频与主题相关时,收集该N个视频。In the specific implementation process, the M videos include videos that are not related to the theme, and also include videos that are related to the theme. When the video is related to the theme, there may be a segment in the video that is related to the theme. There may also be multiple clips related to the topic, and when there are N videos related to the topic, then execute S103, that is, when there are N videos related to the topic, collect the N videos.
收集的N个视频中,其每个视频都有一个或多个片段与主题相关;或者全部片段与主题相关。Among the collected N videos, each video has one or more segments related to the theme; or all the segments are related to the theme.
而收集到N个视频之后,还会对这N个视频中每个视频进行处理,获得P个视频。After N videos are collected, each of the N videos will be processed to obtain P videos.
具体来说,P个视频中每个视频都包括与主题对应的视频数据,P为大于0的整数。Specifically, each of the P videos includes video data corresponding to a topic, and P is an integer greater than 0.
从N个视频中获得P个视频时,则是对N个视频经过了一系列处理得到,具体的处理步骤请参考图2,如下:When P videos are obtained from N videos, it is obtained through a series of processing on N videos. Please refer to Figure 2 for specific processing steps, as follows:
S201,有N个视频与主题相关时,语音分析N个视频,判断N个视频中是否具有与主题相关的第一关键信息。S201. When there are N videos related to the topic, analyze the N videos by voice, and determine whether the N videos have the first key information related to the topic.
在具体的实施例中,判断N个视频中是否具有与主题相关的第一关键信息的具体方式为:In a specific embodiment, the specific way of judging whether there is the first key information related to the theme in the N videos is as follows:
首先,在有N个视频与主题相关时,语音分析N个视频,获得与主题相关的语音关键词;First, when there are N videos related to the topic, N videos are voice analyzed to obtain voice keywords related to the topic;
其次,将语音关键词与预先设置的第一关键信息进行匹配;Secondly, the voice keyword is matched with the preset first key information;
再次,当匹配成功时,则判断N个视频中具有与主题相关的第一关键信息。Again, when the matching is successful, it is judged that the N videos have the first key information related to the topic.
S202,文字分析N个视频中,判断N个视频中是否具有与主题相关的第二关键信息。S202. Analyzing the text in the N videos, and judging whether the N videos contain the second key information related to the theme.
在具体的实施例中,判断N个视频中是否具有与主题相关的第二关键信息,具体方式为:In a specific embodiment, it is judged whether there is the second key information related to the theme in the N videos, the specific method is:
首先,在有N个视频与主题相关时,文字分析N个视频,获得与主题相关的文字关键词;First, when there are N videos related to the topic, analyze N videos by text to obtain text keywords related to the topic;
其次,将文字关键词与预先设置的第一关键信息进行匹配;Secondly, matching the text keyword with the preset first key information;
再次,当匹配成功时,则判断N个视频中具有与主题相关的第二关键信息。Again, when the matching is successful, it is judged that the N videos contain the second key information related to the theme.
S203,当N个视频中有R个视频具有与主题相关的第一关键信息和\或与主题相关的第二关键信息,则对N个视频进行处理,获得R个视频,其中,R为正整数。S203, when R videos in the N videos have the first key information related to the topic and/or the second key information related to the topic, then process the N videos to obtain R videos, where R is positive integer.
S204,将R个视频合成为P个视频。S204. Synthesize R videos into P videos.
当获得P个视频后,则对P个视频进行处理,获得Q个视频,其中,Q为小于P的正整数。After P videos are obtained, the P videos are processed to obtain Q videos, wherein Q is a positive integer smaller than P.
而这Q个视频中,每个视频都具有一个原始视频,且Q个视频能够与对应于Q个视频的原始视频进行关联。Each of the Q videos has an original video, and the Q videos can be associated with the original videos corresponding to the Q videos.
进行关联的作用是,当用户观看了Q个视频中的某一个视频后,若需要观看包含该视频的原始视频,通过启动该视频,比如点击该视频,即可以关联到包含该视频的原始视频,原始视频即会启动播放。The function of association is that after the user watches one of the Q videos, if he needs to watch the original video containing the video, he can link to the original video containing the video by starting the video, such as clicking on the video , the original video will start playing.
在实际的应用中,比如用户需要观看关于张三穿龙袍参加国际电影节的视频,该视频长达1分钟,而这段视频包含于一娱乐视频中,该娱乐视频除了包括有关张三参加国际电影节的内容之外,还会附带报道其他的娱乐视频,比如另一则有关张三的报道和其他娱乐明星参加国际电影节的报道。In practical applications, for example, the user needs to watch a video about Zhang San wearing a dragon robe to participate in an international film festival. The video is 1 minute long, and this video is included in an entertainment video. In addition to the content of the International Film Festival, other entertainment videos will also be reported, such as another report about Zhang San and other entertainment stars participating in the International Film Festival.
而电视频道或者互联网上的很多视频除了报道该娱乐视频之外,还包括其他类型的新闻视频比如财经视频,综合视频,而综合视频中也具有张三穿龙袍参加国际电影节的相应报道。In addition to reporting the entertainment video, many videos on TV channels or the Internet also include other types of news videos such as financial videos and comprehensive videos, and the comprehensive video also has corresponding reports about Zhang San wearing a dragon robe to participate in the International Film Festival.
当获得3个视频时,这3个视频分别为:财经视频,娱乐视频,综合视频。而在这3个视频中,有的与张三参加国际电影节的内容相关,比如娱乐视频和综合视频;有的与张三参加国际电影节的内容不相关,如财经视频。When 3 videos are obtained, the 3 videos are: financial video, entertainment video, and comprehensive video. Among the three videos, some are related to Zhang San's participation in the international film festival, such as entertainment videos and comprehensive videos; some are not related to Zhang San's participation in the international film festival, such as financial videos.
当获得这3个视频后,就判断这3个视频中有哪些视频与张三参加国际电影节的内容相关,从上述视频可以得出有2个视频,即娱乐视频和综合视频与张三参加国际电影节的内容相关,则收集这2个视频。After obtaining these 3 videos, determine which of these 3 videos are related to Zhang San’s participation in the International Film Festival. From the above videos, it can be concluded that there are 2 videos, namely the entertainment video and the comprehensive video, which are related to Zhang San’s participation in the film festival. If the content of the International Film Festival is relevant, these 2 videos will be collected.
这2个视频中每个视频都有一个片段与张三穿龙袍参加国际电影节的内容相关。Each of these two videos has a segment related to the content of Zhang San wearing a dragon robe to participate in the International Film Festival.
当收集到这2个视频时,就对这2个视频进行语音分析,判断这2个视频中是否具有与张三穿龙袍参加国际电影节相关的第一关键信息。When these 2 videos are collected, voice analysis is performed on these 2 videos to determine whether there is the first key information related to Zhang San wearing a dragon robe to participate in the International Film Festival in these 2 videos.
以娱乐视频举例说明:Take an entertainment video as an example:
在播放娱乐视频时,在视频的语言内容中出现了“张三”,“龙袍”,“国际电影节”这三个关键词,则获得这三个关键词,将这三个关键词与预先设置的第一关键信息进行匹配,而匹配的方式有多种,比如以打分的形式进行匹配,使用相似度计算进行匹配,或是使用预先设置的对应关系进行匹配。When playing an entertainment video, if the three keywords "Zhang San", "Dragon Robe" and "International Film Festival" appear in the language content of the video, then these three keywords are obtained, and these three keywords are combined with The pre-set first key information is used for matching, and there are many ways of matching, such as matching in the form of scoring, matching using similarity calculation, or matching using a preset corresponding relationship.
预先设置的第一关键信息可以有一个,也可以由多个,这里设置“张三”,“龙袍”,“国际电影节”三个词为第一关键信息。There can be one or more preset first key information. Here, three words "Zhang San", "Dragon Robe" and "International Film Festival" are set as the first key information.
当使用打分的形式进行匹配时:When matching in the form of scoring:
当语音分析出的三个语音关键词中有一个语音关键词匹配第一关键信息为1分,有两个语音关键词匹配第一关键信息为3分,三个语音关键词中每一个语音关键词都匹配第一关键信息为5分,当达到3分时,就说明娱乐视频中具有与张三穿龙袍参加国际电影节的内容相关的第一关键信息。When one of the three voice keywords in the voice analysis matches the first key information, the score is 1, and two voice keywords match the first key information, and the score is 3. Each of the three voice keywords matches the first key information. Words match the first key information with 5 points, and when it reaches 3 points, it means that the entertainment video has the first key information related to the content of Zhang San wearing a dragon robe to participate in the International Film Festival.
则将上述三个语音关键词与预先设置的第一关键信息一一进行匹配,匹配结果为5分,则说明娱乐视频中具有与张三穿龙袍参加国际电影节的内容相关的第一关键信息。Then, the above three voice keywords are matched with the preset first key information one by one, and the matching result is 5 points, which means that there is the first key related to the content of Zhang San wearing a dragon robe to participate in the International Film Festival in the entertainment video information.
当对娱乐新闻进行文字分析,获得文字关键词之后,也将文字关键词与预先设置的第二关键信息进行匹配,第二关键信息与第一关键信息可以相同,也可以不相同。After performing text analysis on entertainment news to obtain text keywords, the text keywords are also matched with preset second key information. The second key information may be the same as the first key information, or may not be the same.
比如预先设置的第二关键信息为“张三”,“龙袍”。For example, the preset second key information is "Zhang San" and "Dragon Robe".
而将文字关键词与预先设置的第二关键信息进行匹配时,匹配方式与上述的方式相同。When matching the text keyword with the preset second key information, the matching method is the same as the above method.
当文字分析出的三个文字关键词中有一个文字关键词匹配第一关键信息为2分,有两个文字关键词匹配第一关键信息为3分,当达到3分时,说明娱乐视频中具有与张三穿龙袍参加国际电影节的内容相关的第二关键信息。When one of the three text keywords in the text analysis matches the first key information, the score is 2 points, and if two text keywords match the first key information, the score is 3 points. It has the second key information related to the content of Zhang San wearing a dragon robe to participate in the International Film Festival.
则将上述三个文字关键词与预先设置的第二关键信息一一进行匹配,匹配结果为3分,则说明娱乐视频中具有与张三穿龙袍参加国际电影节的内容相关的第二关键信息。Then match the above three text keywords with the preset second key information one by one, and the matching result is 3 points, which means that there is a second key related to the content of Zhang San wearing a dragon robe to participate in the International Film Festival in the entertainment video information.
当该娱乐视频中具有与张三穿龙袍参加国际电影节的内容相关的第一关键信息和第二关键信息,则对娱乐视频进行处理,比如剪切有关于张三穿龙袍参加国际电影节的1分钟的视频,以获得该视频。When the entertainment video has the first key information and the second key information related to the content of Zhang San wearing the dragon robe to participate in the International Film Festival, then the entertainment video is processed, such as cutting information about Zhang San wearing the dragon robe to participate in the international film section of the 1 minute video to get the video.
这里设定的条件为娱乐视频中必须具有第一关键信息和第二关键信息才能进行进一步的处理,而该条件仅用于说明和解释本申请,并不用于限定本申请,除了上述的条件时,本申请还可以只具有第一关键信息或者只具有第二关键信息,就能够进行进一步处理,此处本申请不做限制。The condition set here is that the entertainment video must have the first key information and the second key information before it can be further processed, and this condition is only used to illustrate and explain this application, and is not used to limit this application, except for the above conditions , the present application may further process with only the first key information or only the second key information, which is not limited in this application.
而在娱乐视频中,除了包含上述张三穿龙袍参加国际电影节有关的视频之外,还包括了张三其他的新闻视频或者是其他娱乐明星参见国际电影节的视频,而抽取出其语音关键词或是文字关键词进行匹配时,并没有满足处理条件,则本申请不对其进行处理。In the entertainment video, in addition to the above-mentioned video about Zhang San wearing a dragon robe to participate in the International Film Festival, it also includes Zhang San’s other news videos or videos of other entertainment stars attending the International Film Festival, and his voice is extracted When matching keywords or text keywords, the processing conditions are not met, so this application will not process them.
在使用相似度进行匹配时,或者使用预先设置的对应关系进行匹配时,都能够对应剪切出需要的视频。When using the similarity for matching, or using the preset corresponding relationship for matching, the required video can be correspondingly cut out.
在剪切出对应的视频时,将剪切出的视频合成为需要的一个或者多个视频。When the corresponding video is cut out, the cut out video is synthesized into one or more required videos.
对于综合视频,也使用上述方法进行判断,在此本申请不做赘述了。For the comprehensive video, the above method is also used for judgment, which is not repeated in this application.
上述方法提供了获得视频的一种方法,使用该方法能够较准确的获得相关的视频,而且,在获得相应的视频的同时,可以将该视频中的视频片段与对应该视频片段的视频源进行关联,以提供更为丰富的视频选择,选择多样。The above-mentioned method provides a method for obtaining a video, and by using this method, the relevant video can be obtained more accurately, and, while obtaining the corresponding video, the video segment in the video can be compared with the video source corresponding to the video segment Associated to provide a richer video selection, with a variety of choices.
除此之外,本申请还对应提供了获得视频的装置,用于对M个视频进行处理,获得与一主题相关的视频,其中,M为大于等于1的整数,参考图3,该装置包括:In addition, the present application also provides a device for obtaining videos, which is used to process M videos and obtain videos related to a topic, where M is an integer greater than or equal to 1. Referring to FIG. 3, the device includes :
获得模块301,用于获得M个视频。Obtaining module 301, configured to obtain M videos.
判断模块302,用于判断M个视频中是否有N个视频与主题相关,其中,N为小于等于M且大于0的整数。A judging module 302, configured to judge whether N videos among the M videos are related to the topic, where N is an integer less than or equal to M and greater than 0.
收集模块303,用于在有N个视频与主题相关时,收集N个视频。The collection module 303 is configured to collect N videos when there are N videos related to the topic.
除了上述模块之外,该装置还包括处理模块304,用于对N个视频中每个视频进行处理,获得P个视频,其中,P个视频中每个视频都包括与主题对应的视频数据,P为大于0的整数。In addition to the above modules, the device also includes a processing module 304, configured to process each of the N videos to obtain P videos, wherein each of the P videos includes video data corresponding to the subject, P is an integer greater than 0.
而处理模块304具体还包括了第一分析模块3041,第二分析模块3042,剪切模块3043,合成模块3044。The processing module 304 specifically further includes a first analysis module 3041 , a second analysis module 3042 , a clipping module 3043 , and a synthesis module 3044 .
其中请参考图4:Among them, please refer to Figure 4:
第一分析模块3041,用于在有N个视频与主题相关时,语音分析N个视频,判断N个视频中是否具有与主题相关的第一关键信息;The first analysis module 3041 is used to analyze N videos by voice when there are N videos related to the topic, and judge whether there is the first key information related to the topic in the N videos;
第二分析模块3042,用于文字分析N个视频中,判断N个视频中是否具有与主题相关的第二关键信息;The second analysis module 3042 is used to analyze the N videos in the text, and judge whether there is the second key information related to the topic in the N videos;
剪切模块3043,用于当N个视频中有R个视频具有与主题相关的第一关键信息和\或与主题相关的第二关键信息,则剪切N个视频,获得R个视频,其中,R为正整数;The cutting module 3043 is used to cut N videos to obtain R videos when R videos have the first key information related to the theme and/or the second key information related to the theme in the N videos, wherein , R is a positive integer;
合成模块3044,用于将R个视频合成为P个视频。Synthesizing module 3044, configured to synthesize R videos into P videos.
实施例二:Embodiment two:
本实施例提供了一种播放视频的方法,视频通过上述实施例一中的方法获得,请参考图5,该方法包括:This embodiment provides a method for playing a video, the video is obtained by the method in the first embodiment above, please refer to Figure 5, the method includes:
S501,接收一视频播放信号。S501. Receive a video playing signal.
S502,根据视频播放信号播放与视频播放信号相对应的视频。S502. Play a video corresponding to the video playing signal according to the video playing signal.
对应于上述方法,请参考图6,还提供了一种播放视频的装置,视频通过权利要求6获得,该装置包括:Corresponding to the above method, please refer to FIG. 6, there is also provided a device for playing video, the video is obtained through claim 6, the device includes:
接收模块601,用于接收一视频播放信号。The receiving module 601 is configured to receive a video playing signal.
播放模块602,用于根据视频播放信号播放与视频播放信号相对应的视频。The playing module 602 is configured to play a video corresponding to the video playing signal according to the video playing signal.
通过本发明的一个或多个实施例,可以实现如下技术效果:Through one or more embodiments of the present invention, the following technical effects can be achieved:
本申请通过一个或者多个实施例,由于在众多的视频中收集与主题相关的视频,避免了对不相关的视频进行处理的过程,节省了内存。Through one or more embodiments, the present application avoids the process of processing irrelevant videos and saves memory because videos related to the subject are collected from numerous videos.
进一步的,由于筛选与主题相关的视频,并对该视频进行文字和语音的两重匹配,避免了关联推荐的相关性仅来源于文字叙述的相关性以及不能提供准确的或是相似度高的视频的技术问题,具有能够提供准确的或是相似度高的视频给用户,并且提高用户体验度的技术效果。Further, since the video related to the topic is screened, and the video is matched with text and voice, it avoids that the relevance of the association recommendation only comes from the correlation of the text description and cannot provide accurate or highly similar The technical problem of video has the technical effect of being able to provide accurate or highly similar video to users and improve user experience.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.
Claims (9)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210023046.6A CN103247318B (en) | 2012-02-02 | 2012-02-02 | A method and device for obtaining video, and a method and device for playing video |
CN201610547322.7A CN106202421B (en) | 2012-02-02 | 2012-02-02 | method and device for obtaining video and method and device for playing video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210023046.6A CN103247318B (en) | 2012-02-02 | 2012-02-02 | A method and device for obtaining video, and a method and device for playing video |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610547322.7A Division CN106202421B (en) | 2012-02-02 | 2012-02-02 | method and device for obtaining video and method and device for playing video |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103247318A CN103247318A (en) | 2013-08-14 |
CN103247318B true CN103247318B (en) | 2016-08-17 |
Family
ID=48926794
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610547322.7A Active CN106202421B (en) | 2012-02-02 | 2012-02-02 | method and device for obtaining video and method and device for playing video |
CN201210023046.6A Active CN103247318B (en) | 2012-02-02 | 2012-02-02 | A method and device for obtaining video, and a method and device for playing video |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610547322.7A Active CN106202421B (en) | 2012-02-02 | 2012-02-02 | method and device for obtaining video and method and device for playing video |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN106202421B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104202657B (en) * | 2014-08-29 | 2018-09-18 | 北京奇虎科技有限公司 | The method and device that multiple videos selection in same theme video group is played |
CN106375078A (en) * | 2015-07-24 | 2017-02-01 | 三亚中兴软件有限责任公司 | Processing method and device for leakage prevention |
CN106131613B (en) * | 2016-07-26 | 2019-10-01 | 深圳Tcl新技术有限公司 | Smart television video sharing method and video sharing system |
CN108882023B (en) * | 2018-07-11 | 2021-04-16 | Oppo广东移动通信有限公司 | Video processing method and related products |
CN114218438B (en) * | 2021-12-23 | 2023-03-21 | 北京百度网讯科技有限公司 | Video data processing method, device, electronic device and computer storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1298522A (en) * | 1998-12-23 | 2001-06-06 | 皇家菲利浦电子有限公司 | Personalized video classification and retrieval system |
CN1723458A (en) * | 2002-12-11 | 2006-01-18 | 皇家飞利浦电子股份有限公司 | Method and system for utilizing video content to derive textual keywords or phrases to provide content-related links to web-based resources |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7650361B1 (en) * | 2004-07-21 | 2010-01-19 | Comcast Ip Holdings I, Llc | Media content modification and access system for interactive access of media content across disparate network platforms |
CN101021857A (en) * | 2006-10-20 | 2007-08-22 | 鲍东山 | Video searching system based on content analysis |
CN101419614A (en) * | 2008-12-03 | 2009-04-29 | 深圳市迅雷网络技术有限公司 | Video resource clustering method and device |
JPWO2010134363A1 (en) * | 2009-05-18 | 2012-11-08 | 富士通モバイルコミュニケーションズ株式会社 | Mobile device |
CN102222101A (en) * | 2011-06-22 | 2011-10-19 | 北方工业大学 | Method for video semantic mining |
-
2012
- 2012-02-02 CN CN201610547322.7A patent/CN106202421B/en active Active
- 2012-02-02 CN CN201210023046.6A patent/CN103247318B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1298522A (en) * | 1998-12-23 | 2001-06-06 | 皇家菲利浦电子有限公司 | Personalized video classification and retrieval system |
CN1723458A (en) * | 2002-12-11 | 2006-01-18 | 皇家飞利浦电子股份有限公司 | Method and system for utilizing video content to derive textual keywords or phrases to provide content-related links to web-based resources |
Non-Patent Citations (1)
Title |
---|
新闻视频主题追踪技术研究;白志杰;《硕士论文》;20090415;摘要、第二章第16页-第24页、第4章第42页-第48页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103247318A (en) | 2013-08-14 |
CN106202421B (en) | 2020-01-31 |
CN106202421A (en) | 2016-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11423320B2 (en) | Method of and system for efficient fact checking utilizing a scoring and classification system | |
US9251406B2 (en) | Method and system for detecting users' emotions when experiencing a media program | |
CN101517550B (en) | Social and interactive applications for mass media | |
US10762152B2 (en) | Displaying a summary of media content items | |
CN104822074B (en) | A kind of recommendation method and device of TV programme | |
US20150301718A1 (en) | Methods, systems, and media for presenting music items relating to media content | |
CN111104583A (en) | Live broadcast room recommendation method, storage medium, electronic device and system | |
CN103247318B (en) | A method and device for obtaining video, and a method and device for playing video | |
CN113486212A (en) | Search recommendation information generation and display method, device, equipment and storage medium | |
CN114880458A (en) | Book recommendation information generation method, device, equipment and medium | |
US20190208280A1 (en) | Information Processing Apparatus, Information Processing Method, Program, And Information Processing System | |
CN116049490A (en) | Material searching method and device and electronic equipment | |
CN112073757A (en) | Emotion fluctuation index acquisition method, emotion fluctuation index display method and multimedia content production method | |
CN104463339A (en) | Multimedia resource producer assessment method and device | |
CN113946712A (en) | Segment recommendation method, segment recommendation device, electronic device, and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |