WO2018149176A1 - Method and apparatus for automatically recording video, and terminal - Google Patents

Method and apparatus for automatically recording video, and terminal Download PDF

Info

Publication number
WO2018149176A1
WO2018149176A1 PCT/CN2017/109167 CN2017109167W WO2018149176A1 WO 2018149176 A1 WO2018149176 A1 WO 2018149176A1 CN 2017109167 W CN2017109167 W CN 2017109167W WO 2018149176 A1 WO2018149176 A1 WO 2018149176A1
Authority
WO
WIPO (PCT)
Prior art keywords
gift
animation
recording
animated
video
Prior art date
Application number
PCT/CN2017/109167
Other languages
French (fr)
Chinese (zh)
Inventor
郭宏财
邵昂
Original Assignee
北京金山安全软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京金山安全软件有限公司 filed Critical 北京金山安全软件有限公司
Publication of WO2018149176A1 publication Critical patent/WO2018149176A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4335Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data

Abstract

Provided are a method and apparatus for automatically recording a video, and a terminal. The method comprises: by pre-setting some trigger events capable of triggering automatic recording, triggering the automatic starting of video recording when it is detected that a trigger event occurs. In the present embodiment, video recording can be automatically triggered according to a trigger event without needing a user to manually starting the video recording, thus, the recorded video has a better real-time performance and can present more compelling content. In addition, since there is no need for the user to manually trigger video recording, the user does not need to worry about missing the compelling moments of a live video, and therefore, the user experience is better.

Description

