CN114630181B - Video processing method, system, electronic device and medium - Google Patents
Video processing method, system, electronic device and medium Download PDFInfo
- Publication number
- CN114630181B CN114630181B CN202210173704.3A CN202210173704A CN114630181B CN 114630181 B CN114630181 B CN 114630181B CN 202210173704 A CN202210173704 A CN 202210173704A CN 114630181 B CN114630181 B CN 114630181B
- Authority
- CN
- China
- Prior art keywords
- video
- special effect
- frame
- image
- basic parameters
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 27
- 230000000694 effects Effects 0.000 claims abstract description 97
- 238000012545 processing Methods 0.000 claims abstract description 45
- 238000009877 rendering Methods 0.000 claims abstract description 27
- 238000000034 method Methods 0.000 claims abstract description 17
- 238000012856 packing Methods 0.000 claims abstract description 9
- 238000004891 communication Methods 0.000 claims description 23
- 238000004590 computer program Methods 0.000 claims description 12
- 238000007499 fusion processing Methods 0.000 claims description 6
- 238000013461 design Methods 0.000 description 7
- 230000002093 peripheral effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000002156 mixing Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44012—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- 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/44016—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 splicing one content stream with another content stream, e.g. for substituting a video clip
-
- 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/440218—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 transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
-
- 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/812—Monomedia components thereof involving advertisement data
-
- 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/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Computer Security & Cryptography (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention relates to the technical field of video processing, and aims to provide a video processing method, a video processing system, electronic equipment and a video processing medium. The method comprises the following steps: acquiring an original video to be subjected to frame packing processing; acquiring a special effect template of the frame-wrapped advertisement; acquiring basic parameters required by generating a target video; performing special effect rendering on the special effect template according to the basic parameters to obtain a special effect image; decoding the original video to obtain multi-frame video images, and then carrying out scaling processing on the multi-frame video images according to the basic parameters to obtain multi-frame processed video images; fusing the special effect image and the processed video image to obtain a plurality of frames of target images; and transcoding the multi-frame target image to obtain a target video. The invention can realize the templating and automatic generation of the video frame advertisement.
Description
Technical Field
The present invention relates to the field of video processing technologies, and in particular, to a video processing method, a video processing system, an electronic device, and a medium.
Background
At present, with the rapid development of the technology, the frame-packed advertisement putting technology develops rapidly, a user needs to ensure that the sizes of advertisement materials and advertisement positions are matched in the advertisement putting process, and when the proportions of the advertisement materials and the advertisement positions are not compatible, a part of the advertisement materials need to be cut or a large amount of white space needs to be left.
In order to avoid the problem of cutting or leaving white of the finished advertisement product, in the prior art, a method for generating a video frame advertisement has appeared, which generally uses video editing tools like AE (After Effects, nonlinear special Effects making software) or PR (Premiere, video editing software) to perform special effect editing, and then transcodes the video frame advertisement to output the video frame advertisement.
However, in the process of using the prior art, the inventor finds that at least the following problems exist in the prior art:
the software usually needs manual operation and video editing, cannot automatically generate animation videos, cannot meet the requirement of quick output, and has a high special effect making threshold; meanwhile, the above method cannot use the custom template special effect for the video, and is difficult to realize the templating.
Disclosure of Invention
The present invention is directed to solving at least some of the above problems and provides a video processing method, system, electronic device, and medium.
The technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a video processing method, including:
acquiring an original video to be subjected to frame packing processing;
acquiring a special effect template of the frame-wrapped advertisement;
acquiring basic parameters required by generating a target video;
performing special effect rendering on the special effect template according to the basic parameters to obtain a special effect image;
decoding the original video to obtain multi-frame video images, and then carrying out scaling processing on the multi-frame video images according to the basic parameters to obtain multi-frame processed video images;
fusing the special effect image and the processed video image to obtain a plurality of frames of target images;
and transcoding the multi-frame target image to obtain a target video.
The invention can realize the template and automatic generation of the video package frame advertisement without local editing by a user. Specifically, in the implementation process, after receiving an original video input by a user, a custom or generated special effect template and basic parameters, the method can perform special effect rendering on the special effect template according to the basic parameters to obtain a special effect image; subsequently, decoding the original video to obtain multi-frame video images, and then carrying out scaling processing on the multi-frame video images according to the basic parameters to obtain multi-frame processed video images; and finally, fusing the special effect image and the processed video image to obtain a multi-frame target image, and transcoding the multi-frame target image to obtain a target video, namely the video frame advertisement, so that the templating and automatic generation of the video frame advertisement are realized. From the perspective of the user, the user only needs to select the corresponding template, the original video and the basic parameters, and then the corresponding advertisement package frame video can be generated by one key, so that the user experience is good.
In one possible design, after obtaining an original video to be subjected to frame packing, the video processing method further includes:
and transcoding the original video so as to convert the original video into a format which can be played by a browser.
In one possible design, performing special effect rendering on the special effect template according to the basic parameters to obtain a special effect image, including: generating an HTML file by the special effect template; rendering the HTML file according to the basic parameters to obtain a special effect image.
In one possible design, rendering the HTML file according to the basic parameters to obtain a special effect image, including: and calling a Wekit module in the FFmpeg to render the HTML file by the Wekit module according to the basic parameters and the time stamp of the original video during transcoding so as to obtain a special effect image.
In one possible design, the original video is decoded by calling a decoder of the FFmpeg; when transcoding processing is carried out on multi-frame target images, the method is realized by calling an FFmpeg encoder.
In one possible design, the basic parameters include a zoom-out video timestamp and a zoom-in video timestamp; carrying out scaling processing on the multi-frame video image according to the basic parameters to obtain a multi-frame processed video image, which comprises the following steps: and when the timestamp corresponding to the video image reaches the reduced video timestamp in the basic parameters, reducing the reduced video timestamp and the video image corresponding to the reduced video timestamp, and when the timestamp corresponding to the video image reaches the amplified video timestamp in the basic parameters, amplifying the video image corresponding to the amplified video timestamp and the amplified video timestamp to finally obtain the multi-frame processed video image.
In one possible design, the fusing the special effect image with the processed video image includes: and fusing the special effect image and the processed video image by adopting a transparency superposition algorithm.
In one possible design of the system,
in a second aspect, the present invention provides a video processing system, for implementing any one of the above video processing methods; the video processing system includes:
the original video acquisition module is used for acquiring an original video to be subjected to frame packing processing;
the special effect template acquisition module is used for acquiring a special effect template of the frame-wrapped advertisement;
the basic parameter acquisition module is used for acquiring basic parameters required by generating a target video;
the special effect rendering module is respectively in communication connection with the special effect template acquisition module and the basic parameter acquisition module and is used for performing special effect rendering on the special effect template according to the basic parameters to obtain a special effect image;
the zooming processing module is respectively in communication connection with the original video acquiring module and the basic parameter acquiring module and is used for decoding the original video to obtain multi-frame video images, and then zooming the multi-frame video images according to the basic parameters to obtain multi-frame processed video images;
the fusion processing module is respectively in communication connection with the special effect rendering module and the zooming processing module, is in communication connection with the basic parameter acquisition module, and is used for fusing the special effect image and the processed video image to obtain a multi-frame target image;
and the target video generation module is in communication connection with the fusion processing module and is used for transcoding the multi-frame target image to obtain the target video.
In a third aspect, the present invention provides an electronic device, characterized in that: the method comprises the following steps:
a memory for storing computer program instructions; and the number of the first and second groups,
a processor for executing the computer program instructions to perform the operations of any of the above described video processing methods.
In a fourth aspect, the present invention provides a computer-readable storage medium storing computer-readable computer program instructions, characterized in that: the computer program instructions are configured to perform the operations of any of the video processing methods described above when executed.
Drawings
FIG. 1 is a flow chart of a video processing method of the present invention;
FIG. 2 is a block diagram of a video processing system of the present invention;
fig. 3 is a block diagram of an electronic device in the present invention.
Detailed Description
The invention is further described with reference to the following figures and specific embodiments.
It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another.
It should be understood that, for the term "and/or" as may appear herein, it is merely an associative relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, B exists alone, and A and B exist at the same time.
It should also be noted that, in some alternative implementations, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may, in fact, be executed substantially concurrently, or the figures may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
Example 1:
the present embodiment provides a video processing method, which may be, but is not limited to, executed by a computer device or a virtual machine with certain computing resources, for example, an electronic device such as a personal computer, a smart phone, a personal digital assistant, or a wearable device, or executed by a virtual machine, so as to implement templated and automated generation of video frame advertisement.
As shown in fig. 1, a video processing method may include, but is not limited to, the following steps:
s1, obtaining an original video to be subjected to frame packing processing.
And S2, transcoding the original video so as to convert the original video into a format which can be played by a browser. The format may be, but is not limited to, MP4 format, and is not limited thereto.
S3, acquiring a special effect template of the frame-wrapped advertisement; in this embodiment, the special effect template includes an advertisement file and an advertisement image.
S4, acquiring basic parameters required by generating a target video; in this embodiment, the basic parameters include a video start time, a video end time, special effect template adjustment data, a video reduction speed, and a video enlargement speed.
And S5, performing special effect rendering on the special effect template according to the basic parameters to obtain a special effect image.
Specifically, performing special effect rendering on the special effect template according to the basic parameters to obtain a special effect image, including: generating an HTML (HyperText Markup Language) file by using the special effect template; rendering the HTML file according to the basic parameters to obtain a special effect image. It should be noted that the HTML file can be read by various web browsers, which facilitates the rendering operation of the special effect template in the web browser, so that the software development difficulty is lower and the universality is strong.
Further, rendering the HTML file according to the basic parameters to obtain a special effect image, including: and calling a Wekit module in the FFmpeg to render the HTML file by the Wekit module according to the basic parameters and the time stamp of the original video during transcoding so as to obtain a special effect image.
It should be noted that FFmpeg is a set of open source computer programs that can be used to record and convert digital audio and video, and can convert them into streams, and it contains a very advanced audio/video codec library to ensure high portability and codec quality, and at the same time it can be applied to multiple operating systems, and is beneficial to improve the generality of the image codec in the application in different platform operation processes.
And S6, decoding the original video to obtain a plurality of frames of video images, and then carrying out zooming processing on the plurality of frames of video images according to the basic parameters to obtain a plurality of frames of processed video images.
It should be noted that the execution sequence of steps S5 and S6 is not particularly limited.
In this embodiment, the basic parameters further include a zoom-out video timestamp and a zoom-in video timestamp; carrying out scaling processing on the multi-frame video image according to the basic parameters to obtain a multi-frame processed video image, which comprises the following steps: when the timestamp corresponding to the video image reaches the reduced video timestamp in the basic parameter, the video image corresponding to the reduced video timestamp and the reduced video timestamp is subjected to reduction processing so that the special effect template of the framed advertisement is highlighted in a key mode in the target video obtained after fusion, and therefore the advertisement is displayed.
In this embodiment, when the original video is decoded, the decoding is implemented by calling a decoder of the FFmpeg.
And S7, fusing the special effect image and the processed video image to obtain a plurality of frames of target images.
In this embodiment, the fusing the special effect image and the processed video image includes: and fusing the special effect image and the processed video image by adopting a transparency Blending Algorithm (Alpha), so that the special effect image of each frame in the target video and the processed video image can be combined more naturally, and the user experience when watching the target video is promoted. In this embodiment, the special effect image and the processed video image are fused by an Alpha overlay algorithm, wherein the Alpha overlay algorithm can combine an image with a background, that is, the special effect image and the processed video image in the present application are combined to create a partially or completely transparent image, and the processing process is simple and efficient.
And S8, transcoding the multi-frame target image to obtain a target video. It should be noted that the target video is represented as a pattern in which the special effect template surrounds the original video, i.e. a frame advertisement pattern.
In this embodiment, when transcoding multiple frames of target images, the method is implemented by calling an FFmpeg encoder, so as to obtain a target video, and finally, the video is returned to the front end.
The embodiment can realize the templating and automatic generation of the video package frame advertisement without local editing by a user. Specifically, in the implementation process of the embodiment, after receiving an original video input by a user, a custom or generated special effect template and basic parameters, the special effect template may be subjected to special effect rendering according to the basic parameters to obtain a special effect image; subsequently, decoding the original video to obtain multi-frame video images, and then carrying out scaling processing on the multi-frame video images according to the basic parameters to obtain multi-frame processed video images; and finally, fusing the special effect image and the processed video image to obtain a multi-frame target image, and transcoding the multi-frame target image to obtain a target video, namely the video frame advertisement, so that the templating and automatic generation of the video frame advertisement are realized. From the perspective of the user, the user only needs to select the corresponding template, the original video and the basic parameters, and then the corresponding advertisement package frame video can be generated by one key, so that the user experience is good.
Example 2:
the present embodiment provides a video processing system, which is configured to implement the video processing method in embodiment 1; as shown in fig. 2, the video processing system includes:
the original video acquisition module is used for acquiring an original video to be subjected to frame packing processing;
the special effect template acquisition module is used for acquiring a special effect template of the frame-wrapped advertisement;
the basic parameter acquisition module is used for acquiring basic parameters required by generating a target video;
the special effect rendering module is respectively in communication connection with the special effect template acquisition module and the basic parameter acquisition module and is used for performing special effect rendering on the special effect template according to the basic parameters to obtain a special effect image;
the zooming processing module is respectively in communication connection with the original video acquiring module and the basic parameter acquiring module and is used for decoding the original video to obtain multi-frame video images, and then zooming the multi-frame video images according to the basic parameters to obtain multi-frame processed video images;
the fusion processing module is respectively in communication connection with the special effect rendering module and the zooming processing module, is in communication connection with the basic parameter acquisition module, and is used for fusing the special effect image and the processed video image to obtain a multi-frame target image;
and the target video generation module is in communication connection with the fusion processing module and is used for transcoding the multi-frame target image to obtain the target video.
Example 3:
on the basis of embodiment 1 or 2, this embodiment discloses an electronic device, and this device may be a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like. The electronic device may be referred to as a device for a terminal, a portable terminal, a desktop terminal, or the like, and as shown in fig. 3, the electronic device includes:
a memory for storing computer program instructions; and the number of the first and second groups,
a processor for executing the computer program instructions to perform the operations of the video processing method as in any of embodiment 1.
In particular, the processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen.
In some embodiments, the terminal may further optionally include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected by a bus or signal lines. Various peripheral devices may be connected to communication interface 303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, a display screen 305, and a power source 306.
The communication interface 303 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 301 and the memory 302. In some embodiments, processor 301, memory 302, and communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the communication interface 303 may be implemented on a single chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 304 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 304 communicates with communication networks and other communication devices via electromagnetic signals.
The display screen 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof.
The power supply 306 is used to power various components in the electronic device.
Example 4:
on the basis of any embodiment of embodiments 1 to 3, the present embodiment discloses a computer-readable storage medium for storing computer-readable computer program instructions configured to, when executed, perform the operations of the video processing method according to embodiment 1.
It should be noted that the functions described herein, if implemented in software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: modifications of the technical solutions described in the embodiments or equivalent replacements of some technical features may still be made. And such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Finally, it should be noted that the present invention is not limited to the above alternative embodiments, and that various other forms of products can be obtained by anyone in light of the present invention. The above detailed description should not be taken as limiting the scope of the invention, which is defined in the claims, and which the description is intended to be interpreted accordingly.
Claims (9)
1. A video processing method, characterized by: the method comprises the following steps:
acquiring an original video to be subjected to frame packing processing;
acquiring a special effect template of the frame-wrapped advertisement;
acquiring basic parameters required by generating a target video;
performing special effect rendering on the special effect template according to the basic parameters to obtain a special effect image;
decoding the original video to obtain multi-frame video images, and then carrying out scaling processing on the multi-frame video images according to the basic parameters to obtain multi-frame processed video images;
fusing the special effect image and the processed video image to obtain a plurality of frames of target images;
transcoding the multi-frame target image to obtain a target video;
the basic parameters comprise a zoom-out video timestamp and a zoom-in video timestamp; carrying out scaling processing on the multi-frame video image according to the basic parameters to obtain a multi-frame processed video image, which comprises the following steps: and when the timestamp corresponding to the video image reaches the reduced video timestamp in the basic parameters, reducing the reduced video timestamp and the video image corresponding to the reduced video timestamp, and when the timestamp corresponding to the video image reaches the amplified video timestamp in the basic parameters, amplifying the video image corresponding to the amplified video timestamp and the amplified video timestamp to finally obtain the multi-frame processed video image.
2. A video processing method according to claim 1, characterized by: after obtaining the original video to be subjected to frame packing processing, the video processing method further comprises the following steps:
and transcoding the original video so as to convert the original video into a format which can be played by a browser.
3. A video processing method according to claim 2, characterized by: performing special effect rendering on the special effect template according to the basic parameters to obtain a special effect image, including: generating an HTML file by the special effect template; rendering the HTML file according to the basic parameters to obtain a special effect image.
4. A video processing method according to claim 3, characterized by: rendering the HTML file according to the basic parameters to obtain a special effect image, wherein the rendering comprises the following steps: and calling a Wekit module in the FFmpeg to render the HTML file by the Wekit module according to the basic parameters and the time stamp of the original video during transcoding so as to obtain a special effect image.
5. A video processing method according to claim 1, characterized by: when the original video is decoded, the decoding is realized by calling a FFmpeg decoder; when transcoding processing is carried out on multi-frame target images, the method is realized by calling an FFmpeg encoder.
6. A video processing method according to claim 1, characterized by: fusing the special effect image with the processed video image, including: and fusing the special effect image and the processed video image by adopting a transparency superposition algorithm.
7. A video processing system, characterized by: for implementing a video processing method according to any one of claims 1 to 6; the video processing system includes:
the original video acquisition module is used for acquiring an original video to be subjected to frame packing processing;
the special effect template acquisition module is used for acquiring a special effect template of the frame-wrapped advertisement;
the basic parameter acquisition module is used for acquiring basic parameters required by generating a target video;
the special effect rendering module is respectively in communication connection with the special effect template acquisition module and the basic parameter acquisition module and is used for performing special effect rendering on the special effect template according to the basic parameters to obtain a special effect image;
the zooming processing module is respectively in communication connection with the original video acquiring module and the basic parameter acquiring module and is used for decoding the original video to obtain multi-frame video images, and then zooming the multi-frame video images according to the basic parameters to obtain multi-frame processed video images;
the fusion processing module is respectively in communication connection with the special effect rendering module and the zooming processing module, is in communication connection with the basic parameter acquisition module, and is used for fusing the special effect image and the processed video image to obtain a multi-frame target image;
and the target video generation module is in communication connection with the fusion processing module and is used for transcoding the multi-frame target image to obtain the target video.
8. An electronic device, characterized in that: the method comprises the following steps:
a memory for storing computer program instructions; and the number of the first and second groups,
a processor for executing the computer program instructions to carry out the operations of the video processing method according to any one of claims 1 to 6.
9. A computer-readable storage medium storing computer-readable computer program instructions, characterized in that: the computer program instructions are configured to perform the operations of the video processing method of any of claims 1 to 6 when executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210173704.3A CN114630181B (en) | 2022-02-24 | 2022-02-24 | Video processing method, system, electronic device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210173704.3A CN114630181B (en) | 2022-02-24 | 2022-02-24 | Video processing method, system, electronic device and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114630181A CN114630181A (en) | 2022-06-14 |
CN114630181B true CN114630181B (en) | 2023-03-24 |
Family
ID=81899345
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210173704.3A Active CN114630181B (en) | 2022-02-24 | 2022-02-24 | Video processing method, system, electronic device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114630181B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115499684A (en) * | 2022-09-14 | 2022-12-20 | 广州方硅信息技术有限公司 | Video resource exporting method and device and live network broadcasting system |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101946500B (en) * | 2007-12-17 | 2012-10-03 | 伊克鲁迪控股公司 | Real time video inclusion system |
CN109168028B (en) * | 2018-11-06 | 2022-11-22 | 北京达佳互联信息技术有限公司 | Video generation method, device, server and storage medium |
CN110456999B (en) * | 2019-08-05 | 2023-07-11 | 深圳怡化电脑股份有限公司 | Program creation method, program creation device, electronic equipment and computer readable storage medium |
CN112351221B (en) * | 2019-08-09 | 2024-02-13 | 北京字节跳动网络技术有限公司 | Image special effect processing method, device, electronic equipment and computer readable storage medium |
CN110708596A (en) * | 2019-09-29 | 2020-01-17 | 北京达佳互联信息技术有限公司 | Method and device for generating video, electronic equipment and readable storage medium |
CN113452929B (en) * | 2020-03-24 | 2022-10-04 | 北京达佳互联信息技术有限公司 | Video rendering method and device, electronic equipment and storage medium |
CN113838490B (en) * | 2020-06-24 | 2022-11-11 | 华为技术有限公司 | Video synthesis method and device, electronic equipment and storage medium |
CN111669623B (en) * | 2020-06-28 | 2023-10-13 | 腾讯科技(深圳)有限公司 | Video special effect processing method and device and electronic equipment |
CN112954452B (en) * | 2021-02-08 | 2023-07-18 | 广州酷狗计算机科技有限公司 | Video generation method, device, terminal and storage medium |
-
2022
- 2022-02-24 CN CN202210173704.3A patent/CN114630181B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN114630181A (en) | 2022-06-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220007083A1 (en) | Method and stream-pushing client for processing live stream in webrtc | |
KR101968977B1 (en) | Cartoon providing system, cartoon providing device and cartoon providing method | |
CN114630181B (en) | Video processing method, system, electronic device and medium | |
CN113655999B (en) | Page control rendering method, device, equipment and storage medium | |
WO2022161280A1 (en) | Video frame interpolation method and apparatus, and electronic device | |
CN112887794A (en) | Video editing method and device | |
CN111757177B (en) | Video clipping method and device | |
CN115767131A (en) | Cloud director method, device, equipment and computer storage medium | |
CN113852757B (en) | Video processing method, device, equipment and storage medium | |
CN102932607B (en) | Caption graphics and text information generation method and device | |
CN110582021B (en) | Information processing method and device, electronic equipment and storage medium | |
CN110264543B (en) | Frame drawing method and device of spliced picture and storage medium | |
US20190197986A1 (en) | Methods for dynamically providing an image to be displayed | |
CN113691835B (en) | Video implantation method, device, equipment and computer readable storage medium | |
CN111045576A (en) | Display control method, display control device, terminal device and electronic device | |
CN111314777B (en) | Video generation method and device, computer storage medium and electronic equipment | |
CN114253449A (en) | Screen capturing method, device, equipment and medium | |
CN112911367B (en) | Video playing interface processing method and device and electronic equipment | |
CN113919997A (en) | Watermark processing method and device, electronic equipment and storage medium | |
CN113852774A (en) | Screen recording method and device | |
CN113805709A (en) | Information input method and device | |
CN113364915A (en) | Information display method and device and electronic equipment | |
CN113296661A (en) | Image processing method and device, electronic equipment and readable storage medium | |
JP2008067389A (en) | Mobile apparatus including template based flash image generation function and method for generating flash image using the same | |
CN111526420A (en) | Video rendering method, electronic device and 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 |