CN104020986B - A kind of screen recording method and device - Google Patents

A kind of screen recording method and device Download PDF

Info

Publication number
CN104020986B
CN104020986B CN201310066064.7A CN201310066064A CN104020986B CN 104020986 B CN104020986 B CN 104020986B CN 201310066064 A CN201310066064 A CN 201310066064A CN 104020986 B CN104020986 B CN 104020986B
Authority
CN
China
Prior art keywords
media frame
time interval
frame
media
speed change
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
Application number
CN201310066064.7A
Other languages
Chinese (zh)
Other versions
CN104020986A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310066064.7A priority Critical patent/CN104020986B/en
Publication of CN104020986A publication Critical patent/CN104020986A/en
Application granted granted Critical
Publication of CN104020986B publication Critical patent/CN104020986B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention is suitable for information technology field, provides a kind of screen recording method and device, comprising: generates N number of media frame, N number of media frame is generated by grabbing a screen picture every first time interval, and the N is the integer greater than 1;Adjust the time interval between N number of media frame;According to the time interval between N number of media frame adjusted, the timestamp of each media frame is generated;Video file is exported after the timestamp of each media frame to be written to the frame structure of the media frame.It is recorded to screen operator, during generating record screen file, the present invention is by being adjusted the time interval between adjacent media frame, so that the video file generated can be realized variable playback, it is played out not necessarily in frame per second is recorded, to avoid the meaningless waiting time occurred during video playing is shielded in record, the information content in the record screen units of video time is improved.

Description