视频自动录制方法及装置、终端Video automatic recording method and device, terminal
相关申请的交叉引用Cross-reference to related applications
本申请要求北京金山安全软件有限公司于2017年02月20日提交的、发明名称为“视频自动录制方法及装置、终端”的、中国专利申请号“201710090190.4”的优先权。This application claims the priority of the Chinese patent application number "201710090190.4", which was submitted by Beijing Jinshan Security Software Co., Ltd. on February 20, 2017 and entitled "Video Automatic Recording Method and Apparatus, Terminal".
技术领域Technical field
本发明涉及终端技术领域,尤其涉及一种视频自动录制方法及装置、终端。The present invention relates to the field of terminal technologies, and in particular, to a video automatic recording method and device, and a terminal.
背景技术Background technique
在用户在通过直播应用程序观看直播的过程中,经常会遇到值得纪念或分享的内容。对于这些值得纪念或分享的内容,用户目前只能手动触发视频录制来记录这些内容。而且由于直播为实时进行的,通过手动触发视频录制,可能会导致录制的视频中错过部分精彩瞬间。In the process of watching live broadcasts through the live application, users often encounter content that is worth remembering or sharing. For these memorable or shared content, users can currently only manually trigger video recordings to record this content. Moreover, since the live broadcast is performed in real time, by manually triggering the video recording, some of the wonderful moments may be missed in the recorded video.
发明内容Summary of the invention
本发明旨在至少在一定程度上解决相关技术中的技术问题之一。The present invention aims to solve at least one of the technical problems in the related art to some extent.
为此,本发明的第一个目的在于提出一种视频自动录制方法,用于解决现有手动触发视频录制,可能会导致录制的视频中错过部分精彩瞬间的问题。To this end, the first object of the present invention is to provide a video automatic recording method for solving the problem of existing manual trigger video recording, which may cause some wonderful moments to be missed in the recorded video.
本发明的第二个目的在于提出一种视频自动录制装置。A second object of the present invention is to provide a video automatic recording apparatus.
本发明的第三个目的在于提出一种终端。A third object of the present invention is to propose a terminal.
本发明的第四个目的在于提出一种计算机程序产品。A fourth object of the present invention is to provide a computer program product.
本发明的第五个目的在于提出一种非临时性计算机可读存储介质。A fifth object of the present invention is to provide a non-transitory computer readable storage medium.
为达上述目的,本发明第一方面实施例提出了一种视频自动录制方法,包括:To achieve the above objective, the first aspect of the present invention provides a video automatic recording method, including:
检测是否发生触发自动开启视频录制的触发事件;Detecting whether a trigger event triggering automatic video recording is triggered;
如果检测出发生所述触发事件,自动开启视频录制。If it is detected that the trigger event occurs, the video recording is automatically turned on.
可选地,作为第一方面的第一种可能的实现方式,所述触发事件为接收到指定类型的动画礼物,则所述检测是否发生触发自动开启视频录制的触发事件,包括:Optionally, as a first possible implementation manner of the first aspect, the triggering event is that, when the specified type of animated gift is received, the detecting whether a triggering event that triggers automatic opening of the video recording occurs occurs, including:
检测是否接收到动画礼物; Detecting whether an animated gift has been received;
根据所述动画礼物的配置信息,确定所述动画礼物的类型;Determining a type of the animated gift according to the configuration information of the animated gift;
如果所述动画礼物的类型为指定类型,则确定检测到所述触发事件。If the type of the animated gift is of a specified type, it is determined that the triggering event is detected.
可选地,作为第一方面的第二种可能的实现方式,所述自动开启视频录制,包括:Optionally, as a second possible implementation manner of the first aspect, the automatically turning on video recording includes:
在检测到所述触发事件时,开启视频录制;Turning on video recording when the trigger event is detected;
从所述动画礼物的配置信息中获取所述动画礼物的动画时长;Obtaining an animation duration of the animated gift from configuration information of the animated gift;
按照所述动画时长进行视频的录制,形成对应的视频文件。The video is recorded according to the duration of the animation to form a corresponding video file.
可选地,作为第一方面的第三种可能的实现方式,所述按照所述动画时长进行视频的录制,形成对应的视频文件,包括:Optionally, as a third possible implementation manner of the first aspect, the recording of the video according to the duration of the animation to form a corresponding video file includes:
当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,再次接收到所述指定类型的动画礼物时,在当前所述动画礼物的所述动画时长的基础上延长第一录制时间,形成所述视频文件;其中,所述视频文件中至少包括两个所述指定类型的动画礼物播放时的直播屏幕;When the animation of the specified type is received again during the recording of the live screen when the animation gift is currently played, the first recording time is extended based on the animation duration of the current animation gift. Forming the video file; wherein the video file includes at least two live screens of the specified type of animated gifts during playback;
其中,所述第一录制时间的延长时长为再次接收到的所述指定类型的动画礼物的所述动画时长。The extension duration of the first recording time is the animation duration of the specified type of animated gift received again.
可选地,作为第一方面的第四种可能的实现方式,所述按照所述动画时长进行视频的录制,形成对应的视频文件,包括:Optionally, as a fourth possible implementation manner of the first aspect, the recording of the video according to the duration of the animation to form a corresponding video file includes:
当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,再次接收到所述指定类型的动画礼物时,计算当前所述动画礼物的剩余动画时长;Calculating the remaining animation duration of the current animated gift when the animation gift of the specified type is received again during the recording of the live screen when the animation gift is currently played;
如果所述剩余动画时长大于或者等于再次接收到所述指定类型的动画礼物的所述动画时长,继续按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前所述动画礼物和再次接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件。If the remaining animation duration is greater than or equal to the animation duration of the specified type of animated gift again, continuing to perform video recording according to the animation duration of the current animation gift, forming the current animation gift including The video file of the live screen at the time of playback of the specified type of animated gift received.
可选地,作为第一方面的第五种可能的实现方式,所述方法还包括:Optionally, as a fifth possible implementation manner of the first aspect, the method further includes:
如果所述剩余动画时长小于再次接收到所述指定类型的动画礼物的所述动画时长,在当前所述动画礼物的所述动画时长的基础上延长第二录制时间,形成包括当前所述动画礼物和再次接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件;If the remaining animation duration is less than the animation duration of receiving the specified type of animated gift again, extending the second recording time based on the animation duration of the current animation gift to form the current animation gift And the video file of the live screen at the time of playing of the specified type of animated gift received again;
其中,所述第二录制时间的延长时长为再次接收到的所述指定类型的动画礼物的所述动画时长与所述剩余动画时长的差值。The length of the second recording time is the difference between the animation duration of the specified type of animated gift and the remaining animation duration.
可选地,作为第一方面的第六种可能的实现方式,所述按照所述动画时长进行视频的录制,形成对应的视频文件,包括:Optionally, as a sixth possible implementation manner of the first aspect, the recording of the video according to the duration of the animation to form a corresponding video file includes:
当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,接收到多个所述指定类型的所述动画礼物时,计算当前所述动画礼物的剩余动画时长;Calculating the remaining animation duration of the current animated gift when a plurality of the specified types of the animated gifts are received during the recording of the live screen when the animation gift is currently played;
从多个所述指定类型的动画礼物中选取一个动画时长最长的所述动画礼物作为目标 动画礼物;Selecting, from the plurality of the specified types of animated gifts, the animated gift having the longest duration of the animation as a target Animated gift
如果所述剩余动画时长大于或者等于所述目标动画礼物的动画时长,则继续按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前所述动画礼物和多个接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件。If the remaining animation duration is greater than or equal to the animation duration of the target animation gift, continuing to perform video recording according to the animation duration of the current animation gift, forming the current animation gift and the plurality of received animations The video file of the live screen at the time of playback of the specified type of animated gift.
可选地,作为第一方面的第七种可能的实现方式,所述方法还包括:Optionally, as a seventh possible implementation manner of the first aspect, the method further includes:
如果所述剩余动画时长小于所述目标动画礼物的动画时长,在当前所述动画礼物的所述动画时长的基础上延长第三录制时间,形成包括当前所述动画礼物和多个接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件;If the remaining animation duration is less than the animation duration of the target animation gift, extending the third recording time based on the animation duration of the current animation gift, forming the current animation gift and the plurality of received The video file of the live screen at the time of playing the specified type of animated gift;
其中,所述第三录制时间的延长时长为所述目标动画礼物的所述动画时长与所述剩余动画时长的差值。The length of the third recording time is the difference between the animation duration of the target animation gift and the remaining animation duration.
可选地,作为第一方面的第八种可能的实现方式,所述按照所述动画时长进行视频的录制,形成对应的视频文件,包括:Optionally, as an eighth possible implementation manner of the first aspect, the recording of the video according to the duration of the animation to form a corresponding video file includes:
当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,再次接收到所述指定类型的动画礼物时,按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前所述动画礼物播放时的直播屏幕的所述视频文件;When the animation of the specified type is received again during the recording of the live screen when the animation gift is currently played, video recording is performed according to the animation duration of the current animation gift, and the current The video file of the live screen when the animated gift is played;
结束对当前动画礼物播放时的直播屏幕的录制;End recording of the live screen when the current animated gift is played;
重新自动开启视频录制;Re-automatically turn on video recording;
按照再次接收到的所述指定类型的动画礼物的所述动画时长进行视频录制,形成包括再次接收到的所述指定类型的动画礼物播放时的直播屏幕的所述视频文件。The video recording is performed in accordance with the animation duration of the specified type of animated gift received again, forming the video file including the live screen of the specified type of animated gift play received again.
可选地,作为第一方面的第九种可能的实现方式,所述方法还包括:Optionally, as a ninth possible implementation manner of the first aspect, the method further includes:
如果当前所述动画礼物播放完成且所述视频文件的录制还在进行时,将与当前所述动画礼物的接收时间最接近且已经接收到的未播放完的所述动画礼物更新为当前所述动画礼物。If the current animation gift is played and the recording of the video file is still in progress, updating the animated gift that is closest to the current receiving time of the animated gift and has been received is updated as currently described. Animated gift.
可选地,作为第一方面的第十种可能的实现方式,所述方法还包括:Optionally, as a tenth possible implementation manner of the first aspect, the method further includes:
将录制的所述视频文件在缓存单元中进行缓存;Recording the recorded video file in a cache unit;
当用户将所述视频文件进行保存或者分享后,从所述缓存单元中删除所述视频文件。After the user saves or shares the video file, the video file is deleted from the cache unit.
本发明实施例的视频自动录制方法,通过预先设定一些能够触发自动录制的触发事件,当检测到有触发事件发生时,则触发自动开启视频录制。本实施例中,在直播过程中,能够根据触发事件自动触发视频录制,不需要用户手动开启视频录制,从而录制的视频实时性更好,能够展现更多的精彩内容。而且由于不需要用户手动触发,用户可以不用担心错过直播的精彩瞬间,用户体验更好。In the video automatic recording method of the embodiment of the present invention, a trigger event capable of triggering automatic recording is preset, and when a trigger event is detected, the video recording is automatically started. In this embodiment, during the live broadcast process, the video recording can be automatically triggered according to the trigger event, and the user does not need to manually start the video recording, so that the recorded video has better real-time performance and can display more exciting content. Moreover, since the user does not need to manually trigger, the user can not have to worry about the wonderful moment of missing the live broadcast, and the user experience is better.
为达上述目的,本发明第二方面实施例提出了一种视频自动录制装置,包括: In order to achieve the above object, an embodiment of the second aspect of the present invention provides a video automatic recording apparatus, including:
检测模块,用于检测是否发生触发自动开启视频录制的触发事件;a detecting module, configured to detect whether a trigger event triggering automatic video recording is triggered;
开启模块,用于如果检测出发生所述触发事件,自动开启视频录制。The module is turned on to automatically start video recording if the trigger event is detected to occur.
可选地,作为第二方面的第一种可能的实现方式,当所述触发事件为接收到指定类型的动画礼物,则所述检测模块,包括:Optionally, as a first possible implementation manner of the second aspect, when the triggering event is that an animation gift of a specified type is received, the detecting module includes:
检测单元,用于检测是否接收到动画礼物;a detecting unit, configured to detect whether an animated gift is received;
确定单元,用于根据所述动画礼物的配置信息,确定所述动画礼物的类型,如果所述动画礼物的类型为指定类型,则确定检测到所述触发事件。a determining unit, configured to determine a type of the animated gift according to the configuration information of the animated gift, and if the type of the animated gift is a specified type, determine to detect the triggering event.
可选地,作为第二方面的第二种可能的实现方式,所述开启模块,包括:Optionally, as a second possible implementation manner of the second aspect, the opening module includes:
开启单元,用于在检测到所述触发事件时,开启视频录制;An opening unit, configured to enable video recording when the trigger event is detected;
获取单元,用于从所述动画礼物的配置信息中获取所述动画礼物的动画时长;An obtaining unit, configured to acquire an animation duration of the animated gift from configuration information of the animated gift;
录制单元,用于按照所述动画时长进行视频的录制,形成对应的视频文件。The recording unit is configured to perform video recording according to the duration of the animation to form a corresponding video file.
可选地,作为第二方面的第三种可能的实现方式,所述录制单元,具体用于当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,再次接收到所述指定类型的动画礼物时,在当前所述动画礼物的所述动画时长的基础上延长第一录制时间,形成所述视频文件;其中,所述视频文件中至少包括两个所述指定类型的动画礼物播放时的直播屏幕;Optionally, as a third possible implementation manner of the second aspect, the recording unit is specifically configured to receive the specified type again during recording of a live screen when the current animation gift is played. Animated gift, extending the first recording time based on the animation duration of the current animated gift to form the video file; wherein the video file includes at least two of the specified types of animated gift play Live screen when
其中,所述第一录制时间的延长时长为再次接收到的所述指定类型的动画礼物的所述动画时长。The extension duration of the first recording time is the animation duration of the specified type of animated gift received again.
可选地,作为第二方面的第四种可能的实现方式,所述录制单元,具体用于当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,再次接收到所述指定类型的动画礼物时,计算当前所述动画礼物的剩余动画时长,如果所述剩余动画时长大于或者等于再次接收到所述指定类型的动画礼物时的所述动画时长,继续按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前所述动画礼物和再次接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件。Optionally, as a fourth possible implementation manner of the second aspect, the recording unit is specifically configured to receive the specified type again during recording of a live screen when the current animation gift is played. Calculating the remaining animation duration of the current animated gift, if the remaining animation duration is greater than or equal to the animation duration when the specified type of animated gift is received again, continuing to follow the current animated gift The animation duration is video recorded to form the video file of the live screen at the time of playback including the currently described animated gift and the received type of animated gift.
可选地,作为第二方面的第五种可能的实现方式,所述录制单元,具体用于如果所述剩余动画时长小于再次接收到所述指定类型的动画礼物时的所述动画时长,在当前所述动画礼物的所述动画时长的基础上延长第二录制时间,形成包括当前所述动画礼物和再次接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件;Optionally, as a fifth possible implementation manner of the second aspect, the recording unit is specifically configured to: if the remaining animation duration is less than the animation duration when the specified type of animated gift is received again, Extending the second recording time based on the animation duration of the current animation gift, forming the video file including the current animation gift and the received live screen of the specified type of animated gift at the time of playing;
其中,所述第二录制时间的延长时长为再次接收到的所述指定类型的动画礼物的所述动画时长与所述剩余动画时长的差值。The length of the second recording time is the difference between the animation duration of the specified type of animated gift and the remaining animation duration.
可选地,作为第二方面的第六种可能的实现方式,所述录制单元,具体用于当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,接收到多个所述指定类型的所述动画礼物时,计算当前所述动画礼物的剩余动画时长,从多个所述指定类型的动画礼物中选取 一个动画时长最长的所述动画礼物作为目标动画礼物,如果所述剩余动画时长大于或者等于所述目标动画礼物的动画时长,则继续按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前所述动画礼物和多个接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件。Optionally, as a sixth possible implementation manner of the second aspect, the recording unit is specifically configured to receive the multiple specified in a process of recording a live screen when the current animation gift is played. When the animated gift of the type is calculated, calculating a remaining animation duration of the current animated gift, and selecting from a plurality of the specified types of animated gifts The animation gift having the longest animation duration is used as the target animation gift. If the remaining animation duration is greater than or equal to the animation duration of the target animation gift, the video recording is continued according to the animation duration of the current animation gift. The video file comprising a live screen at the time of play including the currently described animated gift and a plurality of received animated gifts of the specified type is formed.
可选地,作为第二方面的第七种可能的实现方式,还包括:Optionally, as a seventh possible implementation manner of the second aspect, the method further includes:
所述录制单元,具体用于如果所述剩余动画时长小于所述目标动画礼物的动画时长,在当前所述动画礼物的所述动画时长的基础上延长第三录制时间,形成包括当前所述动画礼物和多个接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件;The recording unit is specifically configured to extend the third recording time based on the animation duration of the current animation gift, if the remaining animation duration is less than the animation duration of the target animation gift, to form the current animation a video file of the live screen of the gift and the plurality of received animated gifts of the specified type;
其中,所述第三录制时间的延长时长为所述目标动画礼物的所述动画时长与所述剩余动画时长的差值。The length of the third recording time is the difference between the animation duration of the target animation gift and the remaining animation duration.
可选地,作为第二方面的第八种可能的实现方式,所述录制单元,具体用于当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,再次接收到所述指定类型的动画礼物时,按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前所述动画礼物播放时的直播屏幕的所述视频文件,结束对当前动画礼物播放时的直播屏幕的录制,重新自动开启视频录制,按照再次接收到的所述指定类型的动画礼物的所述动画时长进行视频录制,形成包括再次接收到的所述指定类型的动画礼物播放时的直播屏幕的所述视频文件。Optionally, as an eighth possible implementation manner of the second aspect, the recording unit is specifically configured to receive the specified type again during recording of a live screen when the current animation gift is played. During the animated gift, the video recording is performed according to the animation duration of the currently described animated gift, forming the video file including the live screen of the current animation gift playing, and ending the recording of the live screen when the current animation gift is played. Re-automatically turning on the video recording, performing video recording according to the animation duration of the specified type of animated gift received again, forming the video including the live screen of the specified type of animated gift playing received again file.
可选地,作为第二方面的第九种可能的实现方式,所述开启模块,还包括:Optionally, as a ninth possible implementation manner of the second aspect, the opening module further includes:
更新单元,用于如果当前所述动画礼物播放完成且所述视频文件的录制还在进行时,将与当前所述动画礼物的接收时间最接近且已经接收到的未播放完的所述动画礼物更新为当前所述动画礼物。And an updating unit, configured to: if the current animation gift playing is completed and the recording of the video file is still in progress, the animation gift that is closest to the current receiving time of the animated gift and has been received Updated to the current animated gift.
可选地,作为第二方面的第十种可能的实现方式,所述装置还包括:Optionally, as a tenth possible implementation manner of the second aspect, the device further includes:
缓存模块,用于将录制的所述视频文件在缓存单元中进行缓存;a cache module, configured to cache the recorded video file in a cache unit;
删除模块,用于当用户将所述视频文件进行保存或者分享后,从所述缓存单元中删除所述视频文件。And a deleting module, configured to delete the video file from the cache unit after the user saves or shares the video file.
本发明实施例的视频自动录制装置,通过预先设定一些能够触发自动录制的触发事件,当检测到有触发事件发生时,则触发自动开启视频录制。本实施例中,在直播过程中,能够根据触发事件自动触发视频录制,不需要用户手动开启视频录制,从而录制的视频实时性更好,能够展现更多的精彩内容。而且由于不需要用户手动触发,用户可以不用担心错过直播的精彩瞬间,用户体验更好。In the video automatic recording device of the embodiment of the present invention, a trigger event capable of triggering automatic recording is preset, and when a trigger event is detected, the video recording is automatically started. In this embodiment, during the live broadcast process, the video recording can be automatically triggered according to the trigger event, and the user does not need to manually start the video recording, so that the recorded video has better real-time performance and can display more exciting content. Moreover, since the user does not need to manually trigger, the user can not have to worry about the wonderful moment of missing the live broadcast, and the user experience is better.
为达上述目的,本发明第三方面实施例提出了一种终端,包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为上述终端的各个电路或器件供电;存储器用于存储可执行 程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,所述处理器被配置为:In order to achieve the above object, a third aspect of the present invention provides a terminal, including: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor And a memory disposed on the circuit board; a power supply circuit for supplying power to each circuit or device of the above terminal; and a memory for storing executable Program code; the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory, the processor being configured to:
检测是否发生触发自动开启视频录制的触发事件;Detecting whether a trigger event triggering automatic video recording is triggered;
如果检测出发生所述触发事件,自动开启视频录制。If it is detected that the trigger event occurs, the video recording is automatically turned on.
为了实现上述目的,本发明第四方面实施例提出了一种计算机程序产品,当所述计算机程序产品中的指令处理器执行时,执行一种视频自动录制方法,所述方法包括:In order to achieve the above object, a fourth aspect of the present invention provides a computer program product, which, when executed by an instruction processor in the computer program product, performs a video automatic recording method, the method comprising:
检测是否发生触发自动开启视频录制的触发事件;Detecting whether a trigger event triggering automatic video recording is triggered;
如果检测出发生所述触发事件,自动开启视频录制。If it is detected that the trigger event occurs, the video recording is automatically turned on.
为了实现上述目的,本发明第五方面实施例提出了一种非临时性计算机可读存储介质,当所述存储介质中的指令由服务器端的处理器被执行时,使得服务器端能够执行一种视频自动录制方法,所述方法包括:In order to achieve the above object, a fifth aspect of the present invention provides a non-transitory computer readable storage medium, which enables a server to execute a video when instructions in the storage medium are executed by a processor on the server side. Automatic recording method, the method comprising:
检测是否发生触发自动开启视频录制的触发事件;Detecting whether a trigger event triggering automatic video recording is triggered;
如果检测出发生所述触发事件,自动开启视频录制。If it is detected that the trigger event occurs, the video recording is automatically turned on.
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。The additional aspects and advantages of the invention will be set forth in part in the description which follows.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1为本发明实施例提供的一种视频自动录制方法的流程示意图;1 is a schematic flowchart of a video automatic recording method according to an embodiment of the present invention;
图2为本发明实施例提供的另一种视频自动录制方法的流程示意图;2 is a schematic flowchart of another video automatic recording method according to an embodiment of the present invention;
图3为本发明实施例所提供的一种视频自动录制装置的结构示意图;3 is a schematic structural diagram of an automatic video recording apparatus according to an embodiment of the present invention;
图4为本发明实施例所提供的另一种视频自动录制装置的结构示意图;4 is a schematic structural diagram of another video automatic recording apparatus according to an embodiment of the present invention;
图5为本发明实施例所提供的一种终端的结构示意图。FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。The embodiments of the present invention are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the drawings are intended to be illustrative of the invention and are not to be construed as limiting.
下面参考附图描述本发明实施例的视频自动录制方法及装置、终端。A video automatic recording method, apparatus, and terminal according to an embodiment of the present invention are described below with reference to the accompanying drawings.
图1为本发明实施例提供的一种视频自动录制方法的流程示意图。如图1所示,该视 频自动录制方法包括以下步骤:FIG. 1 is a schematic flowchart of a video automatic recording method according to an embodiment of the present invention. As shown in Figure 1, the view The automatic frequency recording method includes the following steps:
S101、检测是否发生触发自动开启视频录制的触发事件。S101. Detect whether a trigger event that triggers automatic video recording is triggered.
S102、如果检测出发生所述触发事件,自动开启视频录制。S102. If it is detected that the trigger event occurs, the video recording is automatically started.
本实施例中,可以预先设置一些触发事件,通过这些触发事件来触发自动开启视频录制。具体地,在直播的过程中,可以实时地对触发事件进行检测,当检测到触发事件发生时,可以直接自动开启视频录制,对当前直播的屏幕进行录制,形成对应的视频文件。In this embodiment, some trigger events may be preset, and the triggering events are used to trigger automatic video recording. Specifically, during the live broadcast process, the trigger event may be detected in real time. When the trigger event is detected, the video recording may be automatically started, and the currently live screen is recorded to form a corresponding video file.
进一步地,如果在直播过程中未检测到触发自动开启视频录制的触发事件则继续检测。Further, if the trigger event triggering the automatic opening of the video recording is not detected during the live broadcast, the detection is continued.
例如,将设定的时间段内用户点赞数量超过预设的阈值作为一个触发事件。一般情况下,在观看直播的过程中,可以设定的较短的时间段,在该时间段内用户点赞数量超过预设的阈值,则说明观看直播的很多用户对当前直播的内容感兴趣,或者认为当前直播的内容比较精彩,为了能够为用户保留下当前的精彩内容,则可以触发自动开启视频录制,将当前的精彩内容录制成一个视频文件。再例如,将接收到礼物作为一个触发事件,用户在观看直播的过程中,当主播当前播放的内容比较精彩时,观看直播的用户往往会向主播发送礼物,可以将接收到礼物作为一个触发事件,触发自动开启视频录制。或者将主播在设定的较短的时间内接收到礼物的数量超出预设的阈值,也可以说明观看直播的很多用户对当前直播的内容感兴趣,或者认为当前直播的内容比较精彩,为了能够为用户记录下该精彩内容,则可以触发自动开启视频录制,将当前的精彩内容录制成一个视频文件。For example, the number of user clicks within the set time period exceeds a preset threshold as a trigger event. In general, during the process of watching the live broadcast, a short period of time can be set. During this period, the number of users likes the preset threshold, indicating that many users watching the live broadcast are interested in the content of the current live broadcast. Or think that the current live content is more exciting. In order to keep the current exciting content for the user, you can trigger the automatic video recording to record the current exciting content as a video file. For another example, the gift is received as a trigger event. When the user is watching the live broadcast, when the content currently broadcast by the anchor is more exciting, the user watching the live broadcast often sends a gift to the anchor, and the received gift can be used as a trigger event. , triggers automatic video recording. Or the number of gifts received by the anchor in the set short time exceeds the preset threshold. It may also indicate that many users watching the live broadcast are interested in the content of the current live broadcast, or that the content of the current live broadcast is more exciting, in order to be able to Recording the wonderful content for the user can trigger the automatic opening of the video recording to record the current exciting content as a video file.
再例如,将直播内容与用户预先配置一些关键词进行匹配,将直播内容在设定的时长内与一定数量的关键词匹配成功作为一个触发事件。其中,用户预先设置的关键词与用户的感兴趣的内容相关,如果当前直播的内容与一定数量的关键词匹配成功,则说明当前直播的内容与用户感兴趣的内容存在极大的相关性,则可以触发自动开启视频录制,对当前的直播内容进行录制形成视频文件。For example, the live content is matched with the user's pre-configured keywords, and the live content is successfully matched with a certain number of keywords within a set duration as a trigger event. The keyword set in advance by the user is related to the content of interest of the user. If the content of the current live broadcast matches a certain number of keywords successfully, it indicates that the content of the current live broadcast has a great correlation with the content of interest to the user. It can trigger automatic video recording to record the current live content to form a video file.
本实施例提供的视频自动录制方法,通过预先设定一些能够触发自动录制的触发事件,当检测到有触发事件发生时,则触发自动开启视频录制。本实施例中,在直播过程中,能够根据触发事件自动触发视频录制,不需要用户手动开启视频录制,从而录制的视频实时性更好,能够展现更多的精彩内容。而且由于不需要用户手动触发,用户可以不用担心错过直播的精彩瞬间,用户体验更好。In the video automatic recording method provided in this embodiment, a trigger event capable of triggering automatic recording is preset, and when a trigger event is detected, the video recording is automatically started. In this embodiment, during the live broadcast process, the video recording can be automatically triggered according to the trigger event, and the user does not need to manually start the video recording, so that the recorded video has better real-time performance and can display more exciting content. Moreover, since the user does not need to manually trigger, the user can not have to worry about the wonderful moment of missing the live broadcast, and the user experience is better.
图2为本发明实施例提供的另一种视频自动录制方法的流程示意图。如图2所示,该视频自动录制方法包括:FIG. 2 is a schematic flowchart diagram of another video automatic recording method according to an embodiment of the present invention. As shown in FIG. 2, the video automatic recording method includes:
S201、检测是否接收到动画礼物。S201. Detect whether an animated gift is received.
在直播过程中,观看直播的用户可以向主播发送一些礼物,该礼物可以为静态的图片,如微笑的表情、鲜花等,也可以为动态的动画。本实施例中,可以实时检测是否接收到动 画礼物,如果检测到接收到动画礼物,则执行S202,否则未检测到动画礼物,则继续检测。During the live broadcast, the user watching the live broadcast can send some gifts to the anchor, which can be static pictures, such as smiling expressions, flowers, etc., or dynamic animations. In this embodiment, it is possible to detect whether the mobile is received in real time. Draw a gift, if it detects that an animated gift is received, execute S202, otherwise if no animated gift is detected, continue to detect.
S202、根据动画礼物的配置信息,确定动画礼物的类型。S202. Determine the type of the animated gift according to the configuration information of the animated gift.
本实施例中,动画礼物中会携带有配置信息,该配置信息中包括:动画礼物的时长、动画礼物类型、动画礼物的发送者、动画礼物的接收者、以及动画礼物中所包括的图片的名称等信息。对配置信息包括多个配置参数,每个配置参数可以根据实际情况进行赋值。当接收到动画礼物后,则从配置信息中提取出的各配置参数的具体赋值。In this embodiment, the animation gift carries configuration information, which includes: the duration of the animated gift, the type of the animated gift, the sender of the animated gift, the recipient of the animated gift, and the image included in the animated gift. Name and other information. The configuration information includes multiple configuration parameters, and each configuration parameter can be assigned according to actual conditions. After receiving the animated gift, the specific assignment of each configuration parameter extracted from the configuration information.
实际应用中,不同的动画礼物具有不同的类型。一般情况下,动画的类型可以分为普通类型、高级类型等。本实施例中,以触发事件为指定类型的动画礼物作为一个触发事件。具体地,可以将高级类型的动画礼物作为指定的类型动画礼物,例如,针对高级类型,可以将配置信息中动画的类型对应的配置参数的具体赋值为1,而针对普通类型,将配置信息中动画的类型对应的配置参数的具体赋值为0。In practice, different animated gifts have different types. In general, the types of animations can be divided into normal types, advanced types, and so on. In this embodiment, the trigger event is an animation gift of a specified type as a trigger event. Specifically, the advanced type of animated gift can be used as the specified type of animated gift. For example, for the advanced type, the specific configuration parameter corresponding to the type of the animation in the configuration information can be assigned a value of 1, and for the common type, the configuration information is The specific assignment parameter of the type corresponding to the animation is 0.
当接收到动画礼物后,可以从配置信息中提取出动画的类型对应的配置参数,可以根据该配置参数的具体赋值,确定该动画礼物的类型。进一步地确定出该动画礼物是否为指定类型的动画礼物。例如,当具体赋值为1时,说明接收到的动画礼物为指定类型的动画礼物,即为高级类型的动画礼物。而当具体赋值为0时,说明接收到的动画礼物非指定类型的动画礼物,即为普通类型的动画礼物。After receiving the animated gift, the configuration parameter corresponding to the type of the animation may be extracted from the configuration information, and the type of the animation gift may be determined according to the specific assignment of the configuration parameter. It is further determined whether the animated gift is an animated gift of a specified type. For example, when the specific value is 1, it means that the received animated gift is an animated gift of the specified type, which is an advanced type of animated gift. When the specific value is 0, it indicates that the received animated gift is an unanimated type of animated gift, which is a common type of animated gift.
S203、如果动画礼物的类型为指定类型,则确定检测到触发事件。S203. If the type of the animated gift is a specified type, it is determined that a trigger event is detected.
S204、开启视频录制。S204. Turn on video recording.
由于在S203中已经确定出检测到触发事件,就可以自动触发视频录制。Since it is determined in S203 that the trigger event is detected, the video recording can be automatically triggered.
S205、从动画礼物的配置信息中获取该动画礼物的动画时长。S205. Acquire an animation duration of the animation gift from the configuration information of the animation gift.
进一步地,动画礼物的配置信息中还包括该动画礼物的动画时长,在接收到动画礼物后,可以从配置信息中提取出该动画礼物的动画时长。Further, the configuration information of the animated gift further includes an animation duration of the animated gift, and after receiving the animated gift, the animation duration of the animated gift may be extracted from the configuration information.
S206、按照动画时长进行视频的录制,形成对应的视频文件。S206. Perform video recording according to the duration of the animation to form a corresponding video file.
进一步地,按照该动画时长进行视频的录制,也就是说,将此次视频录制的录制时间设定为动画礼物的动画时长,然后形成一个与该动画礼物对应的视频文件。Further, the video is recorded according to the duration of the animation, that is, the recording time of the video recording is set to the animation duration of the animated gift, and then a video file corresponding to the animated gift is formed.
实际应用中,直播过程中由于观看的用户比较多,可能存在一个用户发送指定类型的动画礼物正在录制的过程中,下一个用户又向主播发送了一个指定类型的动画礼物,也就是说,在对当前动画礼物播放时的直播屏幕进行录制的过程中,再次接收到指定类型的动画礼物这一触发事件。In the actual application, due to the large number of users watching during the live broadcast, there may be a user sending a specified type of animated gift in the process of recording, and the next user sends a specified type of animated gift to the anchor, that is, in the During the recording of the live screen of the current animated gift, the trigger event of the specified type of animated gift is received again.
在上述存在多个指定类型的动画礼物需要录制的情况下,一种可能的实现方式为:In the case where there are multiple specified types of animated gifts to be recorded as described above, one possible implementation is:
在当前动画礼物的动画时长的基础上延长第一录制时间,形成一个视频文件。其中,该视频文件中至少包括两个指定类型的动画礼物播放时的直播屏幕。本实施例中,第一录 制时间的延长时长为再次接收到的指定类型的动画礼物的动画时长。也就是说,对排队的需要录制的动画礼物,延长第一录制时间,将排队等待录制的所有动画礼物录制到一个视频文件中。例如,在直播过程中,正在播放一个指定类型的动画礼物A的过程中,又收到了一个指定类型的动画礼物B。A播放完成后再播放B,此时录制视频文件时,需要延长视频文件的录制时间,即在A的动画时长的基础上,延长B的动画时长。例如,A的动画时长为3秒,B的动画时长为4秒,则形成的视频文件的录制时长为7秒。多个指定类型的动画礼物需要排队播放时,在播放完一个动画礼物后,再播放下一个动画礼物,因此,可以不断地延长录制时间,形成一个较大的视频文件。通过这种方式可以将连续展示的指定类型的动画礼物可以录制在一个视频文件中,在用户再次观看录制的直播屏幕时,可以不间断地进行一次性浏览。The first recording time is extended based on the animation duration of the current animated gift to form a video file. The video file includes at least two live screens of a specified type of animated gift playing. In this embodiment, the first record The extension time of the system time is the animation duration of the specified type of animated gift received again. That is, for an animated gift that needs to be recorded that is queued, the first recording time is extended, and all the animated gifts queued for recording are recorded into a video file. For example, during the live broadcast, during the process of playing a specified type of animated gift A, another specified type of animated gift B is received. After playing A, play B again. At this time, when recording video files, you need to extend the recording time of the video file, that is, extend the animation duration of B based on the animation duration of A. For example, the animation duration of A is 3 seconds, and the animation duration of B is 4 seconds, and the formed video file has a recording duration of 7 seconds. When multiple specified types of animated gifts need to be queued for playing, after playing an animated gift, the next animated gift is played, so that the recording time can be continuously extended to form a larger video file. In this way, a specified type of animated gift that is continuously displayed can be recorded in a video file, and the user can view the recorded live screen again without interruption.
另一种可能的实现方式为:按照当前动画礼物的动画时长进行视频录制,形成包括当前动画礼物播放时的直播屏幕的视频文件。当前动画礼物对应的视频文件录制完成后,则关闭视频录制。由于在对当前动画礼物播放时的直播屏幕进行录制的过程中,再次接收到指定类型的动画礼物这一触发事件,本实施例中,可以重新自动开启视频录制,按照再次接收到的指定类型的动画礼物的动画时长进行视频录制,形成包括再次接收到的指定类型的动画礼物播放时的直播屏幕的视频文件。例如,在直播过程中,正在播放一个指定类型的动画礼物A的过程中,又收到了一个指定类型的动画礼物B。当A播放完成后关闭视频录制。当播放B时重新开启自动录制,形成一个B的视频文件。也就是说,为每个指定类型的动画礼物分别形成一个视频文件,从而形成的每个视频文件的数据量不会特定大,便于后续的存储或者分享。Another possible implementation manner is: performing video recording according to the animation duration of the current animated gift, and forming a video file including a live screen when the current animated gift is played. After the video file corresponding to the current animated gift is recorded, the video recording is turned off. In the embodiment, the triggering event of the specified type of animated gift is received again during the recording of the live screen during the current animation gift playing. In this embodiment, the video recording can be automatically restarted according to the specified type received again. The animation duration of the animated gift is video recorded to form a video file including the live screen of the specified type of animated gift playback received again. For example, during the live broadcast, during the process of playing a specified type of animated gift A, another specified type of animated gift B is received. Turn off video recording when A playback is complete. When B is played back, the automatic recording is turned back on to form a B video file. That is to say, a video file is formed for each of the specified types of animated gifts, so that the amount of data of each video file formed is not particularly large, which is convenient for subsequent storage or sharing.
每当收到一个指定类型的动画礼物时,直播应用程序就可以立刻播放该动画礼物,即在直播屏幕下同时播放多个动画礼物。在这种场景下,当对当前动画礼物播放时的直播屏幕进行录制的过程中,再次接收到指定类型的动画礼物时,计算当前动画礼物的剩余动画时长,如果剩余动画时长大于或者等于再次接收到指定类型的动画礼物的动画时长,继续按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前动画礼物和再次接收到的指定类型的动画礼物的播放时的直播屏幕的视频文件。例如,在播放A的过程中,又接收到B并播放B。视频录制时,可以计算出A的剩余动画时长,例如,A的动画时长为6秒,播放了1秒,则剩余动画时长为5秒,B的动画时长为4秒,B在A播放了1秒时收到的,由于剩余动画时长5秒大于4秒,则可以继续按照A的动画时长进行录制,不需要延长录制时间,并且在形成的视频文件中包括同时播放A和B的直播屏幕。Whenever an animated gift of the specified type is received, the live application can play the animated gift immediately, ie playing multiple animated gifts simultaneously on the live screen. In this scenario, during the recording of the live screen when the current animated gift is played, when the specified type of animated gift is received again, the remaining animation duration of the current animated gift is calculated, if the remaining animation duration is greater than or equal to receiving again To the animation duration of the specified type of animated gift, continue to perform video recording according to the animation duration of the currently described animated gift, forming a video file of the live screen at the time of playing including the current animated gift and the received type of animated gift again. . For example, during the playback of A, B is received and B is played. When recording video, you can calculate the remaining animation duration of A. For example, the animation duration of A is 6 seconds, the playback time is 1 second, the remaining animation duration is 5 seconds, the animation duration of B is 4 seconds, and B plays 1 in A. Received in seconds, since the remaining animation duration is 5 seconds longer than 4 seconds, you can continue to record according to the animation duration of A, without extending the recording time, and include the live screens of A and B simultaneously played in the formed video file.
而如果剩余动画时长小于再次接收到指定类型的动画礼物的动画时长,在当前动画礼物的动画时长的基础上延长第二录制时间,形成包括当前动画礼物和再次接收到的指定类 型的动画礼物的播放时的直播屏幕的视频文件。其中,第二录制时间的延长时长为再次接收到的指定类型的动画礼物的动画时长与剩余动画时长的差值。And if the remaining animation duration is less than the animation duration of receiving the animation gift of the specified type again, the second recording time is extended based on the animation duration of the current animation gift, forming a specified class including the current animation gift and receiving again. A video file of a live screen when playing an animated gift. The extension time of the second recording time is the difference between the animation duration of the specified type of animated gift received again and the remaining animation duration.
例如,在播放A的过程中,又接收到B并播放B。视频录制时,可以计算出A的剩余动画时长,例如,A的动画时长为3秒,播放了1秒,则剩余动画时长为2秒,B的动画时长为4秒,B在A播放了1秒时收到的,由于剩余动画时长2秒大于4秒,当A播放完后面的2秒后,B还剩下2秒,则需要继续对B剩余的2秒进行录制,即在A的动画时长的基础上延长2秒,可以完成对B的录制。For example, during the playback of A, B is received and B is played. When recording video, you can calculate the remaining animation duration of A. For example, A's animation duration is 3 seconds, for 1 second, the remaining animation duration is 2 seconds, B's animation duration is 4 seconds, and B plays at A. Received in seconds, because the remaining animation time is 2 seconds longer than 4 seconds, when A plays 2 seconds later, B has 2 seconds left, you need to continue to record the remaining 2 seconds of B, that is, the animation in A The recording of B can be completed by extending the duration of 2 seconds.
当对当前动画礼物播放时的直播屏幕进行录制的过程中,接收到多个指定类型的所述动画礼物时,计算当前动画礼物的剩余动画时长。进一步地,从多个指定类型的动画礼物中选取一个动画时长最长的动画礼物作为目标动画礼物。如果剩余动画时长大于或者等于目标动画礼物的动画时长,则继续按照当前动画礼物的动画时长进行视频录制,形成包括当前动画礼物和多个接收到的指定类型的动画礼物的播放时的直播屏幕的视频文件。When a plurality of specified types of the animated gifts are received during the recording of the live screen when the current animated gift is played, the remaining animation duration of the current animated gift is calculated. Further, an animation gift having the longest animation duration is selected from a plurality of specified types of animated gifts as a target animation gift. If the remaining animation duration is greater than or equal to the animation duration of the target animation gift, then continue to perform video recording according to the animation duration of the current animation gift, forming a live screen during playback including the current animation gift and a plurality of received specified types of animated gifts. Video file.
例如,而在播放A的同时,收到多个动画礼物B和C时,A的动画时长为10秒,B的动画时长为4秒,C的动画时长为6秒,在A播放了1秒的时候,接收到B和C。接收到B和C之后,可以立刻播放B和C。由于C的动画时长大于B的动画时长,则选择C作为目标动画礼物。进一步地,计算A的剩余动画时长为9秒。A的剩余动画时长大于或者等于C的动画时长,则视频文件的录制时间仍然A的动画时长即10秒,因为在A的动画时长内可以将B和C播放完。For example, while playing A, when receiving multiple animated gifts B and C, A's animation duration is 10 seconds, B's animation duration is 4 seconds, C's animation duration is 6 seconds, and A plays 1 second. At the time, I received B and C. After receiving B and C, you can play B and C immediately. Since the animation duration of C is greater than the animation duration of B, select C as the target animation gift. Further, the remaining animation duration of the calculation A is 9 seconds. The remaining animation duration of A is greater than or equal to the animation duration of C. The recording time of the video file is still 10 seconds of the animation duration of A, because B and C can be played during the animation duration of A.
进一步地,如果剩余动画时长小于目标动画礼物的动画时长,在当前动画礼物的动画时长的基础上延长第三录制时间,形成包括当前所述动画礼物和多个接收到的指定类型的动画礼物的播放时的直播屏幕的视频文件。其中,第三录制时间的延长时长为目标动画礼物的动画时长与剩余动画时长的差值。Further, if the remaining animation duration is less than the animation duration of the target animation gift, the third recording time is extended based on the animation duration of the current animation gift, forming an animation gift including the current animation gift and a plurality of received specified types of animation gifts. The video file of the live screen during playback. The length of the third recording time is the difference between the animation duration of the target animation gift and the remaining animation duration.
例如,而在播放A的同时,收到多个动画礼物B和C时,A的动画时长为5秒,B的动画时长为3秒,C的动画时长为7秒,在A播放了1秒的时候,接收到B和C。接收到B和C之后,可以立刻播放B和C。由于C的动画时长大于B的动画时长,则选择C作为目标动画礼物。进一步地,计算A的剩余动画时长为4秒。A的剩余动画时长小于于C的动画时长,则视频文件的录制时间需要A在5秒的基础上加上3秒即C的动画时长与A的剩余动画时长之间的差值。由于B的播放时长为3秒,在A播放完成之前,B已经播放完成,在A播放完成后,C还没有播放完,还需要继续对C进行播放,可以继续对直播屏幕进行录制,直到C播放完。For example, while playing A, when receiving multiple animated gifts B and C, A's animation duration is 5 seconds, B's animation duration is 3 seconds, C's animation duration is 7 seconds, and A plays 1 second. At the time, I received B and C. After receiving B and C, you can play B and C immediately. Since the animation duration of C is greater than the animation duration of B, select C as the target animation gift. Further, the remaining animation duration of the calculation A is 4 seconds. The remaining animation duration of A is less than the animation duration of C. The recording time of the video file requires A to add 3 seconds to the difference between the animation duration of C and the remaining animation duration of A. Since the playback time of B is 3 seconds, before the A playback is completed, B has already been played. After the A playback is completed, the C has not been played yet, and it is necessary to continue playing the C, and the recording of the live screen can continue until C is played. After playing.
进一步地,形成包含多个指定类型的视频文件时,为了实现持续地对多个动画礼物进行录制,本实施例中,如果当前动画礼物播放完成且视频文件的录制还在进行时,将与当 前动画礼物的接收时间最接近且未播放完的已经接收到的动画礼物更新为当前动画礼物。例如,A的动画时长为5秒,B的动画时长为3秒,C的动画时长为7秒,当A播放完成后,C还需要继续播放,视频文件还需要继续录制,此时需要将C作为当前动画礼物。Further, when a video file containing a plurality of specified types is formed, in order to continuously record a plurality of animated gifts, in this embodiment, if the current animation gift is completed and the recording of the video file is still in progress, The received animated gift with the closest and unplayed pre-animation gift is updated to the current animated gift. For example, the animation duration of A is 5 seconds, the animation duration of B is 3 seconds, and the animation duration of C is 7 seconds. When A playback is completed, C needs to continue playing, and the video file needs to continue recording. As a current animated gift.
S207、将录制的视频文件在缓存单元中进行缓存。S207. Cache the recorded video file in a cache unit.
S208、当用户将视频文件进行永久保存或者分享后,从缓存单元中删除视频文件。S208. After the user permanently saves or shares the video file, the video file is deleted from the cache unit.
进一步地,将录制的视频文件在指定的缓存单元中进行缓存,当用户将录制的视频文件进行永久保存或者分享后,可以从缓存单元中删除该视频文件,从而可以释放所占的该缓存单元的空间,便于用户再次进行视频的自动录制。Further, the recorded video file is cached in the specified cache unit. After the user permanently saves or shares the recorded video file, the video file can be deleted from the cache unit, so that the cached unit can be released. The space allows the user to automatically record the video again.
例如,用户通过智能手机观看直播,则可以将自动录制的视频文件缓存在手机的文件系统中。用户可以根据需求从文件系统中,将视频文件存储到相册中,也可以将视频文件通过网络方式进行分享,如可以分享到一些其他的应用程序中。本实施例中,手机的文件系统中可以为用户提供一些入口,便于用户进行分享或者保存到相册中。在将视频文件分享或者保存到相册中后,则可以从手机的文件系统中将缓存的视频文件删除。For example, if a user watches a live broadcast through a smartphone, the automatically recorded video file can be cached in the file system of the mobile phone. The user can store the video file into the album from the file system according to requirements, or share the video file through the network, for example, can be shared into some other applications. In this embodiment, the file system of the mobile phone can provide some entries for the user, which is convenient for the user to share or save to the album. After sharing or saving the video file to the album, the cached video file can be deleted from the file system of the mobile phone.
本实施例提供的视频自动录制方法,通过预先设定一些能够触发自动录制的触发事件,当检测到有触发事件发生时,则触发自动开启视频录制。本实施例中,能够根据触发事件自动触发视频录制,不需要用户手动开启视频录制,从而录制的视频实时性更好,能够展现更多的精彩内容。而且由于不需要用户手动触发,用户可以不用担心错过直播的精彩瞬间,用户体验更好。In the video automatic recording method provided in this embodiment, a trigger event capable of triggering automatic recording is preset, and when a trigger event is detected, the video recording is automatically started. In this embodiment, the video recording can be automatically triggered according to the trigger event, and the user does not need to manually start the video recording, so that the recorded video has better real-time performance and can display more exciting content. Moreover, since the user does not need to manually trigger, the user can not have to worry about the wonderful moment of missing the live broadcast, and the user experience is better.
图3为本发明实施例提供的一种视频自动录制装置的结构示意图。如图3所示,该视频自动录制装置包括:检测模块11和开启模块12。FIG. 3 is a schematic structural diagram of a video automatic recording apparatus according to an embodiment of the present invention. As shown in FIG. 3, the video automatic recording device includes a detecting module 11 and an opening module 12.
检测模块11,用于检测是否发生触发自动开启视频录制的触发事件。The detecting module 11 is configured to detect whether a trigger event that triggers automatic opening of the video recording occurs.
开启模块12,用于如果检测出发生所述触发事件,自动开启视频录制。The module 12 is turned on, for automatically starting video recording if it is detected that the trigger event occurs.
本实施例中,可以预先设置一些触发事件,通过这些触发事件来触发视频录制,即当检测模块11检测到触发事件发生时,则开启模块12可以直接自动开启视频录制,对直播的屏幕进行录制,形成对应的视频文件。具体地,在直播的过程中,检测模块11可以实时地去检测是否发生了触发自动录制的触发事件,在检测到触发事件后,开启模块12则可以控制自动开启视频录制。进一步地,如果在直播过程中未检测到自动触发录制的触发事件则继续检测。In this embodiment, some trigger events may be set in advance, and the video recording is triggered by the triggering events. When the detecting module 11 detects that a triggering event occurs, the opening module 12 can directly open the video recording and record the live broadcast screen. , forming a corresponding video file. Specifically, during the live broadcast, the detecting module 11 can detect whether a trigger event triggering automatic recording occurs in real time. After detecting the trigger event, the opening module 12 can control to automatically start video recording. Further, if the trigger event of the automatic trigger recording is not detected during the live broadcast, the detection is continued.
关于触发事件的介绍可参见上述实施例中相关内容的记载,此处不再赘述。For the description of the triggering event, refer to the description of related content in the foregoing embodiment, and details are not described herein again.
本实施例提供的视频自动录制装置,通过预先设定一些能够触发自动录制的触发事件,当检测到有触发事件发生时,则触发自动开启视频录制。本实施例中,能够根据触发事件自动触发视频录制,不需要用户手动开启视频录制,从而录制的视频实时性更好,能够展 现更多的精彩内容。而且由于不需要用户手动触发,用户可以不用担心错过直播的精彩瞬间,用户体验更好。The video automatic recording device provided in this embodiment pre-sets some trigger events that can trigger automatic recording. When a trigger event is detected, the video recording is automatically started. In this embodiment, the video recording can be automatically triggered according to the trigger event, and the user does not need to manually start the video recording, so that the recorded video has better real-time performance and can be displayed. More exciting content. Moreover, since the user does not need to manually trigger, the user can not have to worry about the wonderful moment of missing the live broadcast, and the user experience is better.
图4为本发明实施例提供的另一种视频自动录制装置结构示意图。如图4所示,在上述实施例的基础之上,该视频自动录制装置还包括:缓存模块13和删除模块14。FIG. 4 is a schematic structural diagram of another video automatic recording apparatus according to an embodiment of the present invention. As shown in FIG. 4, based on the above embodiment, the video automatic recording apparatus further includes: a cache module 13 and a deletion module 14.
本实施例中,所述触发事件为接收到指定类型的动画礼物。In this embodiment, the trigger event is that an animation gift of a specified type is received.
检测模块11的一种可选地的结构,包括:检测单元111和确定单元112。An optional structure of the detection module 11 includes a detection unit 111 and a determination unit 112.
其中,检测单元111,用于检测是否接收到动画礼物。The detecting unit 111 is configured to detect whether an animated gift is received.
确定单元112,用于根据所述动画礼物的配置信息,确定所述动画礼物的类型,如果所述动画礼物的类型为指定类型,则确定检测到所述触发事件。The determining unit 112 is configured to determine a type of the animated gift according to the configuration information of the animated gift, and if the type of the animated gift is a specified type, determine to detect the triggering event.
进一步地,开启模块12的一种可选地结构,包括:开启单元121、获取单元122和录制单元123。Further, an optional structure of the opening module 12 includes: an opening unit 121, an obtaining unit 122, and a recording unit 123.
开启单元121,用于在检测到所述触发事件时,开启视频录制。The opening unit 121 is configured to enable video recording when the trigger event is detected.
获取单元122,用于从所述动画礼物的配置信息中获取所述动画礼物的动画时长。The obtaining unit 122 is configured to acquire an animation duration of the animated gift from the configuration information of the animated gift.
录制单元123,用于按照所述动画时长进行视频的录制,形成对应的视频文件。The recording unit 123 is configured to perform video recording according to the duration of the animation to form a corresponding video file.
进一步地,录制单元123,具体用于当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,再次接收到所述指定类型的动画礼物时,在当前所述动画礼物的所述动画时长的基础上延长第一录制时间,形成所述视频文件;其中,所述视频文件中至少包括两个所述指定类型的动画礼物播放时的直播屏幕;Further, the recording unit 123 is specifically configured to: when the animation of the specified type is received again during the recording of the live screen when the animation gift is currently played, the animation of the current animation gift Extending the first recording time on the basis of the duration to form the video file; wherein the video file includes at least two live screens of the specified type of animated gifts during playback;
其中,所述第一录制时间的延长时长为再次接收到的所述指定类型的动画礼物的所述动画时长。The extension duration of the first recording time is the animation duration of the specified type of animated gift received again.
可选地,录制单元123,具体用于当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,再次接收到所述指定类型的动画礼物时,计算当前所述动画礼物的剩余动画时长,如果所述剩余动画时长大于或者等于再次接收到所述指定类型的动画礼物时的所述动画时长,继续按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前所述动画礼物和再次接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件。Optionally, the recording unit 123 is configured to calculate a remaining animation of the current animation gift when the animation gift of the specified type is received again during the recording of the live screen during the current animation gift playing. a duration, if the remaining animation duration is greater than or equal to the animation duration when the specified type of animated gift is received again, continuing to perform video recording according to the animation duration of the current animation gift, forming the animation including the current animation The video file of the live screen at the time of play of the specified type of animated gift received and received again.
进一步地,录制单元123,具体用于如果所述剩余动画时长小于再次接收到所述指定类型的动画礼物时的所述动画时长,在当前所述动画礼物的所述动画时长的基础上延长第二录制时间,形成包括当前所述动画礼物和再次接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件。Further, the recording unit 123 is specifically configured to extend the duration of the animation duration of the current animation gift if the remaining animation duration is less than the animation duration when the specified type of animation gift is received again. At the second recording time, the video file including the currently described animated gift and the live screen at the time of playback of the specified type of animated gift received again is formed.
其中,所述第二录制时间的延长时长为再次接收到的所述指定类型的动画礼物的所述动画时长与所述剩余动画时长的差值。The length of the second recording time is the difference between the animation duration of the specified type of animated gift and the remaining animation duration.
可选地,录制单元123,具体用于当对当前所述动画礼物播放时的直播屏幕进行录制 的过程中,接收到多个所述指定类型的所述动画礼物时,计算当前所述动画礼物的剩余动画时长,从多个所述指定类型的动画礼物中选取一个动画时长最长的所述动画礼物作为目标动画礼物,如果所述剩余动画时长大于或者等于所述目标动画礼物的动画时长,则继续按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前所述动画礼物和多个接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件。Optionally, the recording unit 123 is specifically configured to record the live screen when the current animation gift is played. And receiving, when the plurality of the specified types of the animated gifts are received, calculating a remaining animation duration of the current animated gift, and selecting the longest duration of the animation from the plurality of the specified types of animated gifts Animated gift as a target animation gift, if the remaining animation duration is greater than or equal to the animation duration of the target animation gift, continuing to perform video recording according to the animation duration of the current animation gift, forming the current animation gift and The plurality of received video files of the live screen at the time of playing of the specified type of animated gift.
进一步地,录制单元123,具体用于如果所述剩余动画时长小于所述目标动画礼物的动画时长,在当前所述动画礼物的所述动画时长的基础上延长第三录制时间,形成包括当前所述动画礼物和多个接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件。Further, the recording unit 123 is specifically configured to extend the third recording time based on the animation duration of the current animation gift, if the remaining animation duration is less than the animation duration of the target animation gift, and form the current recording The video file of the live screen at the time of playback of the animated gift and the plurality of received animated gifts of the specified type.
其中,所述第三录制时间的延长时长为所述目标动画礼物的所述动画时长与所述剩余动画时长的差值。The length of the third recording time is the difference between the animation duration of the target animation gift and the remaining animation duration.
进一步地,所述开启模块12,还包括:更新单元124。Further, the opening module 12 further includes: an updating unit 124.
更新单元124,用于如果当前所述动画礼物播放完成且所述视频文件的录制还在进行时,将与当前所述动画礼物的接收时间最接近且已经接收到的未播放完的所述动画礼物更新为当前所述动画礼物。The updating unit 124 is configured to: if the current animation gift playing is completed and the recording of the video file is still in progress, the animation that is closest to the current receiving time of the animated gift and has been received is not played. The gift is updated to the current animated gift.
可选地,录制单元123,具体用于当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,再次接收到所述指定类型的动画礼物时,按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前所述动画礼物播放时的直播屏幕的所述视频文件,结束对当前动画礼物播放时的直播屏幕的录制,重新自动开启视频录制,按照再次接收到的所述指定类型的动画礼物的所述动画时长进行视频录制,形成包括再次接收到的所述指定类型的动画礼物播放时的直播屏幕的所述视频文件。Optionally, the recording unit 123 is specifically configured to: when the recording of the live screen of the current animation gift is being played, when the animation gift of the specified type is received again, according to the current animation gift The animation duration is video recording, forming the video file including the live screen of the current animation gift playing, ending the recording of the live screen when the current animation gift is played, and automatically turning on the video recording again, according to the received again The animation duration of the specified type of animated gift is video recorded to form the video file including the live screen of the specified type of animated gift play received again.
进一步地,缓存模块13,用于将录制的所述视频文件在缓存单元中进行缓存。Further, the cache module 13 is configured to cache the recorded video file in a cache unit.
删除模块14,用于当用户将所述视频文件进行保存或者分享后,从所述缓存单元中删除所述视频文件。The deleting module 14 is configured to delete the video file from the cache unit after the user saves or shares the video file.
本实施例提供的视频自动录制装置,通过预先设定一些能够触发自动录制的触发事件,当检测到有触发事件发生时,则触发自动开启视频录制。本实施例中,能够根据触发事件自动触发视频录制,不需要用户手动开启视频录制,从而录制的视频实时性更好,能够展现更多的精彩内容。而且由于不需要用户手动触发,用户可以不用担心错过直播的精彩瞬间,用户体验更好。The video automatic recording device provided in this embodiment pre-sets some trigger events that can trigger automatic recording. When a trigger event is detected, the video recording is automatically started. In this embodiment, the video recording can be automatically triggered according to the trigger event, and the user does not need to manually start the video recording, so that the recorded video has better real-time performance and can display more exciting content. Moreover, since the user does not need to manually trigger, the user can not have to worry about the wonderful moment of missing the live broadcast, and the user experience is better.
本发明实施例还提供一种终端,该终端包含前述任一实施例所述的视频自动录制装置。The embodiment of the invention further provides a terminal, which comprises the video automatic recording device according to any of the preceding embodiments.
图5为本发明实施例提供的一种终端的结构示意图,可以实现本发明图1-2所示实施例的流程,如图5所示,上述终端可以包括:壳体41、处理器42、存储器43、电路板44 和电源电路45,其中,电路板44安置在壳体41围成的空间内部,处理器42和存储器43设置在电路板44上;电源电路45,用于为上述电子设备的各个电路或器件供电;存储器43用于存储可执行程序代码;处理器42通过读取存储器43中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行前述任一实施例所述的视频自动录制方法。FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention, which can implement the process of the embodiment shown in FIG. 1-2 of the present invention. As shown in FIG. 5, the terminal may include: a housing 41, a processor 42, Memory 43, circuit board 44 And a power supply circuit 45, wherein the circuit board 44 is disposed inside the space enclosed by the casing 41, the processor 42 and the memory 43 are disposed on the circuit board 44, and the power supply circuit 45 is configured to supply power to each circuit or device of the electronic device. The memory 43 is for storing executable program code; the processor 42 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 43, for performing the video automatic described in any of the foregoing embodiments. Recording method.
处理器42对上述步骤的具体执行过程以及处理器42通过运行可执行程序代码来进一步执行的步骤,可以参见本发明图1-2所示实施例的描述,在此不再赘述。The description of the embodiment shown in FIG. 1-2 of the present invention is omitted, and details are not described herein again. The specific execution process of the foregoing steps of the processor 42 and the steps performed by the processor 42 by executing the executable program code may be referred to.
该终端以多种形式存在,包括但不限于:The terminal exists in many forms, including but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication devices: These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access. Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment devices: These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: A device that provides computing services. The server consists of a processor, a hard disk, a memory, a system bus, etc. The server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
(5)其他具有数据交互功能的电子设备。(5) Other electronic devices with data interaction functions.
为了实现上述实施例,本发明还提出一种非临时性计算机可读存储介质,其上存储有计算机程序,当该计算机程序被处理器执行时能够实现前述图1-图4实施例所述的即时通信方法。In order to achieve the above embodiments, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program capable of implementing the foregoing embodiments of Figures 1-4 when executed by the processor Instant messaging method.
为了实现上述实施例,本发明还提出一种计算机程序产品,当所述计算机程序产品中的指令处理器执行时,执行本发明前述图1-图4实施例所述的即时通信方法。In order to implement the above embodiments, the present invention also provides a computer program product for performing the instant messaging method of the foregoing embodiments of Figures 1-4 of the present invention when executed by an instruction processor in the computer program product.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means a specific feature described in connection with the embodiment or example. A structure, material or feature is included in at least one embodiment or example of the invention. In the present specification, the schematic representation of the above terms is not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, various embodiments or examples described in the specification, as well as features of various embodiments or examples, may be combined and combined.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者 隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。Moreover, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" and "second" may be explicitly stated or At least one such feature is implicitly included. In the description of the present invention, the meaning of "a plurality" is at least two, such as two, three, etc., unless specifically defined otherwise.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logic function or process. And the scope of the preferred embodiments of the invention includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in an opposite order depending on the functions involved, in the order shown or discussed. It will be understood by those skilled in the art to which the embodiments of the present invention pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware and in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: discrete with logic gates for implementing logic functions on data signals Logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, one or a combination of the steps of the method embodiments is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以 软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated module if When the software function module is implemented in the form and sold or used as a stand-alone product, it can also be stored in a computer readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。 The above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. Although the embodiments of the present invention have been shown and described, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the invention. The embodiments are subject to variations, modifications, substitutions and variations.

Claims (25)

  1. 一种视频自动录制方法,其特征在于,在直播过程中,包括:A video automatic recording method, characterized in that, during a live broadcast, the method includes:
    检测是否发生触发自动开启视频录制的触发事件;Detecting whether a trigger event triggering automatic video recording is triggered;
    如果检测出发生所述触发事件,自动开启视频录制。If it is detected that the trigger event occurs, the video recording is automatically turned on.
  2. 根据权利要求1所述的视频自动录制方法,其特征在于,所述触发事件为接收到指定类型的动画礼物,则所述检测是否发生触发自动开启视频录制的触发事件,包括:The video automatic recording method according to claim 1, wherein the triggering event is that a triggering event that triggers the automatic opening of the video recording occurs when the specified type of animated gift is received, including:
    检测是否接收到动画礼物;Detecting whether an animated gift has been received;
    根据所述动画礼物的配置信息,确定所述动画礼物的类型;Determining a type of the animated gift according to the configuration information of the animated gift;
    如果所述动画礼物的类型为指定类型,则确定检测到所述触发事件。If the type of the animated gift is of a specified type, it is determined that the triggering event is detected.
  3. 根据权利要求2所述的视频自动录制方法,其特征在于,所述自动开启视频录制,包括:The automatic video recording method according to claim 2, wherein the automatically turning on the video recording comprises:
    在检测到所述触发事件时,开启视频录制;Turning on video recording when the trigger event is detected;
    从所述动画礼物的配置信息中获取所述动画礼物的动画时长;Obtaining an animation duration of the animated gift from configuration information of the animated gift;
    按照所述动画时长进行视频的录制,形成对应的视频文件。The video is recorded according to the duration of the animation to form a corresponding video file.
  4. 根据权利要求3所述的视频自动录制方法,其特征在于,所述按照所述动画时长进行视频的录制,形成对应的视频文件,包括:The video automatic recording method according to claim 3, wherein the recording of the video according to the duration of the animation to form a corresponding video file comprises:
    当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,再次接收到所述指定类型的动画礼物时,在当前所述动画礼物的所述动画时长的基础上延长第一录制时间,形成所述视频文件;其中,所述视频文件中至少包括两个所述指定类型的动画礼物播放时的直播屏幕;When the animation of the specified type is received again during the recording of the live screen when the animation gift is currently played, the first recording time is extended based on the animation duration of the current animation gift. Forming the video file; wherein the video file includes at least two live screens of the specified type of animated gifts during playback;
    其中,所述第一录制时间的延长时长为再次接收到的所述指定类型的动画礼物的所述动画时长。The extension duration of the first recording time is the animation duration of the specified type of animated gift received again.
  5. 根据权利要求3所述的视频自动录制方法,其特征在于,所述按照所述动画时长进行视频的录制,形成对应的视频文件,包括:The video automatic recording method according to claim 3, wherein the recording of the video according to the duration of the animation to form a corresponding video file comprises:
    当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,再次接收到所述指定类型的动画礼物时,计算当前所述动画礼物的剩余动画时长;Calculating the remaining animation duration of the current animated gift when the animation gift of the specified type is received again during the recording of the live screen when the animation gift is currently played;
    如果所述剩余动画时长大于或者等于再次接收到所述指定类型的动画礼物的所述动画时长,继续按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前所述动画礼物和再次接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件。If the remaining animation duration is greater than or equal to the animation duration of the specified type of animated gift again, continuing to perform video recording according to the animation duration of the current animation gift, forming the current animation gift including The video file of the live screen at the time of playback of the specified type of animated gift received.
  6. 根据权利要求5所述的视频自动录制方法,其特征在于,还包括:The video automatic recording method according to claim 5, further comprising:
    如果所述剩余动画时长小于再次接收到所述指定类型的动画礼物的所述动画时长,在 当前所述动画礼物的所述动画时长的基础上延长第二录制时间,形成包括当前所述动画礼物和再次接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件;If the remaining animation duration is less than the animation duration of receiving the specified type of animated gift again, Extending the second recording time based on the animation duration of the current animation gift, forming the video file including the current animation gift and the received live screen of the specified type of animated gift at the time of playing;
    其中,所述第二录制时间的延长时长为再次接收到的所述指定类型的动画礼物的所述动画时长与所述剩余动画时长的差值。The length of the second recording time is the difference between the animation duration of the specified type of animated gift and the remaining animation duration.
  7. 根据权利要求3所述的视频自动录制方法,所述按照所述动画时长进行视频的录制,形成对应的视频文件,包括:The video automatic recording method according to claim 3, wherein the recording of the video according to the duration of the animation to form a corresponding video file comprises:
    当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,接收到多个所述指定类型的所述动画礼物时,计算当前所述动画礼物的剩余动画时长;Calculating the remaining animation duration of the current animated gift when a plurality of the specified types of the animated gifts are received during the recording of the live screen when the animation gift is currently played;
    从多个所述指定类型的动画礼物中选取一个动画时长最长的所述动画礼物作为目标动画礼物;Selecting, from the plurality of the specified types of animated gifts, the animated gift having the longest duration of the animation as the target animated gift;
    如果所述剩余动画时长大于或者等于所述目标动画礼物的动画时长,则继续按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前所述动画礼物和多个接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件。If the remaining animation duration is greater than or equal to the animation duration of the target animation gift, continuing to perform video recording according to the animation duration of the current animation gift, forming the current animation gift and the plurality of received animations The video file of the live screen at the time of playback of the specified type of animated gift.
  8. 根据权利要求7所述的视频自动录制方法,还包括:The video automatic recording method according to claim 7, further comprising:
    如果所述剩余动画时长小于所述目标动画礼物的动画时长,在当前所述动画礼物的所述动画时长的基础上延长第三录制时间,形成包括当前所述动画礼物和多个接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件;If the remaining animation duration is less than the animation duration of the target animation gift, extending the third recording time based on the animation duration of the current animation gift, forming the current animation gift and the plurality of received The video file of the live screen at the time of playing the specified type of animated gift;
    其中,所述第三录制时间的延长时长为所述目标动画礼物的所述动画时长与所述剩余动画时长的差值。The length of the third recording time is the difference between the animation duration of the target animation gift and the remaining animation duration.
  9. 根据权利要求3所述的视频自动录制方法,其特征在于,所述按照所述动画时长进行视频的录制,形成对应的视频文件,包括:The video automatic recording method according to claim 3, wherein the recording of the video according to the duration of the animation to form a corresponding video file comprises:
    当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,再次接收到所述指定类型的动画礼物时,按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前所述动画礼物播放时的直播屏幕的所述视频文件;When the animation of the specified type is received again during the recording of the live screen when the animation gift is currently played, video recording is performed according to the animation duration of the current animation gift, and the current The video file of the live screen when the animated gift is played;
    结束对当前动画礼物播放时的直播屏幕的录制;End recording of the live screen when the current animated gift is played;
    重新自动开启视频录制;Re-automatically turn on video recording;
    按照再次接收到的所述指定类型的动画礼物的所述动画时长进行视频录制,形成包括再次接收到的所述指定类型的动画礼物播放时的直播屏幕的所述视频文件。The video recording is performed in accordance with the animation duration of the specified type of animated gift received again, forming the video file including the live screen of the specified type of animated gift play received again.
  10. 根据权利要求3-8任一项所述的视频自动录制方法,还包括:The automatic video recording method according to any one of claims 3-8, further comprising:
    如果当前所述动画礼物播放完成且所述视频文件的录制还在进行时,将与当前所述动画礼物的接收时间最接近且已经接收到的未播放完的所述动画礼物更新为当前所述动画礼物。 If the current animation gift is played and the recording of the video file is still in progress, updating the animated gift that is closest to the current receiving time of the animated gift and has been received is updated as currently described. Animated gift.
  11. 根据权利要求3-9任一项所述的视频自动录制方法,其特征在于,还包括:The automatic video recording method according to any one of claims 3-9, further comprising:
    将录制的所述视频文件在缓存单元中进行缓存;Recording the recorded video file in a cache unit;
    当用户将所述视频文件进行保存或者分享后,从所述缓存单元中删除所述视频文件。After the user saves or shares the video file, the video file is deleted from the cache unit.
  12. 一种视频自动录制装置,其特征在于,包括:A video automatic recording device, comprising:
    检测模块,用于检测是否发生触发自动开启视频录制的触发事件;a detecting module, configured to detect whether a trigger event triggering automatic video recording is triggered;
    开启模块,用于如果检测出发生所述触发事件,自动开启视频录制。The module is turned on to automatically start video recording if the trigger event is detected to occur.
  13. 根据权利要求12所述的视频自动录制装置,其特征在于,当所述触发事件为接收到指定类型的动画礼物,则所述检测模块,包括:The video automatic recording apparatus according to claim 12, wherein when the triggering event is that an animation gift of a specified type is received, the detecting module comprises:
    检测单元,用于检测是否接收到动画礼物;a detecting unit, configured to detect whether an animated gift is received;
    确定单元,用于根据所述动画礼物的配置信息,确定所述动画礼物的类型,如果所述动画礼物的类型为指定类型,则确定检测到所述触发事件。a determining unit, configured to determine a type of the animated gift according to the configuration information of the animated gift, and if the type of the animated gift is a specified type, determine to detect the triggering event.
  14. 根据权利要求13所述的视频自动录制装置,其特征在于,所述开启模块,包括:The video automatic recording apparatus according to claim 13, wherein the opening module comprises:
    开启单元,用于在检测到所述触发事件时,开启视频录制;An opening unit, configured to enable video recording when the trigger event is detected;
    获取单元,用于从所述动画礼物的配置信息中获取所述动画礼物的动画时长;An obtaining unit, configured to acquire an animation duration of the animated gift from configuration information of the animated gift;
    录制单元,用于按照所述动画时长进行视频的录制,形成对应的视频文件。The recording unit is configured to perform video recording according to the duration of the animation to form a corresponding video file.
  15. 根据权利要求14所述的视频自动录制装置,其特征在于,所述录制单元,具体用于当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,再次接收到所述指定类型的动画礼物时,在当前所述动画礼物的所述动画时长的基础上延长第一录制时间,形成所述视频文件;其中,所述视频文件中至少包括两个所述指定类型的动画礼物播放时的直播屏幕;The video automatic recording apparatus according to claim 14, wherein the recording unit is specifically configured to receive the specified type again during recording of a live screen when the current animation gift is played. When the gift is animated, the first recording time is extended on the basis of the animation duration of the current animation gift to form the video file; wherein the video file includes at least two of the specified types of animated gifts during playback Live screen
    其中,所述第一录制时间的延长时长为再次接收到的所述指定类型的动画礼物的所述动画时长。The extension duration of the first recording time is the animation duration of the specified type of animated gift received again.
  16. 根据权利要求14所述的视频自动录制装置,其特征在于,所述录制单元,具体用于当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,再次接收到所述指定类型的动画礼物时,计算当前所述动画礼物的剩余动画时长,如果所述剩余动画时长大于或者等于再次接收到所述指定类型的动画礼物时的所述动画时长,继续按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前所述动画礼物和再次接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件。The video automatic recording apparatus according to claim 14, wherein the recording unit is specifically configured to receive the specified type again during recording of a live screen when the current animation gift is played. When animating the gift, calculating a remaining animation duration of the current animation gift, if the remaining animation duration is greater than or equal to the animation duration when the specified type of animation gift is received again, continuing to follow the current animation gift The animation duration is video recorded to form the video file including the currently described animated gift and the live screen at the time of playback of the specified type of animated gift received again.
  17. 根据权利要求16所述的视频自动录制装置,其特征在于,所述录制单元,具体用于如果所述剩余动画时长小于再次接收到所述指定类型的动画礼物时的所述动画时长,在当前所述动画礼物的所述动画时长的基础上延长第二录制时间,形成包括当前所述动画礼物和再次接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件; The video automatic recording apparatus according to claim 16, wherein the recording unit is specifically configured to: if the remaining animation duration is less than the animation duration when the specified type of animated gift is received again, at the current Extending the second recording time based on the animation duration of the animated gift, forming the video file including the current animation gift and the received live screen of the specified type of animated gift at the time of playing;
    其中,所述第二录制时间的延长时长为再次接收到的所述指定类型的动画礼物的所述动画时长与所述剩余动画时长的差值。The length of the second recording time is the difference between the animation duration of the specified type of animated gift and the remaining animation duration.
  18. 根据权利要求14所述的视频自动录制装置,所述录制单元,具体用于当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,接收到多个所述指定类型的所述动画礼物时,计算当前所述动画礼物的剩余动画时长,从多个所述指定类型的动画礼物中选取一个动画时长最长的所述动画礼物作为目标动画礼物,如果所述剩余动画时长大于或者等于所述目标动画礼物的动画时长,则继续按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前所述动画礼物和多个接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件。The video automatic recording apparatus according to claim 14, wherein the recording unit is configured to receive the plurality of the specified types of animations during recording of a live screen when the animation gift is currently played. a gift, calculating a remaining animation duration of the current animated gift, selecting, from the plurality of the specified types of animated gifts, the animated gift having the longest animation duration as the target animation gift, if the remaining animation duration is greater than or equal to The animation duration of the target animation gift continues to be video recorded according to the animation duration of the current animation gift, and is formed during playback including the current animation gift and the plurality of received animation gifts of the specified type. The video file of the live screen.
  19. 根据权利要求18所述的视频自动录制装置,还包括:The video automatic recording apparatus according to claim 18, further comprising:
    所述录制单元,具体用于如果所述剩余动画时长小于所述目标动画礼物的动画时长,在当前所述动画礼物的所述动画时长的基础上延长第三录制时间,形成包括当前所述动画礼物和多个接收到的所述指定类型的动画礼物的播放时的直播屏幕的所述视频文件;The recording unit is specifically configured to extend the third recording time based on the animation duration of the current animation gift, if the remaining animation duration is less than the animation duration of the target animation gift, to form the current animation a video file of the live screen of the gift and the plurality of received animated gifts of the specified type;
    其中,所述第三录制时间的延长时长为所述目标动画礼物的所述动画时长与所述剩余动画时长的差值。The length of the third recording time is the difference between the animation duration of the target animation gift and the remaining animation duration.
  20. 根据权利要求14所述的视频自动录制装置,其特征在于,所述录制单元,具体用于当对当前所述动画礼物播放时的直播屏幕进行录制的过程中,再次接收到所述指定类型的动画礼物时,按照当前所述动画礼物的所述动画时长进行视频录制,形成包括当前所述动画礼物播放时的直播屏幕的所述视频文件,结束对当前动画礼物播放时的直播屏幕的录制,重新自动开启视频录制,按照再次接收到的所述指定类型的动画礼物的所述动画时长进行视频录制,形成包括再次接收到的所述指定类型的动画礼物播放时的直播屏幕的所述视频文件。The video automatic recording apparatus according to claim 14, wherein the recording unit is specifically configured to receive the specified type again during recording of a live screen when the current animation gift is played. When the gift is animated, the video recording is performed according to the animation duration of the currently described animated gift, and the video file including the live screen of the current animation gift playing is formed, and the recording of the live screen when the current animation gift is played is ended. Re-automatically turning on the video recording, performing video recording according to the animation duration of the specified type of animated gift received again, forming the video file including the live screen of the specified type of animated gift playing received again .
  21. 根据权利要求14-19任一项所述的视频自动录制装置,所述开启模块,还包括:The video automatic recording apparatus according to any one of claims 14 to 19, wherein the opening module further comprises:
    更新单元,用于如果当前所述动画礼物播放完成且所述视频文件的录制还在进行时,将与当前所述动画礼物的接收时间最接近且已经接收到的未播放完的所述动画礼物更新为当前所述动画礼物。And an updating unit, configured to: if the current animation gift playing is completed and the recording of the video file is still in progress, the animation gift that is closest to the current receiving time of the animated gift and has been received Updated to the current animated gift.
  22. 根据权利要求14-20任一项所述的视频自动录制装置,其特征在于,还包括:The automatic video recording device according to any one of claims 14 to 20, further comprising:
    缓存模块,用于将录制的所述视频文件在缓存单元中进行缓存;a cache module, configured to cache the recorded video file in a cache unit;
    删除模块,用于当用户将所述视频文件进行保存或者分享后,从所述缓存单元中删除所述视频文件。And a deleting module, configured to delete the video file from the cache unit after the user saves or shares the video file.
  23. 一种终端,其特征在于,包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用 于为上述终端的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行权利要求1-11任一项所述的视频自动录制方法。A terminal, comprising: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, the processor and the memory are disposed on the circuit board; and the power circuit ,use Providing power to each circuit or device of the above terminal; the memory is for storing executable program code; the processor is configured to execute the program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the claim 1 The automatic video recording method of any of the items -11.
  24. 一种计算机程序产品,当所述计算机程序产品中的指令由处理器执行时,执行如权利要求1-11任一项所述的视频自动录制方法。A computer program product for performing the automatic video recording method according to any one of claims 1 to 11 when the instructions in the computer program product are executed by a processor.
  25. 一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,该计算机程序被处理器执行时实现如权利要求1-11任一项所述的视频自动录制方法。 A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program is executed by a processor to implement the video automatic recording method according to any one of claims 1-11.
PCT/CN2017/109167 2017-02-20 2017-11-02 Method and apparatus for automatically recording video, and terminal WO2018149176A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710090190.4 2017-02-20
CN201710090190.4A CN106792122A (en) 2017-02-20 2017-02-20 Automatic video recording method and device and terminal

Publications (1)

Publication Number Publication Date
WO2018149176A1 true WO2018149176A1 (en) 2018-08-23

Family

ID=58957775

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/109167 WO2018149176A1 (en) 2017-02-20 2017-11-02 Method and apparatus for automatically recording video, and terminal

Country Status (2)

Country Link
CN (1) CN106792122A (en)
WO (1) WO2018149176A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708601A (en) * 2019-08-21 2020-01-17 努比亚技术有限公司 Wonderful video acquisition method, terminal and computer readable storage medium
US20230209145A1 (en) * 2021-12-27 2023-06-29 17Live Japan Inc. Server and method

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792122A (en) * 2017-02-20 2017-05-31 北京金山安全软件有限公司 Automatic video recording method and device and terminal
CN107197321A (en) * 2017-06-30 2017-09-22 武汉斗鱼网络科技有限公司 Live content method for recording, device and server
CN109429075A (en) * 2017-08-25 2019-03-05 阿里巴巴集团控股有限公司 A kind of live content processing method, device and system
CN108052835B (en) * 2017-12-14 2023-07-18 Oppo广东移动通信有限公司 Screen recording file playing method and device and terminal
CN108200340A (en) * 2018-01-12 2018-06-22 深圳奥比中光科技有限公司 The camera arrangement and photographic method of eye sight line can be detected
CN108156387A (en) * 2018-01-12 2018-06-12 深圳奥比中光科技有限公司 Terminate the device and method of camera shooting automatically by detecting eye sight line
CN109862387A (en) * 2019-03-28 2019-06-07 北京达佳互联信息技术有限公司 Video generation method, device and equipment are reviewed in live streaming
CN112399200B (en) * 2019-08-13 2023-01-06 腾讯科技(深圳)有限公司 Method, device and storage medium for recommending information in live broadcast
CN111107388A (en) * 2019-12-31 2020-05-05 广州华多网络科技有限公司 Method, device, system, equipment and storage medium for processing live broadcast content
CN111147882B (en) * 2019-12-31 2022-02-08 北京达佳互联信息技术有限公司 Video processing method and device, terminal equipment and storage medium
CN111083515B (en) * 2019-12-31 2021-07-23 广州华多网络科技有限公司 Method, device and system for processing live broadcast content
CN111107421B (en) * 2019-12-31 2022-04-01 北京达佳互联信息技术有限公司 Video processing method and device, terminal equipment and storage medium
CN113014948B (en) * 2021-03-08 2023-11-03 广州市网星信息技术有限公司 Video recording and synthesizing method, device, equipment and storage medium
CN114915828A (en) * 2022-05-24 2022-08-16 北京字跳网络技术有限公司 Method for presenting gift and displaying gift in live broadcasting room and related equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140189721A1 (en) * 2012-12-31 2014-07-03 Echostar Technologies L.L.C. Intelligent recording
CN104918101A (en) * 2015-06-01 2015-09-16 天脉聚源(北京)传媒科技有限公司 Method, playing terminal and system for automatically recording program
CN105872580A (en) * 2016-04-15 2016-08-17 广州酷狗计算机科技有限公司 Recording method and device of live broadcast video
CN105976215A (en) * 2016-06-24 2016-09-28 武汉斗鱼网络科技有限公司 Interaction method for Internet direct broadcast website gift system and device
CN106162230A (en) * 2016-07-28 2016-11-23 北京小米移动软件有限公司 The processing method of live information, device, Zhu Boduan, server and system
CN106254910A (en) * 2016-07-29 2016-12-21 广州酷狗计算机科技有限公司 A kind of method and apparatus recording image
CN106792122A (en) * 2017-02-20 2017-05-31 北京金山安全软件有限公司 Automatic video recording method and device and terminal

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547134A (en) * 2010-12-15 2012-07-04 中兴通讯股份有限公司 Method for processing live programs and device
CN104811787B (en) * 2014-10-27 2019-05-07 深圳市腾讯计算机系统有限公司 Game video recording method and device
CN105657479B (en) * 2014-11-10 2021-06-11 腾讯数码(天津)有限公司 Video processing method and device
CN104363519B (en) * 2014-11-21 2017-12-15 广州华多网络科技有限公司 It is a kind of based on online live method for information display, relevant apparatus and system
CN105307051B (en) * 2015-05-04 2019-03-01 维沃移动通信有限公司 Method for processing video frequency and device
CN105450642B (en) * 2015-11-17 2018-11-23 广州华多网络科技有限公司 It is a kind of based on the data processing method being broadcast live online, relevant apparatus and system
CN106101736B (en) * 2016-06-28 2019-02-22 广州华多网络科技有限公司 A kind of methods of exhibiting and system of virtual present
CN106251888A (en) * 2016-07-29 2016-12-21 南京云恩通讯科技有限公司 A kind of method temporally managing recording
CN106303600B (en) * 2016-08-12 2019-08-06 广州酷狗计算机科技有限公司 The method and apparatus of image are handled in net cast
CN106412614A (en) * 2016-10-26 2017-02-15 天脉聚源(北京)传媒科技有限公司 Electronic gift playing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140189721A1 (en) * 2012-12-31 2014-07-03 Echostar Technologies L.L.C. Intelligent recording
CN104918101A (en) * 2015-06-01 2015-09-16 天脉聚源(北京)传媒科技有限公司 Method, playing terminal and system for automatically recording program
CN105872580A (en) * 2016-04-15 2016-08-17 广州酷狗计算机科技有限公司 Recording method and device of live broadcast video
CN105976215A (en) * 2016-06-24 2016-09-28 武汉斗鱼网络科技有限公司 Interaction method for Internet direct broadcast website gift system and device
CN106162230A (en) * 2016-07-28 2016-11-23 北京小米移动软件有限公司 The processing method of live information, device, Zhu Boduan, server and system
CN106254910A (en) * 2016-07-29 2016-12-21 广州酷狗计算机科技有限公司 A kind of method and apparatus recording image
CN106792122A (en) * 2017-02-20 2017-05-31 北京金山安全软件有限公司 Automatic video recording method and device and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708601A (en) * 2019-08-21 2020-01-17 努比亚技术有限公司 Wonderful video acquisition method, terminal and computer readable storage medium
US20230209145A1 (en) * 2021-12-27 2023-06-29 17Live Japan Inc. Server and method
US11778278B2 (en) * 2021-12-27 2023-10-03 17Live Japan Inc. Server and method

Also Published As

Publication number Publication date
CN106792122A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
WO2018149176A1 (en) Method and apparatus for automatically recording video, and terminal
US10313761B2 (en) Media playback across multiple devices
US8942549B2 (en) Resume point for digital media playback
CN110324718B (en) Audio and video generation method and device, electronic equipment and readable medium
US10558698B2 (en) Lyric page generation method and lyric page generation apparatus
CN112911379B (en) Video generation method, device, electronic equipment and storage medium
US8769571B2 (en) System and method for generating a visual summary of previously viewed multimedia content
CN110267113B (en) Video file processing method, system, medium, and electronic device
WO2017088408A1 (en) Video capturing and sharing method and device
CN108776565B (en) Animation display method and device, electronic equipment and storage medium
US10283168B2 (en) Audio file re-recording method, device and storage medium
CN104869467A (en) Information output method and system for media playing, and apparatuses
WO2017054582A1 (en) Information delivery method, device, and electronic apparatus
CN105635254B (en) Multimedia resource method for down loading and device
WO2022063090A1 (en) Method and apparatus for user guide, device and storage medium
CA2966586A1 (en) Media presentation modification using audio segment marking
WO2020024165A1 (en) Video clipping method, apparatus, device and storage medium
CN112866776B (en) Video generation method and device
CN111556329B (en) Method and device for inserting media content in live broadcast
CN113672748A (en) Multimedia information playing method and device
WO2015014137A1 (en) Method, device, and system for data file insertion
CN111435600B (en) Method and apparatus for processing audio
EP2575131A1 (en) A method for synchronized music and video dubbing
CN107707985B (en) Bullet screen control method, mobile terminal and server
US10133408B2 (en) Method, system and computer program product

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17896578

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17896578

Country of ref document: EP

Kind code of ref document: A1