CN109640172B - Method and device for inserting video clip into animation - Google Patents
Method and device for inserting video clip into animation Download PDFInfo
- Publication number
- CN109640172B CN109640172B CN201811504650.4A CN201811504650A CN109640172B CN 109640172 B CN109640172 B CN 109640172B CN 201811504650 A CN201811504650 A CN 201811504650A CN 109640172 B CN109640172 B CN 109640172B
- Authority
- CN
- China
- Prior art keywords
- animation
- video
- video clip
- file
- animation file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Abstract
The invention provides a method and a device for inserting video clips into animation, wherein the method comprises the steps of determining the positions of the video clips inserted into an animation file in batch, and setting identification tags for the positions of the video clips inserted into the animation file; respectively obtaining attribute information of an animation file and path information of a video clip, wherein the attribute information of the animation file comprises a file path, the number of files and the positions of identification labels; respectively reading the animation file and the video clip according to the path information of the animation file and the path information of the video clip; and inserting the same video clip into the read animation file from the position of the identification label in batch according to the number of the animation files and the position of the identification label. The invention has the beneficial effects that: the video clips are inserted into the positions where the identification tags are arranged in batches, so that the same video clip is inserted into the animation files in batches, and the processing efficiency of the animation files is improved.
Description
Technical Field
The present invention relates to a method and an apparatus for inserting video clips, and more particularly, to a method and an apparatus for inserting video clips into animation.
Background
In the existing animation production process, if video clips need to be inserted, especially video clips are inserted in some scattered places, the video clips need to be manually inserted one by one, and after the video clips are added, preview output is performed.
The prior art has the defect that the batch insertion of the same video clip can not be realized quickly, so that the production processing efficiency of animation videos is not high.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: a method and apparatus for improving the processing efficiency of inserting an animation file into a video clip are provided.
In order to solve the technical problems, the invention adopts the technical scheme that: a method for inserting video segments in an animation, comprising the steps of,
s10, determining the positions of the video clips inserted in the animation file in batches, and setting identification tags for the positions of the video clips inserted in the animation file;
s20, respectively obtaining attribute information of the animation file and path information of the video clip, wherein the attribute information of the animation file comprises a file path, the number of files and the position of an identification label;
s30, respectively reading the animation file and the video clip according to the path information of the animation file and the path information of the video clip;
and S40, inserting the same video clip into the read animation file from the position of the identification label in batches according to the number of the animation files and the position of the identification label.
Further, the determining the positions of the video clips inserted in the animation file in batch and setting the identification tags for the positions of the video clips inserted in the animation file specifically comprises,
determining frame pictures corresponding to the positions of the video clips inserted in the animation files in batches;
and setting an identification tag for a frame picture corresponding to the position of the inserted video clip.
Further, the inserting the same video clip into the read animation file from the position of the identification tag in batches according to the number of the animation files and the position of the identification tag specifically comprises,
identifying a frame picture corresponding to the position of the video clip inserted in the animation file;
and inserting the same video clip into the corresponding animation file from the identified frame pictures in batch.
An apparatus for inserting a video clip in an animation, comprising,
the identification tag setting module is used for determining the positions of the video clips inserted into the animation files in batches and setting identification tags for the positions of the video clips inserted into the animation files;
the information acquisition module is used for respectively acquiring attribute information of an animation file and path information of a video clip, wherein the attribute information of the animation file comprises a file path, the number of files and the positions of identification labels;
the animation video reading module is used for respectively reading the animation file and the video clip according to the path information of the animation file and the path information of the video clip;
and the video batch insertion module inserts the same video clip into the read animation file from the position of the identification label in batch according to the number of the animation files and the position of the identification label.
Further, the identification tag setting module is specifically configured to,
determining frame pictures corresponding to the positions of the video clips inserted in the animation files in batches;
and setting an identification tag for a frame picture corresponding to the position of the inserted video clip.
Furthermore, the video batch insertion module is specifically used for,
identifying a frame picture corresponding to the position of the video clip inserted in the animation file;
and inserting the same video clip into the corresponding animation file from the identified frame pictures in batch.
According to the technical scheme, the positions of the animation files, where the video clips need to be inserted, are determined in batches, the identification tags are arranged, and the video clips are inserted into the positions, where the identification tags are arranged, in batches, so that the same video clip is inserted into the animation files in batches, and the processing efficiency of the animation files is improved.
Drawings
The following detailed description of the invention refers to the accompanying drawings.
FIG. 1 is a flowchart of a method for inserting video clips into an animation according to an embodiment of the invention;
FIG. 2 is a block diagram of an apparatus for inserting video clips into an animation according to an embodiment of the invention.
Detailed Description
In order to explain technical contents, structural features, and objects and effects of the present invention in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Example one
Referring to fig. 1, a method of inserting a video clip in animation, includes the steps of,
s10, determining the positions of the video clips inserted in the animation file in batches, and setting identification tags for the positions of the video clips inserted in the animation file;
in this step, video clip insertion point identification is performed on animation files needing to be inserted into the same video clip, and the specific position of each animation file inserted into the video clip is determined.
S20, respectively obtaining attribute information of the animation file and path information of the video clip, wherein the attribute information of the animation file comprises a file path, the number of files and the position of an identification label;
in this step, the storage path information of the animation file and the video clip is obtained, the number of the specific animation files is counted, and the specific position information of the identification tag in the animation file is identified, so as to find the specific position of the video clip inserted in the animation file.
S30, respectively reading the animation file and the video clip according to the path information of the animation file and the path information of the video clip;
in this step, the corresponding animation file and video clip are loaded respectively according to the path information of the animation file and the path information of the video clip, and a series of animation files are formed into an animation file list.
And S40, inserting the same video clip into the read animation file from the position of the identification label in batches according to the number of the animation files and the position of the identification label.
In the step, the identification labels in the identified animation files are detected, the specific positions of the inserted video clips are determined, the same video clip is inserted into the series of animation files in sequence, the batch insertion of the video clips is completed, and the processing efficiency of the animation videos is greatly improved.
Example two
In a specific embodiment, the batch determining the position of the video clip inserted in the animation file, and setting an identification tag for the position of the video clip inserted in the animation file specifically includes,
determining frame pictures corresponding to the positions of the video clips inserted in the animation files in batches;
and setting an identification tag for a frame picture corresponding to the position of the inserted video clip.
In this embodiment, the animation file is composed of video frame pictures, the inserted video clip is inserted from two adjacent frame pictures, the frame picture at the insertion position is determined, and the identification tag is set for the frame picture.
EXAMPLE III
In an embodiment, the inserting the same video clip into the read animation file in batch from the position of the identification tag according to the number of the animation files and the position of the identification tag specifically includes,
identifying a frame picture corresponding to the position of the video clip inserted in the animation file;
and inserting the same video clip into the corresponding animation file from the identified frame pictures in batch.
In this embodiment, the frame picture with the identification tag in the animation file is detected, the frame picture is at the position where the video clip is inserted, and the same video clip is inserted into the animation file from the frame picture with the identification tag in batch, so that the processing efficiency of the animation file is improved.
Example four
Referring to fig. 2, an apparatus for inserting a video clip in an animation, includes,
the identification tag setting module is used for determining the positions of the video clips inserted into the animation files in batches and setting identification tags for the positions of the video clips inserted into the animation files;
the information acquisition module is used for respectively acquiring attribute information of an animation file and path information of a video clip, wherein the attribute information of the animation file comprises a file path, the number of files and the positions of identification labels;
the animation video reading module is used for respectively reading the animation file and the video clip according to the path information of the animation file and the path information of the video clip;
and the video batch insertion module inserts the same video clip into the read animation file from the position of the identification label in batch according to the number of the animation files and the position of the identification label.
EXAMPLE five
In one embodiment, the identification tag setting module is specifically configured to,
determining frame pictures corresponding to the positions of the video clips inserted in the animation files in batches;
and setting an identification tag for a frame picture corresponding to the position of the inserted video clip.
EXAMPLE six
In one embodiment, the video batch insertion module is specifically configured to,
identifying a frame picture corresponding to the position of the video clip inserted in the animation file;
and inserting the same video clip into the corresponding animation file from the identified frame pictures in batch.
The device embodiments and the method embodiments of the present invention correspond to each other one to one, and the content of the device embodiments includes all the content of the method embodiments, and has the same technical effect as the method embodiments, and therefore, the description thereof is omitted.
In summary, the invention realizes that the same video clip is inserted into the animation files in batch by determining the positions of the animation files in batch, setting the identification tags and inserting the video clips into the positions with the identification tags in batch, thereby improving the processing efficiency of the animation files.
The first … … and the second … … are only used for name differentiation and do not represent how different the importance and position of the two are.
Here, the upper, lower, left, right, front, and rear represent only relative positions thereof and do not represent absolute positions thereof. The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (6)
1. A method of inserting video clips in an animation, comprising: comprises the steps of (a) carrying out,
s10, determining the positions of the video clips inserted in the animation file in batches, and setting identification tags for the positions of the video clips inserted in the animation file;
s20, respectively obtaining attribute information of the animation file and path information of the video clip, wherein the attribute information of the animation file comprises a file path, the number of files and the position of an identification label;
s30, respectively reading the animation file and the video clip according to the path information of the animation file and the path information of the video clip;
and S40, inserting the same video clip into the read animation file from the position of the identification label in batches according to the number of the animation files and the position of the identification label.
2. The method of inserting video segments in animation according to claim 1, wherein: the method comprises the steps of determining the positions of video clips inserted into animation files in batch, setting identification tags for the positions of the video clips inserted into the animation files,
determining frame pictures corresponding to the positions of the video clips inserted in the animation files in batches;
and setting an identification tag for a frame picture corresponding to the position of the inserted video clip.
3. The method of inserting video segments in animation of claim 2, wherein: the inserting the same video clip into the read animation file from the position of the identification label in batch according to the number of the animation file and the position of the identification label specifically comprises,
identifying a frame picture corresponding to the position of the video clip inserted in the animation file;
and inserting the same video clip into the corresponding animation file from the identified frame pictures in batch.
4. An apparatus for inserting a video clip in an animation, comprising: comprises the steps of (a) preparing a mixture of a plurality of raw materials,
the identification tag setting module is used for determining the positions of the video clips inserted into the animation files in batches and setting identification tags for the positions of the video clips inserted into the animation files;
the information acquisition module is used for respectively acquiring attribute information of an animation file and path information of a video clip, wherein the attribute information of the animation file comprises a file path, the number of files and the positions of identification labels;
the animation video reading module is used for respectively reading the animation file and the video clip according to the path information of the animation file and the path information of the video clip;
and the video batch insertion module inserts the same video clip into the read animation file from the position of the identification label in batch according to the number of the animation files and the position of the identification label.
5. The apparatus for inserting video segments in animation according to claim 4, wherein: the identification tag setting module is specifically configured to,
determining frame pictures corresponding to the positions of the video clips inserted in the animation files in batches;
and setting an identification tag for a frame picture corresponding to the position of the inserted video clip.
6. The apparatus for inserting video clips in animation according to claim 5, wherein: the video batch insertion module is specifically configured to,
identifying a frame picture corresponding to the position of the video clip inserted in the animation file;
and inserting the same video clip into the corresponding animation file from the identified frame pictures in batch.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811504650.4A CN109640172B (en) | 2018-12-10 | 2018-12-10 | Method and device for inserting video clip into animation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811504650.4A CN109640172B (en) | 2018-12-10 | 2018-12-10 | Method and device for inserting video clip into animation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109640172A CN109640172A (en) | 2019-04-16 |
CN109640172B true CN109640172B (en) | 2021-02-05 |
Family
ID=66072581
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811504650.4A Active CN109640172B (en) | 2018-12-10 | 2018-12-10 | Method and device for inserting video clip into animation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109640172B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105744182A (en) * | 2016-04-22 | 2016-07-06 | 广东小天才科技有限公司 | Video production method and device |
CN105872820A (en) * | 2015-12-03 | 2016-08-17 | 乐视云计算有限公司 | Method and device for adding video tag |
CN108228795A (en) * | 2017-12-29 | 2018-06-29 | 北京奇虎科技有限公司 | Add the method and device of business object |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5334771B2 (en) * | 2008-10-07 | 2013-11-06 | トムソン ライセンシング | Method for inserting an advertisement clip into a video sequence and corresponding device |
-
2018
- 2018-12-10 CN CN201811504650.4A patent/CN109640172B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105872820A (en) * | 2015-12-03 | 2016-08-17 | 乐视云计算有限公司 | Method and device for adding video tag |
CN105744182A (en) * | 2016-04-22 | 2016-07-06 | 广东小天才科技有限公司 | Video production method and device |
CN108228795A (en) * | 2017-12-29 | 2018-06-29 | 北京奇虎科技有限公司 | Add the method and device of business object |
Also Published As
Publication number | Publication date |
---|---|
CN109640172A (en) | 2019-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113920117B (en) | Panel defect area detection method and device, electronic equipment and storage medium | |
CN104573675A (en) | Operating image displaying method and device | |
CN111144493B (en) | Method for automatically identifying algorithm index test, storage medium and electronic terminal | |
CN111951232A (en) | Metal powder injection molding appearance defect detection method and system | |
CN108446717A (en) | A kind of board state collection method and system based on image recognition | |
WO2019101027A1 (en) | Commodity identification method and device | |
CN106910195B (en) | Webpage layout monitoring method and device | |
US8351674B2 (en) | Image portion identification methods, image parsing methods, image parsing systems, and articles of manufacture | |
CN109640172B (en) | Method and device for inserting video clip into animation | |
CN111159167B (en) | Labeling quality detection device and method | |
CN106959869B (en) | Method and system for loading OCX control | |
CN105373528A (en) | Method and device for analyzing sensitivity of text contents | |
CN111259980A (en) | Method and device for processing labeled data | |
CN111581267A (en) | Object data storage method and device | |
CN109410662B (en) | Method and device for manufacturing Chinese character multimedia card | |
CN109816640B (en) | Product verification method based on picture comparison | |
CN113220966A (en) | Advertisement creative classification display method, system and equipment and readable storage medium | |
CN115545809B (en) | Method for constructing standard library of electronic commerce commodity, data alignment method, device and equipment | |
CN111914741B (en) | House property identification method, device and equipment | |
CN106096144B (en) | A kind of automobile brand genetic analysis method based on preceding face moulding | |
CN109684962B (en) | AR electronic book quality detection method | |
CN109814922B (en) | Method and system for converting wafer Map file into pickup file | |
CN111738183B (en) | Data labeling method and device | |
CN115953635B (en) | Sorting method, AR (augmented reality) glasses and system for multi-class targets | |
CN110956422A (en) | Commodity warehousing management method, device and system and readable storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: Room 901, building B, innovation building, 198 Daxin Road, majialong community, Nantou street, Nanshan District, Shenzhen, Guangdong 518000 Patentee after: SHENZHEN FANGZHI TECHNOLOGY Co.,Ltd. Address before: 518000 Room 302, building 12, Shenzhen Software Park, kejizhong 2nd Road, Nanshan District, Shenzhen City, Guangdong Province Patentee before: SHENZHEN FANGZHI TECHNOLOGY Co.,Ltd. |