CN108206968A - Screen recording and extracting method based on ReplayKit, system - Google Patents
Screen recording and extracting method based on ReplayKit, system Download PDFInfo
- Publication number
- CN108206968A CN108206968A CN201611167756.0A CN201611167756A CN108206968A CN 108206968 A CN108206968 A CN 108206968A CN 201611167756 A CN201611167756 A CN 201611167756A CN 108206968 A CN108206968 A CN 108206968A
- Authority
- CN
- China
- Prior art keywords
- video
- recording
- replaykit
- screen recording
- screen
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
Description
技术领域technical field
本发明涉及视频录制技术领域,具体而言,涉及一种基于ReplayKit的屏幕录制及提取方法、系统。The invention relates to the technical field of video recording, in particular to a ReplayKit-based screen recording and extraction method and system.
背景技术Background technique
现有技术中,用户所用的录屏框架一种是基于截屏式的图片帧按照一定的时间间隔播放,来模拟实现屏幕的录制,另一种是利用第三方进行录屏,但二者实现起来既麻烦又困难,且性能不是很好,而且也无法实现同步录制声音。In the prior art, one of the screen recording frameworks used by users is based on screenshot-type picture frames played at a certain time interval to simulate the recording of the screen, and the other is to use a third party to record the screen, but the two are implemented together. It's cumbersome and difficult, and the performance is not very good, and it is impossible to record sound simultaneously.
发明内容Contents of the invention
本发明旨在至少解决现有技术或相关技术中存在的技术问题之一。The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
为此,本发明的一个目的在于提出了一种基于ReplayKit的屏幕录制及提取方法。For this reason, an object of the present invention is to propose a kind of screen recording and extraction method based on ReplayKit.
本发明的另一个目的在于提出了一种基于ReplayKit的屏幕录制及提取系统。Another object of the present invention is to propose a screen recording and extraction system based on ReplayKit.
有鉴于此,根据本发明的一个目的,提出了一种基于ReplayKit的屏幕录制及提取方法,包括:提取系统相册内的视频;检索视频,获取至少一个特定标示视频;在至少一个特定标示视频中获取目标视频;将目标视频复制到沙盒目录。In view of this, according to an object of the present invention, a screen recording and extraction method based on ReplayKit is proposed, including: extracting the video in the system album; retrieving the video, obtaining at least one specific marked video; in at least one specific marked video Get the target video; copy the target video to the sandbox directory.
本发明提供的基于ReplayKit的屏幕录制及提取方法,提取系统相册内的所有视频,检索所有视频,并获取至少一个特定标示视频,特定标示视频即为用户利用APP进行录制的视频,在至少一个特定标示视频中获取目标视频,将目标视频复制到沙盒目录,使用户方便地进行屏幕录制及提取,获取到性能良好的屏幕录制视频,操作简单,便于实现,提升了用户的使用体验,在将视频转存到沙盒后,可以将视频在系统中删除,以增大系统的使用空间。具体地,本发明可以实现同步录制声音的效果。The ReplayKit-based screen recording and extraction method provided by the present invention extracts all the videos in the system album, retrieves all the videos, and obtains at least one specific marked video. The specific marked video is the video recorded by the user using the APP. Obtain the target video from the marked video, copy the target video to the sandbox directory, so that users can conveniently record and extract the screen, and obtain a screen recording video with good performance. The operation is simple and easy to implement, which improves the user experience. After the video is transferred to the sandbox, the video can be deleted in the system to increase the space used by the system. Specifically, the present invention can achieve the effect of synchronous recording of sound.
根据本发明的上述基于ReplayKit的屏幕录制及提取方法,还可以具有以下技术特征:According to the above-mentioned ReplayKit-based screen recording and extraction method of the present invention, it can also have the following technical characteristics:
在上述技术方案中,优选地,在至少一个特定标示视频中获取目标视频,具体包括:将至少一个特定标示视频按照录制时间进行倒序排列;将排序后的第一个视频作为目标视频。In the above technical solution, preferably, acquiring the target video from at least one specific marked video specifically includes: sorting the at least one specific marked video in reverse order according to the recording time; and taking the sorted first video as the target video.
在该技术方案中,在至少一个特定标示视频中获取目标视频,具体包括:将至少一个特定标示视频按照录制时间进行倒序排列,将排序后的第一个视频作为目标视频,使用户更加方便快捷地找到想要获取的视频。In this technical solution, obtaining the target video in at least one specific marked video specifically includes: sorting at least one specific marked video in reverse order according to the recording time, and using the sorted first video as the target video, making it more convenient for users to find the desired video.
在上述技术方案中,优选地,还包括:对目标视频进行格式转换及压缩处理。In the above technical solution, preferably, further comprising: performing format conversion and compression processing on the target video.
在该技术方案中,对目标视频进行格式转换及压缩处理,便于后续对视频的读取及分类。In this technical solution, format conversion and compression processing are performed on the target video to facilitate subsequent reading and classification of the video.
在上述技术方案中,优选地,提取系统相册内的所述视频之前,还包括:检测录制视频参数是否符合预设要求;在录制视频设备参数符合预设要求时,通过ReplayKit录制至少一个特定标示视频;将至少一个特定标示视频保存至系统相册。In the above technical solution, preferably, before extracting the video in the system album, it also includes: detecting whether the recording video parameters meet the preset requirements; when the recording video device parameters meet the preset requirements, recording at least one specific mark through ReplayKit Videos; save at least one specifically marked video to the system camera roll.
在该技术方案中,在提取系统相册内的所述视频之前,检测录制视频参数是否符合预设要求,并在录制视频设备参数符合预设要求时,通过ReplayKit录制至少一个特定标示视频,将至少一个特定标示视频保存至系统相册,使用户简单方便地实现屏幕的录制。In this technical solution, before extracting the video in the system album, it is detected whether the parameters of the recorded video meet the preset requirements, and when the parameters of the recording video device meet the preset requirements, at least one specific marked video is recorded through ReplayKit, and at least A specific marked video is saved to the system album, allowing users to record the screen easily and conveniently.
在上述技术方案中,优选地,检测录制视频参数是否符合预设要求,具体包括:检测录制视频设备是否为真机;检测录制视频系统iOS版本是否高于9.0版本;检测录制视频硬件是否可用。In the above technical solution, preferably, detecting whether the recorded video parameters meet the preset requirements specifically includes: detecting whether the recording video device is a real device; detecting whether the iOS version of the recording video system is higher than version 9.0; detecting whether the recording video hardware is available.
在该技术方案中,在检测录制视频设备为真机,以及录制视频系统iOS版本高于9.0版本,以及录制视频硬件可用的情况下进行屏幕视屏的录制,保证屏幕录制达到良好的性能。In this technical solution, screen video recording is performed when the video recording device is detected to be a real device, the iOS version of the video recording system is higher than version 9.0, and the video recording hardware is available, so as to ensure that the screen recording achieves good performance.
根据本发明的另一个目的,提出了一种基于ReplayKit的屏幕录制及提取系统,包括:视频提取单元,用于提取系统相册内的视频;视频检索单元,用于检索视频,获取至少一个特定标示视频;以及在至少一个特定标示视频中获取目标视频;视频复制单元,用于将目标视频复制到沙盒目录。According to another object of the present invention, a screen recording and extraction system based on ReplayKit is proposed, including: a video extraction unit for extracting videos in the system album; a video retrieval unit for retrieving videos and obtaining at least one specific label video; and obtaining a target video in at least one specific marked video; a video copying unit configured to copy the target video to a sandbox directory.
本发明提供的基于ReplayKit的屏幕录制及提取系统,视频提取单元提取系统相册内的所有视频,视频检索单元检索所有视频,并获取至少一个特定标示视频,特定标示视频即为用户利用APP进行录制的视频,在至少一个特定标示视频中获取目标视频,视频复制单元将目标视频复制到沙盒目录,使用户方便地进行屏幕录制及提取,获取到性能良好的屏幕录制视频,操作简单,便于实现,提升了用户的使用体验,在将视频转存到沙盒后,可以将视频在系统中删除,以增大系统的使用空间。具体地,本发明可以实现同步录制声音的效果。In the ReplayKit-based screen recording and extraction system provided by the present invention, the video extraction unit extracts all the videos in the system album, the video retrieval unit retrieves all the videos, and obtains at least one specific marked video, which is recorded by the user using the APP Video, obtain the target video in at least one specific marked video, the video copy unit copies the target video to the sandbox directory, so that the user can conveniently perform screen recording and extraction, and obtain a screen recording video with good performance, which is easy to operate and easy to implement. The user experience is improved. After the video is transferred to the sandbox, the video can be deleted in the system to increase the space used by the system. Specifically, the present invention can achieve the effect of synchronous recording of sound.
根据本发明的上述基于ReplayKit的屏幕录制及提取系统,还可以具有以下技术特征:According to the above-mentioned ReplayKit-based screen recording and extracting system of the present invention, it can also have the following technical characteristics:
在上述技术方案中,优选地,视频检索单元包括:排序单元,用于将至少一个特定标示视频按照录制时间进行倒序排列;以及将排序后的第一个视频作为目标视频。In the above technical solution, preferably, the video retrieval unit includes: a sorting unit, configured to sort the at least one specific marked video in reverse order according to recording time; and use the sorted first video as the target video.
在该技术方案中,排序单元将至少一个特定标示视频按照录制时间进行倒序排列,将排序后的第一个视频作为目标视频,使用户更加方便快捷地找到想要获取的视频。In this technical solution, the sorting unit sorts at least one specific marked video in reverse order according to the recording time, and uses the sorted first video as the target video, so that users can find the desired video more conveniently and quickly.
在上述技术方案中,优选地,还包括:视频处理单元,用于对目标视频进行格式转换及压缩处理。In the above technical solution, preferably, further comprising: a video processing unit, configured to perform format conversion and compression processing on the target video.
在该技术方案中,视频处理单元对目标视频进行格式转换及压缩处理,便于后续对视频的读取及分类。In this technical solution, the video processing unit performs format conversion and compression processing on the target video, so as to facilitate subsequent reading and classification of the video.
在上述技术方案中,优选地,还包括:检测单元,用于检测录制视频参数是否符合预设要求;视频录制单元,用于在录制视频设备参数符合预设要求时,通过ReplayKit录制至少一个特定标示视频;视频存储单元,用于将至少一个特定标示视频保存至系统相册。In the above technical solution, preferably, it also includes: a detection unit for detecting whether the recorded video parameters meet the preset requirements; a video recording unit for recording at least one specific video through ReplayKit when the recorded video device parameters meet the preset requirements Flagged video; a video storage unit, configured to save at least one specific flagged video to a system album.
在该技术方案中,在提取系统相册内的所述视频之前,检测单元检测录制视频参数是否符合预设要求,视频录制单元在录制视频设备参数符合预设要求时,通过ReplayKit录制至少一个特定标示视频,视频存储单元将至少一个特定标示视频保存至系统相册,使用户简单方便地实现屏幕的录制。In this technical solution, before extracting the video in the system album, the detection unit detects whether the parameters of the recorded video meet the preset requirements, and the video recording unit records at least one specific mark through ReplayKit when the parameters of the recording video device meet the preset requirements For video, the video storage unit saves at least one specific marked video to the system photo album, so that the user can record the screen simply and conveniently.
在上述技术方案中,优选地,检测单元具体用于:检测录制视频设备是否为真机;检测录制视频系统iOS版本是否高于9.0版本;检测录制视频硬件是否可用。In the above technical solution, preferably, the detection unit is specifically configured to: detect whether the recording video device is a real device; detect whether the iOS version of the recording video system is higher than version 9.0; detect whether the recording video hardware is available.
在该技术方案中,在检测录制视频设备为真机,以及录制视频系统iOS版本高于9.0版本,以及录制视频硬件可用的情况下进行屏幕视屏的录制,保证屏幕录制达到良好的性能。In this technical solution, screen video recording is performed when the video recording device is detected to be a real device, the iOS version of the video recording system is higher than version 9.0, and the video recording hardware is available, so as to ensure that the screen recording achieves good performance.
本发明的附加方面和优点将在下面的描述部分中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will become apparent in the description which follows, 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 comprehensible from the description of the embodiments in conjunction with the following drawings, wherein:
图1示出了本发明的一个实施例的基于ReplayKit的屏幕录制及提取方法的流程示意图;Fig. 1 shows the schematic flow chart of the screen recording and extracting method based on ReplayKit of an embodiment of the present invention;
图2示出了本发明的一个实施例的基于ReplayKit的屏幕录制及提取系统的示意框图;Fig. 2 shows the schematic block diagram of the screen recording and extracting system based on ReplayKit of an embodiment of the present invention;
图3示出了本发明的一个具体实施例的基于ReplayKit的屏幕录制及提取方法的示意图;Fig. 3 shows the schematic diagram of the screen recording and extraction method based on ReplayKit of a specific embodiment of the present invention;
图4示出了本发明的一个具体实施例的系统录屏权限提醒的示意图;FIG. 4 shows a schematic diagram of a system recording permission reminder of a specific embodiment of the present invention;
图5示出了本发明的一个具体实施例的开始录屏的示意图;Fig. 5 shows a schematic diagram of starting screen recording according to a specific embodiment of the present invention;
图6示出了本发明的一个具体实施例的录制完成及预览的示意图;Fig. 6 shows a schematic diagram of recording completion and preview of a specific embodiment of the present invention;
图7示出了本发明的一个具体实施例的视频读取的示意图。Fig. 7 shows a schematic diagram of video reading in a specific embodiment of the present invention.
具体实施方式Detailed ways
为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。In order to understand the above-mentioned purpose, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.
在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是,本发明还可以采用其他不同于在此描述的其他方式来实施,因此,本发明的保护范围并不限于下面公开的具体实施例的限制。In the following description, many specific details are set forth in order to fully understand the present invention, but the present invention can also be implemented in other ways different from those described here, therefore, the protection scope of the present invention is not limited to the specific details disclosed below. EXAMPLE LIMITATIONS.
本发明第一方面的实施例,提出一种基于ReplayKit的屏幕录制及提取方法,图1示出了本发明的一个实施例的基于ReplayKit的屏幕录制及提取方法的流程示意图:Embodiments of the first aspect of the present invention propose a ReplayKit-based screen recording and extraction method, and Fig. 1 shows a schematic flow diagram of a ReplayKit-based screen recording and extraction method according to an embodiment of the present invention:
步骤108,提取系统相册内的视频;Step 108, extracting the video in the system album;
步骤110,检索视频,获取至少一个特定标示视频;Step 110, retrieving videos, and obtaining at least one specific marked video;
步骤112,在至少一个特定标示视频中获取目标视频;Step 112, obtaining the target video in at least one specific marked video;
步骤114,将目标视频复制到沙盒目录。Step 114, copy the target video to the sandbox directory.
本发明提供的基于ReplayKit的屏幕录制及提取方法,提取系统相册内的所有视频,检索所有视频,并获取至少一个特定标示视频,特定标示视频即为用户利用APP进行录制的视频,在至少一个特定标示视频中获取目标视频,将目标视频复制到沙盒目录,使用户方便地进行屏幕录制及提取,获取到性能良好的屏幕录制视频,操作简单,便于实现,提升了用户的使用体验,在将视频转存到沙盒后,可以将视频在系统中删除,以增大系统的使用空间。具体地,本发明可以实现同步录制声音的效果。The ReplayKit-based screen recording and extraction method provided by the present invention extracts all the videos in the system album, retrieves all the videos, and obtains at least one specific marked video. The specific marked video is the video recorded by the user using the APP. Obtain the target video from the marked video, copy the target video to the sandbox directory, so that users can conveniently record and extract the screen, and obtain a screen recording video with good performance. The operation is simple and easy to implement, which improves the user experience. After the video is transferred to the sandbox, the video can be deleted in the system to increase the space used by the system. Specifically, the present invention can achieve the effect of synchronous recording of sound.
在本发明的一个实施例中,如图1所示,优选地,步骤112,在至少一个特定标示视频中获取目标视频,具体包括:In one embodiment of the present invention, as shown in FIG. 1, preferably, step 112 is to acquire a target video in at least one specific marked video, which specifically includes:
步骤1122,将至少一个特定标示视频按照录制时间进行倒序排列;Step 1122, sorting at least one specific marked video in reverse order according to recording time;
步骤1124,将排序后的第一个视频作为目标视频。Step 1124, taking the first sorted video as the target video.
在该实施例中,在至少一个特定标示视频中获取目标视频,具体包括:将至少一个特定标示视频按照录制时间进行倒序排列,将排序后的第一个视频作为目标视频,使用户更加方便快捷地找到想要获取的视频。In this embodiment, obtaining the target video in at least one specific marked video specifically includes: sorting the at least one specific marked video in reverse order according to the recording time, and using the sorted first video as the target video, making it more convenient for users to find the desired video.
在本发明的一个实施例中,如图1所示,优选地,还包括:In one embodiment of the present invention, as shown in FIG. 1, preferably, further includes:
步骤116,对目标视频进行格式转换及压缩处理。Step 116, perform format conversion and compression processing on the target video.
在该实施例中,对目标视频进行格式转换及压缩处理,便于后续对视频的读取及分类。In this embodiment, format conversion and compression processing are performed on the target video to facilitate subsequent reading and classification of the video.
在本发明的一个实施例中,如图1所示,优选地,提取系统相册内的所述视频之前,还包括:In one embodiment of the present invention, as shown in Figure 1, preferably, before extracting the video in the system album, it also includes:
步骤100,检测录制视频参数;Step 100, detecting recording video parameters;
步骤102,判断录制视频参数是否符合预设要求;Step 102, judging whether the recorded video parameters meet the preset requirements;
步骤104,在录制视频设备参数符合预设要求时,通过ReplayKit录制至少一个特定标示视频;Step 104, when the parameters of the recording video device meet the preset requirements, record at least one specific marked video through ReplayKit;
步骤106,将至少一个特定标示视频保存至系统相册。Step 106, saving at least one specific marked video to the system album.
在该实施例中,在提取系统相册内的所述视频之前,检测录制视频参数是否符合预设要求,并在录制视频设备参数符合预设要求时,通过ReplayKit录制至少一个特定标示视频,将至少一个特定标示视频保存至系统相册,使用户简单方便地实现屏幕的录制。In this embodiment, before extracting the video in the system album, it is detected whether the parameters of the recorded video meet the preset requirements, and when the parameters of the recording video device meet the preset requirements, at least one specific marked video is recorded through ReplayKit, and at least A specific marked video is saved to the system album, allowing users to record the screen easily and conveniently.
在本发明的一个实施例中,优选地,检测录制视频参数是否符合预设要求,具体包括:检测录制视频设备是否为真机;检测录制视频系统iOS版本是否高于9.0版本;检测录制视频硬件是否可用。In one embodiment of the present invention, preferably, detecting whether the recording video parameters meet the preset requirements specifically includes: detecting whether the recording video device is a real device; detecting whether the iOS version of the recording video system is higher than version 9.0; detecting the recording video hardware it's usable or not.
在该实施例中,在检测录制视频设备为真机,以及录制视频系统iOS版本高于9.0版本,以及录制视频硬件可用的情况下进行屏幕视屏的录制,保证屏幕录制达到良好的性能。In this embodiment, when the video recording device is detected to be a real machine, and the iOS version of the video recording system is higher than version 9.0, and the video recording hardware is available, the recording of the screen video is performed to ensure good performance of the screen recording.
本发明第二方面的实施例,提出一种基于ReplayKit的屏幕录制及提取系统200,图2示出了本发明的一个实施例的基于ReplayKit的屏幕录制及提取系统200的示意框图:The embodiment of the second aspect of the present invention proposes a ReplayKit-based screen recording and extraction system 200, and FIG. 2 shows a schematic block diagram of a ReplayKit-based screen recording and extraction system 200 according to an embodiment of the present invention:
视频提取单元202,用于提取系统相册内的视频;Video extracting unit 202, used to extract the video in the system album;
视频检索单元204,用于检索视频,获取至少一个特定标示视频;以及在至少一个特定标示视频中获取目标视频;A video retrieval unit 204, configured to retrieve videos, obtain at least one specific marked video; and obtain a target video in at least one specific marked video;
视频复制单元206,用于将目标视频复制到沙盒目录。The video copying unit 206 is configured to copy the target video to the sandbox directory.
本发明提供的基于ReplayKit的屏幕录制及提取系统200,视频提取单元202提取系统相册内的所有视频,视频检索单元204检索所有视频,并获取至少一个特定标示视频,特定标示视频即为用户利用APP进行录制的视频,在至少一个特定标示视频中获取目标视频,视频复制单元206将目标视频复制到沙盒目录,使用户方便地进行屏幕录制及提取,获取到性能良好的屏幕录制视频,操作简单,便于实现,提升了用户的使用体验,在将视频转存到沙盒后,可以将视频在系统中删除,以增大系统的使用空间。具体地,本发明可以实现同步录制声音的效果。In the ReplayKit-based screen recording and extraction system 200 provided by the present invention, the video extraction unit 202 extracts all the videos in the system album, the video retrieval unit 204 retrieves all the videos, and obtains at least one specific marked video. The specific marked video is the user using the APP To record the video, obtain the target video in at least one specific marked video, and the video copying unit 206 copies the target video to the sandbox directory, so that the user can conveniently perform screen recording and extraction, and obtain a screen recording video with good performance, and the operation is simple , which is easy to implement and improves the user experience. After the video is transferred to the sandbox, the video can be deleted in the system to increase the space used by the system. Specifically, the present invention can achieve the effect of synchronous recording of sound.
在本发明的一个实施例中,如图2所示,优选地,视频检索单元204包括:排序单元2042,用于将至少一个特定标示视频按照录制时间进行倒序排列;以及将排序后的第一个视频作为目标视频。In one embodiment of the present invention, as shown in FIG. 2, preferably, the video retrieval unit 204 includes: a sorting unit 2042, configured to sort at least one specific marked video in reverse order according to recording time; and sort the first video as the target video.
在该实施例中,排序单元2042将至少一个特定标示视频按照录制时间进行倒序排列,将排序后的第一个视频作为目标视频,使用户更加方便快捷地找到想要获取的视频。In this embodiment, the sorting unit 2042 sorts at least one specific marked video in reverse order according to the recording time, and takes the first sorted video as the target video, so that the user can find the desired video more conveniently and quickly.
在本发明的一个实施例中,如图2所示,优选地,还包括:视频处理单元208,用于对目标视频进行格式转换及压缩处理。In one embodiment of the present invention, as shown in FIG. 2 , preferably, a video processing unit 208 is further included, configured to perform format conversion and compression processing on the target video.
在该实施例中,视频处理单元208对目标视频进行格式转换及压缩处理,便于后续对视频的读取及分类。In this embodiment, the video processing unit 208 performs format conversion and compression processing on the target video, so as to facilitate subsequent reading and classification of the video.
在本发明的一个实施例中,如图2所示,优选地,还包括:检测单元210,用于检测录制视频参数是否符合预设要求;视频录制单元212,用于在录制视频设备参数符合预设要求时,通过ReplayKit录制至少一个特定标示视频;视频存储单元,用于将至少一个特定标示视频保存至系统相册。In one embodiment of the present invention, as shown in FIG. 2 , preferably, it also includes: a detection unit 210, configured to detect whether the recorded video parameters meet preset requirements; When required by default, record at least one specific marked video through ReplayKit; the video storage unit is used to save at least one specific marked video to the system album.
在该实施例中,在提取系统相册内的所述视频之前,检测单元210检测录制视频参数是否符合预设要求,视频录制单元212在录制视频设备参数符合预设要求时,通过ReplayKit录制至少一个特定标示视频,视频存储单元将至少一个特定标示视频保存至系统相册,使用户简单方便地实现屏幕的录制。In this embodiment, before extracting the video in the system album, the detection unit 210 detects whether the recorded video parameters meet the preset requirements, and the video recording unit 212 records at least one For a specific marked video, the video storage unit saves at least one specific marked video to the system album, so that the user can record the screen simply and conveniently.
在本发明的一个实施例中,优选地,检测单元210具体用于:检测录制视频设备是否为真机;检测录制视频系统iOS版本是否高于9.0版本;检测录制视频硬件是否可用。In one embodiment of the present invention, preferably, the detection unit 210 is specifically configured to: detect whether the video recording device is a real device; detect whether the iOS version of the video recording system is higher than version 9.0; detect whether the video recording hardware is available.
在该实施例中,在检测录制视频设备为真机,以及录制视频系统iOS版本高于9.0版本,以及录制视频硬件可用的情况下进行屏幕视屏的录制,保证屏幕录制达到良好的性能。In this embodiment, when the video recording device is detected to be a real machine, and the iOS version of the video recording system is higher than version 9.0, and the video recording hardware is available, the recording of the screen video is performed to ensure good performance of the screen recording.
具体实施例一:Specific embodiment one:
1.图3示出了本发明的一个具体实施例的基于ReplayKit的屏幕录制及提取方法的示意图:1. Fig. 3 shows the schematic diagram of the screen recording and extraction method based on ReplayKit of a specific embodiment of the present invention:
(1)录屏权限提醒;(1) Screen recording permission reminder;
(2)开始录制;(2) start recording;
(3)录制完成;(3) The recording is completed;
(4)录制的视频保存在系统相册,然后读取。(4) The recorded video is saved in the system album, and then read.
其中,读取的步骤为:读取相册所有videos,按时间顺序排序,通过检索视频信息,找出有特定标示的视频,特定标示视频就是用户APP录制的视频,按照时间倒叙排序,将第一个就是最后录制的视频,提取并转存到沙盒目录。Among them, the steps of reading are: read all the videos in the album, sort them in chronological order, and find out the videos with specific marks by retrieving the video information. The first is the last recorded video, extracted and dumped to the sandbox directory.
2.系统框架ReplayKit.framework解读2. Interpretation of the system framework ReplayKit.framework
(1)RPPreviewViewController:录制完成预览vc,显示用户界面,允许用户通过ReplayKit预览及编辑屏幕录制;(1) RPPreviewViewController: After the recording is completed, preview the vc, display the user interface, and allow users to preview and edit the screen recording through ReplayKit;
(2)RPScreenRecorder:真正录屏的类,记录应用程序的音频和视频;(2) RPScreenRecorder: the class that actually records the screen, recording the audio and video of the application;
(3)RPPreviewViewControllerDelegate:录制完成预览vc的代理回调协议,响应屏幕记录用户界面的更改;(3) RPPreviewViewControllerDelegate: After recording the proxy callback protocol of the preview vc, it responds to changes in the screen recording user interface;
(4)RPScreenRecorderDelegate:录屏功能回调协议,录屏开始、结束、出错接受通知,当记录停止或记录可用性时,调用委托时调用。(4) RPScreenRecorderDelegate: Callback protocol for the screen recording function, when the screen recording starts, ends, and errors are accepted, it is called when the recording is stopped or the recording is available.
3.具体实现过程3. The specific implementation process
(1)录制前的检测:设备是否是真机、iOS版本是否>9.0、录屏硬件是否可用;(1) Detection before recording: whether the device is a real device, whether the iOS version is > 9.0, whether the screen recording hardware is available;
(2)录制功能:开始、结束;(2) Recording function: start, end;
(3)在录制视频出错时,停止录制,录制完成后进行保存;(3) Stop recording when there is an error in recording the video, and save it after the recording is complete;
(4)录屏完成后,对视频进行处理。(4) After the screen recording is completed, process the video.
具体实施例二:Specific embodiment two:
如图4所示,进行录屏权限提醒,用户选择后,显示开始录屏如图5所示,在屏幕中手写“中国”,录制手写过程,并且录制过程中会显示出录制时间,点击下方最左侧按钮结束录制,如图6所示进行视频预览,将录制视频保存到系统相册,如图7所示,用户可以在“我的录制”中读取录制的视频。As shown in Figure 4, the screen recording permission reminder is given. After the user selects, the display starts to record the screen. As shown in Figure 5, handwrite "China" on the screen, record the handwriting process, and the recording time will be displayed during the recording process, click below The leftmost button ends the recording, preview the video as shown in Figure 6, and save the recorded video to the system album, as shown in Figure 7, the user can read the recorded video in "My Recording".
在本说明书的描述中,术语“一个实施例”、“一些实施例”、“具体实施例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或实例。而且,描述的具体特征、结构、材料或特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions of the terms "one embodiment", "some embodiments", "specific embodiments" and the like mean that specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in the present invention In at least one embodiment or example of . In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611167756.0A CN108206968A (en) | 2016-12-16 | 2016-12-16 | Screen recording and extracting method based on ReplayKit, system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611167756.0A CN108206968A (en) | 2016-12-16 | 2016-12-16 | Screen recording and extracting method based on ReplayKit, system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108206968A true CN108206968A (en) | 2018-06-26 |
Family
ID=62601542
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611167756.0A Pending CN108206968A (en) | 2016-12-16 | 2016-12-16 | Screen recording and extracting method based on ReplayKit, system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108206968A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113301423A (en) * | 2020-02-21 | 2021-08-24 | 北京奇虎科技有限公司 | Remote display method and system of iOS terminal, node management terminal, computer device and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100199166A1 (en) * | 2009-02-04 | 2010-08-05 | Fisk Iii Charles Mario | Image Component WEB/PC Repository |
| CN103064972A (en) * | 2013-01-08 | 2013-04-24 | 深圳市中兴移动通信有限公司 | Method and device for image search for mobile terminals |
| US20140359014A1 (en) * | 2013-06-03 | 2014-12-04 | Seahorse, Inc. | Systems and methods for content management |
| CN104221356A (en) * | 2012-03-06 | 2014-12-17 | 苹果公司 | Apps for creating photo albums |
| WO2015107640A1 (en) * | 2014-01-15 | 2015-07-23 | 富士通株式会社 | Album creation program, album creation method, and album creation device |
-
2016
- 2016-12-16 CN CN201611167756.0A patent/CN108206968A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100199166A1 (en) * | 2009-02-04 | 2010-08-05 | Fisk Iii Charles Mario | Image Component WEB/PC Repository |
| CN104221356A (en) * | 2012-03-06 | 2014-12-17 | 苹果公司 | Apps for creating photo albums |
| CN103064972A (en) * | 2013-01-08 | 2013-04-24 | 深圳市中兴移动通信有限公司 | Method and device for image search for mobile terminals |
| US20140359014A1 (en) * | 2013-06-03 | 2014-12-04 | Seahorse, Inc. | Systems and methods for content management |
| WO2015107640A1 (en) * | 2014-01-15 | 2015-07-23 | 富士通株式会社 | Album creation program, album creation method, and album creation device |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113301423A (en) * | 2020-02-21 | 2021-08-24 | 北京奇虎科技有限公司 | Remote display method and system of iOS terminal, node management terminal, computer device and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103902404A (en) | Method, device and user equipment for media file backup | |
| WO2014117556A1 (en) | Redundant file deletion method, apparatus and storage medium | |
| CN101482877A (en) | Content display apparatus for displaying media according to media categories | |
| CN103246595A (en) | Application program management method, device, server and terminal equipment | |
| CN103838683A (en) | Method and device for data transmission | |
| CN103338408A (en) | A method, system and mobile terminal for selecting video preview frames | |
| CN104169913A (en) | A picture display method and device, terminal equipment | |
| WO2013189317A1 (en) | Human face information-based multimedia interaction method, device and terminal | |
| CN104916298B (en) | Decoding method, coding and decoding device, electronic equipment and talking picture generation method | |
| TWI556640B (en) | Media file management method and system, and computer-readable medium | |
| TW201407533A (en) | Enhance the information that has been captured | |
| WO2015184861A1 (en) | Method and device for processing audio and image information, and terminal device | |
| CN103577554A (en) | Method and device for triggering multimedia database scanning of Android equipment | |
| CN101437115B (en) | Digital camera and image name setting method | |
| EP3073360B1 (en) | Multi-media data backup method, user terminal and synchronizer | |
| CN103678469A (en) | Media file management method | |
| CN104021215B (en) | Method and device for organizing pictures | |
| CN108206968A (en) | Screen recording and extracting method based on ReplayKit, system | |
| TWI393116B (en) | Method of displaying images | |
| CN102426581B (en) | A kind of method and device for generating previewing file | |
| CN102346771A (en) | Information expression method and device | |
| WO2017076027A1 (en) | Wallpaper processing method and apparatus | |
| CN102033875B (en) | File warehousing method and device | |
| CN110929472A (en) | Document editing method and device, computer storage medium and terminal | |
| CN104793963B (en) | Information makes a copy of method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180626 |