CN106657836A - Method and device for making graphics interchange format chart - Google Patents
Method and device for making graphics interchange format chart Download PDFInfo
- Publication number
- CN106657836A CN106657836A CN201611070655.1A CN201611070655A CN106657836A CN 106657836 A CN106657836 A CN 106657836A CN 201611070655 A CN201611070655 A CN 201611070655A CN 106657836 A CN106657836 A CN 106657836A
- Authority
- CN
- China
- Prior art keywords
- record
- mask
- video
- display interface
- field picture
- 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
- 238000000034 method Methods 0.000 title claims abstract description 51
- 230000008569 process Effects 0.000 claims description 31
- 238000002360 preparation method Methods 0.000 claims description 22
- 230000008859 change Effects 0.000 claims description 19
- 238000004519 manufacturing process Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 7
- 230000003321 amplification Effects 0.000 claims 1
- 238000003199 nucleic acid amplification method Methods 0.000 claims 1
- 238000004891 communication Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000003860 storage Methods 0.000 description 5
- 230000001960 triggered effect Effects 0.000 description 5
- 230000015572 biosynthetic process Effects 0.000 description 4
- 230000006835 compression Effects 0.000 description 4
- 238000007906 compression Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000005538 encapsulation Methods 0.000 description 4
- 238000003786 synthesis reaction Methods 0.000 description 4
- 238000012546 transfer Methods 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 241000196324 Embryophyta Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 240000007643 Phytolacca americana Species 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000002224 dissection Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/44—Receiver circuitry for the reception of television signals according to analogue transmission standards
- H04N5/4448—Receiver circuitry for the reception of television signals according to analogue transmission standards for frame-grabbing
-
- 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/4402—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 reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440236—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 reformatting operations of video signals for household redistribution, storage or real-time display by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text
-
- 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/81—Monomedia components thereof
- H04N21/8166—Monomedia components thereof involving executable data, e.g. software
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Processing Or Creating Images (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The invention relates to a method and a device for making a graphics interchange format chart. The method comprises the following steps of displaying a first screen recording frame in a display interface of a to-be-processed video; adjusting a position parameter and/or a dimension parameter of the first screen recording frame in the display interface of the to-be-processed video by a user to form a second screen recording frame; carrying out screen recording on the to-be-processed video according to the second screen recording frame; and making the graphics interchange format chart according to the video obtained by screen recording. According to the method and the device for making the GIF chart in the embodiments of the invention, the GIF chart expected by the user can be made through screen recording operations of various videos according to the user needs, so that the instant demands of the user are met, and thus the user experience is improved.
Description
Technical field
The present invention relates to image processing field, more particularly to a kind of preparation method and device of graphic interchange format figure.
Background technology
At present, for PC (Personal Computer, personal computer) ends Online Video or local video making
GIF (Graphics Interchange Format, graphic interchange format) figure, needs professional software that video is imported and parsed
The image (hereinafter referred to as two field picture) of its video frame in is extracted, is then again synthesized each two field picture for extracting, with
Produce GIF figures.
However, in the GIF figure preparation methods, being only to provide fixed two field picture size and being made, so, extracted
The two field picture for going out may not be that user is desired, and the GIF figures thus produced may not be that user is desired, user experience
It is poor.
The content of the invention
Technical problem
In view of this, the technical problem to be solved in the present invention is how to go out the desired GIF of user for video production
Figure.
Solution
In order to solve above-mentioned technical problem, an embodiment of the invention, there is provided a kind of graphic interchange format figure
Preparation method, including:Show that first records mask in the display interface of pending video;According to user in the pending video
Display interface in the location parameter of the described first record mask and/or the regulation of dimensional parameters forming the second record mask;Root
Record screen is carried out to the pending video according to the described second record mask;And according to the record video that obtains of screen making image exchange
Format chart.
For said method, in a kind of possible implementation, in the display interface of pending video first is shown
Record mask, including:Determine the width and height of the display interface, and choose as the mutual of benchmark in the display interface
Vertical X-axis and Y-axis;The size of the first record mask is determined according to the width and height of the display interface;According to institute
State the intersection point of X-axis and the Y-axis to determine the position of the first record mask;According to the positions and dimensions of the described first record mask
The first record mask is shown in the display interface.
For said method, in a kind of possible implementation, according to user the pending video display circle
The second record mask is formed to the location parameter of the described first record mask and/or the regulation of dimensional parameters in face, including:According to
User obtains the position ginseng of the second record mask in the display interface to the moving operation of the described first record mask
Number;And/or in the display interface the zooming in or out for size of the described first record mask is operated to obtain according to user
The dimensional parameters of the second record mask;According to described second the location parameter and/or dimensional parameters of mask are recorded in the display
The second record mask is formed in interface.
For said method, in a kind of possible implementation, image exchange is made according to the record video that obtains of screen
Format chart, including:The video that record screen is obtained is parsed into each two field picture;Each two field picture to being parsed carries out following at least one
Plant and process:Choose from each two field picture for being parsed between certain amount of two field picture, each two field picture that change is parsed
Time interval, the DISPLAY ORDER of each two field picture that change is parsed and each two field picture for being parsed be compressed;Will
Each two field picture after process synthesizes to make graphic interchange format figure.
For said method, in a kind of possible implementation, the pending video is including video on line and/or originally
Ground video.
In order to solve above-mentioned technical problem, according to another embodiment of the present invention, there is provided a kind of graphic interchange format figure
Producing device, including:Display unit, for showing that first records mask in the display interface of pending video;Adjustment unit,
It is connected with the display unit, for recording mask to described first in the display interface of the pending video according to user
The regulation of location parameter and/or dimensional parameters is forming the second record mask;Record screen unit, is connected with the adjustment unit, is used for
Record screen is carried out to the pending video according to the described second record mask;And production unit, it is connected with the record screen unit, use
Graphic interchange format figure is made in the video obtained according to record screen.
For said apparatus, in a kind of possible implementation, the display unit includes:It is determined that and choose module,
Determine the width and height of the display interface, and the orthogonal X-axis and Y as benchmark is chosen in the display interface
Axle;Size determining module, and the determination and chooses module and be connected, for according to the width and height of the display interface come true
The size of the fixed first record mask;Position determination module, is connected, for according to the X-axis with the determination and selection module
The position of the first record mask is determined with the intersection point of the Y-axis;Display module, with the size determining module and institute's rheme
Determining module connection is put, for described first to be shown in the display interface according to the positions and dimensions of the described first record mask
Record mask.
For said apparatus, in a kind of possible implementation, the adjustment unit includes:Location parameter obtains mould
Block, for being shielded to obtain described second and record to the moving operation of the described first record mask in the display interface according to user
The location parameter of frame;And/or dimensional parameters acquisition module, for being shielded to the described first record in the display interface according to user
Zooming in or out for the size of frame operates to obtain the dimensional parameters of the second record mask;Module is formed, for according to described
The location parameter and/or dimensional parameters of the second record mask forms the second record mask in the display interface.
For said apparatus, in a kind of possible implementation, the production unit includes:Parsing module, for inciting somebody to action
The video that record screen is obtained parses each two field picture;Processing module, is connected with the parsing module, for each frame for being parsed
Image carries out following at least one process:Choose certain amount of two field picture, change from each two field picture for being parsed to be solved
Time interval, the change DISPLAY ORDER of each two field picture for being parsed between each two field picture for separating out and parsed it is each
Two field picture is compressed;Module is made, is connected with the processing module, synthesize to make figure for each two field picture after by process
As interchange format figure.
For said apparatus, in a kind of possible implementation, the pending video is including video on line and/or originally
Ground video.
Beneficial effect
The preparation method and device of GIF figures according to embodiments of the present invention, is adjusted to being played according to user's request
Video carries out recording position and the/size of the record mask of screen operation, then carries out record screen operation according to resulting record mask, then right
The video that record screen is obtained carries out proper treatment, so as to produce the desired GIF figures of user.In such manner, it is possible to according to user's request,
Record screen operation is carried out for various videos to produce the desired GIF figures of user such that it is able to meet the instant demand of user,
And then raising Consumer's Experience.
According to below with reference to the accompanying drawings, to detailed description of illustrative embodiments, the further feature and aspect of the present invention will become
It is clear.
Description of the drawings
Comprising in the description and accompanying drawing and the specification of the part that constitutes specification together illustrates the present invention's
Exemplary embodiment, feature and aspect, and for explaining the principle of the present invention.
Fig. 1 illustrates the flow chart of the preparation method of GIF figures according to an embodiment of the invention.
Fig. 2 illustrates the flow chart of the preparation method of GIF figures according to another embodiment of the present invention.
Fig. 3 illustrates the general flowchart of the preparation method of GIF figures according to an embodiment of the invention.
Fig. 4 illustrates the particular flow sheet of the PC ends consistency operation of the preparation method of GIF figures according to an embodiment of the invention.
Fig. 5 illustrates the structured flowchart of the producing device of GIF figures according to an embodiment of the invention.
Fig. 6 illustrates the structured flowchart of the producing device of GIF figures according to another embodiment of the present invention.
Specific embodiment
Various exemplary embodiments, feature and the aspect of the present invention are described in detail below with reference to accompanying drawing.It is identical in accompanying drawing
Reference represent the same or analogous element of function.Although the various aspects of embodiment are shown in the drawings, remove
Non-specifically is pointed out, it is not necessary to accompanying drawing drawn to scale.
Here special word " exemplary " means " being used as example, embodiment or illustrative ".Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the present invention, numerous details are given in specific embodiment below.
It will be appreciated by those skilled in the art that without some details, the present invention equally can be implemented.In some instances, for
Method well known to those skilled in the art, means, element and circuit are not described in detail, in order to highlight the purport of the present invention.
Embodiment 1
Fig. 1 illustrates the flow chart of the preparation method of GIF figures according to an embodiment of the invention.As shown in figure 1, the making side
Method is mainly included the following steps that:
Step S110, in the display interface of pending video show first record mask;
Step S120, according to user in the display interface of pending video to first record mask location parameter and/or
The regulation of dimensional parameters is forming the second record mask;
Step S130, according to second record mask record screen is carried out to pending video;And
Step S140, according to the record video that obtains of screen making GIF figures.
Will be detailed below above-mentioned steps.
For above-mentioned steps S110, first, pending video is obtained, the wherein pending video can be broadcast by video
Video, or directly get from the hard disk at local memory, such as PC ends on the line put address and get
Local video.Then, accessed video is played, and for example triggers GIF buttons.After triggering GIF buttons, according to sound
Should in the instruction that send of PC ends backstage for playing the video, can eject in the display interface of the video played one it is initial
Record mask (corresponding to the first record mask).
For above-mentioned steps S120, in a kind of possible implementation, specifically may comprise steps of:
Step S1201, according to user in display interface to the moving operation of the first record mask obtaining the second record mask
Location parameter;And/or
Step S1202, operation is zoomed in or out obtaining to the size of the first record mask in display interface according to user
Take the dimensional parameters of the second record mask;And
Step S1203, according to second record mask location parameter and/or dimensional parameters is formed in display interface second record
Mask.
Specifically, after the first record mask has been ejected in the display interface of the video played, can be according to user
Demand freely adjusts the location parameter and/or dimensional parameters of the first record mask in such as display interface.Specifically, can be with
Only adjust the location parameter of the first record mask, move the first record mask according to user's request, can also only adjust the first record screen
The dimensional parameters of frame, i.e. to first record mask size zoom in and out, it is also possible to first record mask location parameter and size
Parameter is adjusted.So, after being adjusted to the first record mask, the backstage for playing the PC ends of video records new record
The location parameter and dimensional parameters of mask (corresponding to the second record mask).
Specifically, during moving, zooming in or out the first record mask, the backstage at PC ends is according to user to first
The operation of record mask needs 8 control points of record (upper left point, upper right point, lower-left point, lower-right most point, upper midpoint, lower midpoint, left
Point and right midpoint), the coordinate at this 8 control points is for example recorded, to determine new record mask (the second record after being operated
Mask) position.Wherein, whenever movement, zoom in or out record mask when, the backstage at PC ends can record corresponding 8 control
The coordinate of point, and ejected in the display interface for playing video according to the coordinate at this 8 control points and correspondingly record mask, to respond
In corresponding operating of the user to former record mask.
According to the coordinate at 8 control points for being recorded, that is, the location parameter and dimensional parameters of the second record mask are obtained in that,
So as to (display) second record mask is formed in the display interface of the video played according to the location parameter and dimensional parameters.
Wherein it is possible to realize adjusting and recording the process of the positions and dimensions for recording mask using QT language.Certainly, also may be used
With using other technologies, as long as the technology can realize adjusting according to user's request and record the position of record mask and size i.e.
Can.
For above-mentioned steps S130, after the second record mask is defined according to above-mentioned steps S120, record can be for example triggered
Screen start button, to carry out record screen to the video played according to the second record mask.For example, triggering record screen start by
After button, broadcasting kernel is issued into instruction using the operation, to record to the video played.In a kind of possible realization
In mode, can be needed to be configured to recording the screen time according to user.For example, after triggering record screen start button, recording connects
Get off broadcasting 5s video, that is, record the screen time be 5s.In other words, can in advance to the record after triggering record screen start button
The screen time is configured.Wherein, the record screen time can flexibly be arranged according to specific application scenarios.In a kind of possible realization
In mode, it is also possible to determine the record screen time in real time.For example, start record after user's triggering record screen start button to shield, and
Trigger and terminate record screen after record screen conclusion button.
For above-mentioned steps S140, after record screen terminates, the video that record screen is obtained is parsed, regarded with extracting this
Each two field picture in frequency, then carries out appropriate process to each two field picture, and by process after each two field picture synthesized, to make
Make the desired GIF figures of user.
So, by the preparation method of the GIF figures of the present embodiment, regard to make according to user's request, based on record screen operation
The GIF figures of frequency.Specifically, carry out recording come the video adjusted to being played according to user's request and shield the position for recording mask for operating
With/size, then record screen operation is carried out according to resulting record mask, then proper treatment is carried out to the video that record screen is obtained, from
And produce the desired GIF figures of user.In such manner, it is possible to according to user's request, carry out record screen operation to make for various videos
Make the desired GIF figures of user such that it is able to meet the instant demand of user, and then improve Consumer's Experience.
Embodiment 2
Fig. 2 illustrates the flow chart of the preparation method of GIF figures according to another embodiment of the present invention.Label and Fig. 1 phases in Fig. 2
Same step has identical function, for simplicity's sake, omits the detailed description to these steps.
As shown in Fig. 2 the main distinction of the preparation method of the GIF figures shown in Fig. 2 and the preparation method of GIF figures shown in Fig. 1
It is that above-mentioned steps S110 specifically can include:
Step S1101, determine the width and height of display interface, and mutually hanging down as benchmark is chosen in display interface
Straight X-axis and Y-axis;
Step S1102, the width according to display interface and height are determining the size of the first record mask;
Step S1103, according to the intersection point of X-axis and Y-axis determining the position of the first record mask;
Step S1104, according to first record mask positions and dimensions shows in display interface first record mask.
Specifically, after accessed pending video is played, GIF buttons can be triggered, afterwards, the backstage at PC ends
Initial record mask (the first record mask) is determined according to the state of the video played.For example, first, it is determined that the video played
Four relevant parameters:Play the width of display interface of video, height and benchmark is provided as in display interface
It is mutually perpendicular to X-axis and Y-axis.
Then, according to determined by this four relevant parameters of video determining to eject in display interface first
The position of record mask and size.Specifically, according to display interface width, highly determining the size of the first record mask,
And the position of the first record mask is determined according to the intersection point of set X-axis and Y-axis.Wherein, X-axis and Y-axis for example can set
Put the left upper apex for display interface in the upper left corner of display interface, i.e. their intersection point.So, the first record mask for being formed
Can be using the summit as benchmark, along the width and the square of height less than display interface that X-axis and Y-axis lower section pull out
Shape frame (the i.e. first record mask).Here, the particular location of set X-axis and Y-axis is not defined, as long as according to the setting
The the first record mask for being formed is in display interface.For example, the position of X-axis and Y-axis can also be arranged on display interface
Centre, so their intersection point are also just the center of display interface, and the first record mask for being formed also is located in display interface
Middle position.
After the position and size for determining the first record mask, the backstage at PC ends can play according to the position and size
The first record mask is shown in the display interface of video.
Wherein it is possible to realize determining and showing the process of the first record mask using QT language.It is of course also possible to use its
Its technology, as long as the technology can be realized in the display interface of the video played to recording the determination of mask and showing.
In a kind of possible implementation, above-mentioned steps S140 specifically may comprise steps of:
Step S1401, the record video that obtains of screen is parsed into each two field picture;
Step S1402, each two field picture to being parsed carry out following at least one process:From each frame figure for being parsed
Choose the time interval between certain amount of two field picture, each two field picture that change is parsed, change as in be parsed
The DISPLAY ORDER of each two field picture and each two field picture for being parsed are compressed;
Step S1403, by process after each two field picture synthesis come make GIF figure.
In step s 130 the video played is carried out after record screen according to the second record mask, record screen can be obtained
Video carries out dissection process, to extract the video in each two field picture.After each two field picture is extracted, can also be to these
Two field picture is packaged process.
Then, each two field picture to being extracted carries out proper treatment, and to synthesize the desired GIF figures of user are produced.
In a kind of possible implementation, each frame that can be according to user's request in step S1402 to being extracted
Image carries out the compression of view data.Then in above-mentioned steps S1403, by compression after each two field picture synthesis, to produce
Scheme for the GIF of video, in being then stored in corresponding memory.As such, it is possible to further save scheme to produced GIF
The memory space for being stored.
In a kind of possible implementation, can be required for select user in step S1402 according to user's request
Two field picture.Specifically, the screen time is for example recorded for 5s, namely when a length of 5s of the video for obtaining is shielded in record, it is generally the case that from
75~100 two field pictures can be parsed in the video.Then, these two field pictures and may be not all what user wanted.There is mirror
In this, user can select two field picture, such as 30 two field pictures required for user from these two field pictures, then in above-mentioned step
Selected this 30 two field pictures are synthesized in rapid S1403, to produce the desired GIF figures of user for video,
In being then stored in corresponding memory.
In a kind of possible implementation, can be changing what is extracted in step S1402 according to user's request
Time interval between each two field picture.Specifically, in each two field picture for being extracted, timestamp is generally all carried, these
Timestamp can represent the time period that the two field picture shows in the GIF figures to be synthesized.For example, with each two field picture for being extracted
Content independently, the time interval between record each two field picture for obtaining of screen starts to be 2s, however exist user want it is longer
The demand of a certain two field picture interested of viewing of time.At this moment, can by the display duration of the two field picture arrange compared with
It is long, that is, change the two field picture and before or after two field picture between time interval.It is each that above-mentioned change is extracted
Time interval between two field picture can be realized by adjusting the timestamp of each two field picture.Then, in above-mentioned steps S1403
In, each two field picture synthesis after above-mentioned process will be carried out, to produce the desired GIF figures of user for video, so
After store in corresponding memory.So, when playing above-mentioned GIF figures on the display device, it is possible to achieve according to the need of user
Ask with different broadcasting speeds to play the effect of each two field picture, that is, realize the effect of variable playback.
In a kind of possible implementation, can be extracted with being changed in above-mentioned steps S1402 according to user's request
The DISPLAY ORDER of each two field picture for going out.Specifically, in some cases, adjust DISPLAY ORDER in GIF figures of each two field picture,
Such as backward shows can obtain more preferable display effect.Thus, in step S1402, can be needed according to user or real
The application scenarios on border record the DISPLAY ORDER of each two field picture that screen is obtained suitably to adjust.For example, if there are 10 frames in video
Image, then correspondingly after record screen obtain 10 two field pictures, generally this 10 two field pictures be positive sequence, for example according to from two field picture
The order of 1 to two field picture 10 is sequentially output.However, in order to obtain more preferable effect, in the present embodiment, display can be adjusted suitable
Sequence for example can be by being sequentially output from two field picture 10 to the backward of two field picture 1.Certainly, adjustment DISPLAY ORDER of the invention is not limited to
Backward is adjusted to, and the DISPLAY ORDER of these two field pictures can be arbitrarily adjusted according to the application scenarios of the demand of user or reality.
The DISPLAY ORDER of each two field picture that above-mentioned change record screen is obtained can be realized by changing the timestamp of each two field picture.So
Afterwards, in above-mentioned steps S1403, each two field picture synthesis after above-mentioned process will have been carried out, to produce the use for video
The desired GIF figures in family, in being then stored in corresponding memory.As such, it is possible to increase the interest of produced GIF,
So as to improve the viewing experience of user.
It should be noted that in above-mentioned steps S1402, any one process in above-mentioned four kinds of process can be only carried out,
Any two kinds therein, three kinds or all these four process can also be carried out.Also, the present invention does not limit holding for these four process
Go sequentially, and these four process can successively be carried out according to sequencing, it is also possible to while carrying out.
So, by the preparation method of the GIF figures of the present embodiment, the first record is determined according to the state of the video played
Mask, and position and the/size of the record mask of record screen operation are carried out come the video adjusted to being played according to user's request, so
Afterwards record screen operation is carried out according to resulting record mask (the second record mask), then the video that record screen is obtained was changed between the time
Every, change DISPLAY ORDER, compress and select the process of appropriate two field picture etc., so as to produce the desired GIF figures of user.
In such manner, it is possible to according to user's request, carry out record screen operation for various videos to produce the desired GIF figures of user, so as to
The instant demand of user is disclosure satisfy that, and then improves Consumer's Experience.
Embodiment 3
Fig. 3 illustrates the general flowchart of the preparation method of GIF figures according to an embodiment of the invention, and Fig. 4 is illustrated according to this
Invent the particular flow sheet of the PC ends consistency operation of the preparation method of the GIF figures of an embodiment.
In the present embodiment, mainly including following technology point:Frame favored area (position, size), recorded video (record screen) with
And video is parsed into frame of video (two field picture), and it is compiled as GIF Dynamic Graphs.
The system that the present embodiment is related to includes following 5 part:
1st, VRAM
2nd, kernel is played
3rd, system API (Application Programming Interface, application programming interface) record screen device
4th, video resolution server
5th, picture encapsulation
As shown in figure 3, the substantially flow process of the preparation method of the GIF figures being related in the present embodiment is as follows:(1) triggering command
(user clicks on GIF tool buttons);(2) record mask to eject, adjust and choose record screen form region (position and size);(3) touch
Record screen start button is sent out, to carry out video record;(4) video record terminates, eject GIF edit boxes (frame of video can be entered edlin,
Picture is selected and picture sequence sequence, broadcasting speed are arranged etc.);(5) preserve and generate GIF Dynamic Graphs.
Additionally, as shown in figure 4, the concrete stream of the PC ends consistency operation of the preparation method of the GIF figures being related in the present embodiment
Journey is as follows:(1) record command is triggered in the video played, and obtains recording frame;(2) play kernel and receive instruction;(3) before
End triggering video record start button, to carry out video record;(4) record and terminate, the video of recording is uploaded into storage server
Inside parsed;(5) frame of video (image) is parsed the video into, and carries out video frame compression encapsulation;(6) by frame of video send to
Display device enters edlin;(7) triggering preserves picture instruction, frame of video is packaged and is converted to GIF form Dynamic Graphs.
Wherein, video acquiring method is as follows:
(1) by video playback address, video source file is obtained, that is, obtains video on line;
(2) can direct access video source file, that is, obtain local video.
Additionally, being described as follows for record screen step.
(1) in video playback, GIF buttons are triggered, ejects record screen and record frame, record mask is transferred using QT language, wherein recording
Frame processed can be according to the free adjusting position of user's request and size.Click on such as " sectional drawing " button and will send information to background server
Interior, backstage starts to transfer corresponding groove function, mainly transfer the upper 4 coordinate mark points of screen (display interface) (whole screen
Width, the height of whole screen, the X-axis in constituency, the Y-axis in constituency) (corresponding to four relevant parameters of video).According to different
The value of screenshotss state (video state) and this 4 coordinate points, backstage starts the region for calculating screenshotss.When foreground changes record mask
Position, during mobile selection backstage need 8 control points of record (upper left point, upper right point, lower-left point, lower-right most point, it is upper in
Point, lower midpoint, left point, right midpoint);Mobile constituency is judged, the constituency value at mobile control point is obtained, is being moved every time
After dynamic constituency process, the coordinate and last coordinate to starting re-starts modification, and updates the coordinate at this 8 control points.Its
In, during moving, zooming in or out record mask, recording the edge of mask generally can not exceed the edge of display interface.
It is then possible to trigger video record start button, send an instruction to play kernel, now system starts acquisition and regards
Frequency source.
(2) video is preserved when recording key is triggered to be released until recording key, if the size of the video for preserving reach it is pre-
The higher limit for first arranging then terminates to record;
(3) record after terminating, recorded video is uploaded in video poke server, by API system analysis video sources,
The data of frame of video are obtained, N number of frame of video is generated, described N number of frame of video captures a screen by each time interval
Generating, wherein N is greater than 1 integer to image;Adjust the time interval between N number of frame of video, generate each frame of video when
Between stab;Frame of video (image) compression encapsulation is carried out after the frame structure that the timestamp of each frame of video is write the frame of video;
(4) frame of video (image) of encapsulation is sent on device display, more personalized editors can be carried out.For example,
Frame of video (image) can be screened, and the frame of video to filtering out carries out personalized editor.For example, can be to frame of video
Playing sequence carry out positive sequence or inverted order arrangement, can also to generate GIF figures carry out variable playback;
(5) after the completion of personalized editor, click on after preserving, frame of video is packaged, frame of video is generated into GIF dynamic
Figure, is together in series by bitmap images and generates GIF form Dynamic Graphs.
So, by the preparation method of the GIF figures of the present embodiment, the first record is determined according to the state of the video played
Mask, and position and the/size of the record mask of record screen operation are carried out come the video adjusted to being played according to user's request, so
Afterwards record screen operation is carried out according to resulting record mask (the second record mask), then the video that record screen is obtained was changed between the time
Every, change DISPLAY ORDER, compress and select the process of appropriate two field picture etc., so as to produce the desired GIF figures of user.
In such manner, it is possible to according to user's request, carry out record screen operation for various videos to produce the desired GIF figures of user, so as to
The instant demand of user is disclosure satisfy that, and then improves Consumer's Experience.
Embodiment 4
Fig. 5 illustrates the structured flowchart of the producing device of GIF figures according to an embodiment of the invention.As shown in figure 5, GIF figures
Producing device 50 mainly include:Display unit 51, for showing that first records mask in the display interface of pending video;Adjust
Section unit 52, be connected with the display unit 51, for according to user in the display interface of the pending video to described
The location parameter of the first record mask and/or the regulation of dimensional parameters are forming the second record mask;Record screen unit 53, with the tune
Section unit 52 connects, for carrying out record screen to the pending video according to the described second record mask;And production unit 54, with
The record screen unit 53 connects, and for the video obtained according to record screen graphic interchange format figure is made.
In a kind of possible implementation, the display unit 51 includes:It is determined that and choose module 511, it is determined that described
The width and height of display interface, and orthogonal X-axis and Y-axis as benchmark are chosen in the display interface;Size
Determining module 512, and the determination and chooses module 511 and is connected, for coming true according to the width and height of the display interface
The size of the fixed first record mask;Position determination module 513, is connected, for according to institute with the determination and selection module 511
State the intersection point of X-axis and the Y-axis to determine the position of the first record mask;Display module 514, with the size determining module
512 and the position determination module 513 connect, for according to described first record mask positions and dimensions in the display interface
It is interior to show the first record mask.
In a kind of possible implementation, the adjustment unit 52 includes:Location parameter acquisition module 521, for root
According to user the moving operation of the described first record mask is joined come the position for obtaining the second record mask in the display interface
Number;And/or dimensional parameters acquisition module 522, for according to user in the display interface to described first record mask chi
Very little zooming in or out operates to obtain the dimensional parameters of the second record mask;Module 523 is formed, for according to described the
The location parameter and/or dimensional parameters of two record masks forms the second record mask in the display interface.
In a kind of possible implementation, the production unit 54 includes:Parsing module 541, for record screen to be obtained
Video parse each two field picture;Processing module 542, is connected with the parsing module 541, for each frame figure for being parsed
As carrying out following at least one process:Choose certain amount of two field picture, change from each two field picture for being parsed to be parsed
The DISPLAY ORDER of each two field picture that the time interval, change between each two field picture for going out is parsed and each frame for being parsed
Image is compressed;Module 543 is made, is connected with the processing module 542, synthesize to make for each two field picture after by process
Make graphic interchange format figure.
In a kind of possible implementation, the pending video includes video and/or local video on line.
The producing device of the GIF figures of the present embodiment can be used to perform the system of the GIF figures described in above-described embodiment 1~3
Make method.The detailed process of the preparation method of the GIF figures refers to elaborating for above-described embodiment 1~3.
By the producing device of the GIF figures of the present embodiment, the first record mask is determined according to the state of the video played,
And the video to being played is adjusted according to user's request to carry out recording position and the/size of the record mask of screen operation, Ran Hougen
Carry out record screen operation according to resulting record mask (the second record mask), then the video that record screen is obtained is changed time interval,
Change DISPLAY ORDER, compress and select the process of appropriate two field picture etc., so as to produce the desired GIF figures of user.This
Sample, can be carried out record screen operation to produce the desired GIF figures of user according to user's request for various videos, so as to
Enough meet the instant demand of user, and then improve Consumer's Experience.
Embodiment 5
Fig. 6 illustrates the structured flowchart of the producing device of the GIF figures of another embodiment of the present invention.Producing device 1100 can be
Possess host server, personal computer PC or portable portable computer or terminal of computing capability etc..The present invention
Specific embodiment is not limited implementing for calculate node.
The producing device 1100 includes processor (processor) 1110, communication interface (Communications
Interface) 1120, memory (memory) 1130 and bus 1140.Wherein, processor 1110, communication interface 1120 and
Memory 1130 completes mutual communication by bus 1140.
Communication interface 1120 is used for and network device communications, and wherein the network equipment includes such as Virtual Machine Manager center, is total to
Enjoy storage etc..
Processor 1110 is used for configuration processor.The possibly central processor CPU of processor 1110, or special collection
Into circuit ASIC (Application Specific Integrated Circuit), or it is arranged to implement the present invention
One or more integrated circuits of embodiment.
Memory 1130 is used to deposit file.Memory 1130 may include high-speed RAM memory, it is also possible to also including non-
Volatile memory (non-volatile memory), for example, at least one magnetic disc store.Memory 1130 can also be deposited
Memory array.Memory 1130 is also possible to by piecemeal, and described piece can be combined into virtual volume by certain rule.
In a kind of possible embodiment, said procedure can be the program code for including computer-managed instruction.The journey
Sequence is particularly used in:Realize the operation of each step of method in the various embodiments described above.
Those of ordinary skill in the art are it is to be appreciated that each exemplary cell and algorithm in embodiment described herein
Step, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These functions actually with hardware also
It is software form realizing, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel can be directed to
It is specific to realize described function, but this realization it is not considered that beyond the model of the present invention using different methods are selected
Enclose.
If the function is realized using in the form of computer software and as independent production marketing or when using,
To a certain extent it is believed that all or part (such as the part for contributing to prior art) of technical scheme is
Embody in form of a computer software product.The computer software product is generally stored inside the non-volatile of embodied on computer readable
In storage medium, including some instructions are used so that computer equipment (can be that personal computer, server or network set
It is standby etc.) perform all or part of step of various embodiments of the present invention method.And aforesaid storage medium include USB flash disk, portable hard drive,
Read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic
Dish or CD etc. are various can be with the medium of store program codes.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by the scope of the claims.
Claims (10)
1. a kind of preparation method of graphic interchange format figure, it is characterised in that include:
Show that first records mask in the display interface of pending video;
According to user the location parameter and/or size of the described first record mask are joined in the display interface of the pending video
Several regulations is forming the second record mask;
Record screen is carried out to the pending video according to the described second record mask;And
Graphic interchange format figure is made according to the record video that obtains of screen.
2. method according to claim 1, it is characterised in that the first record screen is shown in the display interface of pending video
Frame, including:
Determine the width and height of the display interface, and the orthogonal X as benchmark is chosen in the display interface
Axle and Y-axis;
The size of the first record mask is determined according to the width and height of the display interface;
The position of the first record mask is determined according to the intersection point of the X-axis and the Y-axis;
The first record mask is shown in the display interface according to the positions and dimensions of the described first record mask.
3. method according to claim 1, it is characterised in that according to user in the display interface of the pending video
Second record mask is formed to the regulation of the described first location parameter for recording mask and/or dimensional parameters, including:
According to user in the display interface to the moving operation of the described first record mask obtaining the second record mask
Location parameter;And/or
Operation is zoomed in or out come described in obtaining to the size of the described first record mask in the display interface according to user
The dimensional parameters of the second record mask;
The second record screen is formed in the display interface according to the location parameter and/or dimensional parameters of the described second record mask
Frame.
4. method according to claim 1, it is characterised in that the video obtained according to record screen is making graphic interchange format
Figure, including:
The video that record screen is obtained is parsed into each two field picture;
Each two field picture to being parsed carries out following at least one process:Certain number is chosen from each two field picture for being parsed
The display of each two field picture that the time interval, change between each two field picture that the two field picture of amount, change are parsed is parsed
Order and each two field picture for being parsed are compressed;
Each two field picture after by process synthesizes to make graphic interchange format figure.
5. method according to any one of claim 1 to 4, it is characterised in that the pending video includes being regarded on line
Frequency and/or local video.
6. a kind of producing device of graphic interchange format figure, it is characterised in that include:
Display unit, for showing that first records mask in the display interface of pending video;
Adjustment unit, is connected with the display unit, for according to user in the display interface of the pending video to institute
State the location parameter of the first record mask and/or the regulation of dimensional parameters to form the second record mask;
Record screen unit, is connected with the adjustment unit, for being recorded to the pending video according to the described second record mask
Screen;And
Production unit, is connected with the record screen unit, and for the video obtained according to record screen graphic interchange format figure is made.
7. device according to claim 6, it is characterised in that the display unit includes:
It is determined that and choose module, determine the width and height of the display interface, and choose as base in the display interface
The orthogonal X-axis and Y-axis of standard;
Size determining module, with it is described determination and choose module be connected, for according to the width and height of the display interface come
Determine the size of the first record mask;
Position determination module, and the determination and chooses module and be connected, for according to the intersection point of the X-axis and the Y-axis come true
The position of the fixed first record mask;
Display module, is connected with the size determining module and the position determination module, for according to the described first record mask
Positions and dimensions show in the display interface it is described first record mask.
8. device according to claim 6, it is characterised in that the adjustment unit includes:
Location parameter acquisition module, for according to user in the display interface to described first record mask moving operation,
To obtain the location parameter of the second record mask;And/or
Dimensional parameters acquisition module, for according to user in the display interface to described first record mask size amplification
Or reduction operation come obtain it is described second record mask dimensional parameters;
Module is formed, for according to the location parameter and/or dimensional parameters shape in the display interface of the described second record mask
Into the described second record mask.
9. device according to claim 6, it is characterised in that the production unit includes:
Parsing module, for the video that record screen is obtained to be parsed into each two field picture;
Processing module, is connected with the parsing module, for carrying out following at least one process to each two field picture for being parsed:
Choose from each two field picture for being parsed between the time between certain amount of two field picture, each two field picture that change is parsed
Every, change the DISPLAY ORDER of each two field picture for being parsed and each two field picture for being parsed is compressed;
Module is made, is connected with the processing module, synthesize to make graphic interchange format for each two field picture after by process
Figure.
10. the device according to any one of claim 6 to 9, it is characterised in that the pending video includes being regarded on line
Frequency and/or local video.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611070655.1A CN106657836A (en) | 2016-11-28 | 2016-11-28 | Method and device for making graphics interchange format chart |
PCT/CN2017/111088 WO2018095253A1 (en) | 2016-11-28 | 2017-11-15 | Method and device for making graphics interchange format chart |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611070655.1A CN106657836A (en) | 2016-11-28 | 2016-11-28 | Method and device for making graphics interchange format chart |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106657836A true CN106657836A (en) | 2017-05-10 |
Family
ID=58813333
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611070655.1A Pending CN106657836A (en) | 2016-11-28 | 2016-11-28 | Method and device for making graphics interchange format chart |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106657836A (en) |
WO (1) | WO2018095253A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107292944A (en) * | 2017-06-26 | 2017-10-24 | 上海传英信息技术有限公司 | The method for recording and recording system of a kind of screen picture |
CN108055587A (en) * | 2017-11-30 | 2018-05-18 | 星潮闪耀移动网络科技(中国)有限公司 | Sharing method, device, mobile terminal and the storage medium of image file |
WO2018095253A1 (en) * | 2016-11-28 | 2018-05-31 | 优酷网络技术(北京)有限公司 | Method and device for making graphics interchange format chart |
WO2019019635A1 (en) * | 2017-07-25 | 2019-01-31 | 平安科技(深圳)有限公司 | Device and method for generating dynamic image, and computer readable storage medium |
CN110019866A (en) * | 2017-09-30 | 2019-07-16 | 腾讯科技(深圳)有限公司 | Dynamic picture playback method, device and storage medium |
WO2020047691A1 (en) * | 2018-09-03 | 2020-03-12 | 深圳市大疆创新科技有限公司 | Method, device, and mobile platform for generating dynamic image and storage medium |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113326086B (en) * | 2021-05-18 | 2022-08-23 | 翱捷科技股份有限公司 | GIF picture display method and device based on LVGL |
CN118398178A (en) * | 2024-06-28 | 2024-07-26 | 贵州众致合一科技发展有限公司 | Auxiliary system for processing interference waveforms of electrocardiographic diagram |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101527690A (en) * | 2009-04-13 | 2009-09-09 | 腾讯科技(北京)有限公司 | Method for intercepting dynamic image, system and device thereof |
CN102520864A (en) * | 2011-12-16 | 2012-06-27 | 北京新媒传信科技有限公司 | Method for continuously playing images and device |
CN103747362A (en) * | 2013-12-30 | 2014-04-23 | 广州华多网络科技有限公司 | Method and device for cutting out video clip |
CN105389084A (en) * | 2015-11-17 | 2016-03-09 | 惠州Tcl移动通信有限公司 | Convenient information inputting method for user of mobile terminal and mobile terminal |
CN105447900A (en) * | 2014-07-04 | 2016-03-30 | 北京新媒传信科技有限公司 | Animation recording method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2000017778A1 (en) * | 1998-09-17 | 2000-03-30 | Sony Corporation | Image generating device and method |
CN105139341B (en) * | 2015-09-21 | 2018-05-29 | 合一网络技术(北京)有限公司 | A kind of GIF image edit methods and device |
CN105138694A (en) * | 2015-09-21 | 2015-12-09 | 合一网络技术(北京)有限公司 | Method and device for graphics interchange format (GIF) recording |
CN106657836A (en) * | 2016-11-28 | 2017-05-10 | 合网络技术(北京)有限公司 | Method and device for making graphics interchange format chart |
-
2016
- 2016-11-28 CN CN201611070655.1A patent/CN106657836A/en active Pending
-
2017
- 2017-11-15 WO PCT/CN2017/111088 patent/WO2018095253A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101527690A (en) * | 2009-04-13 | 2009-09-09 | 腾讯科技(北京)有限公司 | Method for intercepting dynamic image, system and device thereof |
CN102520864A (en) * | 2011-12-16 | 2012-06-27 | 北京新媒传信科技有限公司 | Method for continuously playing images and device |
CN103747362A (en) * | 2013-12-30 | 2014-04-23 | 广州华多网络科技有限公司 | Method and device for cutting out video clip |
CN105447900A (en) * | 2014-07-04 | 2016-03-30 | 北京新媒传信科技有限公司 | Animation recording method and device |
CN105389084A (en) * | 2015-11-17 | 2016-03-09 | 惠州Tcl移动通信有限公司 | Convenient information inputting method for user of mobile terminal and mobile terminal |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018095253A1 (en) * | 2016-11-28 | 2018-05-31 | 优酷网络技术(北京)有限公司 | Method and device for making graphics interchange format chart |
CN107292944A (en) * | 2017-06-26 | 2017-10-24 | 上海传英信息技术有限公司 | The method for recording and recording system of a kind of screen picture |
WO2019019635A1 (en) * | 2017-07-25 | 2019-01-31 | 平安科技(深圳)有限公司 | Device and method for generating dynamic image, and computer readable storage medium |
CN110019866A (en) * | 2017-09-30 | 2019-07-16 | 腾讯科技(深圳)有限公司 | Dynamic picture playback method, device and storage medium |
CN110019866B (en) * | 2017-09-30 | 2023-03-10 | 腾讯科技(深圳)有限公司 | Dynamic picture playing method, device and storage medium |
CN108055587A (en) * | 2017-11-30 | 2018-05-18 | 星潮闪耀移动网络科技(中国)有限公司 | Sharing method, device, mobile terminal and the storage medium of image file |
WO2020047691A1 (en) * | 2018-09-03 | 2020-03-12 | 深圳市大疆创新科技有限公司 | Method, device, and mobile platform for generating dynamic image and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2018095253A1 (en) | 2018-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106657836A (en) | Method and device for making graphics interchange format chart | |
CN111935504B (en) | Video production method, device, equipment and storage medium | |
AU2007224810B2 (en) | Apparatus and method for providing a sequence of video frames, apparatus and method for providing a scene model, scene model, apparatus and method for creating a menu structure and computer program | |
CN109525885B (en) | Information processing method, information processing device, electronic equipment and computer readable storage medium | |
EP4044604A1 (en) | Video special effect processing method and apparatus, and electronic device | |
CN110049371A (en) | Video Composition, broadcasting and amending method, image synthesizing system and equipment | |
US6577760B1 (en) | Image processing apparatus and method, image synthesizing system and method, image synthesizer and client computer which constitute image synthesizing system, and image separating method | |
CN104602127B (en) | Instructor in broadcasting's audio video synchronization playback method and system and video guide's equipment | |
CN111770288A (en) | Video editing method, device, terminal and storage medium | |
CN106796734A (en) | For the performance optimization of data visualization | |
WO2004023824A1 (en) | Device capable of easily creating and editing a content which can be viewed in three-dimensional way | |
CN108924622A (en) | A kind of method for processing video frequency and its equipment, storage medium, electronic equipment | |
CN103197850A (en) | Information processing apparatus, information processing method, and computer readable medium | |
CN108024079A (en) | Record screen method, apparatus, terminal and storage medium | |
CN108492338B (en) | Compression method and device for animation file, storage medium and electronic device | |
CN108924584A (en) | The packaging method and device of interactive video | |
CN102714747A (en) | Stereoscopic video graphics overlay | |
CN108038892A (en) | Expression, which packs, makees method, apparatus, electronic equipment and computer-readable recording medium | |
US20220237848A1 (en) | Image processing method and apparatus, electronic device, and storage medium | |
CN110996150A (en) | Video fusion method, electronic device and storage medium | |
CN112118397B (en) | Video synthesis method, related device, equipment and storage medium | |
CN105872521A (en) | 2D video playing method and device | |
KR102092289B1 (en) | Electronic apparatus and Method for making document thereof | |
CN103186324A (en) | Image editing system and image editing method | |
CN113157973A (en) | Method, device, equipment and medium for generating cover |
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 | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1237566 Country of ref document: HK |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170510 |