CN111901629A - Method and device for generating and playing video stream - Google Patents
Method and device for generating and playing video stream Download PDFInfo
- Publication number
- CN111901629A CN111901629A CN202010927064.1A CN202010927064A CN111901629A CN 111901629 A CN111901629 A CN 111901629A CN 202010927064 A CN202010927064 A CN 202010927064A CN 111901629 A CN111901629 A CN 111901629A
- Authority
- CN
- China
- Prior art keywords
- video
- processed
- videos
- preset
- splicing
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/23424—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/75—Clustering; Classification
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8549—Creating video summaries, e.g. movie trailer
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Data Mining & Analysis (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本公开的实施例提供的生成、播放视频流的方法和装置,通过获取视频,然后对视频进行视频预处理,并将得到的处理后视频存入视频库,最后基于预设的视频拼接条件,从视频库中选取满足预设的视频拼接条件的多个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流,能够对获取的视频进行视频预处理,使得处理后视频能够符合视频处理要求,提高了视频的可用性,同时能够整合不同视频,把不同视频拼接成视频流,使得视频流能够同时包括多种类型、多种条件的视频,提高了视频流的多样性,以及能够将得到的视频流推送给用户,能够满足用户对视频的不同需求。
The method and device for generating and playing a video stream provided by the embodiments of the present disclosure obtain a video, then perform video preprocessing on the video, store the obtained processed video in a video library, and finally, based on preset video splicing conditions, Select multiple processed videos that meet the preset video splicing conditions from the video library for video splicing, generate a video stream corresponding to the preset video splicing conditions, and perform video preprocessing on the acquired videos, so that the processed videos can be It meets the requirements of video processing, improves the usability of the video, and can integrate different videos, splicing different videos into a video stream, so that the video stream can include videos of various types and conditions at the same time, which improves the diversity of video streams, and The obtained video stream can be pushed to the user, which can meet the different needs of the user for video.
Description
技术领域technical field
本公开的实施例涉及计算机技术领域,具体涉及人工智能领域,尤其涉及生成、播放视频流的方法和装置。The embodiments of the present disclosure relate to the field of computer technology, in particular to the field of artificial intelligence, and in particular, to a method and apparatus for generating and playing a video stream.
背景技术Background technique
随着互联网的发展和移动设备的普及,传统的媒体面临巨大的挑战,尤其是电视媒体。在以往电视媒体是一种影响力最大的广告媒体,有“爆炸性媒体”之称,信息量极大,信息内容很广。但如今越来越少的观众观看电视媒体,使得电视媒体日薄西山。2010年以后智能电视随之出现,智能电视是基于Internet应用技术,具备开放式操作系统与芯片,拥有开放式应用平台,可以实现双向人机交互功能,集影音、娱乐、数据等多种功能于一体,能够满足用户多样化和个性化需求的电视产品。With the development of the Internet and the popularization of mobile devices, traditional media are facing huge challenges, especially TV media. In the past, television media was one of the most influential advertising media, known as "explosive media", with a huge amount of information and a wide range of information content. But now fewer and fewer viewers watch TV media, making TV media dwindling. Smart TVs appeared after 2010. Smart TVs are based on Internet application technology, with open operating systems and chips, and open application platforms. All-in-one TV products that can meet the diverse and personalized needs of users.
现有的智能电视技术只支持点播模式,用户只能够选择自己感兴趣的内容观看,而导致众多内容被忽视,以及智能电视的主界面通常是卡片模式为主,面向的是点播需求,若用户只想随便看看的时候,不能很快找到自己想要看的内容。The existing smart TV technology only supports the on-demand mode, and users can only select the content they are interested in to watch, which leads to many contents being ignored, and the main interface of the smart TV is usually based on the card mode, which is oriented to the on-demand demand. When you just want to watch casually, you can't quickly find what you want to watch.
发明内容SUMMARY OF THE INVENTION
本公开的实施例提出了生成、播放视频流的方法和装置。Embodiments of the present disclosure propose methods and apparatuses for generating and playing video streams.
第一方面,本公开的实施例提供了一种生成视频流的方法,该方法包括:获取视频;对视频进行视频预处理,并将得到的处理后视频存入视频库;基于预设的视频拼接条件,从视频库中选取满足预设的视频拼接条件的多个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流。In a first aspect, embodiments of the present disclosure provide a method for generating a video stream, the method comprising: acquiring a video; performing video preprocessing on the video, and storing the obtained processed video in a video library; based on a preset video The splicing condition is to select multiple processed videos that meet the preset video splicing conditions from the video library for video splicing, and generate a video stream corresponding to the preset video splicing conditions.
在一些实施例中,对视频进行视频预处理,并将得到的处理后视频存入视频库,包括:对视频进行类型分类,得到视频对应的类型结果;基于与类型结果对应的预设时长范围,对视频进行视频裁剪处理,得到处理后视频,并将设置有类型结果的处理后视频存入视频库。In some embodiments, video preprocessing is performed on the video, and the obtained processed video is stored in a video library, including: classifying the video by type to obtain a type result corresponding to the video; based on a preset duration range corresponding to the type result , perform video cropping processing on the video, obtain the processed video, and store the processed video with the type result set in the video library.
在一些实施例中,预设的视频拼接条件包括:选取同一类型结果的处理后视频;以及基于预设的视频拼接条件,从视频库中选取满足预设的视频拼接条件的多个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流,包括:基于视频库中处理后视频的类型结果,从视频库中选取同一类型结果的多个处理后视频进行视频拼接,生成与类型结果对应的类型视频流。In some embodiments, the preset video splicing conditions include: selecting processed videos of the same type of results; and based on the preset video splicing conditions, selecting from a video library a plurality of processed videos that satisfy the preset video splicing conditions Perform video splicing to generate video streams corresponding to preset video splicing conditions, including: selecting multiple processed videos of the same type of results from the video library based on the type results of the processed videos in the video library to perform video splicing, and generating the same type of results. The type video stream corresponding to the type result.
在一些实施例中,预设的视频拼接条件包括:选取不同类型结果的处理后视频;以及基于预设的视频拼接条件,从视频库中选取满足预设的视频拼接条件的多个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流,包括:基于视频库中处理后视频的类型结果,从视频库中选取多个不同类型结果的多个处理后视频进行视频拼接,生成任意视频流。In some embodiments, the preset video splicing conditions include: selecting processed videos of different types of results; and based on the preset video splicing conditions, selecting from a video library a plurality of processed videos that satisfy the preset video splicing conditions Performing video splicing to generate video streams corresponding to preset video splicing conditions, including: selecting multiple processed videos of different types of results from the video library based on the type results of the processed videos in the video library to perform video splicing, Generate arbitrary video streams.
在一些实施例中,预设的视频拼接条件包括:选取与用户视频喜好对应的处理后视频;以及基于预设的视频拼接条件,从视频库中选取满足预设的视频拼接条件的多个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流,包括:获取用户的视频喜好;从视频库中选取与用户的视频喜好对应的多个处理后视频进行视频拼接,生成推荐视频流。In some embodiments, the preset video splicing conditions include: selecting a processed video corresponding to the user's video preference; and based on the preset video splicing conditions, selecting from a video library a plurality of processes that satisfy the preset video splicing conditions After video splicing is performed, a video stream corresponding to the preset video splicing conditions is generated, including: obtaining the user's video preferences; selecting multiple processed videos corresponding to the user's video preferences from the video library to perform video splicing to generate recommendations. video stream.
在一些实施例中,对视频进行视频预处理,并将得到的处理后视频存入视频库,还包括:响应于得到处理后视频,确定处理后视频对应的推荐值,并将设置有类型结果、推荐值的处理后视频存入视频库。In some embodiments, the video preprocessing is performed on the video, and the obtained processed video is stored in the video library, further comprising: in response to obtaining the processed video, determining a recommendation value corresponding to the processed video, and setting the type result , The processed video of the recommended value is stored in the video library.
在一些实施例中,基于预设的视频拼接条件,从视频库中选取满足预设的视频拼接条件的多个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流,包括:基于预设的视频拼接条件和视频库中每个处理后视频对应的推荐值,从视频库中选取满足预设的视频拼接条件、且推荐值满足预设推荐条件的多个处理后视频;基于多个处理后视频中每个处理后视频对应的推荐值,依次将每个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流。In some embodiments, based on preset video splicing conditions, multiple processed videos that meet the preset video splicing conditions are selected from the video library to perform video splicing, and a video stream corresponding to the preset video splicing conditions is generated, including : Based on the preset video splicing conditions and the recommendation value corresponding to each processed video in the video library, select multiple processed videos from the video library that meet the preset video splicing conditions and whose recommended values meet the preset recommendation conditions; Based on the recommendation value corresponding to each processed video in the plurality of processed videos, video splicing is performed on each processed video in sequence to generate a video stream corresponding to preset video splicing conditions.
在一些实施例中,对视频进行类型分类,得到视频对应的类型结果,包括:对视频进行类型分类,得到视频对应的分类结果;基于与分类结果对应的视频内容链接条件,生成满足视频内容链接条件的视频内容链接;基于视频对应的分类结果和满足视频内容链接条件的视频内容链接,生成视频对应的类型结果。In some embodiments, classifying the video type to obtain a type result corresponding to the video includes: classifying the video type to obtain a classification result corresponding to the video; generating a video content link based on a video content link condition corresponding to the classification result that satisfies the video content link Conditional video content links; based on the classification results corresponding to the videos and the video content links that satisfy the video content linking conditions, generate the type results corresponding to the videos.
在一些实施例中,对视频进行视频预处理,并将得到的处理后视频存入视频库,还包括:响应于得到处理后视频,基于类型结果,确定处理后视频与同一类型结果的视频之间的相关值,并将设置有类型结果、相关值的处理后视频存入视频库。In some embodiments, performing video preprocessing on the video, and storing the obtained processed video in the video library, further includes: in response to obtaining the processed video, determining, based on the type result, a difference between the processed video and the video with the same type result The correlation value between them is stored, and the processed video with the type result and the correlation value set is stored in the video library.
在一些实施例中,方法还包括:向终端发送视频流;响应于接收到用户对视频流的交互请求,分析交互请求,得到用户的视频喜好;基于用户的视频喜好,更新视频库中每个处理后视频对应的推荐值。In some embodiments, the method further includes: sending a video stream to the terminal; in response to receiving the user's interactive request for the video stream, analyzing the interactive request to obtain the user's video preference; based on the user's video preference, updating each video in the video library The recommended value corresponding to the processed video.
在一些实施例中,交互请求包括跳过当前处理后视频;以及更新视频库中每个处理后视频对应的推荐值,包括:减小当前处理后视频和与当前处理后视频相关的处理后视频的推荐值。In some embodiments, the interaction request includes skipping the current processed video; and updating the recommendation value corresponding to each processed video in the video library, including: reducing the current processed video and the processed video related to the current processed video recommended value.
在一些实施例中,交互请求包括观看当前处理后视频的时长超过预设阈值;以及更新视频库中每个处理后视频对应的推荐值,包括:增大当前处理后视频和与当前处理后视频相关的处理后视频的推荐值。In some embodiments, the interaction request includes watching the currently processed video for a duration exceeding a preset threshold; and updating the recommendation value corresponding to each processed video in the video library, including: increasing the current processed video and the current processed video Recommended value for the relevant processed video.
在一些实施例中,该方法还包括:响应于确定用户观看当前处理后视频的时长超过预设阈值,确定当前处理后视频的内容数据;基于当前处理后视频的内容数据,从视频库中选取与当前处理后视频的内容数据相关的多个处理后视频进行视频拼接,生成与当前处理后视频的内容数据对应的兴趣视频流。In some embodiments, the method further includes: in response to determining that the duration of viewing the currently processed video by the user exceeds a preset threshold, determining content data of the currently processed video; based on the content data of the currently processed video, selecting from a video library Video splicing is performed on a plurality of processed videos related to the content data of the currently processed video, and an interesting video stream corresponding to the content data of the currently processed video is generated.
第二方面,本公开的实施例提供了一种播放视频流的方法,该方法包括:响应于接收到用户的开启请求,获取如第一方面中任一实现方式生成的视频流;依次播放视频流中的处理后视频。In a second aspect, an embodiment of the present disclosure provides a method for playing a video stream. The method includes: in response to receiving an opening request from a user, acquiring a video stream generated in any of the implementation manners of the first aspect; and sequentially playing the videos The processed video in the stream.
在一些实施例中,视频流包括多个类别的视频流;以及依次播放视频流中的处理后视频,包括:播放当前视频流中的当前处理后视频,并呈现当前视频流的类别标识和与当前处理后视频对应的查看按键。In some embodiments, the video stream includes a plurality of categories of video streams; and sequentially playing the processed videos in the video stream includes: playing the current processed video in the current video stream and presenting the category identifier of the current video stream and the View button corresponding to the currently processed video.
在一些实施例中,方法还包括:响应于接收到用户对当前视频流的切换请求,播放当前视频流的下一个类别的视频流。In some embodiments, the method further includes: in response to receiving the user's switching request for the current video stream, playing a video stream of a next category of the current video stream.
在一些实施例中,方法还包括:响应于接收到用户对当前处理后视频的切换请求,播放当前视频流中当前处理后视频的下一个处理后视频。In some embodiments, the method further includes: in response to receiving a user switching request for the current processed video, playing a next processed video of the current processed video in the current video stream.
在一些实施例中,方法还包括:响应于接收到用户对当前处理后视频的查看请求,播放与当前处理后视频相关的处理后视频或与当前处理后视频对应的视频内容。In some embodiments, the method further includes: in response to receiving the user's viewing request for the currently processed video, playing a processed video related to the currently processed video or video content corresponding to the currently processed video.
在一些实施例中,方法还包括:响应于接收到用户的搜索请求,播放与搜索请求对应的处理后视频或与处理后视频对应的视频内容。In some embodiments, the method further includes: in response to receiving the search request from the user, playing the processed video corresponding to the search request or video content corresponding to the processed video.
在一些实施例中,方法还包括:响应于检测到新用户,获取与新用户对应的如第一方面中任一实现方式生成的新的视频流;依次播放新的视频流中的处理后视频。In some embodiments, the method further includes: in response to detecting the new user, acquiring a new video stream corresponding to the new user and generated as in any of the implementations of the first aspect; and sequentially playing the processed videos in the new video stream .
第三方面,本公开的实施例提供了一种生成视频流的装置,该装置包括:获取单元,被配置成获取视频;预处理单元,被配置成对视频进行视频预处理,并将得到的处理后视频存入视频库;生成单元,被配置成基于预设的视频拼接条件,从视频库中选取满足预设的视频拼接条件的多个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流。In a third aspect, an embodiment of the present disclosure provides an apparatus for generating a video stream, the apparatus includes: an acquisition unit configured to acquire a video; a preprocessing unit configured to perform video preprocessing on the video, and convert the obtained video The processed video is stored in a video library; the generating unit is configured to select a plurality of processed videos that meet the preset video splicing conditions from the video library based on preset video splicing conditions to perform video splicing, and generate a video with the preset video splicing condition. The video stream corresponding to the splicing condition.
在一些实施例中,预处理单元,包括:分类模块,被配置成对视频进行类型分类,得到视频对应的类型结果;裁剪模块,被配置成基于与类型结果对应的预设时长范围,对视频进行视频裁剪处理,得到处理后视频,并将设置有类型结果的处理后视频存入视频库。In some embodiments, the preprocessing unit includes: a classification module configured to classify the video by type to obtain a type result corresponding to the video; a cropping module configured to classify the video based on a preset duration range corresponding to the type result. Perform video cropping processing to obtain the processed video, and store the processed video with the type result set in the video library.
在一些实施例中,预设的视频拼接条件包括:选取同一类型结果的处理后视频;以及生成单元,进一步被配置成:基于视频库中处理后视频的类型结果,从视频库中选取同一类型结果的多个处理后视频进行视频拼接,生成与类型结果对应的类型视频流。In some embodiments, the preset video splicing conditions include: selecting the processed video of the same type of result; and the generating unit, further configured to: select the same type from the video library based on the type result of the processed video in the video library Video splicing is performed on the multiple processed videos of the result, and a type video stream corresponding to the type result is generated.
在一些实施例中,预设的视频拼接条件包括:选取不同类型结果的处理后视频;以及生成单元,进一步被配置成:基于视频库中处理后视频的类型结果,从视频库中选取多个不同类型结果的多个处理后视频进行视频拼接,生成任意视频流。In some embodiments, the preset video splicing conditions include: selecting processed videos of different types of results; and a generating unit, further configured to: based on the type results of the processed videos in the video library, select a plurality of Video splicing is performed on multiple processed videos of different types of results to generate arbitrary video streams.
在一些实施例中,预设的视频拼接条件包括:选取与用户视频喜好对应的处理后视频;生成单元,进一步被配置成:获取用户的视频喜好;从视频库中选取与用户的视频喜好对应的多个处理后视频进行视频拼接,生成推荐视频流。In some embodiments, the preset video splicing conditions include: selecting the processed video corresponding to the user's video preference; the generating unit is further configured to: obtain the user's video preference; select from the video library corresponding to the user's video preference Video splicing is performed on multiple processed videos, and a recommended video stream is generated.
在一些实施例中,预处理单元,进一步被配置成:响应于得到处理后视频,确定处理后视频对应的推荐值,并将设置有类型结果、推荐值的处理后视频存入视频库。In some embodiments, the preprocessing unit is further configured to: in response to obtaining the processed video, determine a recommendation value corresponding to the processed video, and store the processed video with the type result and the recommended value in the video library.
在一些实施例中,生成单元,进一步被配置成:基于预设的视频拼接条件和视频库中每个处理后视频对应的推荐值,从视频库中选取满足预设的视频拼接条件、且推荐值满足预设推荐条件的多个处理后视频;基于多个处理后视频中每个处理后视频对应的推荐值,依次将每个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流。In some embodiments, the generating unit is further configured to: based on preset video splicing conditions and a recommendation value corresponding to each processed video in the video library, select from the video library meeting the preset video splicing conditions, and recommend Multiple processed videos whose value satisfies the preset recommendation conditions; based on the recommendation value corresponding to each processed video in the multiple processed videos, video splicing is performed on each processed video in turn to generate a video corresponding to the preset video splicing conditions. video stream.
在一些实施例中,分类模块,进一步被配置成:对视频进行类型分类,得到视频对应的分类结果;基于与分类结果对应的视频内容链接条件,生成满足视频内容链接条件的视频内容链接;基于视频对应的分类结果和满足视频内容链接条件的视频内容链接,生成视频对应的类型结果。In some embodiments, the classification module is further configured to: classify the video by type to obtain a classification result corresponding to the video; generate a video content link that satisfies the video content link condition based on the video content link condition corresponding to the classification result; The classification result corresponding to the video is linked to the video content that satisfies the linking condition of the video content, and the type result corresponding to the video is generated.
在一些实施例中,预处理单元,进一步被配置成:响应于得到处理后视频,基于类型结果,确定处理后视频与同一类型结果的视频之间的相关值,并将设置有类型结果、相关值的处理后视频存入视频库。In some embodiments, the preprocessing unit is further configured to: in response to obtaining the processed video, based on the type result, determine a correlation value between the processed video and a video of the same type result, and set the type result, correlation value The processed video of the value is stored in the video library.
在一些实施例中,该装置还包括:发送单元,被配置成向终端发送视频流;分析单元,被配置成响应于接收到用户对视频流的交互请求,分析交互请求,得到用户的视频喜好;更新单元,被配置成基于用户的视频喜好,更新视频库中每个处理后视频对应的推荐值。In some embodiments, the apparatus further includes: a sending unit, configured to send a video stream to the terminal; an analyzing unit, configured to, in response to receiving a user's interactive request for the video stream, analyze the interactive request to obtain the user's video preference ; The updating unit is configured to update the recommendation value corresponding to each processed video in the video library based on the user's video preference.
在一些实施例中,交互请求包括跳过当前处理后视频;以及更新单元,进一步被配置成:减小当前处理后视频和与当前处理后视频相关的处理后视频的推荐值。In some embodiments, the interaction request includes skipping the current processed video; and the updating unit further configured to: decrease the recommendation value of the current processed video and processed videos related to the current processed video.
在一些实施例中,交互请求包括观看当前处理后视频的时长超过预设阈值;以及更新单元,进一步被配置成:增大当前处理后视频和与当前处理后视频相关的处理后视频的推荐值。In some embodiments, the interaction request includes viewing the current processed video for a duration exceeding a preset threshold; and the updating unit, further configured to: increase the recommendation value of the current processed video and the processed video related to the currently processed video .
在一些实施例中,该装置还包括:确定单元,被配置成响应于确定用户观看当前处理后视频的时长超过预设阈值,确定当前处理后视频的内容数据;生成定单元,进一步被配置成基于当前处理后视频的内容数据,从视频库中选取与当前处理后视频的内容数据相关的多个处理后视频进行视频拼接,生成与当前处理后视频的内容数据对应的兴趣视频流。In some embodiments, the apparatus further includes: a determining unit configured to determine the content data of the currently processed video in response to determining that the duration of viewing the currently processed video by the user exceeds a preset threshold; the generating unit is further configured to: Based on the content data of the currently processed video, multiple processed videos related to the content data of the currently processed video are selected from the video library for video splicing, and an interesting video stream corresponding to the content data of the currently processed video is generated.
第四方面,本公开的实施例提供了一种播放视频流的装置,该装置包括:获取单元,被配置成响应于接收到用户的开启请求,获取如第一方面中任一实现方式生成的视频流;播放单元,被配置成依次播放视频流中的处理后视频。In a fourth aspect, an embodiment of the present disclosure provides an apparatus for playing a video stream, the apparatus includes: an obtaining unit, configured to, in response to receiving a user's turn-on request, obtain the video stream generated by any of the implementations of the first aspect. A video stream; a playing unit configured to play the processed videos in the video stream in sequence.
在一些实施例中,视频流包括多个类别的视频流;以及播放单元,进一步被配置成:播放当前视频流中的当前处理后视频,并呈现当前视频流的类别标识和与当前处理后视频对应的查看按键。In some embodiments, the video stream includes a plurality of categories of video streams; and a playback unit is further configured to: play the currently processed video in the current video stream, and present the category identifier of the current video stream and the current processed video corresponding view button.
在一些实施例中,播放单元,进一步被配置成:响应于接收到用户对当前视频流的切换请求,播放当前视频流的下一个类别的视频流。In some embodiments, the playing unit is further configured to: in response to receiving a user's switching request for the current video stream, play a video stream of the next category of the current video stream.
在一些实施例中,播放单元,进一步被配置成:响应于接收到用户对当前处理后视频的切换请求,播放当前视频流中当前处理后视频的下一个处理后视频。In some embodiments, the playing unit is further configured to: in response to receiving the user's switching request for the current processed video, play the next processed video of the current processed video in the current video stream.
在一些实施例中,播放单元,进一步被配置成:响应于接收到用户对当前处理后视频的查看请求,播放与当前处理后视频相关的处理后视频或与当前处理后视频对应的视频内容。In some embodiments, the playing unit is further configured to: in response to receiving the user's viewing request for the currently processed video, play processed video related to the currently processed video or video content corresponding to the currently processed video.
在一些实施例中,播放单元,进一步被配置成:响应于接收到用户的搜索请求,播放与搜索请求对应的处理后视频或与处理后视频对应的视频内容。In some embodiments, the playing unit is further configured to: in response to receiving the search request from the user, play the processed video corresponding to the search request or the video content corresponding to the processed video.
在一些实施例中,获取单元,进一步被配置成:响应于检测到新用户,获取与新用户对应的如第一方面中任一实现方式生成的新的视频流;播放单元,进一步被配置成:依次播放新的视频流中的处理后视频。In some embodiments, the obtaining unit is further configured to: in response to detecting the new user, obtain a new video stream corresponding to the new user and generated as in any implementation manner of the first aspect; the playing unit is further configured to : Play the processed videos in the new video stream in sequence.
第五方面,本申请提供了一种电子设备,电子设备/终端/服务器,包括一个或多个处理器;存储装置,其上存储有一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第一方面或第二方面中任一实现方式描述的方法。In a fifth aspect, the present application provides an electronic device, an electronic device/terminal/server, comprising one or more processors; a storage device having one or more programs stored thereon, when the one or more programs are stored by one or more A plurality of processors execute such that one or more processors implement a method as described in any implementation of the first aspect or the second aspect.
第六方面,本申请提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面或第二方面中任一实现方式描述的方法。In a sixth aspect, the present application provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, implements the method described in any implementation manner of the first aspect or the second aspect.
本公开的实施例提供的生成、播放视频流的方法和装置,首先获取视频,然后对视频进行视频预处理,并将得到的处理后视频存入视频库,最后基于预设的视频拼接条件,从视频库中选取满足预设的视频拼接条件的多个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流,能够对获取的视频进行视频预处理,使得处理后视频能够符合视频处理要求,提高了视频的可用性,同时能够整合不同视频,把不同视频拼接成视频流,使得视频流能够同时包括多种类型、多种条件的视频,提高了视频流的多样性,以及能够将得到的视频流推送给用户,能够满足用户对视频的不同需求。The method and device for generating and playing a video stream provided by the embodiments of the present disclosure first acquire the video, then perform video preprocessing on the video, store the obtained processed video in the video library, and finally, based on the preset video splicing conditions, Select multiple processed videos that meet the preset video splicing conditions from the video library for video splicing, generate a video stream corresponding to the preset video splicing conditions, and perform video preprocessing on the acquired videos, so that the processed videos can be It meets the requirements of video processing, improves the usability of the video, and can integrate different videos, splicing different videos into a video stream, so that the video stream can include videos of various types and conditions at the same time, which improves the diversity of video streams, and The obtained video stream can be pushed to the user, which can meet the different needs of the user for video.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本公开的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present disclosure will become more apparent upon reading the detailed description of non-limiting embodiments taken with reference to the following drawings:
图1示出了本公开的一些实施例可以应用于其中的示例性系统架构图;FIG. 1 shows an exemplary system architecture diagram in which some embodiments of the present disclosure may be applied;
图2示出了本公开的生成视频流的方法的一个实施例的流程图;FIG. 2 shows a flowchart of one embodiment of the method for generating a video stream of the present disclosure;
图3示出了本公开的生成视频流的方法的一个应用场景的示意图;3 shows a schematic diagram of an application scenario of the method for generating a video stream of the present disclosure;
图4示出了本公开的得到视频对应的类型结果的一个实施例的流程图;FIG. 4 shows a flow chart of an embodiment of the present disclosure for obtaining a type result corresponding to a video;
图5示出了本公开的更新视频库中每个处理后视频对应的推荐值的一个实施例的流程图;5 shows a flowchart of an embodiment of the present disclosure for updating the recommended value corresponding to each processed video in the video library;
图6示出了本公开的生成兴趣视频流的一个实施例的流程图;FIG. 6 shows a flow chart of one embodiment of generating a video stream of interest of the present disclosure;
图7示出了本公开的播放视频流的方法的一个实施例的流程图;FIG. 7 shows a flowchart of an embodiment of the method for playing a video stream of the present disclosure;
图8示出了本公开的生成视频流的装置的一个实施例的结构示意图;FIG. 8 shows a schematic structural diagram of an embodiment of an apparatus for generating a video stream of the present disclosure;
图9示出了本公开的播放视频流的装置的一个实施例的结构示意图;FIG. 9 shows a schematic structural diagram of an embodiment of an apparatus for playing a video stream of the present disclosure;
图10示出了适于用来实现本公开的实施例的电子设备的结构示意图。FIG. 10 shows a schematic structural diagram of an electronic device suitable for implementing embodiments of the present disclosure.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本公开,而非对本公开的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关本公开相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure, but not to limit the present disclosure. In addition, it should be noted that, for the convenience of description, only the parts related to the present disclosure are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
图1示出了可以应用本申请的生成、播放视频流的方法或生成、播放视频流的装置的示例性架构100。FIG. 1 shows an
如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , the
终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如视频播放类应用、网页浏览器应用、购物类应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件、文本编辑类应用、视频直播类应用等。The
终端设备101、102、103可以是硬件,也可以是软件。当终端设备101、102、103为硬件时,可以是具有显示屏并且支持音视频传输的各种电子设备,包括但不限于智能电视、智能手机、平板电脑、膝上型便携计算机和台式计算机等等。当终端设备101、102、103为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务的软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。The
终端设备101、102、103可以是具有播放功能的智能电视,终端设备101、102、103能够接收到用户的开启请求,然后获取需要播放的视频流,该视频流中包括顺序排列的多个处理后视频。终端设备101、102、103接收到用户的开启请求后,能够立即通过屏幕为用户依次播放视频流中包括的多个处理后视频。终端设备101、102、103在为用户播放视频流中包括的多个处理后视频时,可以接收到用户基于当前处理后视频的交互请求,该交互请求可以包括以下任意一项:对当前视频流的切换请求、对当前处理后视频的切换请求、对当前处理后视频的查看请求、搜索请求等等。终端设备101、102、103能够基于用户的交互请求,获取并播放与该交互请求对应的播放数据,例如,当交互请求为对当前视频流的切换请求时,终端设备101、102、103切换当前视频流并播放下一类别的视频流。The
服务器105可以是提供各种服务的服务器,例如为终端设备101、102、103上播放应用提供支持的后台服务器。后台服务器可以获取视频,然后对视频进行视频预处理,并将得到的处理后视频存入视频库中,该视频库中可以存储有多种类型、多种时长的处理后视频,最后基于预设的视频拼接条件,从该视频库中选取满足视频拼接条件的多个处理后视频进行视频拼接,生成对应的视频流,并将该视频流推送给终端设备101、102、103。The
需要说明的是,服务器可以是硬件,也可以是软件。当服务器为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务的软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。It should be noted that the server may be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or can be implemented as a single server. When the server is software, it can be implemented as a plurality of software or software modules (for example, software or software modules for providing distributed services), or can be implemented as a single software or software module. There is no specific limitation here.
需要说明的是,本公开的实施例所提供的生成视频流的方法由服务器105来执行,播放视频流的方法由终端设备101、102、103来执行。相应地,生成视频流的装置设置于服务器105中,播放视频流的装置设置于终端设备101、102、103中。此外,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。本申请对此不做具体限定。It should be noted that the method for generating a video stream provided by the embodiments of the present disclosure is performed by the
继续参考图2,示出了根据本公开的生成视频流的方法的一个实施例的流程200。该生成视频流的方法,可以包括以下步骤:With continued reference to FIG. 2, a
步骤210,获取视频。
在本步骤中,生成视频流的方法的执行主体(例如图1所示的服务器105)可以通过网络实时抓取至少一个视频,该视频可以是网路视频资源内容,视频资源内容可以来源于各大视频网站,新闻媒体网站,网络电视等等。上述执行主体在抓取视频资源内容时可以采取切分抓取的方式,即将网路视频资源内容按照内容的不同对该视频资源进行切分,得到切分后的独立视频资源,然后抓取每个切分后的独立视频资源。例如,某一新闻媒体网站中的新闻视频流包括新闻A、新闻B、新闻C、新闻D,上述执行主体可以将该新闻视频流根据新闻内容进行切分,得到切分后的独立视频新闻A,独立视频新闻B,独立视频新闻C,独立视频新闻D,然后上述执行主体分别抓取独立视频新闻A,独立视频新闻B,独立视频新闻C,独立视频新闻D。In this step, the executive body of the method for generating a video stream (for example, the
步骤220,对视频进行视频预处理,并将得到的处理后视频存入视频库。In
在本步骤中,上述执行主体可以获取到视频后,对获取到的视频执行视频预处理,得到处理后视频,其中,视频预处理用于对视频进行视频分类、视频裁剪的处理,得到符合要求的处理后视频,该视频预处理可以包括对获取到的视频进行类型分类,还可以包括对获取到的视频进行视频裁剪处理。然后上述执行主体将得到的处理后视频存入视频库,该视频库中存储有多个处理后视频。In this step, after obtaining the video, the above-mentioned execution body may perform video preprocessing on the obtained video to obtain a processed video, wherein the video preprocessing is used to perform video classification and video cropping processing on the video, and obtain a video that meets the requirements. The processed video, the video preprocessing may include classifying the type of the obtained video, and may also include performing video cropping processing on the obtained video. Then the above-mentioned executive body stores the obtained processed video into a video library, where a plurality of processed videos are stored.
在本实施例的一些可选的实现方式中,上述执行主体可以基于以下步骤来实现对视频的视频预处理:In some optional implementations of this embodiment, the above-mentioned execution body may implement video preprocessing on the video based on the following steps:
第一步,对视频进行类型分类,得到视频对应的类型结果。The first step is to classify the type of the video to obtain the type result corresponding to the video.
在本步骤中,上述执行主体获取到视频后,确定该视频的内容,并根据该视频的内容对视频进行类型分类,得到视频对应的类型结果,该视频的类型结果可以用于标识视频的类型,可以包括新闻类、体育类、影视类、广告类、综艺类等等,其中,新闻类视频可以包括广电、网络电视、自媒体等新闻;体育类视频可以包括精彩集锦、体育快报、经典镜头等各类体育视频;影视剧类视频可以包括各大视频网站电影预告、电视剧节选、精彩片段等;广告类视频可以包括各大视频网站片头广告、广电广告、电视销售等。In this step, after the above-mentioned execution body obtains the video, it determines the content of the video, and classifies the video according to the content of the video to obtain a type result corresponding to the video, and the type result of the video can be used to identify the type of the video , which can include news, sports, film and television, advertisements, variety shows, etc. Among them, news videos can include news such as radio and television, Internet TV, and self-media; sports videos can include highlights, sports bulletins, and classic shots. and other sports videos; film and television drama videos can include movie previews, TV drama excerpts, highlights, etc. of major video websites; advertising videos can include pre-title ads, radio and television advertisements, TV sales, etc. of major video websites.
作为示例,上述执行主体获取到视频后,对该视频进行内容提取,提取到的视频内容包括“足球”等,可以根据该“足球”视频内容,确定该视频属于体育类视频,则得到该视频对应的类型结果为体育类。As an example, after the above-mentioned execution body obtains the video, it extracts the content of the video, and the extracted video content includes "soccer" and so on. According to the content of the "football" video, it can be determined that the video belongs to a sports video, and then the video is obtained. The corresponding type result is Sports.
第二步,基于与类型结果对应的预设时长范围,对视频进行视频裁剪处理,得到处理后视频,并将设置有类型结果的处理后视频存入视频库。The second step is to perform video cropping processing on the video based on the preset duration range corresponding to the type result to obtain the processed video, and store the processed video with the type result set in the video library.
在本步骤中,上述执行主体获取到视频对应的类型结果后,可以进一步获取与该类型结果对应的预设时长范围,其中,每种类型结果对应不同的视频时长范围,即每种类型结果的视频会对应一个时长阈值范围T1-T2,当视频的时长小于T1时,则该视频不被采纳;当视频的时长大于T2时,则该视频会被裁剪到阈值范围内。每种类型结果对应的时长范围可以如下表所示:In this step, after obtaining the type result corresponding to the video, the above-mentioned execution body can further obtain the preset duration range corresponding to the type result, wherein each type of result corresponds to a different video duration range, that is, the length of each type of result The video will correspond to a duration threshold range T1-T2. When the duration of the video is less than T1, the video will not be accepted; when the duration of the video is greater than T2, the video will be cropped within the threshold range. The time range corresponding to each type of result can be shown in the following table:
然后上述执行主体获取到与类型结果对应的预设时长范围后,根据该预设时长范围,对视频进行视频裁剪处理,得到符合时长范围的处理后视频,其中,该视频裁剪处理可以包括对视频内的广告内容裁剪、裁剪冗余对话、裁剪重复画面等,也可以采用适当的快进,对视频时长进行压缩来实现视频裁剪处理。最后为得到的处理后视频配置对应的类型结果,将设置有类型结果的处理后视频存入视频库中。Then, after obtaining the preset duration range corresponding to the type result, the execution subject performs video trimming processing on the video according to the preset duration range to obtain a processed video that meets the duration range, wherein the video trimming processing may include trimming the video The video clipping process can also be achieved by using appropriate fast-forward to compress the video duration by clipping the content of advertisements, clipping redundant dialogues, clipping repeated pictures, etc. Finally, configure the corresponding type result for the obtained processed video, and store the processed video with the type result in the video library.
作为示例,上述执行主体确定视频的类型结果为体育类,通过在上述表中获取到体育类对应的时长范围为30s-5min,则获取该视频的视频时长为6分钟,上述执行主体对该视频内的视频内容进行分析,判断该视频内是否包括广告内容,若包括广告内容,则将广告内容进行裁剪;判断该视频内是否包括冗余对话,若包括冗余对话,则将冗余对话进行裁剪;判断该视频内是否包括重复画面,若包括重复画面,则将重复画面进行裁剪;对该视频进行裁剪后,获取裁剪后的视频的时长,确定裁剪后的视频的时长是否在30s-5min内,若在30s-5min内,则将裁减后的视频作为处理后视频,并为该处理后视频配置类型结果:体育类,将设置为体育类的处理后视频存入视频库中;若仍大于5min,则进一步对裁剪后的视频进行适当快进,以得到符合时长范围的处理后视频。As an example, the above-mentioned execution body determines that the type of the video is a sports category. By obtaining from the above table that the corresponding duration range of the sports category is 30s-5min, the obtained video duration is 6 minutes. Analyze the video content in the video to determine whether the video contains advertising content, and if it includes advertising content, then trim the advertising content; determine whether the video contains redundant dialogues, and if it includes redundant dialogues, the redundant dialogues will be processed. Cropping; determine whether the video contains repeated pictures, if it does, the repeated pictures will be cropped; after the video is cropped, the duration of the cropped video is obtained, and it is determined whether the duration of the cropped video is within 30s-5min If it is within 30s-5min, the cropped video will be regarded as the processed video, and the type result of the processed video will be configured: Sports, and the processed video set as sports will be stored in the video library; If it is greater than 5 minutes, the cropped video is further appropriately fast-forwarded to obtain a processed video that meets the duration range.
在本实现方式中,通过对视频进行类型分类,得到视频的类型结果,并进一步根据视频的类型结果对视频进行裁剪,得到处理后视频,能够使得视频裁剪到合适的时长长度,并且能够得到不同类型对应的不同时长的处理后视频,使得每种类型的视频能够保留对应的内容,提高了视频预处理的灵活性,提高了处理后视频的多样性。In this implementation manner, the type result of the video is obtained by classifying the type of the video, and the video is further trimmed according to the type result of the video to obtain the processed video, so that the video can be trimmed to an appropriate duration, and different Different lengths of processed videos corresponding to the types enable each type of video to retain the corresponding content, which improves the flexibility of video preprocessing and improves the diversity of processed videos.
步骤230,基于预设的视频拼接条件,从视频库中选取满足预设的视频拼接条件的多个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流。Step 230: Based on the preset video splicing conditions, select multiple processed videos that satisfy the preset video splicing conditions from the video library for video splicing, and generate a video stream corresponding to the preset video splicing conditions.
其中,预设的视频拼接条件用于在视频库中筛选处理后视频即可以选取出满足视频拼接条件的多个处理后视频进行视频拼接。该预设的视频拼接条件可以包括选取同类型的处理后视频,还可以包括选取不同类型的处理后视频,还可以包括选取用户喜欢的处理后视频,还可以包括基于不同需求选取任意处理后视频等等,本申请对此不做具体限定。The preset video splicing conditions are used to filter the processed videos in the video library, that is, multiple processed videos that meet the video splicing conditions can be selected for video splicing. The preset video splicing conditions may include selecting processed videos of the same type, selecting different types of processed videos, selecting processed videos that the user likes, or selecting any processed videos based on different requirements Etc., this application does not specifically limit this.
在本步骤中,上述执行主体确定预设的视频拼接条件,然后根据还视频拼接条件,在视频库包括的处理后视频中进行选取,可以分别将每个处理后视频和视频拼接条件进行比较,判断该处理后视频是否满足视频拼接条件,选取出满足预设的视频拼接条件的多个处理后视频。然后将选取出的多个处理后视频进行视频拼接,例如,将多个处理后视频顺序拼接在一起,生成与预设的视频拼接条件对应的视频流。In this step, the above-mentioned executive body determines the preset video splicing conditions, and then selects from the processed videos included in the video library according to the returned video splicing conditions, and each processed video and the video splicing conditions can be compared respectively, It is judged whether the processed video satisfies the video splicing condition, and a plurality of processed videos that satisfy the preset video splicing condition are selected. Then, video splicing is performed on the selected multiple processed videos, for example, the multiple processed videos are sequentially spliced together to generate a video stream corresponding to a preset video splicing condition.
可选地,在进行视频拼接的过程中,上述执行主体还可以将广告内容穿插进去,以生成包括多个处理后视频和广告内容的视频流,提高视频流的多样性。Optionally, in the process of video splicing, the above-mentioned executive body may also insert advertisement content to generate a video stream including multiple processed videos and advertisement content, thereby improving the diversity of video streams.
可选地,视频流的长度可以是一个变化值,上述执行主体可以选择预设数量个满足预设的视频拼接条件的处理后视频进行视频拼接,该预设数量可以根据用户的观看时长进行调整,例如上述执行主体接收到采集的用户观看视频流的时长越来越长,则该预设数量调整变大,如从3个调整为6个。则上述执行主体可以不断调整选取的满足视频拼接条件的处理后视频的数量,从而不断调整生成的视频流的时长,以使得观看该视频流的用户可以一直有能够观看的内容。Optionally, the length of the video stream can be a change value, and the above-mentioned execution body can select a preset number of processed videos that meet the preset video splicing conditions for video splicing, and the preset number can be adjusted according to the user's viewing duration. For example, when the above-mentioned execution body receives the collected video streams for longer and longer durations, the preset number is adjusted to be larger, for example, from 3 to 6. The above-mentioned executive body can continuously adjust the number of selected processed videos that meet the video splicing conditions, thereby continuously adjusting the duration of the generated video stream, so that users who watch the video stream can always have content that can be viewed.
作为一个可选实现方式,上述执行主体确定预设的视频拼接条件包括选取同一类型结果的处理后视频;以及上述执行主体可以基于视频库中处理后视频的类型结果,从视频库中选取同一类型结果的多个处理后视频进行视频拼接,生成与类型结果对应的类型视频流。As an optional implementation, the above-mentioned execution body determines the preset video splicing conditions to include selecting the processed video of the same type of result; and the above-mentioned execution body can select the same type of result from the video library based on the type of result of the processed video in the video library. Video splicing is performed on the multiple processed videos of the result, and a type video stream corresponding to the type result is generated.
具体地,上述执行主体在视频库中获取每个处理后视频的类型结果,然后将同一类型结果的多个处理后视频进行顺序拼接,得到类型视频流,该类型视频流与类型结果一一对应,例如,类型视频流可以包括新闻类视频流、体育类视频流、影视类视频流、综艺类视频流等等。Specifically, the above-mentioned execution body obtains the type result of each processed video in the video library, and then sequentially splices multiple processed videos of the same type result to obtain a type video stream, which corresponds to the type result one-to-one. For example, the types of video streams may include news video streams, sports video streams, film and television video streams, variety show video streams, and the like.
作为示例,上述执行主体在视频库中选取新闻类的处理后视频A、处理后视频B、处理后视频C、处理后视频D,然后将处理后视频A、处理后视频B、处理后视频C、处理后视频D进行顺序拼接,得到新闻类视频流。As an example, the above-mentioned execution subject selects the processed video A, processed video B, processed video C, and processed video D of the news category in the video library, and then selects the processed video A, processed video B, and processed video C. . After processing, video D is sequentially spliced to obtain a news video stream.
上述执行主体在视频库中选取体育类的处理后视频E、处理后视频F、处理后视频G,然后将处理后视频E、处理后视频F、处理后视频G进行顺序拼接,得到体育类视频流。The above-mentioned executive body selects the processed video E, the processed video F, and the processed video G of the sports class in the video library, and then sequentially splices the processed video E, the processed video F, and the processed video G to obtain a sports video. flow.
上述执行主体在视频库中选取综艺类的处理后视频H、处理后视频I、处理后视频J,然后将处理后视频H、处理后视频I、处理后视频J进行顺序拼接,得到综艺类视频流。The above-mentioned executive body selects the processed video H, the processed video I, and the processed video J of the variety show in the video library, and then sequentially splices the processed video H, the processed video I, and the processed video J to obtain a variety show video. flow.
作为一个可选实现方式,上述执行主体确定预设的视频拼接条件包括选取不同类型结果的处理后视频;以及上述执行主体可以基于视频库中处理后视频的类型结果,从视频库中选取多个不同类型结果的多个处理后视频进行视频拼接,生成任意视频流。As an optional implementation, the above-mentioned execution body determines the preset video splicing conditions including selecting processed videos of different types of results; and the above-mentioned execution body can select multiple types of results from the video library based on the type results of the processed videos in the video library. Video splicing is performed on multiple processed videos of different types of results to generate arbitrary video streams.
具体地,上述执行主体在视频库中获取每个处理后视频的类型结果,然后将不同类型结果的多个处理后视频进行顺序拼接,得到任意视频流,该任意视频流中可以包括多种类型结果的处理后视频,例如,任意视频流可以包括新闻类处理后视频、体育类处理后视频、影视类处理后视频等等。Specifically, the above-mentioned execution body obtains the type result of each processed video in the video library, and then sequentially splices multiple processed videos of different types of results to obtain an arbitrary video stream, which may include multiple types of video streams. The resulting processed video, for example, any video stream may include a news-type processed video, a sports-type processed video, a movie-type processed video, and the like.
作为示例,上述执行主体在视频库中选取新闻类的处理后视频A和处理后视频B、体育类的处理后视频C、影视类的处理后视频D,然后将新闻类的处理后视频A、新闻类的处理后视频B、体育类的处理后视频C、影视类的处理后视频D进行顺序拼接,得到任意视频流。As an example, the above-mentioned execution subject selects the processed video A and processed video B of the news category, the processed video C of the sports category, and the processed video D of the film and television category in the video library, and then the processed video A, The processed video B of the news category, the processed video C of the sports category, and the processed video D of the film and television category are sequentially spliced to obtain an arbitrary video stream.
作为一个可选实现方式,上述执行主体确定预设的视频拼接条件包括选取与用户视频喜好对应的处理后视频;以及上述执行主体可以获取用户的视频喜好;从视频库中选取与用户的视频喜好对应的多个处理后视频进行视频拼接,生成推荐视频流。As an optional implementation, the above-mentioned execution body determines the preset video splicing conditions including selecting the processed video corresponding to the user's video preference; and the above-mentioned execution body can obtain the user's video preference; Video splicing is performed on the corresponding multiple processed videos to generate a recommended video stream.
具体地,上述执行主体可以获取到用户的视频喜好,例如,用户喜欢观看体育视频和综艺视频,则基于用户的视频喜好在视频库中获取与该视频喜好对应的多个处理后视频,然后将与该视频喜好对应的多个处理后视频进行顺序拼接,得到推荐视频流,该推荐视频流中可以包括多种类型结果的处理后视频且这些类型结果的处理后视频是用户喜欢观看的,例如,推荐视频流可以包括用户喜欢的体育类处理后视频和综艺类处理后视频等等。Specifically, the above-mentioned execution body can obtain the user's video preference. For example, if the user likes to watch sports videos and variety show videos, a plurality of processed videos corresponding to the video preference are obtained from the video library based on the user's video preference, and then the Multiple processed videos corresponding to the video preferences are sequentially spliced to obtain a recommended video stream. The recommended video stream may include processed videos of various types of results, and the processed videos of these types of results are the ones that the user likes to watch, for example , the recommended video stream may include processed sports videos and variety show videos that the user likes, and so on.
作为示例,上述执行主体确定出用户的视频喜好为:喜欢观看体育视频和综艺视频,然后在视频库中选取体育类的处理后视频A和处理后视频B、综艺类的处理后视频C和处理后视频D,然后将体育类的处理后视频A、体育类的处理后视频B、综艺类的处理后视频C、综艺类的处理后视频D进行顺序拼接,得到推荐视频流。As an example, the above-mentioned execution body determines that the user's video preference is: like watching sports videos and variety show videos, and then selects the processed video A and processed video B of sports, and the processed video C of variety shows and processed video from the video library. After video D, the processed video A of sports, the processed video B of sports, the processed video C of variety show, and the processed video D of variety show are sequentially spliced to obtain a recommended video stream.
在本实现方式中,通过设置不同的视频拼接条件,获取到不同的视频流,提高了视频流的多样性,能够满足用户的不同需求。In this implementation manner, by setting different video splicing conditions, different video streams are acquired, which improves the diversity of video streams and can meet different needs of users.
继续参见图3,图3是根据本实施例的生成视频流的方法的应用场景的一个示意图。该方法可以应用于图3的应用场景中,服务器301从各个网站中获取视频,然后对获取到的视频进行视频预处理,得到处理后视频,该处理后视频可以包括对应的类型,并将该处理后视频存入视频库中。服务器301确定需要选取新闻类型的多个处理后视频,则在视频库中选取新闻类型的多个处理后视频进行视频拼接,可以将新闻类型的多个处理后视频顺序拼接,生成新闻类的视频流。Continue to refer to FIG. 3 , which is a schematic diagram of an application scenario of the method for generating a video stream according to this embodiment. This method can be applied to the application scenario of FIG. 3 . The
本公开的上述实施例提供的方法,首先获取视频,然后对视频进行视频预处理,并将得到的处理后视频存入视频库,最后基于预设的视频拼接条件,从视频库中选取满足预设的视频拼接条件的多个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流,能够对获取的视频进行视频预处理,使得处理后视频能够符合视频处理要求,提高了视频的可用性,同时能够整合不同视频,把不同视频拼接成视频流,使得视频流能够同时包括多种类型、多种条件的视频,提高了视频流的多样性,以及能够将得到的视频流推送给用户,能够满足用户对视频的不同需求。In the method provided by the above-mentioned embodiments of the present disclosure, the video is first acquired, then the video is preprocessed, and the obtained processed video is stored in the video library, and finally, based on the preset video splicing conditions, the video library is selected from the video library that satisfies the preset requirements. Video splicing is performed on multiple processed videos of the preset video splicing conditions, and a video stream corresponding to the preset video splicing conditions can be generated, which can perform video preprocessing on the acquired video, so that the processed video can meet the video processing requirements, and improve the performance of the video. The availability of video, at the same time, it can integrate different videos and splicing different videos into a video stream, so that the video stream can include videos of various types and conditions at the same time, which improves the diversity of video streams, and can push the obtained video streams. For users, it can meet the different needs of users for video.
在本实施例的一些可选的实现方式中,上述执行主体还可以基于以下步骤实现图2中步骤220,对视频进行视频预处理,并将得到的处理后视频存入视频库:响应于得到处理后视频,确定处理后视频对应的推荐值,并将设置有类型结果、推荐值的处理后视频存入视频库。In some optional implementations of this embodiment, the above-mentioned execution body may also implement
具体地,上述执行主体根据视频的类型结果对视频进行视频裁剪处理得到处理后视频后,可以根据该处理后视频所属原视频的基础信息对该处理后视频进行评分,其中,该基础信息可以包括原视频在所在网站的发布时间、观看次数,用户评分等等,并将得到的多个评分进行加权处理,将加权结果确定为处理后视频对应的推荐值。例如,可以为每个评分设置对应的权重值,然后得到处理后视频的多个评分后,分别将每个评分与对应权重的乘积相加,得到该处理后视频对应的推荐值。上述执行主体为处理后视频配置对应的推荐值、对应的类型结果,然后将设置有类型结果、推荐值的处理后视频存入视频库。Specifically, after the above-mentioned execution body performs video cropping processing on the video according to the type result of the video to obtain the processed video, the processed video can be scored according to the basic information of the original video to which the processed video belongs, wherein the basic information can include: The release time, number of views, user ratings, etc. of the original video on the website where it is located, and weighting the obtained multiple ratings, and determining the weighted result as the recommended value corresponding to the processed video. For example, a corresponding weight value can be set for each score, and after obtaining multiple scores of the processed video, the product of each score and the corresponding weight can be added to obtain the recommendation value corresponding to the processed video. The above-mentioned execution body configures the corresponding recommendation value and the corresponding type result for the processed video, and then stores the processed video with the type result and the recommendation value set in the video library.
可选地,上述执行主体可以基于以下步骤实现生成与预设的视频拼接条件对应的视频流:Optionally, the above-mentioned execution body may generate a video stream corresponding to a preset video splicing condition based on the following steps:
第一步,基于预设的视频拼接条件和视频库中每个处理后视频对应的推荐值,从视频库中选取满足预设的视频拼接条件、且推荐值满足预设推荐条件的多个处理后视频。In the first step, based on the preset video splicing conditions and the recommendation value corresponding to each processed video in the video library, select from the video library a plurality of processes that satisfy the preset video splicing conditions and whose recommended values satisfy the preset recommendation conditions post video.
在本步骤中,上述执行主体获取到处理后视频的推荐值后,基于预设的视频拼接条件,在视频库中选取满足预设的视频拼接条件的多个处理后视频,并对选取的满足预设的视频拼接条件的多个处理后视频,判断每个处理后视频的推荐值是否预设推荐条件,该预设推荐条件用于筛选处理后视频,可以包括在同一类型结果中根据处理后视频的推荐值对处理后视频进行排序的排序结果、选取在同一类型结果中处理后视频的推荐值最高的处理后视频或推荐值排在前N个的处理后视频,还可以包括在满足预设的视频拼接条件的多个处理后视频中选取推荐值排在前N个的处理后视频等等。上述执行主体通过对选取的满足预设的视频拼接条件的多个处理后视频进行判断,得到既满足预设的视频拼接条件,又满足预设推荐条件的多个处理后视频。In this step, after obtaining the recommended value of the processed video, the execution subject selects, based on the preset video splicing conditions, a plurality of processed videos that satisfy the preset video splicing conditions from the video library, and evaluates the selected videos that satisfy the preset video splicing conditions. For multiple processed videos with preset video splicing conditions, determine whether the recommendation value of each processed video is a preset recommendation condition. The preset recommendation condition is used to filter the processed videos and can be included in the same type of results according to the The recommended value of the video is the sorting result of sorting the processed videos, selecting the processed video with the highest recommendation value of the processed video in the same type of results, or the processed video with the top N recommendation value, and can also include Among the multiple processed videos of the set video splicing conditions, the processed videos whose recommended values are ranked in the top N are selected, and so on. The above-mentioned execution body obtains a plurality of processed videos that satisfy both the preset video splicing conditions and the preset recommendation conditions by judging the selected multiple processed videos that satisfy the preset video splicing conditions.
作为示例,上述执行主体可以确定预设的视频拼接条件是选取同一类型结果的处理后视频,以及预设推荐条件是选取在同一类型结果中推荐值排在前3个的处理后视频。上述执行主体在视频库中选取均属于新闻类的处理后视频A、处理后视频B、处理后视频C、处理后视频D,并根据处理后视频A、处理后视频B、处理后视频C、处理后视频D的推荐值进行排序,确定出视频顺序为处理后视频D、处理后视频B、处理后视频A、处理后视频C,则确定出处理后视频D、处理后视频B、处理后视频A即为选取的多个处理后视频。As an example, the above-mentioned execution subject may determine that the preset video splicing condition is to select processed videos of the same type of results, and the preset recommendation condition is to select the processed videos with the top three recommended values in the same type of results. The above-mentioned executive body selects the processed video A, processed video B, processed video C, and processed video D all belonging to the news category in the video library, and according to the processed video A, processed video B, processed video C, The recommended values of the processed video D are sorted, and the sequence of the videos is determined to be the processed video D, the processed video B, the processed video A, and the processed video C, then the processed video D, the processed video B, and the processed video are determined. Video A is the selected multiple processed videos.
第二步,基于多个处理后视频中每个处理后视频对应的推荐值,依次将每个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流。In the second step, based on the recommendation value corresponding to each processed video in the plurality of processed videos, video splicing is performed on each processed video in sequence to generate a video stream corresponding to preset video splicing conditions.
在本步骤中,上述执行主体在选取出满足预设的视频拼接条件、且推荐值满足预设推荐条件的多个处理后视频后,根据多个处理后视频中每个处理后视频对应的推荐值,对多个处理后视频进行排序,根据多个处理后视频的排列顺序依次将每个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流。In this step, after selecting a plurality of processed videos that satisfy the preset video splicing conditions and the recommendation value satisfies the preset recommendation conditions, the above-mentioned execution body selects a plurality of processed videos according to the recommendation corresponding to each processed video in the plurality of processed videos. value, sort the multiple processed videos, and perform video splicing for each processed video in turn according to the arrangement order of the multiple processed videos to generate a video stream corresponding to the preset video splicing conditions.
作为示例,上述执行主体可以确定预设的视频拼接条件是选取不同类型结果的处理后视频,以及预设推荐条件是选取在同一类型结果中推荐值最高的处理后视频。上述执行主体可以根据上述预设推荐条件,对视频库中多个新闻类的处理后视频的推荐值进行比较,即可以分别将新闻类的处理后视频A的推荐值、新闻类的处理后视频B的推荐值、新闻类的处理后视频C的推荐值进行比较,确定出推荐值最大的处理后视频为新闻类的处理后视频A;上述执行主体可以根据上述预设推荐条件,对视频库中多个体育类的处理后视频的推荐值进行比较,即可以分别将体育类的处理后视频A的推荐值、体育类的处理后视频B的推荐值、体育类的处理后视频C的推荐值进行比较,确定出推荐值最大的处理后视频为体育类的处理后视频B;上述执行主体可以根据上述预设推荐条件,对视频库中多个影视类的处理后视频的推荐值进行比较,即可以分别将影视类的处理后视频A的推荐值、影视类的处理后视频B的推荐值、影视类的处理后视频C的推荐值进行比较,确定出推荐值最大的处理后视频为影视类的处理后视频C。然后上述执行主体根据处理后视频A、处理后视频B、处理后视频C的推荐值进行排序,确定出视频顺序为处理后视频B、处理后视频A、处理后视频C,则按照当前顺序依次将处理后视频B、处理后视频A、处理后视频C进行视频拼接,生成对应的视频流。As an example, the above executive body may determine that the preset video splicing condition is to select processed videos of different types of results, and the preset recommendation condition is to select the processed video with the highest recommendation value in the same type of results. The above-mentioned execution body can compare the recommended values of the processed videos of a plurality of news categories in the video library according to the above-mentioned preset recommendation conditions, that is, the recommended values of the processed video A of the news category and the processed videos of the news category can be respectively compared. The recommended value of B is compared with the recommended value of the processed video C of the news category, and it is determined that the processed video with the largest recommended value is the processed video A of the news category. The recommended values of the processed videos in the sports category are compared, that is, the recommended value of the processed video A of the sports category, the recommended value of the processed video B of the sports category, and the recommended value of the processed video C of the sports category can be compared respectively. The processed video with the largest recommended value is determined to be the processed video B of the sports category; the above-mentioned execution subject can compare the recommended values of the processed videos of multiple film and television categories in the video library according to the above preset recommendation conditions. , that is, the recommended value of the processed video A of the film and television category, the recommended value of the processed video B of the film and television category, and the recommended value of the processed video C of the film and television category can be compared respectively, and it is determined that the processed video with the largest recommended value is The processed video of the film and television category C. Then the above-mentioned executive body sorts the recommended values of the processed video A, the processed video B, and the processed video C, and determines that the video sequence is the processed video B, the processed video A, and the processed video C, and then follow the current order. Video splicing is performed on the processed video B, the processed video A, and the processed video C to generate a corresponding video stream.
作为示例,视频库中存储设置有类型结果、推荐值的处理后视频,如下表所示:As an example, the video library stores processed videos with type results and recommended values set, as shown in the following table:
上述执行主体可以根据推荐值的大小生成新闻类视频流:对新闻类的处理后视频A、新闻类的处理后视频B、新闻类的处理后视频C进行视频拼接生成新闻类视频流。The above-mentioned executive body may generate news video streams according to the size of the recommended value: video splicing is performed on the processed news video A, the processed news B, and the processed video C to generate news video streams.
上述执行主体还可以根据推荐值的大小生成体育类视频流:对体育的处理后视频B、体育类的处理后视频A、体育类的处理后视频C进行视频拼接生成体育类视频流。The above-mentioned execution body may also generate a sports video stream according to the size of the recommended value: perform video splicing on the processed video B of sports, the processed video A of sports, and the processed video C of sports to generate a sports video stream.
上述执行主体还可以根据推荐值的大小生成影视类视频流:对影视类的处理后视频C、影视类的处理后视频B、影视类的处理后视频A进行视频拼接生成影视类视频流。The above-mentioned execution body may also generate a film and television video stream according to the size of the recommended value: perform video splicing on the processed video C, the processed video B, and the processed video A of the film and television type to generate the film and television video stream.
上述执行主体还可以将各个类型结果的处理后视频推荐值的大小生成任意视频流:各类型结果的处理后视频根据推荐值的排序结果是体育类的处理后视频B、新闻类的处理后视频A、体育类的处理后视频A、新闻类的处理后视频B、体育类的处理后视频C、新闻类的处理后视频C、影视类的处理后视频C、影视类的处理后视频B、影视类的处理后视频A,则可以对上述排序结果进行视频拼接,生成任意视频流。The above-mentioned execution body can also generate any video stream according to the size of the processed video recommendation value of each type of result: the sorted result of the processed video of each type of result according to the recommended value is the processed video B of sports, and the processed video of news. A, processed video A of sports, processed video B of news, processed video C of sports, processed video C of news, processed video C of film and television, processed video B of film and television, For the processed video A of the film and television category, video splicing can be performed on the above sorting results to generate any video stream.
在本实现方式中,通过根据处理后视频的推荐值选取处理后视频进行视频拼接,使得生成的视频流在满足视频拼接条件的同时,提高了视频流中每个处理后视频的可推荐性。In this implementation manner, by selecting the processed video for video splicing according to the recommendation value of the processed video, the generated video stream satisfies the video splicing conditions and improves the recommendability of each processed video in the video stream.
在本实施例的一些可选的实现方式中,上述执行主体还可以基于以下步骤实现图2中步骤220,对视频进行视频预处理,并将得到的处理后视频存入视频库:响应于得到处理后视频,基于类型结果,确定处理后视频与同一类型结果的视频之间的相关值,并将设置有类型结果、相关值的处理后视频存入视频库。In some optional implementations of this embodiment, the above-mentioned execution body may also implement
具体地,上述执行主体根据视频的类型结果对视频进行视频裁剪处理得到处理后视频后,根据该处理后视频的类型结果,获取属于该类型结果的其他处理后视频,并确定出处理后视频与同一类型结果的视频之间的相关值,该相关值是动态变化的,可以用于表示在视频流中该处理后视频与上一个处理后视频的相关程度。然后上述执行主体为该处理后视频配置相关值,将设置有类型结果、相关值的处理后视频存入视频库。Specifically, after the above-mentioned execution body performs video cropping processing on the video according to the type result of the video to obtain the processed video, according to the type result of the processed video, other processed videos belonging to the type of result are obtained, and the processed video and the The correlation value between videos of the same type of result, the correlation value is dynamic and can be used to indicate the degree of correlation between the processed video and the previous processed video in the video stream. Then, the above-mentioned execution body configures the relevant value for the processed video, and stores the processed video with the type result and the relevant value in the video library.
可选地,上述执行主体可以根据该处理后视频所属原视频的基础信息对该处理后视频进行评分,其中,该基础信息包括原视频在所在网站的发布时间、观看次数,用户评分等等,还可以将处理后视频的相关值也作为评分,将得到的多个评分进行加权处理,将加权结果确定为处理后视频对应的推荐值。例如,处理后视频的每个评分和权重可以如下表所示:Optionally, the above-mentioned execution body can rate the processed video according to the basic information of the original video to which the processed video belongs, wherein the basic information includes the release time of the original video on the website where it is located, the number of views, user ratings, etc., The relevant value of the processed video may also be used as a score, and weighting processing is performed on the obtained scores, and the weighted result is determined as the recommended value corresponding to the processed video. For example, each rating and weight of the processed video can be shown in the following table:
上述执行主体可以确定,新闻A的推荐值可以按照如下方法计算得到:8*0.5+3*0.8+7*0.6+2*0.5+9*0.3=14.3;以及,体育A的推荐值可以按照如下方法计算得到:6*0.5+8*0.8+4*0.6+9*0.5+4*0.3=17.5;以及,影视A的推荐值可以按照如下方法计算得到:7*0.5+6*0.8+8*0.6+6*0.5+5*0.3=17.6;在进行视频拼接时,按照影视A、体育A、新闻A的排列顺序进行拼接生成视频流。The above executive body can determine that the recommended value of News A can be calculated as follows: 8*0.5+3*0.8+7*0.6+2*0.5+9*0.3=14.3; and, the recommended value of Sports A can be calculated as follows Calculated by the method: 6*0.5+8*0.8+4*0.6+9*0.5+4*0.3=17.5; and, the recommended value of Movie A can be calculated as follows: 7*0.5+6*0.8+8* 0.6+6*0.5+5*0.3=17.6; when performing video splicing, splicing is performed according to the order of video A, sports A, and news A to generate a video stream.
可选地,上述执行主体获取到新视频,对该新视频进行视频预处理得到新的处理后视频,可以判断该新的处理后视频与同类型结果的处理后视频的相关值,若视频库中没有与该新的处理后视频相关的处理后视频,则确定该新的处理后视频的推荐值为默认推荐值,该默认推荐值可以随机设置。若视频库中存在与该新的处理后视频相关的处理后视频,确定该新的处理后视频与每个相关的处理后视频的相关值,将相关值最大的处理后视频对应的推荐值作为该新的处理后视频的推荐值。Optionally, the above-mentioned execution body obtains a new video, performs video preprocessing on the new video to obtain a new processed video, and can determine the correlation value of the new processed video and the processed video of the same type of result, if the video library If there is no processed video related to the new processed video, it is determined that the recommended value of the new processed video is a default recommended value, and the default recommended value can be set randomly. If there is a processed video related to the new processed video in the video library, determine the correlation value between the new processed video and each related processed video, and use the recommended value corresponding to the processed video with the largest correlation value as the recommended value. Recommended value for this new processed video.
可选地,若新的处理后视频为既满足预设的视频拼接条件,又满足预设推荐条件的视频,判断该新的处理后视频的推荐值是否大于当前视频流中当前处理后视频,若该新的处理后视频的推荐值大于当前视频流中当前处理后视频,则将该新的处理后视频作为当前视频流中当前处理后视频的下一个视频。Optionally, if the new processed video is a video that satisfies both the preset video splicing conditions and the preset recommendation conditions, it is judged whether the recommendation value of the new processed video is greater than the currently processed video in the current video stream, If the recommended value of the new processed video is greater than the current processed video in the current video stream, the new processed video is regarded as the next video of the current processed video in the current video stream.
在本实施例的一些可选的实现方式中,参考图4,图4示出了得到视频对应的类型结果的方法流程400,该流程400,可以包括以下步骤:In some optional implementations of this embodiment, referring to FIG. 4 , FIG. 4 shows a
步骤410,对视频进行类型分类,得到视频对应的分类结果。Step 410: Classify the video by type to obtain a classification result corresponding to the video.
在本步骤中,上述执行主体在获取到视频后,可以进一步确定该视频的内容,并根据该视频的内容对视频进行类型分类,得到视频对应的分类结果,例如,可以包括新闻类、体育类、影视类、广告类等等。In this step, after acquiring the video, the above-mentioned execution body may further determine the content of the video, and classify the video according to the content of the video, and obtain the classification result corresponding to the video, for example, it may include news, sports, etc. , film and television, advertising, etc.
步骤420,基于与分类结果对应的视频内容链接条件,生成满足视频内容链接条件的视频内容链接。
在本步骤中,上述执行主体确定出视频的分类结果后,确定该分类结果对应的视频内容链接条件,每种分类结果对应不同的视频内容链接条件,该视频内容链接条件用于确定对应分类结果下的视频链接。In this step, after the above-mentioned execution body determines the classification result of the video, it determines the video content link condition corresponding to the classification result, each classification result corresponds to different video content link conditions, and the video content link condition is used to determine the corresponding classification result. video link below.
作为示例,对于新闻类的视频,从各类新闻视频中摘取新闻关键字,并根据新闻关键字确定出相似的新闻视频,然后将该相似的新闻视频生成相关链接。As an example, for news videos, news keywords are extracted from various news videos, and similar news videos are determined according to the news keywords, and then related links are generated for the similar news videos.
作为示例,对于体育类的视频,从各类体育视频中确定体育种类,球星名称等关键字,并按照体育种类,球星名称等关键字生成相关链接。As an example, for sports videos, keywords such as sports categories and names of players are determined from various sports videos, and related links are generated according to keywords such as sports categories and player names.
作为示例,对于影视类的视频,根据影视类的视频中的预告节选生成预告节选对应的正片链接,或者将类型相同的影视剧,或者按照影视明星生成相应的链接。As an example, for a video of the film and television category, a feature link corresponding to the trailer excerpt is generated according to the trailer excerpt in the video of the film and television category, or a corresponding link is generated according to a film and television drama of the same type, or according to a film and television star.
作为示例,对于广告类的视频,直接提供广告的入口链接。As an example, for an advertisement video, the entry link of the advertisement is directly provided.
步骤430,基于视频对应的分类结果和满足视频内容链接条件的视频内容链接,生成视频对应的类型结果。Step 430: Generate a type result corresponding to the video based on the classification result corresponding to the video and the video content link that satisfies the video content link condition.
在本步骤中,上述执行主体得到视频内容链接后,将视频对应的分类结果和满足视频内容链接条件的视频内容链接进行一一对应,可以将视频对应的分类结果和视频内容链接进行关联存储,作为成视频对应的类型结果。In this step, after the above-mentioned execution body obtains the video content link, a one-to-one correspondence is performed between the classification result corresponding to the video and the video content link that meets the video content link condition, and the classification result corresponding to the video and the video content link can be associated and stored. As a result of the type corresponding to the video.
在本实现方式中,进一步生成视频对应的视频内容链接,使得获取视频时也可以获取到与该视频对应的视频内容链接,能够使得用户了解更多相关内容。In this implementation manner, a video content link corresponding to the video is further generated, so that the video content link corresponding to the video can also be obtained when the video is obtained, so that the user can learn more related content.
在本实施例的一些可选的实现方式中,参考图5,图5示出了更新视频库中每个处理后视频对应的推荐值的方法流程500,该流程500,可以包括以下步骤:In some optional implementations of this embodiment, referring to FIG. 5 , FIG. 5 shows a
步骤510,向终端发送视频流。Step 510: Send the video stream to the terminal.
在本步骤中,上述执行主体生成视频流后,可以向终端发送视频流。In this step, after the above-mentioned execution body generates the video stream, it can send the video stream to the terminal.
步骤520,响应于接收到用户对视频流的交互请求,分析交互请求,得到用户的视频喜好。
在本步骤中,上述执行主体可以接收到终端发送的用户对视频流的交互请求,该交互请求可以表示用户对播放的当前处理后视频或当前视频流的操作请求,可以包括跳过当前处理后视频、切换当前视频流、观看当前处理后视频的时长超过预设阈值等等。上述执行主体根据该交互请求,对该交互请求进行分析,从而确定出用户的视频喜好。In this step, the above-mentioned execution body may receive the user's interaction request for the video stream sent by the terminal, and the interaction request may represent the user's operation request for the currently processed video or the current video stream being played, which may include skipping the currently processed video or the current video stream. video, switch the current video stream, watch the duration of the currently processed video exceeds a preset threshold, and so on. The above-mentioned execution body analyzes the interaction request according to the interaction request, so as to determine the video preference of the user.
作为示例,上述执行主体通过对交互请求进行分析,确定出用户执行了跳过新闻类视频,则确定出用户不喜欢观看新闻类视频。或者,上述执行主体通过对交互请求进行分析,确定出用户观看体育类视频的时长超过预设阈值,则确定出用户喜欢观看体育类视频。As an example, the above-mentioned execution body determines that the user executes skipping news videos by analyzing the interaction request, and then it is determined that the user does not like watching news videos. Alternatively, the above-mentioned execution entity determines that the time for the user to watch sports videos exceeds a preset threshold by analyzing the interaction request, and determines that the user likes to watch sports videos.
步骤530,基于用户的视频喜好,更新视频库中每个处理后视频对应的推荐值。Step 530: Based on the user's video preference, update the recommendation value corresponding to each processed video in the video library.
在本步骤中,上述执行主体确定出用户的视频喜好后,根据该视频喜好,调整与视频喜好对应的处理后视频的用户兴趣的评分,也调整其他处理后视频的用户兴趣的评分,从而更新视频库中每个处理后视频对应的推荐值。In this step, after the above-mentioned execution body determines the user's video preference, according to the video preference, adjust the user interest score of the processed video corresponding to the video preference, and also adjust the user interest score of other processed videos, thereby updating The recommendation value corresponding to each processed video in the video library.
作为示例,上述执行主体确定出用户喜欢观看体育类视频,则增大视频库中体育类处理后视频的用户兴趣评分,降低其他类型的处理后视频的用户兴趣评分,从而视频库中每个处理后视频对应的推荐值均进行了调整。As an example, if the above executive body determines that the user likes to watch sports videos, the user interest score of the processed sports videos in the video library is increased, and the user interest scores of other types of processed videos are decreased. The recommended values corresponding to the subsequent videos have been adjusted.
可选地,当交互请求包括跳过当前处理后视频时,上述执行主体可以减小当前处理后视频和与当前处理后视频相关的处理后视频的推荐值。Optionally, when the interaction request includes skipping the current processed video, the above-mentioned execution subject may reduce the recommendation value of the current processed video and the processed video related to the current processed video.
可选地,当交互请求包括观看当前处理后视频的时长超过预设阈值时,上述执行主体可以增大当前处理后视频和与当前处理后视频相关的处理后视频的推荐值。Optionally, when the interaction request includes that the duration of viewing the currently processed video exceeds a preset threshold, the above-mentioned execution subject may increase the recommendation value of the currently processed video and the processed video related to the currently processed video.
在本实现方式中,能够根据用户的交互请求,确定用户的视频喜好,从而调整视频库中的每个处理后视频的推荐值,进而在生成视频流时可以选取满足用户喜好的处理后视频,提高了视频流与用户喜好的关联性。In this implementation manner, the user's video preference can be determined according to the user's interactive request, so as to adjust the recommended value of each processed video in the video library, and then a processed video that meets the user's preference can be selected when generating a video stream. Improved correlation between video streams and user preferences.
在本实施例的一些可选的实现方式中,参考图6,图6示出了生成兴趣视频流的方法流程600,该流程600,可以包括以下步骤:In some optional implementations of this embodiment, referring to FIG. 6 , FIG. 6 shows a
步骤610,响应于确定用户观看当前处理后视频的时长超过预设阈值,确定当前处理后视频的内容数据。
在本步骤中,上述执行主体获取到用户的交互请求后,确定用户观看当前处理后视频的时长超过预设阈值,则进一步根据当前处理后视频确定出当前处理后视频的内容数据。例如,上述执行主体确定用户观看体育类视频的时长超过预设阈值,然后确定该体育类视频中的内容数据包括足球和篮球。In this step, after obtaining the user's interactive request, the execution body determines that the user's viewing time of the currently processed video exceeds a preset threshold, and then further determines the content data of the currently processed video according to the currently processed video. For example, the above-mentioned executive body determines that the user's viewing time of the sports video exceeds a preset threshold, and then determines that the content data in the sports video includes football and basketball.
步骤620,基于当前处理后视频的内容数据,从视频库中选取与当前处理后视频的内容数据相关的多个处理后视频进行视频拼接,生成与当前处理后视频的内容数据对应的兴趣视频流。
在本步骤中,上述执行主体获取到当前处理后视频的内容数据后,在视频库中根据该内容数据,选取与该内容数据相关的处理后视频进行视频拼接,生成兴趣视频流。若该内容数据包括多个类型的内容,则分别获取与多个类型的内容相关的处理后视频,并分别生成不同的兴趣视频流。例如,上述执行主体确定出用户感兴趣的是体育类视频中的足球和篮球,则在视频库中获取与足球相关的多个处理后视频生成与足球对应的兴趣视频流;并在视频库中获取与篮球相关的多个处理后视频生成与篮球对应的兴趣视频流。In this step, after obtaining the content data of the currently processed video, the execution body selects the processed video related to the content data in the video library according to the content data for video splicing to generate an interesting video stream. If the content data includes multiple types of content, the processed videos related to the multiple types of content are acquired respectively, and different video streams of interest are respectively generated. For example, the above-mentioned executive body determines that the user is interested in football and basketball in sports videos, then obtains multiple processed videos related to football in the video library to generate interest video streams corresponding to football; Obtain multiple processed videos related to basketball to generate a video stream of interest corresponding to basketball.
在本实现方式中,通过用户的视频喜好对视频流进行拆分,生成与用户的视频喜好对应的兴趣视频流,使得兴趣视频流中的视频均与用户的视频喜好相关,同时提高了视频流的多样性。In this implementation, the video stream is split according to the user's video preference, and an interest video stream corresponding to the user's video preference is generated, so that the videos in the interest video stream are all related to the user's video preference, and the video stream is improved at the same time. diversity.
进一步参考图7,其示出了播放视频流的方法的一个实施例的流程700。该播放视频流的方法的流程700,还可以包括以下步骤:With further reference to FIG. 7, a
步骤710,响应于接收到用户的开启请求,获取视频流。
在本步骤中,播放视频流的方法的执行主体(例如图1所示的终端设备101、102、103)可以接收到用户的开启请求,并实时获取要播放的视频流,该视频流是服务器按照图2-图6的实现方式生成的视频流,该视频流中包括多个满足预设的视频拼接条件的处理后视频。In this step, the execution body of the method for playing a video stream (for example, the
步骤720,依次播放视频流中的处理后视频。Step 720: Play the processed videos in the video stream in sequence.
在本步骤中,上述执行主体获取到视频流后,即可依次播放视频流中的处理后视频,将视频流中的处理后视频播放给用户。In this step, after obtaining the video stream, the above-mentioned execution body can play the processed videos in the video stream in sequence, and play the processed videos in the video stream to the user.
在本实施例的一些可选的实现方式中,上述执行主体获取到的视频流包括多个类别的视频流,可以包括新闻类的视频流、体育类的视频流,影视类的视频流等等,其中,上述执行主体获取到视频流的数量根据用户的不同动态变化,即若当前用户是儿童,则获取到的视频流的数量可以默认为10个,若当前用户是成人,则获取到的视频流的数量可以默认为20个。In some optional implementations of this embodiment, the video streams acquired by the above-mentioned execution body include video streams of multiple categories, which may include news video streams, sports video streams, video streams of film and television, and so on. , wherein the number of video streams acquired by the above-mentioned execution body changes dynamically according to different users, that is, if the current user is a child, the number of acquired video streams can be 10 by default, and if the current user is an adult, the acquired The number of video streams can default to 20.
上述执行主体可以播放当前视频流中的当前处理后视频,并呈现当前视频流的类别标识和与当前处理后视频对应的查看按键。The above-mentioned execution body can play the currently processed video in the current video stream, and present the category identifier of the current video stream and the viewing button corresponding to the currently processed video.
具体地,上述执行主体在获取到多个类别的视频流后,选择其中一个类别的视频流播放,在播放当前视频流中的当前处理后视频时,同时向用户呈现当前视频流的类别标识,该类别标识用于表示当前视频流的类别,并向用户呈现与当前处理后视频对应的查看按键,该查看按键用于触发与当前处理后视频关联的视频内容链接。Specifically, after acquiring multiple categories of video streams, the above-mentioned execution body selects one category of video streams to play, and when playing the currently processed video in the current video stream, the category identifier of the current video stream is presented to the user at the same time, The category identifier is used to represent the category of the current video stream, and a viewing button corresponding to the currently processed video is presented to the user, where the viewing button is used to trigger a video content link associated with the currently processed video.
可选地,上述执行主体响应于接收到用户对当前视频流的切换请求,播放当前视频流的下一个类别的视频流。Optionally, the above-mentioned execution body plays a video stream of the next category of the current video stream in response to receiving the user's switching request for the current video stream.
具体地,上述执行主体接收到用户对当前视频流的切换请求后,从获取到的多个类别的视频流中选择当前视频流的下一个类别的视频流并播放。例如,当前视频流为新闻类的视频流,上述执行主体接收到用户对新闻类的视频流的切换请求,为用户播放体育类的视频流。Specifically, after receiving the user's switching request for the current video stream, the above-mentioned execution body selects and plays a video stream of the next category of the current video stream from the acquired video streams of multiple categories. For example, the current video stream is a news video stream, and the above-mentioned execution body receives a user's switching request for a news video stream, and plays a sports video stream for the user.
可选地,上述执行主体响应于接收到用户对当前处理后视频的切换请求,播放当前视频流中当前处理后视频的下一个处理后视频。Optionally, the above-mentioned execution body plays the next processed video of the current processed video in the current video stream in response to receiving the user's switching request for the currently processed video.
具体地,上述执行主体接收到用户对当前处理后视频的切换请求后,从该视频流中选择当前处理后视频的下一个视频流并播放。例如,当前视频流为新闻类的视频流,上述执行主体接收到用户对新闻类的处理后视频A的切换请求,为用户播放新闻类的处理后视频B。Specifically, after receiving the user's switching request for the currently processed video, the above-mentioned execution body selects and plays the next video stream of the currently processed video from the video stream. For example, the current video stream is a news video stream, and the above-mentioned execution body receives the user's switching request for the news-type processed video A, and plays the news-type processed video B for the user.
可选地,上述执行主体响应于接收到用户对当前处理后视频的查看请求,播放与当前处理后视频相关的处理后视频或与当前处理后视频对应的视频内容。Optionally, in response to receiving a user's request for viewing the currently processed video, the above-mentioned execution body plays the processed video related to the currently processed video or the video content corresponding to the currently processed video.
具体地,用户可以通过选中与当前处理后视频对应的查看按键来发起对当前处理后视频的查看请求。上述执行主体接收到用户对当前处理后视频的查看请求后,触发与当前处理后视频关联的视频内容链接,获取到该视频内容链接对应的内容,可以包括与当前处理后视频相关的处理后视频或与当前处理后视频对应的视频内容。例如,当前处理后视频为影视类的预告节选视频,上述执行主体接收到用户对该预告节选视频的查看请求,则获取到该预告节选视频对应的影视正片,并为用户进行播放,可以直接为用户播放影视正片的内容,还可以为用户呈现影视正片的选集界面,供用户进行选择。Specifically, the user may initiate a viewing request for the currently processed video by selecting a viewing button corresponding to the currently processed video. After receiving the user's request for viewing the currently processed video, the above-mentioned execution body triggers the video content link associated with the currently processed video, and obtains the content corresponding to the video content link, which may include the processed video related to the currently processed video. or the video content corresponding to the currently processed video. For example, the currently processed video is a trailer excerpt video of the film and television category, and the above-mentioned execution subject receives the user's viewing request for the trailer excerpt video, and obtains the film and television feature corresponding to the trailer excerpt video, and plays it for the user, which can be directly as When the user plays the content of the feature film, a selection interface of the feature movie can also be presented to the user for the user to choose.
可选地,上述执行主体响应于接收到用户的搜索请求,播放与搜索请求对应的处理后视频或与处理后视频对应的视频内容。Optionally, in response to receiving the search request from the user, the above-mentioned execution body plays the processed video corresponding to the search request or the video content corresponding to the processed video.
本公开的上述实施例提供的方法,首先响应于接收到用户的开启请求,获取生成的视频流,然后依次播放视频流中的处理后视频,能够在用户开启智能电视的时候为用户播放视频,实现了即开即现的播放方式,使得用户能够直接获取内容,再从内容中去挑选自己喜爱的,能够更加直接方便地为用户播放内容,提高了智能电视的用户体验。The method provided by the above-mentioned embodiments of the present disclosure firstly obtains the generated video stream in response to receiving a user's turn-on request, and then plays the processed videos in the video stream in sequence, so as to play the video for the user when the user turns on the smart TV, The instant play mode is realized, so that users can directly obtain the content, and then select their favorite from the content, which can play the content for the user more directly and conveniently, and improve the user experience of the smart TV.
在本实施例的一些可选的实现方式中,上述执行主体响应于检测到新用户,获取与新用户对应的新的视频流;依次播放新的视频流中的处理后视频。In some optional implementations of this embodiment, in response to detecting a new user, the above-mentioned execution body acquires a new video stream corresponding to the new user; and sequentially plays the processed videos in the new video stream.
具体地,上述执行主体可以通过采集用户图像,或获取用户的登录账号,判断当前观看的用户是否发生变化,若检测到用户发生变化,确定新用户。然后上述执行主体可以向服务器获取与新用户对应的新的视频流,该新的视频流可以包括新的多个处理后视频,可以与上一次接收到的视频流相同,也可以不同。最后上述执行主体依次播放新的视频流中的处理后视频。Specifically, the above-mentioned execution body may determine whether the currently viewing user changes by collecting the user image or obtaining the user's login account, and if it is detected that the user changes, determine a new user. Then the above-mentioned executive body may obtain a new video stream corresponding to the new user from the server, and the new video stream may include multiple new processed videos, which may be the same as or different from the last received video stream. Finally, the above-mentioned execution body plays the processed videos in the new video stream in sequence.
作为示例,当上一个成人用户登录账号进行观看时,上述执行主体获取与该成人用户对应的视频流,并进行播放。然后上述执行主体通过检测账号,确定当前账号从上一个成人用户的账号变成儿童账号,则上述执行主体向服务器获取与儿童对应的视频流,例如动画片视频等。As an example, when the last adult user logs in to the account to watch, the above-mentioned execution body acquires the video stream corresponding to the adult user, and plays the video stream. Then, the above-mentioned execution body determines that the current account has changed from the last adult user's account to a child's account by detecting the account, and the above-mentioned execution body obtains the video stream corresponding to the child from the server, such as a cartoon video.
在本实现方式中,通过判断用户是否发生变化,不同的用户可能有各自不同的兴趣,从而当用户发生变化后,获取的视频流也会发生变化,能够适应不同用户的需求。In this implementation manner, by judging whether the user changes, different users may have different interests, so when the user changes, the acquired video stream also changes, which can adapt to the needs of different users.
进一步参考图8,作为对上述各图所示方法的实现,本申请提供了一种生成视频流的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 8 , as an implementation of the methods shown in the above figures, the present application provides an embodiment of an apparatus for generating a video stream. The apparatus embodiment corresponds to the method embodiment shown in FIG. 2 . The apparatus Specifically, it can be applied to various electronic devices.
如图8所示,本实施例的装置800包括:获取单元810,被配置成获取视频;预处理单元820,被配置成对视频进行视频预处理,并将得到的处理后视频存入视频库;生成单元830,被配置成基于预设的视频拼接条件,从视频库中选取满足预设的视频拼接条件的多个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流。As shown in FIG. 8, the
在本实施例的一些可选的实现方式中,预处理单元820,包括:分类模块,被配置成对视频进行类型分类,得到视频对应的类型结果;裁剪模块,被配置成基于与类型结果对应的预设时长范围,对视频进行视频裁剪处理,得到处理后视频,并将设置有类型结果的处理后视频存入视频库。In some optional implementations of this embodiment, the
在本实施例的一些可选的实现方式中,预设的视频拼接条件包括:选取同一类型结果的处理后视频;以及生成单元830,进一步被配置成:基于视频库中处理后视频的类型结果,从视频库中选取同一类型结果的多个处理后视频进行视频拼接,生成与类型结果对应的类型视频流。In some optional implementations of this embodiment, the preset video splicing conditions include: selecting a processed video of the same type of result; and the
在本实施例的一些可选的实现方式中,预设的视频拼接条件包括:选取不同类型结果的处理后视频;以及生成单元830,进一步被配置成:基于视频库中处理后视频的类型结果,从视频库中选取多个不同类型结果的多个处理后视频进行视频拼接,生成任意视频流。In some optional implementations of this embodiment, the preset video splicing conditions include: selecting processed videos of different types of results; and the
在本实施例的一些可选的实现方式中,预设的视频拼接条件包括:选取与用户视频喜好对应的处理后视频;生成单元830,进一步被配置成:获取用户的视频喜好;从视频库中选取与用户的视频喜好对应的多个处理后视频进行视频拼接,生成推荐视频流。In some optional implementations of this embodiment, the preset video splicing conditions include: selecting a processed video corresponding to the user's video preference; the
在本实施例的一些可选的实现方式中,预处理单元820,进一步被配置成:响应于得到处理后视频,确定处理后视频对应的推荐值,并将设置有类型结果、推荐值的处理后视频存入视频库。In some optional implementations of this embodiment, the
在本实施例的一些可选的实现方式中,生成单元830,进一步被配置成:基于预设的视频拼接条件和视频库中每个处理后视频对应的推荐值,从视频库中选取满足预设的视频拼接条件、且推荐值满足预设推荐条件的多个处理后视频;基于多个处理后视频中每个处理后视频对应的推荐值,依次将每个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流。In some optional implementations of this embodiment, the generating
在本实施例的一些可选的实现方式中,分类模块,进一步被配置成:对视频进行类型分类,得到视频对应的分类结果;基于与分类结果对应的视频内容链接条件,生成满足视频内容链接条件的视频内容链接;基于视频对应的分类结果和满足视频内容链接条件的视频内容链接,生成视频对应的类型结果。In some optional implementations of this embodiment, the classification module is further configured to: classify the videos by type to obtain a classification result corresponding to the video; generate a video content link based on the video content link condition corresponding to the classification result Conditional video content links; based on the classification results corresponding to the videos and the video content links that satisfy the video content linking conditions, generate the type results corresponding to the videos.
在本实施例的一些可选的实现方式中,预处理单元820,进一步被配置成:响应于得到处理后视频,基于类型结果,确定处理后视频与同一类型结果的视频之间的相关值,并将设置有类型结果、相关值的处理后视频存入视频库。In some optional implementations of this embodiment, the
在本实施例的一些可选的实现方式中,该装置还包括:发送单元,被配置成向终端发送视频流;分析单元,被配置成响应于接收到用户对视频流的交互请求,分析交互请求,得到用户的视频喜好;更新单元,被配置成基于用户的视频喜好,更新视频库中每个处理后视频对应的推荐值。In some optional implementations of this embodiment, the apparatus further includes: a sending unit, configured to send a video stream to the terminal; an analysis unit, configured to analyze the interaction in response to receiving an interaction request for the video stream from the user request to obtain the user's video preference; the updating unit is configured to update the recommendation value corresponding to each processed video in the video library based on the user's video preference.
在本实施例的一些可选的实现方式中,交互请求包括跳过当前处理后视频;以及更新单元,进一步被配置成:减小当前处理后视频和与当前处理后视频相关的处理后视频的推荐值。In some optional implementations of this embodiment, the interaction request includes skipping the current processed video; and the updating unit is further configured to: reduce the difference between the current processed video and the processed video related to the currently processed video Recommended value.
在本实施例的一些可选的实现方式中,交互请求包括观看当前处理后视频的时长超过预设阈值;以及更新单元,进一步被配置成:增大当前处理后视频和与当前处理后视频相关的处理后视频的推荐值。In some optional implementations of this embodiment, the interaction request includes that the duration of viewing the currently processed video exceeds a preset threshold; and the updating unit is further configured to: increase the currently processed video and the current processed video related to the current processed video. The recommended value of the processed video.
在本实施例的一些可选的实现方式中,该装置还包括:确定单元,被配置成响应于确定用户观看当前处理后视频的时长超过预设阈值,确定当前处理后视频的内容数据;生成定单元,进一步被配置成基于当前处理后视频的内容数据,从视频库中选取与当前处理后视频的内容数据相关的多个处理后视频进行视频拼接,生成与当前处理后视频的内容数据对应的兴趣视频流。In some optional implementations of this embodiment, the apparatus further includes: a determining unit, configured to determine content data of the currently processed video in response to determining that the user's viewing duration of the currently processed video exceeds a preset threshold; The fixed unit is further configured to, based on the content data of the currently processed video, select multiple processed videos related to the content data of the currently processed video from the video library to perform video splicing, and generate the content data corresponding to the currently processed video. of interest video streams.
本领域技术人员可以理解,上述装置还包括一些其他公知结构,例如处理器、存储器等,为了不必要地模糊本公开的实施例,这些公知的结构在图8中未示出。Those skilled in the art can understand that the above-mentioned apparatus also includes some other well-known structures, such as a processor, a memory, etc., which are not shown in FIG. 8 in order to unnecessarily obscure the embodiments of the present disclosure.
进一步参考图9,作为对上述各图所示方法的实现,本申请提供了一种播放视频流的装置的一个实施例,该装置实施例与图7所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 9 , as an implementation of the methods shown in the above figures, the present application provides an embodiment of an apparatus for playing a video stream. The apparatus embodiment corresponds to the method embodiment shown in FIG. 7 . The apparatus Specifically, it can be applied to various electronic devices.
如图9所示,本实施例的装置900包括:获取单元910,被配置成响应于接收到用户的开启请求,获取如图2所示的方法生成的视频流;播放单元920,被配置成依次播放视频流中的处理后视频。As shown in FIG. 9 , the
在本实施例的一些可选的实现方式中,视频流包括多个类别的视频流;以及播放单元920,进一步被配置成:播放当前视频流中的当前处理后视频,并呈现当前视频流的类别标识和与当前处理后视频对应的查看按键。In some optional implementations of this embodiment, the video stream includes multiple categories of video streams; and the
在本实施例的一些可选的实现方式中,播放单元920,进一步被配置成:响应于接收到用户对当前视频流的切换请求,播放当前视频流的下一个类别的视频流。In some optional implementations of this embodiment, the
在本实施例的一些可选的实现方式中,播放单元920,进一步被配置成:响应于接收到用户对当前处理后视频的切换请求,播放当前视频流中当前处理后视频的下一个处理后视频。In some optional implementations of this embodiment, the
在本实施例的一些可选的实现方式中,播放单元920,进一步被配置成:响应于接收到用户对当前处理后视频的查看请求,播放与当前处理后视频相关的处理后视频或与当前处理后视频对应的视频内容。In some optional implementations of this embodiment, the
在本实施例的一些可选的实现方式中,播放单元920,进一步被配置成:响应于接收到用户的搜索请求,播放与搜索请求对应的处理后视频或与处理后视频对应的视频内容。In some optional implementations of this embodiment, the
在本实施例的一些可选的实现方式中,获取单元910,进一步被配置成:响应于检测到新用户,获取与新用户对应的如图2所示的方法生成的新的视频流;播放单元920,进一步被配置成:依次播放新的视频流中的处理后视频。In some optional implementations of this embodiment, the obtaining
本领域技术人员可以理解,上述装置还包括一些其他公知结构,例如处理器、存储器等,为了不必要地模糊本公开的实施例,这些公知的结构在图9中未示出。Those skilled in the art can understand that the above-mentioned apparatus also includes some other well-known structures, such as a processor, a memory, etc., which are not shown in FIG. 9 in order to unnecessarily obscure the embodiments of the present disclosure.
下面参考图10,其示出了适于用来实现本公开的实施例的电子设备(例如图1中的服务器、终端设备)1000的结构示意图。Referring next to FIG. 10 , it shows a schematic structural diagram of an electronic device (eg, the server and terminal device in FIG. 1 ) 1000 suitable for implementing the embodiments of the present disclosure.
如图10所示,电子设备1000可以包括处理装置(例如中央处理器、图形处理器等)1001,其可以根据存储在只读存储器(ROM)1002中的程序或者从存储装置1008加载到随机访问存储器(RAM)1003中的程序而执行各种适当的动作和处理。在RAM 1003中,还存储有电子设备1000操作所需的各种程序和数据。处理装置1001、ROM 1002以及RAM 1003通过总线1004彼此相连。输入/输出(I/O)接口1005也连接至总线1004。As shown in FIG. 10, an
通常,以下装置可以连接至I/O接口1005:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置1006;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置1007;包括例如磁带、硬盘等的存储装置1008;以及通信装置1009。通信装置1009可以允许电子设备1000与其他设备进行无线或有线通信以交换数据。虽然图10示出了具有各种装置的电子设备1000,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。图10中示出的每个方框可以代表一个装置,也可以根据需要代表多个装置。Typically, the following devices can be connected to the I/O interface 1005: input devices 1006 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置1009从网络上被下载和安装,或者从存储装置1008被安装,或者从ROM 1002被安装。在该计算机程序被处理装置1001执行时,执行本公开的实施例的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the
需要说明的是,本公开的实施例所述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开的实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开的实施例中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium described in the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. Rather, in embodiments of the present disclosure, a computer-readable signal medium may include a data signal in baseband or propagated as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,可以使得该电子设备:获取视频;对视频进行视频预处理,并将得到的处理后视频存入视频库;基于预设的视频拼接条件,从视频库中选取满足预设的视频拼接条件的多个处理后视频进行视频拼接,生成与预设的视频拼接条件对应的视频流。还可以使得该电子设备:响应于接收到用户的开启请求,获取如上述方法生成的视频流;依次播放视频流中的处理后视频。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device can: acquire a video; perform video preprocessing on the video, and convert the obtained processed video Store in the video library; based on the preset video splicing conditions, select multiple processed videos that meet the preset video splicing conditions from the video library for video splicing, and generate a video stream corresponding to the preset video splicing conditions. The electronic device can also be made to: in response to receiving a user's turn-on request, obtain the video stream generated by the above method; and play the processed videos in the video stream in sequence.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的实施例的操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络包括局域网(LAN)或广域网(WAN)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of embodiments of the present disclosure may be written in one or more programming languages, including object-oriented programming languages such as Java, Smalltalk, C++, and also This includes conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. Where a remote computer is involved, the remote computer may be connected to the user's computer through any kind of network including a local area network (LAN) or wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider to connect over the Internet) .
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器,包括获取单元、预处理单元和生成单元。也可以描述为:一种处理器,包括获取单元和播放单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,获取单元可以被描述为“获取视频的单元”。获取单元还可以被描述为“响应于接收到用户的开启请求,获取如上述方法生成的视频流的单元”。The units involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner. The described unit can also be provided in the processor, for example, it can be described as: a processor including an acquisition unit, a preprocessing unit and a generating unit. It can also be described as: a processor, including an acquisition unit and a playback unit. Wherein, the names of these units do not constitute a limitation of the unit itself under certain circumstances, for example, the acquisition unit may be described as "a unit for acquiring video". The obtaining unit can also be described as "a unit that obtains the video stream generated by the above method in response to receiving a user's turn-on request".
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开的实施例中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开的实施例中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover, without departing from the above inventive concept, the above Other technical solutions formed by any combination of technical features or their equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in the embodiments of the present disclosure (but not limited to) with similar functions.
Claims (24)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010927064.1A CN111901629A (en) | 2020-09-07 | 2020-09-07 | Method and device for generating and playing video stream |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010927064.1A CN111901629A (en) | 2020-09-07 | 2020-09-07 | Method and device for generating and playing video stream |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111901629A true CN111901629A (en) | 2020-11-06 |
Family
ID=73225984
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010927064.1A Pending CN111901629A (en) | 2020-09-07 | 2020-09-07 | Method and device for generating and playing video stream |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111901629A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113556486A (en) * | 2021-07-27 | 2021-10-26 | 北京达佳互联信息技术有限公司 | Video generation method and device, electronic equipment and storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090180750A1 (en) * | 2007-12-13 | 2009-07-16 | Broadband Royalty Corporation | Digital program splice visual quality |
| CN104219575A (en) * | 2013-05-29 | 2014-12-17 | 酷盛(天津)科技有限公司 | Related video recommending method and system |
| CN106028071A (en) * | 2016-05-17 | 2016-10-12 | Tcl集团股份有限公司 | Video recommendation method and system |
| CN106060637A (en) * | 2016-06-29 | 2016-10-26 | 乐视控股(北京)有限公司 | Video recommendation method, device and system |
| CN109618196A (en) * | 2018-12-20 | 2019-04-12 | 未来电视有限公司 | A kind of single method, apparatus of video volume, electronic equipment and storage medium |
| CN110139159A (en) * | 2019-06-21 | 2019-08-16 | 上海摩象网络科技有限公司 | Processing method, device and the storage medium of video material |
| CN110855904A (en) * | 2019-11-26 | 2020-02-28 | Oppo广东移动通信有限公司 | Video processing method, electronic device and storage medium |
-
2020
- 2020-09-07 CN CN202010927064.1A patent/CN111901629A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090180750A1 (en) * | 2007-12-13 | 2009-07-16 | Broadband Royalty Corporation | Digital program splice visual quality |
| CN104219575A (en) * | 2013-05-29 | 2014-12-17 | 酷盛(天津)科技有限公司 | Related video recommending method and system |
| CN106028071A (en) * | 2016-05-17 | 2016-10-12 | Tcl集团股份有限公司 | Video recommendation method and system |
| CN106060637A (en) * | 2016-06-29 | 2016-10-26 | 乐视控股(北京)有限公司 | Video recommendation method, device and system |
| CN109618196A (en) * | 2018-12-20 | 2019-04-12 | 未来电视有限公司 | A kind of single method, apparatus of video volume, electronic equipment and storage medium |
| CN110139159A (en) * | 2019-06-21 | 2019-08-16 | 上海摩象网络科技有限公司 | Processing method, device and the storage medium of video material |
| CN110855904A (en) * | 2019-11-26 | 2020-02-28 | Oppo广东移动通信有限公司 | Video processing method, electronic device and storage medium |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113556486A (en) * | 2021-07-27 | 2021-10-26 | 北京达佳互联信息技术有限公司 | Video generation method and device, electronic equipment and storage medium |
| CN113556486B (en) * | 2021-07-27 | 2024-02-06 | 北京达佳互联信息技术有限公司 | Video generation method, device, electronic equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10362360B2 (en) | Interactive media display across devices | |
| US10405041B2 (en) | Systems and methods for predictive spoiler prevention in media assets based on user behavior | |
| CN107846561B (en) | Method and system for determining and displaying contextually targeted content | |
| US8224856B2 (en) | Intelligent default weighting process for criteria utilized to score media content items | |
| US9235574B2 (en) | Systems and methods for providing media recommendations | |
| US8478759B2 (en) | Information presentation apparatus and mobile terminal | |
| US20160014482A1 (en) | Systems and Methods for Generating Video Summary Sequences From One or More Video Segments | |
| US20150172787A1 (en) | Customized movie trailers | |
| US20180032622A1 (en) | Displaying a Summary of Media Content Items | |
| US20150296228A1 (en) | Systems and Methods for Performing Multi-Modal Video Datastream Segmentation | |
| US11758234B2 (en) | Systems and methods for creating an asynchronous social watching experience among users | |
| US20120042041A1 (en) | Information processing apparatus, information processing system, information processing method, and program | |
| US11388561B2 (en) | Providing a summary of media content to a communication device | |
| US20150012946A1 (en) | Methods and systems for presenting tag lines associated with media assets | |
| CN109063200B (en) | Resource searching method and device, electronic equipment and computer readable medium | |
| US20240276041A1 (en) | Reducing active user bias for content recommendation models | |
| CN111901629A (en) | Method and device for generating and playing video stream | |
| CN107948699A (en) | A TV content classification push method based on fingerprint recognition | |
| JP4083165B2 (en) | Agent interface device | |
| US20250039485A1 (en) | Streaming-media system with publisher system integration and advertisement presentation feature | |
| CN104427361A (en) | Television service system and method for providing video and audio service | |
| US20240259639A1 (en) | Systems and methods for levaraging machine learning to enable user-specific real-time information services for identifiable objects within a video stream | |
| CN108259976B (en) | Television channel sorting method and television | |
| HK1252983B (en) | Method and system for determining and displaying contextual targeted content |
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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201106 |