A kind of screen recording method and device
Technical field
The invention belongs to information technology field more particularly to a kind of screen recording methods and device.
Background technique
Record screen software can have computer, tablet computer or mobile phone etc. the screen change of screen terminal device to record into view Frequently, by with screen software is recorded, can be realized the real-time preservation of operation scenario, or the online Streaming Media text that realization can not play back The real-time recording of part.
However, existing record screen software can only simply record screen operator according to certain frame per second, and Video playing must be carried out according to frame per second identical with frame per second is recorded, it is unchanged in screen long-time when occurring in recording process Or the situation that variation is less, then the picture variation when carrying out video playing in the period is also less.For example, software Installation process may need to wait 3 to 5 minutes in same installation interface, and installation interface has no substantial variation in this period, So as to cause video provided information content reduction within the unit time of recording.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of screen recording method, it is intended to solve existing screen recording method It is easy to cause the video of recording within the unit time the problem of reduction of provided information content.
The embodiments of the present invention are implemented as follows, a kind of screen recording method, comprising:
N number of media frame is generated, N number of media frame is by grabbing a screen picture next life every first time interval At the N is the integer greater than 1;
Adjust the time interval between N number of media frame;
According to the time interval between N number of media frame adjusted, the timestamp of each media frame is generated;
Video file is exported after the timestamp of each media frame to be written to the frame structure of the media frame.
The another object of the embodiment of the present invention is to provide a kind of screen recording device, comprising:
Media frame generation unit, for generating N number of media frame, N number of media frame every first time interval by grabbing A screen picture is taken to generate, the N is the integer greater than 1;
Adjustment unit, for adjusting the time interval between N number of media frame;
Timestamp generation unit, for generating each matchmaker according to the time interval between N number of media frame adjusted The timestamp of body frame;
Video file output unit exports view after the frame structure for the timestamp of each media frame to be written to the media frame Frequency file.
It is recorded to screen operator, during generating record screen file, the embodiment of the present invention passes through to adjacent media Time interval between frame is adjusted, so that the video file generated can be realized variable playback, it is not necessary to according to recording frame per second It plays out, to avoid the meaningless waiting time occurred during video playing is shielded in record, improves record screen units of video Information content in time.
Detailed description of the invention
Fig. 1 is the implementation flow chart of screen recording method provided in an embodiment of the present invention;
Fig. 2 is the implementation flow chart of screen recording method step S102 provided in an embodiment of the present invention;
Fig. 3 is the structural block diagram of screen recording device provided in an embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
It is recorded to screen operator, during generating record screen file, the embodiment of the present invention passes through to adjacent media Time interval between frame is adjusted, so that the video file generated can be realized variable playback, it is not necessary to according to recording frame per second It plays out, to avoid the meaningless waiting time occurred during video playing is shielded in record, improves record screen units of video Information content in time.
Fig. 1 shows the implementation process of screen recording method provided in an embodiment of the present invention, and details are as follows:
In step s101, N number of media frame is generated, N number of media frame is primary by grabbing every first time interval Screen picture generates, and the N is the integer greater than 1.
When executing screen recording, current screen picture is grabbed every first time interval, generates bitmap images (bitmap) or the image file of other picture formats it, and by the image file of generation is passed to encoder, by Video coding After generate media frame.
In the present embodiment, first time interval is the recording interval of screen recording, for defining the recording of screen recording Frame per second, for example, first time interval is 1/24 second, then the recording frame per second of screen recording is 24 frame per second.
In step s 102, the time interval between N number of media frame is adjusted.
In the present embodiment, after step S101 generates N number of media frame, acquiescently, between the time between adjacent media frame It is divided into first time interval.In step s 102, the time interval between this N number of media frame is adjusted in whole or in part It is whole.
Specific adjustment mode will be described in detail in subsequent embodiment, and details are not described herein.
In step s 103, according to the time interval between N number of media frame adjusted, each media frame is generated Timestamp.
Specifically, if time adjusted for the 1st, 2,3,4 ... a media frames, between every two adjacent media frame Interval is respectively 25ms, 5ms, 5ms ..., then the 1st, the corresponding timestamp of 2,3,4 ... a media frames be respectively 0,25ms, 30ms,35ms…….That is, in the 1st media frame of display in the 0th second, the 2nd media frame is shown in 25ms, is shown in 30ms 3rd media frame shows the 4th media frame ... and so in 35ms.
In step S104, video file is exported after the timestamp of each media frame to be written to the frame structure of the media frame.
According to the timestamp of each media frame generated in step S103, the media are written into the timestamp of each media frame In the frame structure of frame, specifically, it can be written into the head or other designated positions of the frame structure, in the frame of N number of media frame Structure is added to after timestamp, this N number of media frame is sequentially passed to mixer, can export the video text of record screen video Part.
The record screen video generated by the present embodiment can show the effect of variable playback in playing process, for screen Image change is less or the screen picture not changed period, can shorten between the play time between adjacent media frame Every accelerating the display rate of media frame;And screen picture is changed greatly and the screen picture pace of change faster period, The play time interval between adjacent media frame can be extended, to slow down the display rate of media frame, to shield video according to record Actual content come variable playback record screen video, improve the unit time in record screen video information content.
As an embodiment of the present invention, step S102 specifically:
Time interval between every two adjacent media frame is adjusted to the second time interval.
In the present embodiment, by the way that the time interval between every two adjacent media frame is adjusted to the second time interval, It on the basis of original record screen frame per second, can uniformly accelerate the playback rate of record screen video or slow down the broadcasting of record screen video Rate.
As another embodiment of the present invention, as shown in Fig. 2, step S102 specifically:
In step s 201, M speed change media frame is determined in N number of media frame according to selection instruction, the M is big In the integer equal to 1 and less than or equal to N.
In the present embodiment, by detecting and selecting instruction, M speed change media frame is determined in N number of media frame, specifically, N number of media frame can be shown in record screen software interface with the form of list or index, by detecting N number of media frame Wherein M media frame on the selection instruction that receives, this M media frame is determined as speed change media frame.
In step S202, by the time interval of each speed change media frame and the previous media frame of the speed change media frame It is adjusted to the second time interval.
In the present embodiment, by by the time interval of each speed change media frame and the previous media frame of the speed change media frame It is adjusted to the second time interval, partially or entirely the time interval between this N number of media frame can be adjusted, is realized The variable playback of record screen video.
As an embodiment of the present invention, above-mentioned first time interval is less than above-mentioned second time interval.
As another embodiment of the present invention, above-mentioned first time interval is greater than above-mentioned second time interval.
It is recorded to screen operator, during generating record screen file, the embodiment of the present invention passes through to adjacent media Time interval between frame is adjusted, so that the video file generated can be realized variable playback, it is not necessary to according to recording frame per second It plays out, to avoid the meaningless waiting time occurred during video playing is shielded in record, improves record screen units of video Information content in time.
Fig. 3 shows the structural block diagram of screen recording device provided in an embodiment of the present invention, which can run on meter In the terminal devices such as calculation machine, tablet computer or mobile phone, for running screen recording shown in Fig. 1 and Fig. 2 embodiment of the present invention Method.For ease of description, only the parts related to this embodiment are shown.
Referring to Fig. 3, which includes:
Media frame generation unit 31 generates N number of media frame, and N number of media frame every first time interval by grabbing Screen picture generates, and the N is the integer greater than 1.
Adjustment unit 32 adjusts the time interval between N number of media frame.
Timestamp generation unit 33 generates each media according to the time interval between N number of media frame adjusted The timestamp of frame.
Video file output unit 34 exports after the frame structure for the timestamp of each media frame to be written to the media frame Video file.
Optionally, the adjustment unit 32 is specifically used for for the time interval between every two adjacent media frame being adjusted to the Two time intervals.
Optionally, the adjustment unit 32 includes:
Determine subelement, according to selection instruction in N number of media frame determine M speed change media frame, the M for greater than Integer equal to 1 and less than or equal to N.
Subelement is adjusted, by the time interval tune of each speed change media frame and the previous media frame of the speed change media frame Whole is the second time interval.
Optionally, the first time interval is less than second time interval.
Optionally, the first time interval is greater than second time interval.
It is recorded to screen operator, during generating record screen file, the embodiment of the present invention passes through to adjacent media Time interval between frame is adjusted, so that the video file generated can be realized variable playback, it is not necessary to according to recording frame per second It plays out, to avoid the meaningless waiting time occurred during video playing is shielded in record, improves record screen units of video Information content in time.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (10)

1. a kind of screen recording method characterized by comprising
N number of media frame is generated, N number of media frame is generated by grabbing a screen picture every first time interval, institute Stating N is the integer greater than 1;
The time interval between N number of media frame is adjusted, includes that M speed change media frame and N-M are non-in N number of media frame Speed change media frame;
According to the time interval between N number of media frame adjusted, the timestamp of each media frame is generated;
Video file is exported after the timestamp of each media frame to be written to the frame structure of the media frame, the video file can be real Existing variable playback.
2. the method as described in claim 1, which is characterized in that the time interval packet between adjustment N number of media frame It includes:
Time interval between every two adjacent media frame is adjusted to the second time interval.
3. the method as described in claim 1, which is characterized in that the time interval packet between adjustment N number of media frame It includes:
M speed change media frame is determined in N number of media frame according to selection instruction, the M is more than or equal to 1 and to be less than or equal to The integer of N;
The time interval of each speed change media frame and the previous media frame of the speed change media frame was adjusted between the second time Every.
4. method according to claim 2, which is characterized in that the first time interval is less than second time interval.
5. method according to claim 2, which is characterized in that the first time interval is greater than second time interval.
6. a kind of screen recording device characterized by comprising
Media frame generation unit, for generating N number of media frame, N number of media frame is by grabbing one every first time interval Secondary screen image generates, and the N is the integer greater than 1;
Adjustment unit includes M speed change matchmaker in N number of media frame for adjusting the time interval between N number of media frame Body frame and N-M non-speed change media frames;
Timestamp generation unit, for generating each media frame according to the time interval between N number of media frame adjusted Timestamp;
Video file output unit, output video text after the frame structure for the timestamp of each media frame to be written to the media frame Part, the video file can be realized variable playback.
7. device as claimed in claim 6, which is characterized in that the adjustment unit is specifically used for every two adjacent media frame Between time interval be adjusted to the second time interval.
8. device as claimed in claim 6, which is characterized in that the adjustment unit includes:
Determine subelement, for according to selection instruction in N number of media frame determine M speed change media frame, the M for greater than Integer equal to 1 and less than or equal to N;
Subelement is adjusted, for by the time interval tune of each speed change media frame and the previous media frame of the speed change media frame Whole is the second time interval.
9. device as claimed in claim 7, which is characterized in that the first time interval is less than second time interval.
10. device as claimed in claim 7, which is characterized in that the first time interval is greater than second time interval.
CN201310066064.7A 2013-02-28 2013-02-28 A kind of screen recording method and device Active CN104020986B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310066064.7A CN104020986B (en) 2013-02-28 2013-02-28 A kind of screen recording method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310066064.7A CN104020986B (en) 2013-02-28 2013-02-28 A kind of screen recording method and device

Publications (2)

Publication Number Publication Date
CN104020986A CN104020986A (en) 2014-09-03
CN104020986B true CN104020986B (en) 2019-01-01

Family

ID=51437763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310066064.7A Active CN104020986B (en) 2013-02-28 2013-02-28 A kind of screen recording method and device

Country Status (1)

Country Link
CN (1) CN104020986B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104936002B (en) * 2015-06-05 2018-11-06 网易有道信息技术(北京)有限公司 A kind of method and apparatus of screen recording
CN105578254A (en) * 2015-12-24 2016-05-11 深圳市金立通信设备有限公司 Video processing method and terminal
CN106128355A (en) * 2016-07-14 2016-11-16 北京智能管家科技有限公司 The display packing of a kind of LED battle array and device
CN107292944A (en) * 2017-06-26 2017-10-24 上海传英信息技术有限公司 The method for recording and recording system of a kind of screen picture
CN107577489A (en) * 2017-08-03 2018-01-12 捷开通讯(深圳)有限公司 Method, mobile terminal and the storage device of remote assistance
CN108391123A (en) * 2018-02-09 2018-08-10 维沃移动通信有限公司 A kind of method and terminal generating video
CN113163256B (en) * 2021-04-29 2024-01-23 深圳市艾酷通信软件有限公司 Method and device for generating operation flow file based on video
CN113572954B (en) * 2021-06-15 2022-10-04 荣耀终端有限公司 Video recording method, electronic device and medium
CN114615539A (en) * 2022-03-29 2022-06-10 西安超越申泰信息科技有限公司 Multi-display screen recording playback method, computer and readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5353404A (en) * 1989-01-23 1994-10-04 Hitachi, Ltd. Information processing system
JP2001103419A (en) * 1999-09-30 2001-04-13 Canon Inc Signal processor, video signal recording and reproducing device, signal processing system, signal processing method and storage medium
CN1490980A (en) * 2002-09-17 2004-04-21 ���ǵ�����ʽ���� Apparatus and method for stream-oriented multimedia data transmission
CN101102514A (en) * 2007-07-27 2008-01-09 浙江大学 Real time panoramic seamless and non-distorted video camera
CN102279739A (en) * 2011-06-10 2011-12-14 吴东辉 Recording method and application of screen operation
CN104853132A (en) * 2015-05-13 2015-08-19 北京掌中经纬技术有限公司 Delay video recording method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5353404A (en) * 1989-01-23 1994-10-04 Hitachi, Ltd. Information processing system
JP2001103419A (en) * 1999-09-30 2001-04-13 Canon Inc Signal processor, video signal recording and reproducing device, signal processing system, signal processing method and storage medium
CN1490980A (en) * 2002-09-17 2004-04-21 ���ǵ�����ʽ���� Apparatus and method for stream-oriented multimedia data transmission
CN101102514A (en) * 2007-07-27 2008-01-09 浙江大学 Real time panoramic seamless and non-distorted video camera
CN102279739A (en) * 2011-06-10 2011-12-14 吴东辉 Recording method and application of screen operation
CN104853132A (en) * 2015-05-13 2015-08-19 北京掌中经纬技术有限公司 Delay video recording method and system

Also Published As

Publication number Publication date
CN104020986A (en) 2014-09-03

Similar Documents

Publication Publication Date Title
CN104020986B (en) A kind of screen recording method and device
JP6662986B2 (en) Generating video with multiple viewpoints
KR101746165B1 (en) Method and apparatus for processing video images
US20190341078A1 (en) Gapless video looping
US20150235668A1 (en) Video/audio synchronization apparatus and video/audio synchronization method
CN104967903A (en) Video play detection method and device
CN104091607B (en) Video editing method and device based on IOS equipment
CN103747287A (en) Video playing speed regulation method and system applied to flash
CN101232611B (en) Image process apparatus and method thereof
CN104902145B (en) A kind of player method and device of live stream video
CN110139148A (en) A kind of method and relevant apparatus of video switching clarity
CN105898414A (en) Video reviewing method and system
CN104410930A (en) A method and device for controlling playing speed of transport stream TS media file
CN105208426B (en) A kind of method and system of audio-visual synchronization speed change
CN103391467A (en) Method for achieving synchronization of decoding and displaying of audio and video of network set-top box
CN108366299A (en) A kind of media playing method and device
CN100530356C (en) Digital information reproducing apparatus and method
CN105898348A (en) Method and device for reducing CPU temperature of video play terminal
CN104780421B (en) A kind of caching method and device of multifrequency track data
CN105578290B (en) It is a kind of to carry out the method and device that plan video is got ready based on EPG
CN111669645A (en) Video playing method and device, electronic equipment and storage medium
KR20070026249A (en) System, nethod, computer program for data reproducing
CN104994429B (en) A kind of method and device playing video
CN105530534B (en) A kind of method and apparatus of video clipping
CN104506920A (en) Method and device for playing omnimedia data information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant