CN108184165B - Video playback method, electronic device, and computer-readable storage medium - Google Patents
Video playback method, electronic device, and computer-readable storage medium Download PDFInfo
- Publication number
- CN108184165B CN108184165B CN201711461064.1A CN201711461064A CN108184165B CN 108184165 B CN108184165 B CN 108184165B CN 201711461064 A CN201711461064 A CN 201711461064A CN 108184165 B CN108184165 B CN 108184165B
- Authority
- CN
- China
- Prior art keywords
- video
- frame rate
- current scene
- play
- shooting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 83
- 230000008569 process Effects 0.000 claims abstract description 31
- 230000003068 static effect Effects 0.000 claims abstract description 30
- 230000003287 optical effect Effects 0.000 claims description 29
- 238000004590 computer program Methods 0.000 claims description 8
- 230000006870 function Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000003384 imaging method Methods 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 210000001525 retina Anatomy 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000011514 reflex Effects 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44012—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72439—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47217—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/65—Transmission of management data between client and server
- H04N21/658—Transmission by the client directed to the server
- H04N21/6587—Control parameters, e.g. trick play commands, viewpoint selection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Databases & Information Systems (AREA)
- Studio Devices (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
Description
技术领域technical field
本发明涉及视频播放技术领域,特别涉及一种视频播放方法、电子装置和计算机可读存储介质。The present invention relates to the technical field of video playback, and in particular, to a video playback method, an electronic device and a computer-readable storage medium.
背景技术Background technique
现有的手机播放视频时,无法实现自动慢播放功能,用户体验较差。When an existing mobile phone plays a video, the automatic slow play function cannot be realized, and the user experience is poor.
发明内容SUMMARY OF THE INVENTION
本发明的实施例提供了一种视频播放方法、电子装置和计算机可读存储介质。Embodiments of the present invention provide a video playback method, an electronic device, and a computer-readable storage medium.
本发明提供一种视频播放方法,用于电子装置。所述电子装置包括摄像头和视频播放器,所述视频播方法包括:The present invention provides a video playback method for electronic devices. The electronic device includes a camera and a video player, and the video broadcasting method includes:
在所述摄像头按照拍摄帧率拍摄当前场景以录制所述视频的过程中,判断所述当前场景中是否出现运动物体;During the process that the camera shoots the current scene according to the shooting frame rate to record the video, judging whether there is a moving object in the current scene;
在所述当前场景中出现运动物体时,记录出现所述运动物体的初始时间戳和截止时间戳;When a moving object appears in the current scene, record the initial timestamp and the expiration timestamp when the moving object appears;
在播放所述视频时,根据所述初始时间戳和所述截止时间戳确定所述视频中的静态部分和动态部分;和while playing the video, determining a static portion and a dynamic portion in the video according to the initial timestamp and the expiration timestamp; and
控制所述视频播放器以第一播放帧率播放所述静态部分,并控制所述视频播放器以第二播放帧率播放所述动态部分,所述第二播放帧率小于所述第一播放帧率。Controlling the video player to play the static part at a first play frame rate, and controlling the video player to play the dynamic part at a second play frame rate, the second play frame rate being smaller than the first play frame rate frame rate.
本发明提供一种电子装置。所述电子装置包括摄像头、视频播放器和处理器。所述处理器用于在所述摄像头按照拍摄帧率拍摄当前场景以录制所述视频的过程中,判断所述当前场景中是否出现运动物体,在所述当前场景中出现运动物体时,记录出现所述运动物体的初始时间戳和截止时间戳,在播放所述视频时,根据所述初始时间戳和所述截止时间戳确定所述视频中的静态部分和动态部分,以及控制所述视频播放器以第一播放帧率播放所述静态部分,并控制所述视频播放器以第二播放帧率播放所述动态部分,所述第二播放帧率小于所述第一播放帧率。The present invention provides an electronic device. The electronic device includes a camera, a video player and a processor. The processor is configured to determine whether a moving object appears in the current scene during the process that the camera shoots the current scene according to the shooting frame rate to record the video, and when a moving object appears in the current scene, records the occurrence of the moving object. The initial timestamp and the expiration timestamp of the moving object, when playing the video, determine the static part and the dynamic part in the video according to the initial timestamp and the expiration timestamp, and control the video player Playing the static part at a first playing frame rate, and controlling the video player to play the dynamic part at a second playing frame rate, where the second playing frame rate is smaller than the first playing frame rate.
本发明提供一种电子装置。所述电子装置包括摄像头、视频播放器、一个或多个处理器、存储器和一个或多个程序。其中所述一个或多个程序存储在所述存储器中,并且被配置成由所述一个或多个处理器执行,所述程序包括用于执行上述的视频播放方法的指令。The present invention provides an electronic device. The electronic device includes a camera, a video player, one or more processors, memory, and one or more programs. Wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs comprising instructions for performing the above-described video playback method.
本发明提供一种计算机可读存储介质。计算机可读存储介质包括与能够摄像的电子装置结合使用的计算机程序。所述计算机程序可被处理器执行以完成上述的视频播放方法。The present invention provides a computer-readable storage medium. The computer-readable storage medium includes a computer program used in conjunction with an electronic device capable of imaging. The computer program can be executed by the processor to complete the above-mentioned video playback method.
本发明实施方式的视频播放方法、电子装置和计算机可读存储介质在视频录制过程中可以识别摄像头拍摄的当前场景是否出现运动物体,并在运动出现时记录运动物体的初始时间戳和截止时间戳,从而根据初始时间戳和截止时间戳自动确定录制的视频中的运动片段,如此,在播放的时候可以直接对运动片段进行慢播放,而无需用户手动截取,用户的使用体验较佳。The video playback method, electronic device, and computer-readable storage medium of the embodiments of the present invention can identify whether there is a moving object in the current scene captured by the camera during the video recording process, and record the initial timestamp and the expiration timestamp of the moving object when motion occurs. , so that the motion segment in the recorded video is automatically determined according to the initial timestamp and the expiration timestamp. In this way, the motion segment can be directly played in slow motion during playback without the user's manual interception, and the user experience is better.
本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the present invention will be set forth, in part, from the following description, and in part will be apparent from the following description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:
图1是本发明某些实施方式的视频播放方法的流程示意图。FIG. 1 is a schematic flowchart of a video playback method according to some embodiments of the present invention.
图2是本发明某些实施方式的电子装置的示意图。2 is a schematic diagram of an electronic device according to some embodiments of the present invention.
图3是本发明某些实施方式的视频播放方法的流程示意图。FIG. 3 is a schematic flowchart of a video playback method according to some embodiments of the present invention.
图4是本发明某些实施方式的视频播放方法的流程示意图。FIG. 4 is a schematic flowchart of a video playback method according to some embodiments of the present invention.
图5是本发明某些实施方式的视频播放方法的两帧差分的原理示意图。FIG. 5 is a schematic diagram of the principle of difference between two frames of a video playback method according to some embodiments of the present invention.
图6是本发明某些实施方式的视频播放方法的三帧差分的原理示意图。FIG. 6 is a schematic diagram of the principle of three-frame difference in a video playback method according to some embodiments of the present invention.
图7是本发明某些实施方式的视频播放方法的流程示意图。FIG. 7 is a schematic flowchart of a video playback method according to some embodiments of the present invention.
图8是本发明某些实施方式的视频播放方法的流程示意图。FIG. 8 is a schematic flowchart of a video playback method according to some embodiments of the present invention.
图9是本发明某些实施方式的电子装置的示意图。9 is a schematic diagram of an electronic device according to some embodiments of the present invention.
图10是本发明某些实施方式的电子装置的示意图。10 is a schematic diagram of an electronic device according to some embodiments of the present invention.
具体实施方式Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。The following describes in detail the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to explain the present invention and should not be construed as limiting the present invention.
请一并参阅图1至2,本发明实施方式的视频播放方法可用于电子装置100。电子装置100包括摄像头10和视频播放器20。视频播放方法包括:Please refer to FIGS. 1 to 2 together. The video playback method according to the embodiment of the present invention can be applied to the
02:在摄像头10按照拍摄帧率拍摄当前场景以录制视频的过程中,判断当前场景中是否出现运动物体;02: During the process that the
04:在当前场景中出现运动物体时,记录出现运动物体的初始时间戳和截止时间戳;04: When a moving object appears in the current scene, record the initial timestamp and the expiration timestamp of the moving object;
06:在播放视频时,根据初始时间戳和截止时间戳确定视频中的静态部分和动态部分;和06: While playing the video, determine the static part and dynamic part in the video according to the initial timestamp and the expiration timestamp; and
08:控制视频播放器20以第一播放帧率播放所述静态部分,并控制视频播放器20以第二播放帧率播放动态部分,其中,第二播放帧率小于第一播放帧率。08: Control the
请再参阅图2,本发明实施方式的视频播放方法可以由本发明实施方式的电子装置100实现。电子装置100包括摄像头10、视频播放器20和处理器30。步骤02、步骤04、步骤06和步骤08均可以由处理器30实现。Referring to FIG. 2 again, the video playback method according to the embodiment of the present invention can be implemented by the
也即是说,处理器30可用于在摄像头10按照拍摄帧率拍摄当前场景以录制视频的过程中,判断当前场景中是否出现运动物体,在当前场景中出现运动物体时,记录出现运动物体的初始时间戳和截止时间戳,在播放视频时,根据初始时间戳和截止时间戳确定视频中的静态部分和动态部分,以及控制视频播放器20以第一播放帧率播放所述静态部分,并控制视频播放器20以第二播放帧率播放动态部分,其中,第二播放帧率小于第一播放帧率。That is to say, the
可以理解,当视频中出现有运动的物体或场景时,用户往往希望能够对运动的物体或场景对应的片段进行慢播放,从而可以观察到运动物体或场景的运动细节。但现有的播放视频的方式通常需要由用户手动截取视频中的运动片段,再对截取出来的运动片段执行慢播放。这种需要用户手动操作才能实现慢播放的视频播放方式的智能性较弱,用户的使用体验也较差。It can be understood that when a moving object or scene appears in the video, the user often wants to be able to slow play the segment corresponding to the moving object or scene, so as to observe the motion details of the moving object or scene. However, in the existing way of playing a video, a user usually needs to manually capture a motion segment in the video, and then perform slow playback on the captured motion segment. Such a video playback mode that requires manual operation by the user to achieve slow playback is less intelligent, and the user experience is also poor.
本发明实施方式的视频播放方法在视频录制过程中可以识别摄像头10拍摄的当前场景是否出现运动物体,并在运动出现时记录运动物体的初始时间戳和截止时间戳,从而根据初始时间戳和截止时间戳自动确定录制的视频中的运动片段,如此,在播放的时候可以直接对运动片段进行慢播放,而无需用户手动截取,用户的使用体验较佳。The video playback method of the embodiment of the present invention can identify whether there is a moving object in the current scene captured by the
在某些实施方式中,电子装置100可以是手机、笔记本电脑、平板电脑、智能手表、智能手环、智能头盔、智能眼镜、单反相机等。In some embodiments, the
请参阅图3,在某些实施方式中,本发明实施方式的视频播放方法还包括:Referring to FIG. 3, in some embodiments, the video playback method of the embodiment of the present invention further includes:
011:判断用户是否选择视频慢播放模式;在用户选择视频慢播放模式时,进入步骤02。011: Determine whether the user selects the video slow play mode; when the user selects the video slow play mode, go to
请再参阅图2,步骤011可以由处理器30实现。也即是说,处理器30还可用于判断用户是否选择视频慢播放模式,并在用户选择所述视频慢播放模式时,进入在摄像头10按照拍摄帧率拍摄当前场景以录制视频的过程中,判断当前场景中是否出现运动物体的步骤。Referring to FIG. 2 again,
其中,用户可以通过多种方式选择是否进入视频慢播放模式。例如,用户通过触控操作的方式,触控电子装置100的触控屏以点选进入视频慢播放模式的虚拟按键;或者,用户通过键盘或鼠标选择电子装置100的UI界面显示的进入视频慢播放模式的选择键;或者,用户通过语音输入的方式,例如,电子装置100的麦克风采集用户发出的语音,发送至处理器30后,由处理器30识别出该段语音为“使用视频慢播放”,则触发电子装置100进入视频慢播放模式。Among them, the user can choose whether to enter the video slow play mode in various ways. For example, the user touches the touch screen of the
如此,电子装置100可以为用户提供使用视频慢播放及视频正常播放等多种播放模式,给予用户更多的视频观看体验,提升用户的使用满意度。In this way, the
请参阅图3,在某些实施方式中,摄像头10的拍摄帧率包括第一拍摄帧率和第二拍摄帧率,其中,第一拍摄帧率小于第二拍摄帧率。本发明实施方式的视频播放方法还包括:Referring to FIG. 3 , in some embodiments, the shooting frame rate of the
012:在当前场景中未出现运动物体前,控制摄像头10按照第一拍摄帧率拍摄当前场景;和012: control the
03:在当前场景中出现运动物体后,控制摄像头10按照第二拍摄帧率拍摄当前场景。03: After a moving object appears in the current scene, control the
请再参阅图2,在某些实施方式中,步骤012、步骤03均可以由处理器30实现。也即使说,处理器30还可用于在当前场景中未出现运动物体前,控制摄像头10按照第一拍摄帧率拍摄当前场景,以及在当前场景中出现运动物体后,控制摄像头10按照第二拍摄帧率拍摄当前场景。Referring to FIG. 2 again, in some embodiments, both
可以理解,现有的录制视频的常用拍摄帧率为30帧/秒(fps),因为在视频播放过程中画面刷新速度达到或超过24fps时人眼才可看到连续的流畅画面,因此,采用30fps的拍摄帧率录制视频一方面可以满足画面流畅性的要求,另一方面可以减小视频文件对存储空间的占用。但当用户希望对一段视频进行慢播放时,要求该段视频在录制时需要以较高的拍摄帧率录制,例如,以120fps的拍摄帧率录制,在播放时以30gps的播放帧率播放,如此,一方面,原来1秒可以播放完120帧图像,现在需要4秒才能播放完毕,从而达到慢播放效果;另一方面,30fps的播放帧率也可以满足流畅性的需求。It can be understood that the common shooting frame rate of the existing video recording is 30 frames per second (fps), because the continuous smooth picture can only be seen by the human eye when the picture refresh rate reaches or exceeds 24 fps during the video playback process. The 30fps shooting frame rate recording video can meet the requirements of picture fluency on the one hand, and on the other hand, it can reduce the occupation of storage space by video files. However, when the user wants to play a video slowly, it is required that the video needs to be recorded at a higher frame rate during recording, for example, record at a frame rate of 120fps, and play at a frame rate of 30gps during playback. In this way, on the one hand, the original 120 frames of images can be played in 1 second, but now it takes 4 seconds to complete the playback, so as to achieve a slow playback effect; on the other hand, the playback frame rate of 30fps can also meet the needs of fluency.
因此,本发明实施方式的视频播放方法在录制视频前,用户首先选择进入视频慢播放的模式,随后,摄像头10以第一拍摄帧率开始录制视频。假设第一拍摄帧率为30fps,则1秒时间内摄像头10会拍摄30帧图像。当处理器30处理摄像头10采集的多帧图像,确定场景中出现运动场景时,处理器30将记录出现运动物体的初始时间戳,并控制摄像头10以第二拍摄帧率开始录制视频,例如,摄像头10以120fps的拍摄帧率拍摄视频,则1秒时间内摄像头10会拍摄120帧图像。当处理器30处理摄像头10采集的图像,确定场景中的运动物体停止运动后,处理器30会记录运动物体停止运动的截止时间戳,并控制摄像头10以第一拍摄帧率,例如30fps录制视频。Therefore, in the video playback method of the embodiment of the present invention, before recording a video, the user first selects to enter the mode of slow video playback, and then the
如此,对于一段视频中的动态部分采用较高的拍摄帧率录制,对于一段视频中的静态部分采用较低的拍摄帧率录制,不仅可以满足后续对动态部分的视频进行慢播放的要求,还可以减小视频文件中图像的总数量,进一步地减小视频文件占用的存储空间。In this way, using a higher shooting frame rate to record the dynamic part of a video and using a lower shooting frame rate to record the static part of a video can not only meet the requirements of slow playback of the dynamic part of the video, but also The total number of images in the video file can be reduced, and the storage space occupied by the video file can be further reduced.
当然,全程采用第二拍摄帧率进行视频录制也是可行的。Of course, it is also feasible to use the second shooting frame rate for video recording throughout the entire process.
进一步地,在视频播放过程中,第一播放帧率与视频录制时的播放帧率相等。Further, in the video playback process, the first playback frame rate is equal to the playback frame rate during video recording.
具体地,当视频录制的全程均采用统一的高拍摄帧率录制,例如,采用120fps进行录制,那么在视频播放期间,静态部分对应的第一播放帧率也为120fps。当视频录制过程中,静态部分采用较低的第一拍摄帧率录制,例如,采用30fps进行录制,动态部分采用较高的第二拍摄帧率录制,例如,采用120fps进行录制,那么在视频播放期间,静态部分对应的第一播放帧率也为30fps。如此,可以使得用户观看静态部分的视频时,有常速播放的观感体验,而不会有快放或慢放的感觉,用户的观看体验更好。Specifically, when the entire video recording is recorded with a uniform high shooting frame rate, for example, 120 fps is used for recording, then during the video playback, the first playback frame rate corresponding to the static part is also 120 fps. During video recording, the static part is recorded with a lower frame rate of the first shooting, for example, 30fps is used for recording, and the dynamic part is recorded with a higher frame rate of the second shooting, for example, 120fps is used for recording, then when the video is played During this period, the first playback frame rate corresponding to the static part is also 30fps. In this way, when the user watches the static part of the video, the user can have the viewing and feeling experience of playing at a constant speed, without the feeling of fast or slow playback, and the user's viewing experience is better.
请参阅图4,在某些实施方式中,步骤02在摄像头10按照拍摄帧率拍摄当前场景以录制视频的过程中,判断当前场景中是否出现运动物体包括:Referring to FIG. 4, in some embodiments, in
021:获取摄像头10按照拍摄帧率拍摄当前场景得到的相邻的第一帧图像和第二帧图像;021: Acquire the adjacent first frame image and the second frame image obtained by the
022:根据第一帧图像中各个像素点的亮度值和第二帧图像中各个像素点的亮度值获取第一帧图像与第二帧图像的多个亮度差值;022: obtaining a plurality of luminance difference values between the first frame image and the second frame image according to the luminance value of each pixel point in the first frame image and the luminance value of each pixel point in the second frame image;
023:计算亮度差值大于预设亮度差值的像素点的个数;和023: Calculate the number of pixels whose luminance difference is greater than the preset luminance difference; and
024:在个数大于预设个数时确定当前场景中出现运动物体。024: When the number is greater than the preset number, determine that there are moving objects in the current scene.
请再参阅图2,在某些实施方式中,步骤021、步骤022、步骤023和捕捉024均可以由处理器30实现。也即是说,处理器30还可以用于获取摄像头10按照拍摄帧率拍摄当前场景得到的相邻的第一帧图像和第二帧图像,根据第一帧图像中各个像素点的亮度值和第二帧图像中各个像素点的亮度值获取第一帧图像与第二帧图像的多个亮度差值,计算亮度差值大于预设亮度差值的像素点的个数,以及在个数大于预设个数时确定当前场景中出现运动物体。Referring to FIG. 2 again, in some embodiments,
其中,相邻的第一帧图像和第二帧图像应作广义理解,也即是说,假设第一帧图像为第n帧图像,则与第n帧图像相邻的第二帧图像可以是:第n+1帧图像,第n+2帧图像,第n+帧图像,第n-1帧图像,第n-2帧图像,第n-3帧图像等。在本发明的具体实施例中,第一帧图像和第二帧图像之间相差的帧数的绝对值不得超过4帧。Among them, the adjacent first frame image and the second frame image should be understood in a broad sense, that is to say, if the first frame image is the nth frame image, the second frame image adjacent to the nth frame image can be : the n+1th frame image, the n+2th frame image, the n+th frame image, the n-1th frame image, the n-2th frame image, the n-3th frame image, etc. In a specific embodiment of the present invention, the absolute value of the frame number of the difference between the first frame image and the second frame image shall not exceed 4 frames.
具体地,请结合图5,摄像头10按照拍摄帧率拍摄当前场景以录制视频时,可生成多帧图像。处理器30从多帧图像中选取第n帧图像和第n+1帧图像进行当前场景中是否存在运动物体的检测。具体地,处理器30根据公式Y=0.2990R+0.5870G+0.1140B,将第n帧图像基于RGB空间的像素值转换为基于YCrCb空间的像素值,从而获取第n帧图像中各个像素的亮度值,同理,处理器30将第n+1帧图像基于RGB空间的像素值转换为基于YCrCb空间的像素值,从而获取第n+1帧图像中各个像素的亮度值。假设第n帧图像中的像素点的亮度值为Fn(x,y),第n帧图像中的像素点的亮度值为Fn+1(x,y),则将两帧图像对应的像素点的亮度值进行相减并取其绝对值,得到差分图像Dn,差分图像Dn中像素点的亮度值为Dn=|Fn+1(x,y)-Fn(x,y)|。随后,对差分图像Dn中的各个像素点进行二值化处理,得到二值化图像Rn。具体地,如公式所示:将差分图像Dn中的每个像素点与预设亮度值进行比较,将亮度值大于预设亮度值的像素点标记为运动点,并将像素值更改为255,将亮度值小于预设亮度值像素点标记为背景点,并将像素值更改为0。最后,计算像素值为255的像素点的个数,当像素点的个数大于预设个数时,确定当前场景中出现运动物体。Specifically, referring to FIG. 5 , when the
在本发明的具体实施例中,采用两帧差分法来检测当前场景中是否出现运动物体。在某些实施例中,还可以采用三帧差分法来检测当前场景中是否出现运动物体。In a specific embodiment of the present invention, a two-frame difference method is used to detect whether a moving object appears in the current scene. In some embodiments, a three-frame difference method may also be used to detect whether a moving object appears in the current scene.
具体地,请结合图6,摄像头10按照拍摄帧率拍摄当前场景以录制视频时,可生成多帧图像。处理器30从多帧图像中选取第n帧图像、第n+1帧图像、第n+2帧图像进行当前场景中是否存在运动物体的检测。具体地,处理器30根据公式Y=0.2990R+0.5870G+0.1140B,将第n帧图像基于RGB空间的像素值转换为基于YCrCb空间的像素值,从而获取第n帧图像中各个像素的亮度值,同理,处理器30将第n+1帧图像和第n+2帧图像基于RGB空间的像素值转换为基于YCrCb空间的像素值,从而获取第n+1帧图像和第n+2帧图像中各个像素的亮度值。假设第n帧图像、第n+1帧图像、第n+2帧图像中像素点的亮度值分别为Fn(x,y)、Fn+1(x,y)和Fn+2(x,y)。则将第n帧图像和第n+1帧图像对应的像素点的亮度值进行相减并取其绝对值得到差分图像Dn,将第n+1帧图像、第n+2帧图像对应的像素点的亮度值进行相减并取其绝对值得到差分图像Dn+1。差分图像Dn中像素点的亮度值为Dn=|Fn+1(x,y)-Fn(x,y)|,差分图像Dn+1中像素点的亮度值为Dn+1=|Fn+2(x,y)-Fn+1(x,y)|。随后,对差分图像Dn和差分图像Dn+1进行如下公式处理得到差分图像D'n:D'n(x,y)=|Fn+1(x,y)-Fn(x,y)|∩|Fn+2(x,y)-Fn+1(x,y)|。随后,对差分图像D'n中的各个像素点进行二值化处理,得到二值化图像Rn:将差分图像D'n中的每个像素点与预设亮度值进行比较,将亮度值大于预设亮度值的像素点标记为运动点,并将像素值更改为255,将亮度值小于预设亮度值像素点标记为背景点,并将像素值更改为0。最后,计算像素值为255的像素点的个数,当像素点的个数大于预设个数时,确定当前场景中出现运动物体。Specifically, referring to FIG. 6 , when the
同理,判断当前场景中的运动物体是否停止运动也可通过帧间差分的方法来检测。当差分图像中亮度值大于预设亮度值的像素点的个数小于预设个数时,即判断运动物体停止运动。Similarly, to determine whether the moving object in the current scene stops moving can also be detected by the method of inter-frame difference. When the number of pixels with a brightness value greater than the preset brightness value in the differential image is less than the preset number, it is determined that the moving object stops moving.
如此,根据相邻两帧或多帧图像之间的亮度差来检测当前场景中是否出现运动物体,并在检测到运动物体时即刻记录当下时刻的初始时间戳,在检测到运动物体停止时即刻记录下当前时刻的截止时间戳。In this way, whether there is a moving object in the current scene is detected according to the brightness difference between two or more adjacent frames of images, and the initial timestamp of the current moment is recorded immediately when the moving object is detected, and the moment when the moving object is detected to stop. Record the expiry timestamp of the current moment.
请参阅图7,在某些实施方式中,步骤02在摄像头10按照拍摄帧率拍摄当前场景以录制视频的过程中,判断当前场景中是否出现运动物体包括:Referring to FIG. 7, in some embodiments, in
025:获取摄像头10拍摄当前场景得到的多帧图像以获得光流数据;和025: Acquire multiple frames of images obtained by the
026:根据光流数据判断所述当前场景是否出现运动物体。026: Determine whether there is a moving object in the current scene according to the optical flow data.
请再参阅图2,在某些实施方式中,步骤025和捕捉026均可以由处理器30实现。也即是说,处理器30还可用于获取摄像头10拍摄当前场景得到的多帧图像以获得光流数据,以及根据光流数据判断所述当前场景是否出现运动物体。Referring again to FIG. 2 , in some embodiments, both
具体地,光流指的是拍摄图像中灰度模式运动速度。当人的眼睛与被观察物体发生相对运动时,物体的镜像在视网膜平片(即图像的平面)上形成一系列连续变化的图像,而这一系列连续变化的图像信息不断“流过”视网膜,好像是一种光的“流”,因此被称为光流。光流基于每一个像素进行定义。光流反应了当前场景中的物体的变化。对于固定不动的摄像头10来说,当前场景的运动物体在成像平面上形成一系列连续变化的图像。摄像头1010拍摄的每一帧图像都具有多个像素,每个像素均具有一个运动矢量,即光流。Specifically, the optical flow refers to the motion speed of the grayscale mode in the captured image. When the human eye moves relative to the observed object, the mirror image of the object forms a series of continuously changing images on the flat retina (ie, the plane of the image), and this series of continuously changing image information continuously "flows" through the retina , as if it is a "flow" of light, so it is called optical flow. Optical flow is defined on a per-pixel basis. Optical flow reflects changes in objects in the current scene. For the
在实际应用中,要通过光流判断当前场景中是否存在运动体,需要处理器30至少两帧拍摄图像得到的光流数据才能进行运动体的判断和提取。摄像头10按照预设帧率拍摄当前场景以录制视频时,会得到多帧图像。以相邻的两帧图像即第k(k∈N*)帧拍摄图像和第k+1帧拍摄图像为例进行说明。其中,拍摄第k帧图像和拍摄第k+1帧图像的时间间隔为Δt。在Δt的值较小时,可将第k帧图像中每一个像素与第k+1帧图像中的每一个像素一一对应,此时,图像中每一个像素p的光流可以表示为光流矢量或者说运动矢量(u_p,v_p),其中,“u_p”表示像素p的光流矢量的水平分量,“v_p”表示像素p的光流矢量的垂直分量。如果相邻像素p在相邻帧上是运动的,那么它的光流矢量(u_p,v_p)将为(0,0),如果像素p在相邻帧上是运动的,那么它的光流矢量(u_p,v_p)将为非0值。如此,处理器30计算出每一个像素的光流矢量后,判断各个像素的光流矢量的值是否为0,光流矢量不为0的像素归并为运动物体所在位置。如此,当计算到两帧图像中光流矢量不为0的像素的个数大于预定阈值时,则确定当前场景中存在运动物体。In practical applications, to determine whether there is a moving body in the current scene through optical flow, the optical flow data obtained by the
同理,判断当前场景中的运动物体是否停止运动也可通过光流法来检测。当两帧图像中光流矢量不为0的像素的个数小于预定的个数时,即判断运动物体停止运动。Similarly, judging whether the moving object in the current scene stops moving can also be detected by the optical flow method. When the number of pixels whose optical flow vector is not 0 in the two frames of images is less than a predetermined number, it is determined that the moving object stops moving.
如此,根据光流法来检测当前场景中是否出现运动物体,并在检测到运动物体时即刻记录当下时刻的初始时间戳,在检测到运动物体停止时即刻记录下当前时刻的截止时间戳。In this way, whether there is a moving object in the current scene is detected according to the optical flow method, and the initial timestamp of the current moment is recorded immediately when the moving object is detected, and the expiration timestamp of the current moment is recorded immediately when the moving object is detected to stop.
在某些实施方式中,当处理器30处理相邻两帧或相邻的多帧图像并确定当前场景中出现运动物体,处理器30会将涉及到的多帧图像中的一帧对应的拍摄时间记录为初始时间戳,处理相邻两帧或相邻的多帧图像并确定当前场景中的运动物体停止运动时,处理器30会将涉及到的多帧图像中的一帧对应的拍摄时间设置为截止时间戳。在录制的一段视频中,对应的初始时间戳和截止时间戳可能有多对,处理器30将一对或多对的时间对存储在预先设计好的结构体数组中,例如,结构体数组的大小为2*5+1,则此结构体数组最多可存储5对的时间对,结构体数组中的最后一个数据为视频录制的开始时间。视频录制结束后,处理器30将结构体数组与摄像头10拍摄的图像以及电子装置100的麦克风录制的音频一同封装形成视频文件。当用户要播放该视频文件时,处理器30对视频文件进行解封装,分离出音频数据、图像数据和时间对数据,其中音频数据的数据和视频数据均为压缩编码的数据,因此,需要对音频数据和图像数据进行解码与以还原成非压缩的图像数据和非压缩的原始音频数据。最后,将同步解码出来的图像数据和音频数据进行同步播放,并根据时间对数据对视频进行慢播放操作。In some embodiments, when the
请再参阅图8,在某些实施方式中,步骤06在播放视频时,根据初始时间戳和截止时间戳确定视频中的静态部分和动态部分包括:Please refer to FIG. 8 again, in some embodiments, when the video is played in
061:比较每个动态部分的视频的时长与预设时长的大小;和061: Compare the duration of each dynamic part of the video with the size of the preset duration; and
062:将时长小于预设时长的动态部分的视频重新归类为静态部分的视频。062: Reclassify the video of the dynamic part whose duration is shorter than the preset duration as the video of the static part.
请再参阅图2,在某些实施方式中,步骤061和步骤062均可以由处理器30实现。也即是说,处理器30还可以用于比较每个动态部分的视频的时长与预设时长的大小,以及将时长小于预设时长的动态部分的视频重新归类为静态部分的视频。Referring to FIG. 2 again, in some embodiments, both
具体地,视频录制过程中,可能包括多个出现运动物体的动态部分。例如,视频录制的开始时刻为00:00:00,在00:05:00时刻处出现运动物体,在00:07:00时刻处运动物体停止运动,在00:13:00时刻处又出现运动物体,在00:14:30时刻处物体又停止运动,在00:21:10时刻处物体又出现运动物体,在00:21:13时刻处物体又停止运动,则此段视频包含三个出现运动物体的动态部分。第一个动态部分的视频的时长为2分钟,第二个动态部分的视频的时长为1分30秒。第三个动态部分的视频的时长为3秒。假设预设时长为10秒,由于3秒小于10秒,因此,将第三个动态部分的视频重新归类为静态部分的视频。Specifically, during the video recording process, there may be multiple dynamic parts in which moving objects appear. For example, the start time of video recording is 00:00:00, a moving object appears at 00:05:00, stops moving at 00:07:00, and moves again at 00:13:00 Object, at 00:14:30 the object stops moving again, at 00:21:10 the object appears moving again, and at 00:21:13 the object stops moving again, then this video contains three appearances The dynamic part of a moving object. The length of the video for the first dynamic part is 2 minutes, and the length of the video for the second dynamic part is 1 minute and 30 seconds. The duration of the video for the third dynamic part is 3 seconds. Assuming that the preset duration is 10 seconds, since 3 seconds is less than 10 seconds, the video of the third dynamic part is reclassified as the video of the static part.
可以理解,当动态部分的视频的时长过短时,该部分动态视频中的运动物体的运动可能不是用户关注的主体部分。因此,可将时长过短的动态部分归并为静态部分的视频,在播放时不对该部分动态视频执行慢播放的操作。如此,用户在观看视频时,不会出现常速播放和慢速播放之间的切换频率过高而影响用户的观看体验的问题。It can be understood that when the duration of the video of the dynamic part is too short, the motion of the moving object in the dynamic video of the part may not be the main part that the user pays attention to. Therefore, a dynamic part with an excessively short duration can be merged into a video of a static part, and no slow-play operation is performed on the part of the dynamic video during playback. In this way, when a user watches a video, the problem that the switching frequency between normal-speed playback and slow-speed playback is too high to affect the user's viewing experience will not occur.
进一步地,在动态部分的视频的时长过长时,例如,用户使用电子装置100录制小孩踢足球的视频,在这个过程中小孩和足球通常处于持续运动的状态,此时动态部分的视频的时长就会较长,如果在播放时持续对该动态部分的视频执行慢播放操作,则会大大降低用户的观看体验。因此,可以对初始时间戳和截止时间戳的记录条件进行进一步的限定,也即是说,在当前场景中出现运动物体的条件下,还需要进一步检测当前场景中是否出现特定物体或同时出现多个特定物体,在出现特定物体或同时出现多个特定物体的情况下才将当前时刻记录为初始时间戳,以上述小孩踢足球的视频为例,可以进一步识别当前场景中是否同时出现小孩、足球和球门三种特定物体,当同时出现这三种特定物体时,才将同时出现这三中特定物体的时刻记录为初始时间戳,并在这三者中的任意一者消失在当前场景中时,将该时刻记录为截止时间戳。可以理解,在当前场景中同时出现小孩、足球和球门三种特定物体时,可能是小孩要射门的关键过程,这个过程有较大的可能是用户关注的主体部分,仅对这个过程进行慢播放可以避免动态部分的视频的时长过长导致用户观看体验降低的问题,还可为用户提取出视频中的精华部分,进一步提升用户的观看体验。Further, when the duration of the video of the dynamic part is too long, for example, the user uses the
请参阅图9,本发明实施方式的电子装置100包括摄像头10、视频播放器20、一个或多个处理器30、存储器40和一个或多个程序41。其中,一个或多个程序41被存储在存储器40中,并且被配置成由一个或多个处理器30执行。程序41包括用于执行上述任意一项实施方式所述的视频播放方法的指令。Referring to FIG. 9 , an
例如,程序41包括用于执行以下步骤的指令:For example, program 41 includes instructions for performing the following steps:
摄像头10和视频播放器20。视频播放方法包括:
02:在摄像头10按照拍摄帧率拍摄当前场景以录制视频的过程中,判断当前场景中是否出现运动物体;02: During the process that the
04:在当前场景中出现运动物体时,记录出现运动物体的初始时间戳和截止时间戳;04: When a moving object appears in the current scene, record the initial timestamp and the expiration timestamp of the moving object;
06:在播放视频时,根据初始时间戳和截止时间戳确定视频中的静态部分和动态部分;和06: While playing the video, determine the static part and dynamic part in the video according to the initial timestamp and the expiration timestamp; and
08:控制视频播放器20以第一播放帧率播放所述静态部分,并控制视频播放器20以第二播放帧率播放动态部分,其中,第二播放帧率小于第一播放帧率。08: Control the
再例如,程序41还包括用于执行以下步骤的指令:For another example, the program 41 also includes instructions for performing the following steps:
012:在当前场景中未出现运动物体前,控制摄像头10按照第一拍摄帧率拍摄当前场景;和012: control the
03:在当前场景中出现运动物体后,控制摄像头10按照第二拍摄帧率拍摄当前场景。03: After a moving object appears in the current scene, control the
请参阅图10,本发明实施方式的计算机可读存储介质200包括与能够摄像的电子装置100结合使用的计算机程序201。计算机程序201可被处理器30执行以完成上述任意一项实施方式所述的视频播放方法。其中,计算机可读存储介质200可以是独立于电子装置100之外的存储介质,也可以是集成在电子装置100中的存储介质。Referring to FIG. 10 , a computer-
例如,计算机程序201可被处理器30执行以完成以下步骤:For example,
02:在摄像头10按照拍摄帧率拍摄当前场景以录制视频的过程中,判断当前场景中是否出现运动物体;02: During the process that the
04:在当前场景中出现运动物体时,记录出现运动物体的初始时间戳和截止时间戳;04: When a moving object appears in the current scene, record the initial timestamp and the expiration timestamp of the moving object;
06:在播放视频时,根据初始时间戳和截止时间戳确定视频中的静态部分和动态部分;和06: While playing the video, determine the static part and dynamic part in the video according to the initial timestamp and the expiration timestamp; and
08:控制视频播放器20以第一播放帧率播放所述静态部分,并控制视频播放器20以第二播放帧率播放动态部分,其中,第二播放帧率小于第一播放帧率。08: Control the
再例如,计算机程序201还可被处理器30执行以完成以下步骤:For another example, the
012:在当前场景中未出现运动物体前,控制摄像头10按照第一拍摄帧率拍摄当前场景;和012: control the
03:在当前场景中出现运动物体后,控制摄像头10按照第二拍摄帧率拍摄当前场景。03: After a moving object appears in the current scene, control the
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine the different embodiments or examples described in this specification, as well as the features of the different embodiments or examples, without conflicting each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise expressly and specifically defined.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any description of a process or method 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 a specified logical function or step of the process , and the scope of the preferred embodiments of the invention includes alternative implementations in which the functions may be performed out of the order shown or discussed, including performing the functions substantially concurrently or in the reverse order depending upon the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present invention belong.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in flowcharts or otherwise described herein, for example, may be considered an ordered listing of executable instructions for implementing the logical functions, may be embodied in any computer-readable medium, For use with, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from and execute instructions from an instruction execution system, apparatus, or apparatus) or equipment. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport the program for use by or in connection with an instruction execution system, apparatus, or apparatus. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections with one or more wiring (electronic devices), 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 Disc Read Only Memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program may be printed, as the paper or other medium may be optically scanned, for example, followed by editing, interpretation, or other suitable medium as necessary process to obtain the program electronically and then store it in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or a combination of the following techniques known in the art: Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, Programmable Gate Arrays (PGA), Field Programmable Gate Arrays (FPGA), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those skilled in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the program can be stored in a computer-readable storage medium. When executed, one or a combination of the steps of the method embodiment 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 alone, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may 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, and the like. Although the embodiments of the present invention have been shown and described above, it should be understood that the above-mentioned embodiments are exemplary and should not be construed as limiting the present invention. Embodiments are subject to variations, modifications, substitutions and variations.
Claims (16)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711461064.1A CN108184165B (en) | 2017-12-28 | 2017-12-28 | Video playback method, electronic device, and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711461064.1A CN108184165B (en) | 2017-12-28 | 2017-12-28 | Video playback method, electronic device, and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108184165A CN108184165A (en) | 2018-06-19 |
CN108184165B true CN108184165B (en) | 2020-08-07 |
Family
ID=62548377
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711461064.1A Active CN108184165B (en) | 2017-12-28 | 2017-12-28 | Video playback method, electronic device, and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108184165B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108965705B (en) * | 2018-07-19 | 2020-04-10 | 北京微播视界科技有限公司 | Video processing method and device, terminal equipment and storage medium |
CN109922372B (en) * | 2019-02-26 | 2021-10-12 | 深圳市商汤科技有限公司 | Video data processing method and device, electronic equipment and storage medium |
CN110769325B (en) * | 2019-09-17 | 2021-12-07 | 咪咕动漫有限公司 | Video shooting method, system, electronic equipment and storage medium |
CN112532865B (en) * | 2019-09-19 | 2022-07-19 | 华为技术有限公司 | Slow-motion video shooting method and electronic equipment |
CN112312043A (en) * | 2020-10-20 | 2021-02-02 | 深圳市前海手绘科技文化有限公司 | Optimization method and device for deriving animation video |
CN112532880B (en) * | 2020-11-26 | 2022-03-11 | 展讯通信(上海)有限公司 | Video processing method and device, terminal equipment and storage medium |
CN112653920B (en) * | 2020-12-18 | 2022-05-24 | 北京字跳网络技术有限公司 | Video processing method, device, equipment and storage medium |
CN114339431B (en) * | 2021-12-16 | 2023-09-01 | 杭州当虹科技股份有限公司 | Time-lapse coding compression method |
CN114390236A (en) * | 2021-12-17 | 2022-04-22 | 云南腾云信息产业有限公司 | Video processing method, video processing device, computer equipment and storage medium |
CN116996639B (en) * | 2023-02-13 | 2024-08-20 | 深圳Tcl新技术有限公司 | Screen-projection frame rate acquisition method and device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1234681A (en) * | 1998-04-28 | 1999-11-10 | Lg电子株式会社 | Moving-image self-adaptive speed-displaying automatic control apparatus and method thereof |
CN101529890A (en) * | 2006-10-24 | 2009-09-09 | 索尼株式会社 | Imaging device and reproduction control device |
CN101600107A (en) * | 2009-07-08 | 2009-12-09 | 杭州华三通信技术有限公司 | Adjust the method, system and device of video record broadcasting speed |
CN102957864A (en) * | 2011-08-24 | 2013-03-06 | 奥林巴斯映像株式会社 | Imaging device and control method thereof |
CN104519294A (en) * | 2013-09-27 | 2015-04-15 | 杭州海康威视数字技术股份有限公司 | Mobile information-based video recording playback method and device thereof |
CN104811798A (en) * | 2015-04-17 | 2015-07-29 | 广东欧珀移动通信有限公司 | Method and device for regulating video playing speed |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102398835B1 (en) * | 2015-09-10 | 2022-05-17 | 엘지전자 주식회사 | Mobile terminal and method of controlling the same |
-
2017
- 2017-12-28 CN CN201711461064.1A patent/CN108184165B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1234681A (en) * | 1998-04-28 | 1999-11-10 | Lg电子株式会社 | Moving-image self-adaptive speed-displaying automatic control apparatus and method thereof |
CN101529890A (en) * | 2006-10-24 | 2009-09-09 | 索尼株式会社 | Imaging device and reproduction control device |
CN101600107A (en) * | 2009-07-08 | 2009-12-09 | 杭州华三通信技术有限公司 | Adjust the method, system and device of video record broadcasting speed |
CN102957864A (en) * | 2011-08-24 | 2013-03-06 | 奥林巴斯映像株式会社 | Imaging device and control method thereof |
CN104519294A (en) * | 2013-09-27 | 2015-04-15 | 杭州海康威视数字技术股份有限公司 | Mobile information-based video recording playback method and device thereof |
CN104811798A (en) * | 2015-04-17 | 2015-07-29 | 广东欧珀移动通信有限公司 | Method and device for regulating video playing speed |
Also Published As
Publication number | Publication date |
---|---|
CN108184165A (en) | 2018-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108184165B (en) | Video playback method, electronic device, and computer-readable storage medium | |
CN108369816B (en) | Apparatus and method for creating video clips from omnidirectional video | |
US20190230307A1 (en) | Tracking object of interest in an omnidirectional video | |
US8774592B2 (en) | Media reproduction for audio visual entertainment | |
US9781379B2 (en) | Media recording for audio visual entertainment | |
CN106375674B (en) | Method and apparatus for finding and using video portions associated with adjacent still images | |
KR101737857B1 (en) | Method and device for controlling playing and electronic equipment | |
US20140153900A1 (en) | Video processing apparatus and method | |
US11438510B2 (en) | System and method for editing video contents automatically technical field | |
US8373765B2 (en) | Image capturing device, image generating device, moving picture generating method and computer-readable medium | |
US9324376B2 (en) | Time-lapse video capture with temporal points of interest | |
JP2011035837A (en) | Electronic apparatus and method for displaying image data | |
US20120087636A1 (en) | Moving image playback apparatus, moving image management apparatus, method, and storage medium for controlling the same | |
US8437611B2 (en) | Reproduction control apparatus, reproduction control method, and program | |
US9600160B2 (en) | Image processing device, image processing method, and program | |
JP2017225037A (en) | Image processing apparatus and imaging apparatus | |
KR20090111963A (en) | Video recorder and fade processing method | |
US9661217B2 (en) | Image capturing apparatus and control method therefor | |
JP4835545B2 (en) | Image reproducing apparatus, imaging apparatus, image reproducing method, and computer program | |
JP2012010133A (en) | Image processing apparatus and image processing program | |
CN114979496A (en) | Electronic equipment | |
CN108200338A (en) | Real-time focusing method, imaging apparatus, and computer-readable storage medium | |
CN114827477B (en) | Method, device, electronic equipment and medium for time-lapse photography | |
WO2016175003A1 (en) | Imaging device, control method for imaging device, and control program | |
JP2017076998A (en) | Image processing device, image processing method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |