[go: up one dir, main page]

CN105245810B - A kind of processing method and processing device of video transition - Google Patents

A kind of processing method and processing device of video transition Download PDF

Info

Publication number
CN105245810B
CN105245810B CN201510649444.2A CN201510649444A CN105245810B CN 105245810 B CN105245810 B CN 105245810B CN 201510649444 A CN201510649444 A CN 201510649444A CN 105245810 B CN105245810 B CN 105245810B
Authority
CN
China
Prior art keywords
video
time
transition
time period
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201510649444.2A
Other languages
Chinese (zh)
Other versions
CN105245810A (en
Inventor
吴磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510649444.2A priority Critical patent/CN105245810B/en
Publication of CN105245810A publication Critical patent/CN105245810A/en
Application granted granted Critical
Publication of CN105245810B publication Critical patent/CN105245810B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)

Abstract

The present invention provides a kind of processing method and processing device of video transition, including:Identify the period of video transition;Delete video content corresponding to the period;Default transition video content is inserted into video flowing corresponding to the period, to synthesize complete video.The present invention, which can realize, automatically removes the content of transition and the video content of shake that user is not intended to retain, effectively reduce the technical threshold that user shoots video, and the picture of video transition pre-set can be automatically added to, so make it that the content in user's recorded video is excessively natural, and all be user want retain effective fragment, therefore greatly improve user usage experience.

Description

一种视频转场的处理方法及装置Method and device for processing video transitions

技术领域technical field

本发明涉及视频处理技术领域,尤其涉及一种视频转场的处理方法及装置。The present invention relates to the technical field of video processing, in particular to a method and device for processing video transitions.

背景技术Background technique

在现有技术中,在录制视频的时候,经常会出现如下的场景:即拍摄一个场景的时候,旁边发生了其他的事情,这个时候拍摄者会移动手机去拍摄另外一个方向的内容,这种在视频领域中叫做转场。另一种经常会出现的场景如下:即在拍摄视频的途中,比如在车上录制视频的时候,发生了剧烈的震动,这些情况都是拍摄者经常遇到的问题,这些视频录制完成以后,刚才提到的转场的内容,抖动的视频内容全部变成了用户不想要保留的多余内容。In the prior art, when recording a video, the following scene often occurs: that is, when shooting a scene, other things happen next to it. At this time, the photographer will move the mobile phone to shoot the content in another direction. In video, it's called a transition. Another scene that often occurs is as follows: that is, during the shooting of video, such as when recording video in the car, severe vibration occurs. These situations are often encountered by photographers. After the video recording is completed, The transition content mentioned just now, the jittery video content has all become redundant content that users do not want to keep.

为了去除用户不想要保留的转场的内容和抖动的视频内容,专业的视频录制者则会在这种情况发生的时候,在视频的后期编辑中,手动的提取用户不想要保留的多余的内容,然后加入预先设置好的视频转场的画面,这样使得用户录制视频中的内容过度自然,且都是用户想保留的有效的片段。In order to remove the transition content and jittery video content that the user does not want to keep, professional video recorders will manually extract the redundant content that the user does not want to keep in the post-editing of the video when this happens , and then add the pre-set video transition screen, so that the content in the user's recorded video is too natural, and it is an effective segment that the user wants to keep.

然而,上述去除用户不想要保留的转场的内容和抖动的视频内容,需要专业的视频录制者手动的提取用户不想要保留的多余的内容,这样显示不智能化,而且给视频录制者增加了不必要的工作,浪费时间等。However, the above-mentioned removal of the transition content and jittering video content that the user does not want to keep requires a professional video recorder to manually extract the redundant content that the user does not want to keep. Unnecessary work, wasted time, etc.

故,有必要提出一种新的技术方案,以解决上述技术问题。Therefore, it is necessary to propose a new technical solution to solve the above technical problems.

发明内容Contents of the invention

有鉴于此,本发明的目的在于提供一种视频转场的处理方法及装置,可以解决现有技术中存在的去除用户不想要保留的转场的内容和抖动的视频内容,需要专业的视频录制者手动的提取用户不想要保留的多余的内容,这样显示不智能化,而且给视频录制者增加了不必要的工作,浪费时间的问题。In view of this, the purpose of the present invention is to provide a method and device for processing video transitions, which can solve the problem in the prior art of removing transition content and jittery video content that users do not want to keep, requiring professional video recording The operator manually extracts the redundant content that the user does not want to keep, which is not intelligent, and adds unnecessary work to the video recorder and wastes time.

为解决上述技术问题,本发明实施例提供了以下技术方案:In order to solve the above technical problems, the embodiments of the present invention provide the following technical solutions:

一种视频转场的处理方法,所述视频转场的处理方法包括以下步骤:A processing method of a video transition, the processing method of the video transition comprises the following steps:

识别视频转场的时间段;Identify time periods for video transitions;

删除所述时间段对应的视频内容;Delete the video content corresponding to the time period;

将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。The preset transition video content is inserted into the video stream corresponding to the time period to synthesize a complete video.

为解决上述技术问题,本发明实施例还提供了以下技术方案:In order to solve the above technical problems, the embodiment of the present invention also provides the following technical solutions:

一种视频转场的处理装置,所述视频转场的处理装置包括:A processing device for a video transition, the processing device for the video transition comprising:

识别模块,用于识别视频转场的时间段;The recognition module is used to recognize the time period of the video transition;

视频删除模块,用于删除所述时间段对应的视频内容;A video deletion module, configured to delete the video content corresponding to the time period;

视频插入模块,用于将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。The video insertion module is used to insert the preset transition video content into the video stream corresponding to the time period to synthesize a complete video.

相对于现有技术,本发明的视频转场的处理方法及装置,通过识别视频转场的时间段;删除所述时间段对应的视频内容;将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。因此,本发明能够实现自动去除用户不想要保留的转场的内容和抖动的视频内容,有效降低用户拍摄视频的技术门槛,而且能自动加入预先设置好的视频转场的画面,这样使得用户录制视频中的内容过度自然,且都是用户想保留的有效的片段,因此极大的提高用户的使用体验。Compared with the prior art, the video transition processing method and device of the present invention identify the time period of the video transition; delete the video content corresponding to the time period; insert the preset transition video content into the time period segment corresponding to the video stream to synthesize a complete video. Therefore, the present invention can realize the automatic removal of the transition content and the jittering video content that the user does not want to keep, effectively lower the technical threshold for the user to shoot video, and can automatically add the pre-set video transition screen, so that the user can record The content in the video is excessively natural, and it is an effective segment that the user wants to keep, thus greatly improving the user experience.

附图说明Description of drawings

图1是本发明实施例提供的视频转场的处理方法的实现流程示意图;FIG. 1 is a schematic diagram of the implementation flow of a video transition processing method provided by an embodiment of the present invention;

图2是本发明实施例一提供的视频转场的处理方法的实现流程示意图;FIG. 2 is a schematic diagram of the implementation flow of the video transition processing method provided by Embodiment 1 of the present invention;

图3是本发明实施例二提供的视频转场的处理方法的实现流程示意图;FIG. 3 is a schematic diagram of the implementation flow of the video transition processing method provided by Embodiment 2 of the present invention;

图4是本发明实施例三提供的视频转场的处理方法的实现流程示意图;FIG. 4 is a schematic diagram of the implementation flow of the video transition processing method provided by Embodiment 3 of the present invention;

图5是本发明实施例提供的视频转场的处理装置的结构示意图;5 is a schematic structural diagram of a video transition processing device provided by an embodiment of the present invention;

图6是本发明实施例四提供的视频转场的处理装置的结构示意图;FIG. 6 is a schematic structural diagram of a video transition processing device provided in Embodiment 4 of the present invention;

图7是本发明实施例五提供的视频转场的处理装置的结构示意图;7 is a schematic structural diagram of a video transition processing device provided in Embodiment 5 of the present invention;

图8是本发明实施例六提供的视频转场的处理装置的结构示意图。FIG. 8 is a schematic structural diagram of an apparatus for processing video transitions according to Embodiment 6 of the present invention.

具体实施方式Detailed ways

请参照附图中的图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所示例的本发明的具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。Referring to the drawings in the accompanying drawings, where like reference numerals represent like components, the principles of the present invention are exemplified when implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the invention and should not be construed as limiting the invention to other specific embodiments not described in detail herein.

本发明原理以上述文字来说明,其并不代表为一种限制,本领域技术人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。本发明的原理使用许多其它泛用性或特定目的运算、通信环境或组态来进行操作。The principles of the present invention are described in the above words, which are not meant to be a limitation. Those skilled in the art will understand that the various steps and operations described below can also be implemented in hardware. The principles of the invention operate with numerous other general purpose or special purpose computing, communication environments or configurations.

本发明提供的视频转场的处理方法及装置,主要应用于携带有摄像头的终端设备,如:手机、电脑、个人数字助理(Personal Digital Assistant,PDA)、照像机等。The method and device for processing video transitions provided by the present invention are mainly applied to terminal devices with cameras, such as mobile phones, computers, personal digital assistants (Personal Digital Assistant, PDA), cameras, and the like.

请参阅图1,为本发明实施例提供的视频转场的处理方法的实现流程示意图。Please refer to FIG. 1 , which is a schematic flowchart of an implementation process of a video transition processing method provided by an embodiment of the present invention.

所述视频转场的处理方法包括以下步骤:The processing method of described video transition comprises the following steps:

在步骤S101中,识别视频转场的时间段;In step S101, identify the time period of the video transition;

在步骤S102中,删除所述时间段对应的视频内容;In step S102, delete the video content corresponding to the time period;

在步骤S103中,将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。In step S103, the preset transition video content is inserted into the video stream corresponding to the time period to synthesize a complete video.

以下将分别进行详细说明。The details will be described respectively below.

实施例一Embodiment one

请参阅图2,为本发明实施例一提供的视频转场的处理方法的实现流程示意Please refer to Figure 2, which is a schematic diagram of the implementation process of the video transition processing method provided by Embodiment 1 of the present invention

图。所述视频转场的处理方法包括以下步骤:picture. The processing method of described video transition comprises the following steps:

在步骤S201中,在视频拍摄过程中,当接收到暂停指令时,记录接收到暂停指令的时间点;In step S201, during the video shooting process, when a pause instruction is received, the time point at which the pause instruction is received is recorded;

在步骤S202中,当接收到重新启动指令时,记录接收到重新启动指令的时间点;In step S202, when the restart instruction is received, record the time point when the restart instruction is received;

在步骤S203中,识别视频拍摄的暂停起始时间以及重新启动视频拍摄的时间;In step S203, identify the pause start time of video shooting and the time of restarting video shooting;

在步骤S204中,将所述暂停起始时间到所述重新启动视频拍摄的时间之间的时间段,判定为是视频转场的时间段。In step S204, the time period between the pause start time and the restart time of video shooting is determined as the time period of video transition.

在步骤S205中,删除所述时间段对应的视频内容;In step S205, delete the video content corresponding to the time period;

在步骤S206中,将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。In step S206, the preset transition video content is inserted into the video stream corresponding to the time period to synthesize a complete video.

例如,当用户在视频拍摄过程中,即拍摄一个场景的时候,旁边发生了其他的事情,这个时候拍摄者会点击暂停拍摄按钮,这时,手机会记录下这个暂停时间点;当旁边发生的事情结束后,这个时候拍摄者会点击重新启动视频拍摄按钮,这时,手机会记录下这个开启时间点。当拍摄完成后,手机会开始识别视频拍摄的暂停起始时间以及重新启动视频拍摄的时间;将所述暂停起始时间到所述重新启动视频拍摄的时间之间的时间段,判定为是视频转场的时间段;删除所述时间段对应的视频内容;将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。For example, when the user is shooting a video, that is, when shooting a scene, other things happen next to him. At this time, the photographer will click the pause shooting button. At this time, the mobile phone will record the pause time point; After the event is over, the photographer will click the restart video shooting button at this time, and the mobile phone will record the start time. When the shooting is completed, the mobile phone will start to identify the pause start time of the video shooting and the time to restart the video shooting; The time period of the transition; delete the video content corresponding to the time period; insert the preset transition video content into the video stream corresponding to the time period to synthesize a complete video.

由上可知,本实施例一能够实现自动去除用户不想要保留的转场的内容和抖动的视频内容,有效降低用户拍摄视频的技术门槛,而且能自动加入预先设置好的视频转场的画面,这样使得用户录制视频中的内容过度自然,且都是用户想保留的有效的片段,因此极大的提高用户的使用体验。It can be seen from the above that this embodiment 1 can automatically remove the transition content and jittery video content that the user does not want to keep, effectively reduce the technical threshold for the user to shoot video, and can automatically add the preset video transition screen, This makes the content in the user's recorded video excessively natural, and is an effective segment that the user wants to keep, thus greatly improving the user experience.

实施例二Embodiment two

请参阅图3,为本发明实施例二提供的视频转场的处理方法的实现流程示意Please refer to Figure 3, which is a schematic diagram of the realization flow of the video transition processing method provided by Embodiment 2 of the present invention

图。所述视频转场的处理方法包括以下步骤:picture. The processing method of described video transition comprises the following steps:

在步骤S301中,检测录制视频过程中的加速度值;In step S301, detect the acceleration value in the recording video process;

在步骤S302中,当检测出所述加速度值大于预设第一阈值时,则启动计时,设为开始时间;In step S302, when it is detected that the acceleration value is greater than the preset first threshold, start timing and set it as the start time;

在步骤S303中,记录当前位置作为初始坐标的角度变化,以单位时间t作为时间间隔,如果时间t内的累积角度变化小于预设第二阈值时,则认为拍摄状态已经稳定,停止计时,设为结束时间;In step S303, the current position is recorded as the angle change of the initial coordinates, and the unit time t is used as the time interval. If the cumulative angle change within the time t is less than the preset second threshold, the shooting state is considered to be stable, and the timing is stopped. is the end time;

在步骤S304中,识别所述开始时间以及结束时间;In step S304, identify the start time and end time;

在步骤S305中,将所述开始时间到所述结束时间之间的时间段,判定为是视频转场的时间段。In step S305, the time period between the start time and the end time is determined as the time period of video transition.

在步骤S206中,删除所述时间段对应的视频内容;In step S206, delete the video content corresponding to the time period;

在步骤S207中,将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。In step S207, the preset transition video content is inserted into the video stream corresponding to the time period to synthesize a complete video.

作为本发明一优选实施例,在所述设为结束时间的步骤之后,还包括:As a preferred embodiment of the present invention, after the step of setting the end time, it also includes:

判断所述开始时间到所述结束时间的总时间长度是否小于预设第三阈值;judging whether the total time length from the start time to the end time is less than a preset third threshold;

如果所述总时间长度小于所述预设第三阈值,则判定不需要转场,清除记录时间。If the total time length is less than the preset third threshold, it is determined that a transition is not needed, and the recording time is cleared.

例如,当用户在视频拍摄过程中,当发生了剧烈运动以及拍摄角度变化时,手机通过加速度仪检测录制视频过程中的加速度a,如果a>amax的阈值,则启动计时,设为开始时间,并通过陀螺仪开始记录手机以当前位置作为初始坐标的角度变化,以单位时间t作为时间间隔,如果时间t内的累积角度变化小于一定伐值,则认为拍摄状态已经稳定,停止计时,设为结束时间,如果从开始到结束的总时间长度小于一定时间阈值,则认为时间太短,不需要转场,清除记录时间。当拍摄完成后,手机会开始识别所述开始时间以及结束时间;将所述开始时间到所述结束时间之间的时间段,判定为是视频转场的时间段。删除所述时间段对应的视频内容;将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。For example, when the user has a violent movement and the shooting angle changes during the video shooting process, the mobile phone detects the acceleration a during the video recording process through the accelerometer, and if a>amax threshold value, start timing and set it as the start time, And start to record the angle change of the mobile phone with the current position as the initial coordinate through the gyroscope, and take the unit time t as the time interval. If the cumulative angle change within the time t is less than a certain value, it is considered that the shooting state has been stabilized, and the timing is stopped. Set to End time, if the total time length from the beginning to the end is less than a certain time threshold, it is considered that the time is too short, no transition is needed, and the recorded time is cleared. After the shooting is completed, the mobile phone will begin to identify the start time and the end time; the time period between the start time and the end time is determined as the time period of the video transition. The video content corresponding to the time period is deleted; the preset transition video content is inserted into the video stream corresponding to the time period to synthesize a complete video.

由上可知,本实施例二能够实现自动去除用户不想要保留的转场的内容和抖动的视频内容,有效降低用户拍摄视频的技术门槛,而且能自动加入预先设置好的视频转场的画面,这样使得用户录制视频中的内容过度自然,且都是用户想保留的有效的片段,因此极大的提高用户的使用体验。It can be seen from the above that the second embodiment can automatically remove the transition content and jittery video content that the user does not want to keep, effectively reduce the technical threshold for the user to shoot video, and can automatically add the pre-set video transition screen, This makes the content in the user's recorded video excessively natural, and is an effective segment that the user wants to keep, thus greatly improving the user experience.

实施例三Embodiment Three

请参阅图4,为本发明实施例三提供的视频转场的处理方法的实现流程示意图。所述视频转场的处理方法包括以下步骤:Please refer to FIG. 4 , which is a schematic flowchart of the realization of the video transition processing method provided by Embodiment 3 of the present invention. The processing method of described video transition comprises the following steps:

在步骤S401中,识别视频流中第一模糊视频对应的起始时间点,以及第二模糊视频对应的结束时间点;In step S401, identify the start time point corresponding to the first blurred video in the video stream, and the end time point corresponding to the second blurred video;

在步骤S402中,将所述起始时间点到所述结束时间点之间的时间段,判定为是视频转场的时间段。In step S402, the time period between the start time point and the end time point is determined as a time period of video transition.

在步骤S403中,删除所述时间段对应的视频内容;In step S403, delete the video content corresponding to the time period;

在步骤S404中,将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。In step S404, the preset transition video content is inserted into the video stream corresponding to the time period to synthesize a complete video.

例如,当用户在视频拍摄过程中,当发生了剧烈运动时,拍摄出来的图像就是模糊不清,这样,手机可通过识别模糊的图像是用户不想保留的视频,因此,当拍摄完成后,手机会识别出视频流中第一张模糊视频对应的起始时间点,以及最后一张模糊视频对应的结束时间点;将所述起始时间点到所述结束时间点之间的时间段,判定为是视频转场的时间段。删除所述时间段对应的视频内容;将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。For example, when the user moves violently during video shooting, the captured image is blurred. In this way, the mobile phone can recognize that the blurred image is a video that the user does not want to keep. Therefore, after the shooting is completed, the mobile phone It will identify the start time point corresponding to the first blurred video in the video stream, and the end time point corresponding to the last blurred video; determine the time period between the start time point and the end time point is the time period of the video transition. The video content corresponding to the time period is deleted; the preset transition video content is inserted into the video stream corresponding to the time period to synthesize a complete video.

由上可知,本实施例三能够实现自动去除用户不想要保留的转场的内容和抖动的视频内容,有效降低用户拍摄视频的技术门槛,而且能自动加入预先设置好的视频转场的画面,这样使得用户录制视频中的内容过度自然,且都是用户想保留的有效的片段,因此极大的提高用户的使用体验。It can be seen from the above that the third embodiment can automatically remove the transition content and jittery video content that the user does not want to keep, effectively reduce the technical threshold for the user to shoot video, and can automatically add the pre-set video transition screen, This makes the content in the user's recorded video excessively natural, and is an effective segment that the user wants to keep, thus greatly improving the user experience.

请参阅图5,为本发明实施例提供的视频转场的处理装置的结构示意图。为了便于说明,仅示出了与本发明实施例相关的部分。所述视频转场的处理装置包括:识别模块101、视频删除模块102、以及视频插入模块103。所述视频转场的处理装置可以是内置于终端设备中的软件单元、硬件单元或者是软硬件结合的单元。Please refer to FIG. 5 , which is a schematic structural diagram of an apparatus for processing video transitions provided by an embodiment of the present invention. For ease of description, only parts related to the embodiments of the present invention are shown. The device for processing video transitions includes: an identification module 101 , a video deletion module 102 , and a video insertion module 103 . The video transition processing apparatus may be a software unit, a hardware unit, or a combination of software and hardware built in the terminal device.

识别模块101,用于识别视频转场的时间段;Identification module 101, for identifying the time period of video transition;

视频删除模块102,用于删除所述时间段对应的视频内容;Video deletion module 102, for deleting the video content corresponding to the time period;

视频插入模块103,用于将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。The video insertion module 103 is configured to insert preset transition video content into the video stream corresponding to the time period to synthesize a complete video.

以下将分别进行详细说明。The details will be described respectively below.

实施例四Embodiment Four

请参阅图6,为本发明实施例四提供的视频转场的处理装置的结构示意图。为了便于说明,仅示出了与本发明实施例相关的部分。所述视频转场的处理装置包括:时间记录模块201、识别模块202、判定模块203、视频删除模块204、以及视频插入模块205。所述视频转场的处理装置可以是内置于终端设备中的软件单元、硬件单元或者是软硬件结合的单元。Please refer to FIG. 6 , which is a schematic structural diagram of an apparatus for processing video transitions according to Embodiment 4 of the present invention. For ease of description, only parts related to the embodiments of the present invention are shown. The device for processing video transitions includes: a time recording module 201 , an identification module 202 , a determination module 203 , a video deletion module 204 , and a video insertion module 205 . The video transition processing apparatus may be a software unit, a hardware unit, or a combination of software and hardware built in the terminal device.

时间记录模块201,用于在视频拍摄过程中,当接收到暂停指令时,记录接收到暂停指令的时间点;The time record module 201 is used for recording the time point when the pause instruction is received during the video shooting process when the pause instruction is received;

时间记录模块201,还用于当接收到重新启动指令时,记录接收到重新启动指令的时间点;The time recording module 201 is also used to record the time point when the restart instruction is received when the restart instruction is received;

所述识别模块202,具体用于识别视频拍摄的暂停起始时间以及重新启动视频拍摄的时间;The identification module 202 is specifically used to identify the pause start time of video shooting and the time of restarting video shooting;

判定模块203,用于将所述暂停起始时间到所述重新启动视频拍摄的时间之间的时间段,判定为是视频转场的时间段。The judging module 203 is configured to judge the time period between the pause start time and the time of restarting the video shooting as the time period of the video transition.

视频删除模块204,用于删除所述时间段对应的视频内容;Video deletion module 204, for deleting the video content corresponding to the time period;

视频插入模块205,用于将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。The video insertion module 205 is configured to insert the preset transition video content into the video stream corresponding to the time period to synthesize a complete video.

实施例五Embodiment five

请参阅图7,为本发明实施例五提供的视频转场的处理装置的结构示意图。为了便于说明,仅示出了与本发明实施例相关的部分。所述视频转场的处理装置包括:加速度检测模块301、开始时间记录模块302、结束时间记录模块303、识别模块304、判定模块305、视频删除模块306、以及视频插入模块307。所述视频转场的处理装置可以是内置于终端设备中的软件单元、硬件单元或者是软硬件结合的单元。Please refer to FIG. 7 , which is a schematic structural diagram of a video transition processing device provided by Embodiment 5 of the present invention. For ease of description, only parts related to the embodiments of the present invention are shown. The video transition processing device includes: an acceleration detection module 301 , a start time recording module 302 , an end time recording module 303 , an identification module 304 , a determination module 305 , a video deletion module 306 , and a video insertion module 307 . The video transition processing apparatus may be a software unit, a hardware unit, or a combination of software and hardware built in the terminal device.

加速度检测模块301,用于检测录制视频过程中的加速度值;Acceleration detection module 301, for detecting the acceleration value in the process of recording video;

开始时间记录模块302,用于当检测出所述加速度值大于预设第一阈值时,则启动计时,设为开始时间;The start time recording module 302 is used to start timing when it is detected that the acceleration value is greater than the preset first threshold, and set it as the start time;

结束时间记录模块303,用于记录当前位置作为初始坐标的角度变化,以单位时间t作为时间间隔,如果时间t内的累积角度变化小于预设第二阈值时,则认为拍摄状态已经稳定,停止计时,设为结束时间;The end time recording module 303 is used to record the current position as the angle change of the initial coordinates, and the unit time t is used as the time interval. If the cumulative angle change within the time t is less than the preset second threshold, the shooting state is considered to be stable and stops Timing, set to end time;

所述识别模块304,具体用于识别所述开始时间以及结束时间;The identifying module 304 is specifically configured to identify the start time and end time;

判定模块305,用于将所述开始时间到所述结束时间之间的时间段,判定为是视频转场的时间段。The judging module 305 is configured to judge the time period between the start time and the end time as a time period of video transition.

视频删除模块306,用于删除所述时间段对应的视频内容;A video deletion module 306, configured to delete the video content corresponding to the time period;

视频插入模块307,用于将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。The video insertion module 307 is configured to insert the preset transition video content into the video stream corresponding to the time period to synthesize a complete video.

作为本发明一优选实施例,所述视频转场的处理装置还包括:As a preferred embodiment of the present invention, the video transition processing device further includes:

时间判断模块,用于判断所述开始时间到所述结束时间的总时间长度是否小于预设第三阈值;A time judging module, configured to judge whether the total time length from the start time to the end time is less than a preset third threshold;

清除模块,用于如果所述总时间长度小于所述预设第三阈值,则判定不需要转场,清除记录时间。A clearing module, configured to determine that a transition is not needed if the total time length is less than the preset third threshold, and clear the recording time.

实施例六Embodiment six

请参阅图8,为本发明实施例六提供的视频转场的处理装置的结构示意图。为了便于说明,仅示出了与本发明实施例相关的部分。所述视频转场的处理装置包括:识别模块401、判定模块402、视频删除模块403、以及视频插入模块404。所述视频转场的处理装置可以是内置于终端设备中的软件单元、硬件单元或者是软硬件结合的单元。Please refer to FIG. 8 , which is a schematic structural diagram of an apparatus for processing video transitions according to Embodiment 6 of the present invention. For ease of description, only parts related to the embodiments of the present invention are shown. The device for processing video transitions includes: an identification module 401 , a determination module 402 , a video deletion module 403 , and a video insertion module 404 . The video transition processing apparatus may be a software unit, a hardware unit, or a combination of software and hardware built in the terminal device.

识别模块401,具体用于识别视频流中第一模糊视频对应的起始时间点,以及第二模糊视频对应的结束时间点;The identification module 401 is specifically used to identify the start time point corresponding to the first blurred video in the video stream, and the end time point corresponding to the second blurred video;

判定模块402,用于将所述起始时间点到所述结束时间点之间的时间段,判定为是视频转场的时间段。The determining module 402 is configured to determine the time period between the start time point and the end time point as a time period of video transition.

视频删除模块403,用于删除所述时间段对应的视频内容;Video deletion module 403, configured to delete the video content corresponding to the time period;

视频插入模块404,用于将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。The video insertion module 404 is configured to insert preset transition video content into the video stream corresponding to the time period to synthesize a complete video.

综上所述,本发明的视频转场的处理方法及装置,通过识别视频转场的时间段;删除所述时间段对应的视频内容;将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。因此,本发明能够实现自动去除用户不想要保留的转场的内容和抖动的视频内容,有效降低用户拍摄视频的技术门槛,而且能自动加入预先设置好的视频转场的画面,这样使得用户录制视频中的内容过度自然,且都是用户想保留的有效的片段,因此极大的提高用户的使用体验。In summary, the video transition processing method and device of the present invention identify the time period of the video transition; delete the video content corresponding to the time period; insert the preset transition video content into the time period corresponding video stream to synthesize a complete video. Therefore, the present invention can realize the automatic removal of the transition content and the jittering video content that the user does not want to keep, effectively lower the technical threshold for the user to shoot video, and can automatically add the pre-set video transition screen, so that the user can record The content in the video is excessively natural, and it is an effective segment that the user wants to keep, thus greatly improving the user experience.

本发明实施例提供的视频转场的处理方法及视频转场的处理装置属于同一构思,其具体实现过程详见说明书全文,此处不再赘述。The method for processing video transitions and the device for processing video transitions provided in the embodiments of the present invention belong to the same concept, and the specific implementation process thereof can be found in the full text of the specification, and will not be repeated here.

综上所述,虽然本发明已以优选实施例揭露如上,但上述优选实施例并非用以限制本发明,本领域的普通技术人员,在不脱离本发明的精神和范围内,均可作各种更动与润饰,因此本发明的保护范围以权利要求界定的范围为准。In summary, although the present invention has been disclosed above with preferred embodiments, the above preferred embodiments are not intended to limit the present invention, and those of ordinary skill in the art can make various modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the scope defined in the claims.

Claims (8)

1.一种视频转场的处理方法,其特征在于,所述视频转场的处理方法包括以下步骤:1. a processing method of video transition, it is characterized in that, the processing method of described video transition comprises the following steps: 检测录制视频过程中的加速度值;Detect the acceleration value during video recording; 当检测出所述加速度值大于预设第一阈值时,则启动计时,设为开始时间;When it is detected that the acceleration value is greater than the preset first threshold, start timing and set it as the start time; 记录当前位置作为初始坐标的角度变化,以单位时间t作为时间间隔,如果时间t内的累积角度变化小于预设第二阈值时,则认为拍摄状态已经稳定,停止计时,设为结束时间;Record the current position as the angle change of the initial coordinates, and take the unit time t as the time interval. If the cumulative angle change within the time t is less than the preset second threshold, it is considered that the shooting state has stabilized, stop timing, and set it as the end time; 识别视频转场的时间段,包括:识别所述开始时间以及结束时间;将所述开始时间到所述结束时间之间的时间段,判定为是视频转场的时间段;Identifying the time period of the video transition, including: identifying the start time and the end time; determining the time period between the start time and the end time as the time period of the video transition; 删除所述时间段对应的视频内容;Delete the video content corresponding to the time period; 将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。The preset transition video content is inserted into the video stream corresponding to the time period to synthesize a complete video. 2.如权利要求1所述的视频转场的处理方法,其特征在于,在所述识别视频转场的时间段的步骤之前,还包括:2. The processing method of video transition as claimed in claim 1, is characterized in that, before the step of the time period of described identification video transition, also comprises: 在视频拍摄过程中,当接收到暂停指令时,记录接收到暂停指令的时间点;During video shooting, when a pause instruction is received, record the time point when the pause instruction is received; 当接收到重新启动指令时,记录接收到重新启动指令的时间点;When a restart instruction is received, record the time point when the restart instruction is received; 所述识别视频转场的时间段的步骤,具体包括:The step of identifying the time period of the video transition specifically includes: 识别视频拍摄的暂停起始时间以及重新启动视频拍摄的时间;Identify when video capture was paused and when video capture was restarted; 将所述暂停起始时间到所述重新启动视频拍摄的时间之间的时间段,判定为是视频转场的时间段。The time period between the pause start time and the restart of video shooting is determined as the time period of the video transition. 3.如权利要求1所述的视频转场的处理方法,其特征在于,在所述设为结束时间的步骤之后,还包括:3. The processing method of video transition as claimed in claim 1, characterized in that, after the step of setting the end time, further comprising: 判断所述开始时间到所述结束时间的总时间长度是否小于预设第三阈值;judging whether the total time length from the start time to the end time is less than a preset third threshold; 如果所述总时间长度小于所述预设第三阈值,则判定不需要转场,清除记录时间。If the total time length is less than the preset third threshold, it is determined that a transition is not needed, and the recording time is cleared. 4.如权利要求1所述的视频转场的处理方法,其特征在于,所述识别视频转场的时间段的步骤,具体包括:4. The method for processing video transitions as claimed in claim 1, wherein the step of identifying the time period of video transitions specifically includes: 识别视频流中第一模糊视频对应的起始时间点,以及第二模糊视频对应的结束时间点;identifying a start time point corresponding to the first blurred video in the video stream, and an end time point corresponding to the second blurred video; 将所述起始时间点到所述结束时间点之间的时间段,判定为是视频转场的时间段。The time period between the start time point and the end time point is determined as the time period of video transition. 5.一种视频转场的处理装置,其特征在于,所述视频转场的处理装置包括:5. A processing device for video transition, characterized in that, the processing device for said video transition comprises: 加速度检测模块,用于检测录制视频过程中的加速度值;The acceleration detection module is used to detect the acceleration value in the recording video process; 开始时间记录模块,用于当检测出所述加速度值大于预设第一阈值时,则启动计时,设为开始时间;The start time recording module is used to start timing when it is detected that the acceleration value is greater than the preset first threshold, and set it as the start time; 结束时间记录模块,用于记录当前位置作为初始坐标的角度变化,以单位时间t作为时间间隔,如果时间t内的累积角度变化小于预设第二阈值时,则认为拍摄状态已经稳定,停止计时,设为结束时间;The end time recording module is used to record the current position as the angle change of the initial coordinates, and the unit time t is used as the time interval. If the cumulative angle change within the time t is less than the preset second threshold, it is considered that the shooting state has been stabilized, and the timing is stopped , as the end time; 识别模块,用于识别所述开始时间以及结束时间;An identification module, configured to identify the start time and end time; 判定模块,用于将所述开始时间到所述结束时间之间的时间段,判定为是视频转场的时间段;A judging module, configured to judge the time period between the start time and the end time as the time period of video transition; 视频删除模块,用于删除所述时间段对应的视频内容;A video deletion module, configured to delete the video content corresponding to the time period; 视频插入模块,用于将预设的转场视频内容插入至所述时间段对应的视频流中,以合成完整的视频。The video insertion module is used to insert the preset transition video content into the video stream corresponding to the time period to synthesize a complete video. 6.如权利要求5所述的视频转场的处理装置,其特征在于,所述视频转场的处理装置还包括:6. The processing device of video transition as claimed in claim 5, is characterized in that, the processing device of described video transition also comprises: 时间记录模块,用于在视频拍摄过程中,当接收到暂停指令时,记录接收到暂停指令的时间点;A time recording module, used for recording the time point at which the pause instruction is received when the pause instruction is received during the video shooting process; 时间记录模块,还用于当接收到重新启动指令时,记录接收到重新启动指令的时间点;The time recording module is also used to record the time point when the restart instruction is received when the restart instruction is received; 所述识别模块,具体用于识别视频拍摄的暂停起始时间以及重新启动视频拍摄的时间;The identification module is specifically used to identify the pause start time of video shooting and the time to restart video shooting; 判定模块,用于将所述暂停起始时间到所述重新启动视频拍摄的时间之间的时间段,判定为是视频转场的时间段。A judging module, configured to judge the time period between the pause start time and the restart of video shooting as the time period of video transition. 7.如权利要求5所述的视频转场的处理装置,其特征在于,所述视频转场的处理装置还包括:7. The processing device of video transition as claimed in claim 5, is characterized in that, the processing device of described video transition also comprises: 时间判断模块,用于判断所述开始时间到所述结束时间的总时间长度是否小于预设第三阈值;A time judging module, configured to judge whether the total time length from the start time to the end time is less than a preset third threshold; 清除模块,用于如果所述总时间长度小于所述预设第三阈值,则判定不需要转场,清除记录时间。A clearing module, configured to determine that a transition is not needed if the total time length is less than the preset third threshold, and clear the recording time. 8.如权利要求5所述的视频转场的处理装置,其特征在于,8. the processing device of video transition as claimed in claim 5, is characterized in that, 所述识别模块,具体用于识别视频流中第一模糊视频对应的起始时间点,以及第二模糊视频对应的结束时间点;The identification module is specifically used to identify the start time point corresponding to the first blurred video in the video stream, and the end time point corresponding to the second blurred video; 判定模块,用于将所述起始时间点到所述结束时间点之间的时间段,判定为是视频转场的时间段。A judging module, configured to judge the time period between the start time point and the end time point as the time period of video transition.
CN201510649444.2A 2015-10-08 2015-10-08 A kind of processing method and processing device of video transition Expired - Fee Related CN105245810B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510649444.2A CN105245810B (en) 2015-10-08 2015-10-08 A kind of processing method and processing device of video transition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510649444.2A CN105245810B (en) 2015-10-08 2015-10-08 A kind of processing method and processing device of video transition

Publications (2)

Publication Number Publication Date
CN105245810A CN105245810A (en) 2016-01-13
CN105245810B true CN105245810B (en) 2018-03-16

Family

ID=55043285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510649444.2A Expired - Fee Related CN105245810B (en) 2015-10-08 2015-10-08 A kind of processing method and processing device of video transition

Country Status (1)

Country Link
CN (1) CN105245810B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210531B (en) * 2016-07-29 2019-05-03 Oppo广东移动通信有限公司 Video generation method, device and mobile terminal
CN107343207A (en) * 2017-08-16 2017-11-10 哈尔滨市舍科技有限公司 A kind of video editing method and system
CN107948562B (en) * 2017-11-30 2020-05-15 广州市百果园信息技术有限公司 Video recording method and video recording terminal
CN108495171A (en) * 2018-04-03 2018-09-04 优视科技有限公司 Method for processing video frequency and its device, storage medium, electronic product
CN112312201B (en) * 2020-04-09 2023-04-07 北京沃东天骏信息技术有限公司 Method, system, device and storage medium for video transition
CN115529378B (en) 2022-02-28 2025-06-13 荣耀终端股份有限公司 A video processing method and related device
CN115633218A (en) * 2022-10-20 2023-01-20 深圳市菲菲教育发展有限公司 A video editing method, storage medium and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102509285A (en) * 2011-09-28 2012-06-20 宇龙计算机通信科技(深圳)有限公司 Processing method and system for shot fuzzy picture and shooting equipment
CN103023965A (en) * 2011-11-09 2013-04-03 微软公司 Event-based media grouping, playback, and sharing
CN104104874A (en) * 2014-07-17 2014-10-15 深圳市中兴移动通信有限公司 Orbit shooting method and shooting method and device of object motion trails
CN104813399A (en) * 2012-11-05 2015-07-29 奈斯瑞明株式会社 Method for editing motion picture, terminal for same and recording medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4196942B2 (en) * 2004-12-21 2008-12-17 セイコーエプソン株式会社 IMAGING DEVICE AND MOBILE PHONE HAVING THE SAME

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102509285A (en) * 2011-09-28 2012-06-20 宇龙计算机通信科技(深圳)有限公司 Processing method and system for shot fuzzy picture and shooting equipment
CN103023965A (en) * 2011-11-09 2013-04-03 微软公司 Event-based media grouping, playback, and sharing
CN104813399A (en) * 2012-11-05 2015-07-29 奈斯瑞明株式会社 Method for editing motion picture, terminal for same and recording medium
CN104104874A (en) * 2014-07-17 2014-10-15 深圳市中兴移动通信有限公司 Orbit shooting method and shooting method and device of object motion trails

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
视频分割和重组技术研究;刘惠彬;《中国优秀硕士学位论文全文数据库信息科技辑》;20060531;I138-439 *

Also Published As

Publication number Publication date
CN105245810A (en) 2016-01-13

Similar Documents

Publication Publication Date Title
CN105245810B (en) A kind of processing method and processing device of video transition
CN103262169B (en) For deleting the video editing apparatus of inefficacy frame
CN104660911B (en) A method and device for taking pictures quickly
EP2998960B1 (en) Method and device for video browsing
EP3136391A1 (en) Method, device and terminal device for video effect processing
CN104580907B (en) A kind of photographic method and device of stabilization
US9189269B2 (en) Apparatus and method for performing multi-tasking in portable terminal
CN112911239B (en) Video processing method and device, electronic device and storage medium
RU2664674C2 (en) Method and apparatus for creating a panorama
CN103440079A (en) Restoration method for operation interface and communication terminal
CN111787223A (en) Video shooting method, device and electronic device
CN105549814B (en) Photographing method based on mobile terminal and mobile terminal
CN105117137A (en) A method and device for taking pictures when a terminal is in standby, and a mobile terminal
CN104580874B (en) camera equipment and method for realizing photographing
WO2017173585A1 (en) Photographing method and terminal
US20160344924A1 (en) System and Method for Preserving Video Clips from a Handheld Device
CN105391964A (en) Video data processing method and apparatus
CN111787263A (en) Control method, system, storage medium and equipment for video communication
CN116993253B (en) Real-time logistics information tracking method and system
CN105915792A (en) Method and device for taking pictures
CN105117135A (en) A camera method and device when a terminal is in standby
CN104125487A (en) Method and device for uploading image data
CN107360370A (en) A kind of method, photo taking and photo camera for smart machine
CN104601884B (en) A kind of camera control method and terminal
US20110149099A1 (en) Image capture device with adjustable level detection and method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180316

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