WO2020082870A1 - 即时视频显示方法、装置、终端设备及存储介质 - Google Patents

即时视频显示方法、装置、终端设备及存储介质 Download PDF

Info

Publication number
WO2020082870A1
WO2020082870A1 PCT/CN2019/101565 CN2019101565W WO2020082870A1 WO 2020082870 A1 WO2020082870 A1 WO 2020082870A1 CN 2019101565 W CN2019101565 W CN 2019101565W WO 2020082870 A1 WO2020082870 A1 WO 2020082870A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
target
image
display
instant
Prior art date
Application number
PCT/CN2019/101565
Other languages
English (en)
French (fr)
Inventor
徐楷
尹晨阳
苗星
Original Assignee
北京字节跳动网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2020082870A1 publication Critical patent/WO2020082870A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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

Definitions

  • Embodiments of the present disclosure relate to data technology, such as an instant video display method, device, terminal device, and storage medium.
  • the video displayed in the application or browser is generated according to the page material provided by the user.
  • the user can only determine whether the video meets the display requirements after the generated complete video, and if the user is not satisfied with the video, It is also necessary to manually design and develop video effects for the video and perform video generation operations again.
  • This method of multiple independent developments for video results in greatly reduced video development efficiency and increases the complexity of video development.
  • Embodiments of the present disclosure provide an instant video display method, device, terminal device, and storage medium.
  • an embodiment of the present disclosure provides an instant video display method, the method includes: obtaining a video element matching a target video to be generated, the video element including at least one image element; when a user input is detected In the case of an instant video display instruction, select a target instant video generation template matching the instant video display instruction from a pre-built instant video generation template library; fill the image element into the target instant video generation template At a position matching the image element, a target instant video generation file is generated, wherein the target instant video generation file includes a display time parameter of the image element in the target video; the image drawing component is called, and the The target instant video generation file draws the image element in real time on the display canvas according to the corresponding display time parameter, and displays the content drawn in the display canvas in real time.
  • an embodiment of the present disclosure also provides an instant video display device.
  • the device includes: a video element acquisition module configured to acquire a video element that matches a target video to be generated, and the video element includes multiple images Element; the target instant video generation template determination module is set to select the target instant video matching the instant video display instruction from the pre-built instant video generation template library when the instant video display instruction input by the user is detected Generate template; target instant video generation file generation module, set to fill each image element to the position of the target instant video generation template matching with each image element, generate target instant video generation file, wherein, The target instant video generation file includes the display time parameter of each image element in the target video; the instant video display module is set to call an image drawing component, generate a file according to the target instant video, and convert each The image elements are displayed according to the corresponding display time parameters Real-time drawing is performed on the canvas, and the content drawn on the display canvas is displayed in real time.
  • an embodiment of the present disclosure also provides a terminal device including: at least one processor; a memory configured to store at least one program; the at least one program is executed by the at least one processor, so that The at least one processor implements the instant video display method as described in the embodiments of the present disclosure.
  • an embodiment of the present disclosure also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, an instant video display method as described in an embodiment of the present disclosure is implemented.
  • FIG. 1 is a flowchart of an instant video display method provided by an embodiment of the present disclosure
  • FIG. 2 is a flowchart of an instant video display method provided by an embodiment of the present disclosure
  • FIG. 3 is a flowchart of an instant video display method provided by an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of an instant video display device provided by an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 1 is a flowchart of an instant video display method provided by an embodiment of the present disclosure. This embodiment can be applied to the situation of viewing the generated video effect in real time.
  • the method can be executed by an instant video display device, which can be used It is implemented in at least one of software and hardware, and the device may be configured in a terminal device, for example, a computer or the like. As shown in FIG. 1, the method includes steps S110 to S140.
  • step S110 a video element matching the target video to be generated is obtained, and the video element includes at least one image element.
  • the target video is the video that the user expects to generate.
  • the video element is a video material used to generate a video.
  • the video element can be considered as a set of elements, which includes at least one image element, and the image element is set to generate each frame of image in the video, which can include text, pictures, and graphics. At least one item.
  • step S120 when an instant video display instruction input by the user is detected, a target instant video generation template matching the instant video display instruction is selected from a pre-built instant video generation template library.
  • the instant video display instruction may refer to the video information of the target video input by the user according to requirements, so that the video information used to generate the target video can be obtained from the instant video display instruction.
  • At least one instant video generation template is stored in the pre-built instant video generation template library, and the instant video generation template is set to generate an instant video file together with video elements to display the instant video.
  • the instant video generation template may be a script file.
  • the target instant video generation template can be determined by: in the instant video generation template library, statistics of the heat (such as the number of uses) of each instant video generation template, and the effect information of the final generated video of each instant video generation template
  • the template information corresponding to the instant video generation template is stored in the instant video generation template library. Therefore, the video information in the instant video display instruction can be compared with the template information of the instant video generation template, and the instant video generation template corresponding to the template information with the highest similarity can be used as the target instant video generation template.
  • the video information is a target video with the highest popularity
  • the instant video generation template with the highest popularity is found from the instant video generation template library as the target instant video generation template.
  • step S130 the image element is filled into the target instant video generation template at a position matching the image element to generate a target instant video generation file, wherein the target instant video generation file includes the image The display time parameter of the element in the target video.
  • the target instant video generation template will be set with the location of at least one image element, used to fill in the image element used to generate the target video, or may be the link address used to fill the image element used to generate the target video.
  • the location sets the label information so as to fill the image element matching the label information into the corresponding location.
  • the label information may be the type information of the image element, for example, text or image.
  • the display time parameter may refer to the display time of the image element in the target video, or may be expressed by the frame number of the image displayed by the image element in the target video.
  • step S140 an image drawing component is called, a file is generated according to the target instant video, the image element is drawn on the display canvas in real time according to the corresponding display time parameter, and the content drawn on the displayed canvas is displayed in real time .
  • the image drawing component may refer to a component for drawing image elements on the display canvas, which is displayed instantly so that the user can quickly browse to the generated video effect.
  • the display canvas may refer to a background template for drawing by the image drawing component. The user can view the video effect of the target video to be generated by browsing the content drawn on the display canvas.
  • the image drawing component may draw the image element according to the display time corresponding to the image element on the display canvas, and continuously draw according to the corresponding display time period, so that the user can watch the video effect.
  • the image drawing component can draw for each frame of the target video. For example, when the image drawing component draws the fifth frame, all the image elements in the fifth frame image are acquired and drawn on the display canvas.
  • the image drawing component is a canvas Canvas component.
  • the Canvas component relies on HTML to perform dynamic drawing by executing JavaScript language code.
  • the Canvas component can be used to dynamically draw image elements, and can also be adjusted during the drawing process, thereby realizing the display of instant video.
  • the video element further includes at least one audio element
  • the target instant video generation file further includes: a playback time parameter of the audio element in the target video, The playback time parameter is associated with the display time parameter; when the image drawing component is called, a file is generated according to the target instant video, the image element is drawn in real time on the display canvas according to the corresponding display time parameter, and the While displaying the content drawn on the display canvas in real time, it also includes: calling an audio playback component to play the audio element according to the corresponding playback time parameter.
  • the audio element can refer to the audio clip;
  • the play time parameter can refer to the start time and end time of the audio clip;
  • the play time parameter is associated with the display time parameter, which can refer to both the audio play time and the drawing time of the image element
  • the audio playback time is the same as the drawing time of a certain image element.
  • audio playback will be added to the video.
  • the embodiments of the present disclosure determine the target instant video generation template according to the instant video display instruction input by the user, and combine the video elements to generate the target instant video generation file, and call the image drawing component to generate the file according to the target instant video generation file on the display canvas
  • the display time parameter draws the image elements in real time, thereby displaying the real-time video on the display canvas, avoiding the situation in the related art that the full video must be manually developed and generated to see the video effect.
  • the video preview data can be generated based on the preset template to achieve Previewing the video effect on the basis of not generating a complete video can avoid generating redundant video, reduce the labor cost of video generation, and improve the efficiency of video generation.
  • the method before selecting the target instant video generation template matching the instant video display instruction from the pre-built instant video generation template library, the method further includes: obtaining the target video element from the pre-built video element library , The target video element includes at least one of a new image element and a historically used image element; at least one target image dynamic effect file is obtained from a pre-built image dynamic effect library; A target image switching dynamic effect file; based on the target video element, the at least one target image dynamic effect file and the at least one target image switching dynamic effect file, an instant video generation template is generated and added to the instant video generation Template library.
  • the method of this embodiment may include steps S210 to S280.
  • a target video element is obtained from a pre-built video element library, the target video element including at least one of a new image element and a historical use image element.
  • the new image element is an artificial design provided by the user and is not in the video element library.
  • the historical use image element may be a historical image element used to synthesize the target video.
  • the image elements in the video element library can be filtered according to the number of times that the image element is used, and the image elements whose usage frequency is too low (such as below a set threshold) are removed from the video element library.
  • step S220 at least one target image dynamic effect file is obtained from a pre-built image dynamic effect library.
  • the image dynamic effect file is set to store rendering parameters of video elements in a frame of image, such as layout position information, size information, or angle information, etc., where the image dynamic effect file may be a script file.
  • step S230 at least one target image switching dynamic effect file is acquired from a pre-built image switching dynamic effect library.
  • the image switching dynamic effect file stores parameters describing the special effects of two consecutive frames of images when switching, where the image switching dynamic effect file may be a script file.
  • the selection method of the target image switching dynamic effect file may be the same as the above target image dynamic effect file, which is not limited in the embodiments of the present disclosure.
  • step S240 switch the dynamic effect file according to the target video element, the at least one target image dynamic effect file and the at least one target image, generate an instant video generation template, and add it to the instant video generation template library .
  • the rendering parameters of the video elements are stored in the target image dynamic effect file, and the video elements and the target image dynamic effect file can be arbitrarily combined to obtain all the video elements and corresponding rendering parameters that need to be displayed in each frame of image.
  • the target image switching dynamic effect file stores the special effect parameters when switching between two frames of images, and at least one target image switching dynamic effect file can be sorted, and the switching special effects are sequentially added between two consecutive frames of images according to the sorting result.
  • the dynamic effect file will be switched according to the target video element, at least one target image dynamic effect file and at least one target image, and combined to generate an instant video generation template, which includes all video elements to be displayed in each frame image and corresponding rendering parameters, and Special effect parameters for switching between every two consecutive frames of images.
  • the instant video generation template may be a new script file formed by splicing the script text in the script file.
  • the video element can be represented by the acquisition address.
  • step S250 a video element matching the target video to be generated is obtained, and the video element includes at least one image element.
  • target video For the meaning of the target video, video element, image element, target instant video generation template, target instant video generation file, display time parameter, and image drawing component in this embodiment, reference may be made to the description of the foregoing embodiment.
  • step S260 when an instant video display instruction input by the user is detected, a target instant video generation template matching the instant video display instruction is selected from a pre-built instant video generation template library.
  • step S270 the image element is filled into a position in the target instant video generation template that matches the image element to generate a target instant video generation file, wherein the target instant video generation file includes the image The display time parameter of the element in the target video.
  • the image element is a video element used to generate the target video
  • each filled position in the target instant video generation template is originally stored in the target video element used when constructing the instant video generation template, and all image elements can be Compare the target video elements at each position, fill in the image elements with high similarity (such as exceeding the set threshold) to the position, and remove the original target video element, if the target video element at a position If there is no similar image element, the target video element is retained at this position.
  • step S280 an image drawing component is called, a file is generated according to the target instant video, the image element is drawn in real time on the display canvas according to the corresponding display time parameter, and the content drawn in the display canvas is real-time display.
  • the method before acquiring the target video element from the pre-built video element library, the method further includes: acquiring historical video; extracting image dynamic effect information of each frame image from the historical video to generate an image dynamic effect file, Add to the image dynamic effect library; extract image switching dynamic effect information between any two consecutive images from the historical video, generate an image switching dynamic effect file, and add it to the image switching dynamic effect library.
  • the historical video may refer to the video posted on the page. You can extract image dynamic effect information and image switching dynamic effect information between any two consecutive images from the generated historical video script file, respectively corresponding to generate image dynamic effect files and image switching dynamic effect files, which can reduce the design to generate image dynamics The labor cost of the effect file and the dynamic effect file of the generated image, thereby improving the efficiency of video development.
  • it further includes: acquiring user information using the target instant video generation template, and the number of video selections of the target instant video generation template; counting the browsing data of the target video as the Browse data of the target template used by the target video; determine the usage rate of the target instant video generation template according to the user information, the number of selections of the generated video and the browse data of the target template used by the target video;
  • the usage rate of the instant video generation template in the instant video generation template library is to remove the instant video generation template whose usage rate is lower than a set threshold from the instant video generation template library.
  • the number of generated video selection times may refer to the number of times a target instant video generation template is selected to generate the target video.
  • the browsing data of the target video may refer to the number of times the target video is displayed on the page and other users browse the target video. Wherein, when other users browse the video for more than 10s, it is determined that other users browse the target video.
  • the embodiment of the present disclosure obtains the target video element, the target image dynamic effect file and the target image switching dynamic effect file through the preset database, and forms the instant video generation template in any combination, which is added to the instant video generation template library, thereby
  • Follow-up can draw and display instant video based on the instant video generation template in the instant video generation template library, reduce the manual design cost of the instant video generation template, improve the efficiency of the instant video generation template generation, and thus improve the drawing and display of the instant video generation template based on Video efficiency.
  • FIG. 3 is a flowchart of an instant video display method provided by an embodiment of the present disclosure. This embodiment is refined based on the multiple solutions in the above embodiments.
  • an image drawing component is called, a file is generated according to the target instant video, the image element is drawn in real time on the display canvas according to the corresponding display time parameter, and the content drawn in the display canvas is processed
  • the real-time display also includes: when it is determined that all the image elements matching a real-time display time parameter are completely drawn on the display canvas, generating an image data stream that matches the current display content of the display canvas; The image data stream is input into the video generation component, and when it is determined that there is an audio segment corresponding to the playback time parameter associated with the real-time display time parameter, the audio segment is input into the video generation component for video synthesis Until the image drawing component finishes drawing all the image elements to obtain the target video.
  • the method includes steps S310 to S360.
  • step S310 a video element matching the target video to be generated is obtained, where the video element includes a plurality of image elements and at least one audio element.
  • target video For the meaning of the target video, video element, image element, audio element, target instant video generation template, target instant video generation file, display time parameter, playback time parameter, image rendering component, and video generation component in this embodiment, refer to the above Description of examples.
  • step S320 when an instant video display instruction input by the user is detected, a target instant video generation template matching the instant video display instruction is selected from a pre-built instant video generation template library.
  • step S330 the image element is filled into a position in the target instant video generation template that matches the image element to generate a target instant video generation file, wherein the target instant video generation file includes the image
  • the display time parameter of the element in the target video and the playback time parameter of the audio element in the target video, the playback time parameter is associated with the display time parameter.
  • step S340 an image drawing component is called, a file is generated according to the target instant video, the image element is drawn on the display canvas in real time according to the corresponding display time parameter, and the content drawn on the display canvas is real-time
  • the audio playback component is called to play the audio element according to the corresponding playback time parameter.
  • step S350 when it is determined that all the image elements matching one real-time display time parameter are completely drawn on the display canvas, an image data stream matching the current display content of the display canvas is generated.
  • the real-time display time parameter can refer to the time parameter representing the current frame, in the case where all the image elements matching one real-time display time parameter are completely drawn in the display canvas, that is to say, the complete drawing of the display canvas belongs to the current frame In the case of all image elements, corresponding to the image data stream of the current frame is generated.
  • step S360 the generated image data stream is input to the video generation component, and when it is determined that there is an audio segment corresponding to the playback time parameter associated with the real-time display time parameter, the audio segment is input to all Video synthesis is performed in the video generation component until the image drawing component finishes drawing all the image elements to obtain the target video.
  • the image data stream is input to the video generation component to generate each frame of the image in the video; at the same time, the audio clip played at the current moment is also input to the video generation component to generate the sound effect in the video.
  • the image drawing component finishes drawing all the image elements that is, the image of all frames of the target video is completed
  • the image data streams of all the frames corresponding to the target video have all been transmitted to the video generation component, and at the same time, the audio corresponding to the target video
  • the clips are all transmitted to the video generation component, so that the video generation component can synthesize the target video based on the received image data stream and audio clips.
  • the video generation component may be a ffmpeg tool.
  • each frame of the drawn image is saved in a set picture format (such as the aforementioned png, jpg, or jpeg format).
  • a set picture format such as the aforementioned png, jpg, or jpeg format.
  • users can manually synthesize each frame of images and audio clips through the human-computer interaction interface of the video generation software.
  • the input of the image data stream into the video generation component includes: inputting the image data stream into the video generation component in real time through a pipeline.
  • the image data stream can be transmitted through a pipeline.
  • the pipeline is used for inter-process communication. It can be regarded as a buffer of a fixed size. Using the pipeline for data transmission can avoid generating a large number of temporary image files, thereby improving the efficiency of video generation.
  • the corresponding image data stream is generated and input to the video generation component, which can avoid Images to synthesize video, which leads to excessive storage space and saves storage space.
  • it can avoid generating a large number of images in the process of displaying instant video formed by multiple sets of video elements at the same time, resulting in the rendering efficiency of the image rendering component Decrease and decrease in image generation efficiency, thereby improving the efficiency of video synthesis.
  • FIG. 4 is a schematic structural diagram of an instant video display device according to an embodiment of the present disclosure. This embodiment can be applied to a situation where the generated video effect is viewed instantaneously.
  • the device may be implemented in at least one of software and hardware, and the device may be configured in the terminal device.
  • the apparatus may include: a video element acquisition module 410, a target instant video generation template determination module 420, a target instant video generation file generation module 430, and an instant video display module 440.
  • the video element acquisition module 410 is configured to acquire a video element that matches the target video to be generated, and the video element includes multiple image elements;
  • the target instant video generation template determination module 420 is configured to select a target instant video generation template that matches the instant video display instruction from the pre-built instant video generation template library when the instant video display instruction input by the user is detected;
  • the target instant video generation file generation module 430 is configured to fill each image element at a position of the target instant video generation template matching the each image element to generate a target instant video generation file, wherein the target The real-time video generation file includes the display time parameter of each image element in the target video;
  • the instant video display module 440 is set to call an image drawing component, generate a file according to the target instant video, draw each image element in real time on the display canvas according to the corresponding display time parameter, and store the display canvas The drawn content is displayed in real time.
  • the embodiments of the present disclosure determine the target instant video generation template according to the instant video display instruction input by the user, and combine the video elements to generate the target instant video generation file, and call the image drawing component to generate the file according to the target instant video generation file on the display canvas
  • the display time parameter draws the image elements in real time, thereby displaying the real-time video on the display canvas, avoiding the situation in the related art that the full video must be manually developed and generated to see the video effect.
  • the video preview data can be generated based on the preset template to achieve Previewing the video effect on the basis of not generating a complete video can avoid generating redundant video, reduce the labor cost of video generation, and improve the efficiency of video generation.
  • the instant video display device further includes: a target video element acquisition module configured to obtain a target video element from a pre-built video element library, the target video element including a new image element and a historical use image element At least one of the; target image dynamic effect file acquisition module, set to obtain at least one target image dynamic effect file from the pre-built image dynamic effect library; target image switching dynamic effect file acquisition module, set to switch from the pre-built image At least one target image switching dynamic effect file is obtained from the dynamic effect library; an instant video generation template generating module is set to switch the dynamic effect file according to the target video element, the at least one target image dynamic effect file and the at least one target image switching dynamic effect file To generate an instant video generation template and add it to the instant video generation template library.
  • a target video element acquisition module configured to obtain a target video element from a pre-built video element library, the target video element including a new image element and a historical use image element At least one of the
  • target image dynamic effect file acquisition module set to obtain at least one target image dynamic effect file from the pre-
  • the instant video display device further includes: a historical video acquisition module configured to acquire historical video; an image dynamic effect file generation module configured to extract image dynamic effect information of each frame of image from the historical video , Generate an image dynamic effect file and add it to the image dynamic effect library; an image switching dynamic effect file generation module is set to extract image switching dynamic effect information between any two consecutive images from the historical video to generate image switching A dynamic effect file is added to the image switching dynamic effect library.
  • the instant video display device further includes: a user information and an acquisition module for generating video selection times, configured to acquire user information using the target instant video generation template, and the target instant video generation template Generate video selection times; browsing data acquisition module, set to count the browsing data of the target video as the browsing data of the target template used by the target video; usage rate calculation module, set to based on the user information, the Generate the number of video selections and the browsing data of the target template used by the target video to determine the usage rate of the target instant video generation template; the instant video generation template library update module is set to generate each of the templates in the instant video template library The utilization rate of the instant video generation template is to remove the instant video generation template whose utilization rate is lower than the set threshold from the instant video generation template library.
  • the video element further includes at least one audio element
  • the target instant video generation file further includes: a playback time parameter of each audio element in the target video, the playback time parameter and The display time parameter is associated.
  • the instant video display device further includes: an audio playback component calling module, configured to call an audio playback component, and perform audio playback on the audio element according to the corresponding playback time parameter.
  • an audio playback component calling module configured to call an audio playback component, and perform audio playback on the audio element according to the corresponding playback time parameter.
  • the instant video display device further includes: an image data stream generation module configured to generate and generate all the image elements matching a real-time display time parameter when the display canvas is completely drawn An image data stream matching the current display content of the display canvas; a video synthesis module configured to input the generated image data stream into the video generation component, and when determining that there is a playback time parameter associated with the real-time display time parameter When corresponding audio clips are input, the audio clips are input into the video generation component for video synthesis until the image drawing component completes drawing all the image elements to obtain the target video.
  • the image drawing component is a Canvas component.
  • the instant video display device provided by the embodiment of the present disclosure belongs to the same inventive concept as the above instant video display method, and the technical details that are not described in detail in the embodiments of the present disclosure can be referred to the above instant video display method.
  • FIG. 5 shows a schematic structural diagram of an electronic device (eg, client or server) 500 suitable for implementing the embodiment of the present disclosure.
  • Terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant (PDA), tablet computers (Portable Android Device, PAD), portable multimedia players (Portable Media Player, PMP), mobile terminals such as in-vehicle terminals (such as in-vehicle navigation terminals), and fixed terminals such as digital television (TV), desktop computers, and so on.
  • PDA Personal Digital Assistant
  • PMP portable multimedia players
  • mobile terminals such as in-vehicle terminals (such as in-vehicle navigation terminals)
  • fixed terminals such as digital television (TV), desktop computers, and so on.
  • the electronic device shown in FIG. 5 is only an example, and should not bring any limitation to the function and use range of the embodiments of the present disclosure.
  • the electronic device 500 may include a processing device (such as a central processing unit, a graphics processor, etc.) 501, which may be stored in a read-only memory (Read-Only Memory, ROM) 502 program or from a storage 508 loads the program in the random access memory (Random Access Memory, RAM) 503 to perform various appropriate actions and processes.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • various programs and data necessary for the operation of the electronic device 500 are also stored.
  • the processing device 501, ROM 502, and RAM 503 are connected to each other via a bus 504.
  • An input / output (Input / Output, I / O) interface 505 is also connected to the bus 504.
  • the following devices can be connected to the I / O interface 505: including an input device 506 such as a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc .; including, for example, a liquid crystal display (Liquid Crystal Display, LCD) , An output device 507 of a speaker, a vibrator, etc .; a storage device 508 including, for example, a magnetic tape, a hard disk, etc .; and a communication device 509.
  • the communication device 509 may allow the electronic device 500 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 5 shows an electronic device 500 having various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or provided instead.
  • the process described above with reference to the flowchart may be implemented as a computer software program.
  • embodiments of the present disclosure include a computer program product that includes a computer program carried on a computer-readable medium, the computer program containing program code for performing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 509, or from the storage device 508, or from the ROM 502.
  • the processing device 501 When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiments of the present disclosure are executed.
  • Embodiments of the present disclosure also provide a computer-readable storage medium.
  • the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above.
  • Computer-readable storage media may include, but are not limited to: electrical connections with at least one wire, portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable only Read memory (Erasable Programmable Read-Only Memory, EPROM or flash memory), optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic storage device, or any suitable combination.
  • the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • the computer-readable signal medium may include a data signal that is propagated in baseband or as part of a carrier wave, in which computer-readable program code is carried.
  • This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • the computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable signal medium may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: electric wires, optical cables, radio frequency (Radio Frequency, RF), etc., or any suitable combination of the foregoing.
  • the computer-readable medium may be included in the electronic device; or it may exist alone without being assembled into the electronic device.
  • the computer-readable medium carries at least one program, and when the at least one program is executed by the electronic device, the electronic device is caused to: obtain a video element matching the target video to be generated, the video element including at least one An image element; when an instant video display instruction input by a user is detected, a target instant video generation template matching the instant video display instruction is selected from a pre-built instant video generation template library; the image element is filled in Generate a target instant video generation file at a position in the target instant video generation template that matches the image element, wherein the target instant video generation file includes a display time parameter of the image element in the target video; call The image drawing component generates a file according to the target instant video, draws the image element in real time on the display canvas according to the corresponding display time parameter, and displays the content drawn in the display canvas in real time.
  • the computer program code for performing the operations of the present disclosure can be written in one or more programming languages or a combination thereof.
  • the above programming languages include object-oriented programming languages such as Java, Smalltalk, C ++, and also include conventional Procedural programming language-such as "C" language or similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as an independent software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (Local Area Network, LAN) or wide area network (Wide Area Network, WAN), or it can be connected to an external computer ( (For example, using an Internet service provider to connect through the Internet).
  • LAN Local Area Network
  • WAN Wide Area Network
  • each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, program segment, or a part of code contains at least one Execute instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession can actually be executed in parallel, and sometimes they can also be executed in reverse order, depending on the functions involved.
  • each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts can be implemented with dedicated hardware-based systems that perform specified functions or operations Or, it can be realized by a combination of dedicated hardware and computer instructions.
  • the modules involved in the embodiments of the present disclosure may be implemented in software or hardware.
  • the name of the module does not constitute a limitation on the module itself under certain circumstances.
  • the video element acquisition module can also be described as "acquiring a video element that matches the target video to be generated.
  • the video element includes Module of multiple image elements ".

Abstract

本公开公开了一种即时视频显示方法、装置、终端设备及存储介质。该方法包括:获取与待生成的目标视频匹配的视频元素,所述视频元素中包括至少一个图像元素;在检测到用户输入的即时视频显示指令的情况下,从预先构建的即时视频生成模板库中选择与所述即时视频显示指令中匹配的目标即时视频生成模板;将所述图像元素填充到所述目标即时视频生成模板中与所述图像元素匹配的位置处,生成目标即时视频生成文件;调用图像绘制组件,根据所述目标即时视频生成文件,将所述图像元素按照对应的显示时间参数在显示画布中进行实时绘制,并将所述显示画布中绘制的内容进行实时显示。

Description

即时视频显示方法、装置、终端设备及存储介质
本公开要求在2018年10月25日提交中国专利局、申请号为201811250337.2的中国专利申请的优先权,该公开的全部内容通过引用结合在本公开中。
技术领域
本公开实施例涉及数据技术,例如一种即时视频显示方法、装置、终端设备及存储介质。
背景技术
随着互联网技术和终端设备的快速发展,各种终端设备例如手机和平板电脑等已经成为了人们工作和中不可或缺的一部分,而且随着终端设备的日益普及,针对终端设备开发的应用程序(Application,APP)技术也快速增长。
目前,根据用户提供的页面素材生成在应用程序或者浏览器端显示的视频,用户只能通过生成的完整视频之后,才能判断该视频是否符合展示需求,并在用户不满意该视频的情况下,还需要重新为该视频人工设计并开发视频效果,重新执行视频生成操作。这种为视频进行多次独立开发的方法导致视频的开发效率大大降低,增加视频开发的复杂度。
发明内容
本公开实施例提供一种即时视频显示方法、装置、终端设备及存储介质。
第一方面,本公开实施例提供了一种即时视频显示方法,该方法包括:获取与待生成的目标视频匹配的视频元素,所述视频元素中包括至少一个图像元素;在检测到用户输入的即时视频显示指令的情况下,从预先构建的即时视频生成模板库中选择与所述即时视频显示指令中匹配的目标即时视频生成模板;将所述图像元素填充到所述目标即时视频生成模板中与所述图像元素匹配的位置处,生成目标即时视频生成文件,其中,所述目标即时视频生成文件包括所述图像元素在所述目标视频中的显示时间参数;调用图像绘制组件,根据所述目标即时视频生成文件,将所述图像元素按照对应的显示时间参数在显示画布中进行实时绘制,并将所述显示画布中绘制的内容进行实时显示。
第二方面,本公开实施例还提供了一种即时视频显示装置,该装置包括:视频元素获取模块,设置为获取与待生成的目标视频匹配的视频元素,所述视频元素中包括多个图像元素;目标即时视频生成模板确定模块,设置为在检测到用户输入的即时视频显示指令的情况下,从预先构建的即时视频生成模板库 中选择与所述即时视频显示指令中匹配的目标即时视频生成模板;目标即时视频生成文件生成模块,设置为将每个图像元素填充到所述目标即时视频生成模板的与所述每个图像元素匹配的位置处,生成目标即时视频生成文件,其中,所述目标即时视频生成文件包括所述每个图像元素在所述目标视频中的显示时间参数;即时视频显示模块,设置为调用图像绘制组件,根据所述目标即时视频生成文件,将所述每个图像元素按照对应的显示时间参数在显示画布中进行实时绘制,并将所述显示画布中绘制的内容进行实时显示。
第三方面,本公开实施例还提供了一种终端设备,该终端设备包括:至少一个处理器;存储器,设置为存储至少一个程序;所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如本公开实施例所述的即时视频显示方法。
第四方面,本公开实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现如本公开实施例所述的即时视频显示方法。
附图说明
图1是本公开一实施例提供的一种即时视频显示方法的流程图;
图2是本公开一实施例提供的一种即时视频显示方法的流程图;
图3是本公开一实施例提供的一种即时视频显示方法的流程图;
图4是本公开一实施例提供的一种即时视频显示装置的结构示意图;
图5是本公开一实施例提供的一种终端设备的结构示意图。
具体实施方式
下面结合附图和实施例对本公开作详细说明。可以理解的是,此处所描述的实施例仅仅用于解释本公开,而非对本公开的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本公开相关的部分而非全部结构。
图1为本公开一实施例提供的一种即时视频显示方法的流程图,本实施例可适用于即时观看生成的视频效果的情况,该方法可以由即时视频显示装置来执行,该装置可以采用软件和硬件中至少之一的方式实现,该装置可以配置于终端设备中,例如典型的是计算机等。如图1所示,该方法包括步骤S110至步骤S140。
在步骤S110中,获取与待生成的目标视频匹配的视频元素,所述视频元素中包括至少一个图像元素。
其中,目标视频为用户期望生成的视频。视频元素为用于生成视频的视频素材,视频元素可被认为是一个元素集合,该集合中包括至少一个图像元素,图像元素设置为生成视频中的每帧图像,可以包括文本、图片和图形等中的至 少一项。
在步骤S120中,在检测到用户输入的即时视频显示指令时,从预先构建的即时视频生成模板库中选择与所述即时视频显示指令中匹配的目标即时视频生成模板。
其中,即时视频显示指令可以是指用户根据需求输入的目标视频的视频信息,从而可以从即时视频显示指令中获取用于生成目标视频的视频信息。预先构建的即时视频生成模板库中存有至少一个即时视频生成模板,即时视频生成模板设置为与视频元素共同生成即时视频文件,以显示即时视频。示例性的,即时视频生成模板可以是脚本文件。
目标即时视频生成模板的确定方式可以是:在即时视频生成模板库中,统计每个即时视频生成模板的热度(例如使用次数),并将每个即时视频生成模板的最终生成的视频的效果信息作为对应即时视频生成模板的模板信息,存入即时视频生成模板库中。由此可以将即时视频显示指令中的视频信息与即时视频生成模板的模板信息进行比对,将相似度最高的模板信息对应的即时视频生成模板作为目标即时视频生成模板。
示例性的,该视频信息为生成热度最高的目标视频,从即时视频生成模板库中查找热度最高的即时视频生成模板作为目标即时视频生成模板。
在步骤S130中,将所述图像元素填充到所述目标即时视频生成模板中与所述图像元素匹配的位置处,生成目标即时视频生成文件,其中,所述目标即时视频生成文件包括所述图像元素在所述目标视频中的显示时间参数。
其中,目标即时视频生成模板中会设置有至少一个图像元素的位置,用于填充生成目标视频的图像元素,也可以是用于填充生成目标视频的图像元素的链接地址,同时可以通过为每个位置设置标签信息从而将与标签信息匹配的图像元素填充到相应的位置处,标签信息可以为图像元素的类型信息,例如,文本或图像等。
显示时间参数可以是指图像元素在目标视频中的显示时刻,也可以用图像元素展示的图像在目标视频中的帧序号来表示。
在步骤S140中,调用图像绘制组件,根据所述目标即时视频生成文件,将所述图像元素按照对应的显示时间参数在显示画布中进行实时绘制,并将所显示画布中绘制的内容进行实时显示。
在一实施例中,图像绘制组件可以是指用于在显示画布中绘制图像元素的组件,即时显示,以使用户迅速浏览到生成的视频效果。显示画布可以是指图像绘制组件进行绘制的背景模板,用户通过浏览在显示画布上绘制的内容,实现观看待生成的目标视频的视频效果。
在本实施例中,图像绘制组件可以在显示画布中,按照图像元素对应的显 示时刻绘制图像元素,并按照对应的显示时间段内,不断绘制,以使用户可以观看到视频效果。
其中,图像绘制组件可以针对目标视频中每帧图像进行绘制,例如,图像绘制组件绘制第5帧时,获取第5帧图像中的全部图像元素,并在显示画布中进行绘制。
在一实施例中,所述图像绘制组件为画布Canvas组件。Canvas组件依赖于HTML,通过执行JavaScript语言的代码进行动态绘图。通过Canvas组件可以将图像元素进行动态绘制,同时还可以在绘制过程中进行调整,从而实现显示即时视频。
此外,在采用Canvas组件绘制全部视频元素的情况下,可以以png、jpg或jpeg等格式保存绘制的每帧图像。从而后续根据保存的每帧图像生成目标视频。
在上述实施例的基础上,在一实施例中,所述视频元素还包括至少一个音频元素;所述目标即时视频生成文件还包括:所述音频元素在所述目标视频中的播放时间参数,所述播放时间参数与所述显示时间参数关联;在调用图像绘制组件,根据所述目标即时视频生成文件,将所述图像元素按照对应的显示时间参数在显示画布中进行实时绘制,并将所述显示画布中绘制的内容进行实时显示的同时,还包括:调用音频播放组件,将所述音频元素按照对应的播放时间参数进行音频播放。
其中,音频元素可以是是指音频片段;播放时间参数可以是指音频片段播放的开始时刻和结束时刻;播放时间参数与显示时间参数关联,可以是指音频的播放时刻和图像元素的绘制时刻均在同一个时间表中,例如,音频的播放时刻和某个图像元素的绘制时刻相同。
一般视频中会添加音频播放,可以通过设置音频元素,实现在视频中增加音乐效果。例如,通过设置音频播放组件,同时设置音频播放的时刻和时长,对音频元素进行播放。通过增加音频元素,提高视频的丰富度。
本公开实施例通过根据用户输入的即时视频显示指令确定目标即时视频生成模板,并结合视频元素,生成目标即时视频生成文件,并通过调用图像绘制组件,根据目标即时视频生成文件在显示画布中按照显示时间参数实时绘制图像元素,从而在显示画布上展示即时视频,避免了了相关技术中必须通过人工开发并生成完整视频才能看到视频效果的情况,可以基于预设模板生成视频预览数据,实现在未生成完整视频的基础上预览视频效果,可以避免生成冗余视频,减少视频生成的人工成本,提高视频生成效率。
图2为本公开一实施例提供的一种即时视频显示方法的流程图。本实施例以上述实施例中多个可选方案为基础进行细化。在本实施例中,在从预先构建 的即时视频生成模板库中选择与所述即时视频显示指令中匹配的目标即时视频生成模板之前,还包括:从预先构建的视频元素库中获取目标视频元素,所述目标视频元素包括新图像元素和历史使用图像元素中至少之一;从预先构建的图像动态效果库中获取至少一个目标图像动态效果文件;从预先构建的图像切换动态效果库中获取至少一个目标图像切换动态效果文件;根据所述目标视频元素、所述至少一个目标图像动态效果文件和所述至少一个目标图像切换动态效果文件,生成即时视频生成模板,并添加到所述即时视频生成模板库中。
相应的,本实施例的方法可以包括步骤S210至步骤S280。
在步骤S210中,从预先构建的视频元素库中获取目标视频元素,所述目标视频元素包括新图像元素和历史使用图像元素中至少之一。
其中,新图像元素为用户提供的人工设计且并未在视频元素库中的图像元素。历史使用图像元素可以是用于合成目标视频的历史图像元素。此外,视频元素库中的图像元素可以根据图像元素被使用的次数进行筛选,将使用次数过低(如低于设定阈值)的图像元素从视频元素库中移除。
在步骤S220中,从预先构建的图像动态效果库中获取至少一个目标图像动态效果文件。
图像动态效果文件设置为存储一帧图像中视频元素的渲染参数,例如布局位置信息、尺寸信息或角度信息等,其中,图像动态效果文件可以是脚本文件。
可以从预先构建的图像动态效果库中对图像动态效果文件进行聚类,从一类中提取至少一个目标图像动态效果文件;或者可以是随机选择至少一个目标图像动态效果文件,或者还可以是其他方式,对此,本公开实施例不作限制。目标图像动态效果文件的数量可以由用户输入确定。
在步骤S230中,从预先构建的图像切换动态效果库中获取至少一个目标图像切换动态效果文件。
图像切换动态效果文件中存储用于描述连续两帧图像在切换时的特效的参数,其中,图像切换动态效果文件可以是脚本文件。
目标图像切换动态效果文件的选择方式可以与上述目标图像动态效果文件相同,对此,本公开实施例不做限制。
在步骤S240中,根据所述目标视频元素、所述至少一个目标图像动态效果文件和所述至少一个目标图像切换动态效果文件,生成即时视频生成模板,并添加到所述即时视频生成模板库中。
其中,目标图像动态效果文件中存储有视频元素的渲染参数,可以将视频元素与目标图像动态效果文件进行任意组合,得到每帧图像中需要显示的全部视频元素以及对应的渲染参数。
目标图像切换动态效果文件中存储有两帧图像切换时的特效参数,可以将 至少一个目标图像切换动态效果文件进行排序,按照排序结果依次为连续两帧图像之间添加切换特效。
将根据目标视频元素、至少一个目标图像动态效果文件和至少一个目标图像切换动态效果文件,组合生成即时视频生成模板,该模板包括每帧图像中需要显示的全部视频元素和对应的渲染参数,以及每连续两帧图像之间进行切换的特效参数。若目标图像动态效果文件和目标图像切换动态效果文件均为脚本文件时,则即时视频生成模板可以是将脚本文件中的脚本文本进行拼接形成的新的脚本文件。其中,视频元素可以用获取地址表示。
由此,从预先构建的数据库中选择视频元素、图像动态效果文件和图像切换动态效果文件组合生成即时视频生成模板,可以实现在图像绘制组件绘制时,按照图像帧的顺序依次调用目标图像动态效果文件和目标图像切换动态效果文件,以显示存在动态效果的画面。
在步骤S250中,获取与待生成的目标视频匹配的视频元素,所述视频元素中包括至少一个图像元素。
本实施例中的目标视频、视频元素、图像元素、目标即时视频生成模板、目标即时视频生成文件、显示时间参数和图像绘制组件等的含义可以参照上述实施例的描述。
在步骤S260中,在检测到用户输入的即时视频显示指令时,从预先构建的即时视频生成模板库中选择与所述即时视频显示指令中匹配的目标即时视频生成模板。
在步骤S270中,将所述图像元素填充到所述目标即时视频生成模板中与所述图像元素匹配的位置处,生成目标即时视频生成文件,其中,所述目标即时视频生成文件包括所述图像元素在所述目标视频中的显示时间参数。
其中,所述图像元素为用于生成目标视频的视频元素,目标即时视频生成模板中的每个填充位置处原本存放在构建即时视频生成模板时所使用目标视频元素,可以将所有图像元素分别和每个位置处的目标视频元素进行比对,将相似度高(如超过设定阈值)的图像元素填充到该位置处,并移除原有的目标视频元素,若一个位置处的目标视频元素不存在与其相似的图像元素,则该位置处保留该目标视频元素。
在步骤S280中,调用图像绘制组件,根据所述目标即时视频生成文件,将所述图像元素按照对应的显示时间参数在显示画布中进行实时绘制,并将所述显示画布中绘制的内容进行实时显示。
在一实施例中,在从预先构建的视频元素库中获取目标视频元素之前,还包括:获取历史视频;从所述历史视频中提取每帧图像的图像动态效果信息,生成图像动态效果文件,添加入所述图像动态效果库;从所述历史视频中提取 任意两个连续图像之间的图像切换动态效果信息,生成图像切换动态效果文件,添加入所述图像切换动态效果库。
其中,历史视频可以是指发布在页面中的视频。可以从生成的历史视频的脚本文件中提取图像动态效果信息以及任意两个连续图像之间的图像切换动态效果信息,分别对应生成图像动态效果文件和图像切换动态效果文件,可以减少设计生成图像动态效果文件和生成图像动态效果文件的人工成本,从而提高视频开发的效率。
在上述实施例的基础上,还包括:获取使用所述目标即时视频生成模板的用户信息,以及所述目标即时视频生成模板的生成视频选择次数;统计所述目标视频的浏览数据,作为所述目标视频采用的目标模板的浏览数据;根据所述用户信息、所述生成视频选择次数和所述目标视频采用的目标模板的浏览数据,确定所述目标即时视频生成模板的使用率;根据所述即时视频生成模板库中所述即时视频生成模板的使用率,将使用率低于设定阈值的即时视频生成模板从所述即时视频生成模板库中移除。
在即时视频生成模板库中存有大量的即时视频生成模板,可以将生成的目标视频的视频效果不好的即时视频生成模板从库中移除,其中,用户信息可以是指选择采用该目标即时视频生成模板的用户的性别、年龄和兴趣等信息中的至少一项。生成视频选择次数可以是指一个目标即时视频生成模板被选择生成目标视频的次数。目标视频的浏览数据可以是指目标视频显示在页面中,其他用户浏览该目标视频的次数。其中,在其他用户浏览该视频的时间超过10s的情况下,确定其他用户浏览该目标视频。
可以为用户信息、生成视频选择次数和目标视频采用的目标模板的浏览数据分别设置权重,并将用户信息、生成视频选择次数和目标视频采用的目标模板的浏览数据转换为可以计算的数值,根据所述权重,以及上述数值,计算使用率。
在一个例子中,针对女性用户计算目标即时视频生成模板的使用率,若即时视频生成模板的用户信息为男,生成视频选择次数为10次,目标视频采用的目标模板的浏览数据为200次,则对应转换为可以计算的数值分别为0、10、20,同时权重值分别为0.8、0.1、0.1,则使用率为0*0.8+10*0.1+20*0.1=3。
通过将使用率低即时视频生成模板从库中移除,释放存储资源。
本公开实施例通过预设数据库,并从该数据库中分别获取目标视频元素、目标图像动态效果文件和目标图像切换动态效果文件,任意组合形成即时视频生成模板,添加到即时视频生成模板库,从而后续可以基于即时视频生成模板库中的即时视频生成模板绘制并显示即时视频,减少即时视频生成模板的人工设计成本,提高即时视频生成模板生成的效率,从而提高基于即时视频生成模 板绘制并显示即时视频的效率。
图3为本公开一实施例提供的一种即时视频显示方法的流程图。本实施例以上述实施例中多个方案为基础进行细化。在本实施例中在调用图像绘制组件,根据所述目标即时视频生成文件,将所述图像元素按照对应的显示时间参数在显示画布中进行实时绘制,并将所述显示画布中绘制的内容进行实时显示的同时,还包括:在确定所述显示画布中完整绘制有与一个实时显示时间参数匹配的全部图像元素时,生成与所述显示画布的当前显示内容匹配的图像数据流;将生成的图像数据流输入至所述视频生成组件中,并在确定存在与所述实时显示时间参数关联的播放时间参数对应的音频片段时,将所述音频片段输入至所述视频生成组件中进行视频合成,直至所述图像绘制组件完成对全部图像元素的绘制,以得到所述目标视频。该方法包括步骤S310至步骤S360。
在步骤S310中,获取与待生成的目标视频匹配的视频元素,所述视频元素中包括多个图像元素和至少一个音频元素。
本实施例中的目标视频、视频元素、图像元素、音频元素、目标即时视频生成模板、目标即时视频生成文件、显示时间参数、播放时间参数、图像绘制组件和视频生成组件等的含义可以参照上述实施例的描述。
在步骤S320中,在检测到用户输入的即时视频显示指令时,从预先构建的即时视频生成模板库中选择与所述即时视频显示指令中匹配的目标即时视频生成模板。
在步骤S330中,将所述图像元素填充到所述目标即时视频生成模板中与所述图像元素匹配的位置处,生成目标即时视频生成文件,其中,所述目标即时视频生成文件包括所述图像元素在所述目标视频中的显示时间参数和所述音频元素在所述目标视频中的播放时间参数,所述播放时间参数与所述显示时间参数关联。
在步骤S340中,调用图像绘制组件,根据所述目标即时视频生成文件,将所述图像元素按照对应的显示时间参数在显示画布中进行实时绘制,并将所述显示画布中绘制的内容进行实时显示,同时,调用音频播放组件,将所述音频元素按照对应的播放时间参数进行音频播放。
在步骤S350中,在确定所述显示画布中完整绘制有与一个实时显示时间参数匹配的全部图像元素时,生成与所述显示画布的当前显示内容匹配的图像数据流。
其中,实时显示时间参数可以是指表示当前帧的时间参数,在显示画布中完整绘制有与一个实时显示时间参数匹配的全部图像元素的情况下,也就是说,在显示画布完整绘制属于当前帧的全部图像元素的情况下,对应生成当前帧的 图像数据流。
在步骤S360中,将生成的图像数据流输入至所述视频生成组件中,并在确定存在与所述实时显示时间参数关联的播放时间参数对应的音频片段时,将所述音频片段输入至所述视频生成组件中进行视频合成,直至所述图像绘制组件完成对全部图像元素的绘制,以得到所述目标视频。
其中,将图像数据流输入到视频生成组件,生成视频中的每帧图像;同时将当前时刻播放的音频片段也输入到视频生成组件中,生成视频中的音效。当图像绘制组件完成对全部图像元素的绘制,也即完成目标视频所有帧的图像的绘制,目标视频对应的所有帧的图像数据流已全部传输至视频生成组件中,同时,目标视频对应的音频片段也全部传输至视频生成组件中,从而,视频生成组件可以基于接收的图像数据流和音频片段合成目标视频。
其中,视频生成组件可以是ffmpeg工具。
在一个例子中,调用图像绘制组件进行绘制的过程中会以设定图片格式(如前述的png、jpg或jpeg等格式)保存绘制的每帧图像。将保存的每帧图像和音频片段均输入到视频生成组件中,以生成目标视频。或者用户可以通过视频生成软件的人机交互界面对每帧图像和音频片段进行人工合成。
在一实施例中,所述图像数据流输入至所述视频生成组件中,包括:通过管道将所述图像数据流实时输入到视频生成组件中。
其中,图像数据流可以通过管道进行传输,管道用于进程间通信,可以被认为是一个固定大小的缓冲区,采用管道进行数据传输,可以避免生成大量的临时图像文件,从而提高视频生成效率。
本公开实施例通过在图像绘制组件对视频元素进行绘制的过程中,并在每完成一帧图像中全部图像元素的绘制时,生成对应的图像数据流输入至视频生成组件,可以避免根据生成大量的图像来合成视频,导致占用存储空间过多的情况,实现节省存储空间,同时,可以避免在同时展示多组视频元素形成的即时视频的过程中生成大量的图像,导致图像绘制组件的绘制效率下降以及图像生成效率下降的情况,从而提高视频合成的效率。
图4为本公开一实施例提供的一种即时视频显示装置的结构示意图,本实施例可适用于即时观看生成的视频效果的情况。该装置可以采用软件和硬件中至少之一的方式实现,该装置可以配置于终端设备中。如图4所示,该装置可以包括:视频元素获取模块410、目标即时视频生成模板确定模块420、目标即时视频生成文件生成模块430和即时视频显示模块440。
视频元素获取模块410,设置为获取与待生成的目标视频匹配的视频元素,所述视频元素中包括多个图像元素;
目标即时视频生成模板确定模块420,设置为在检测到用户输入的即时视频显示指令时,从预先构建的即时视频生成模板库中选择与所述即时视频显示指令中匹配的目标即时视频生成模板;
目标即时视频生成文件生成模块430,设置为将每个图像元素填充到所述目标即时视频生成模板的与所述每个图像元素匹配的位置处,生成目标即时视频生成文件,其中,所述目标即时视频生成文件包括所述每个图像元素在所述目标视频中的显示时间参数;
即时视频显示模块440,设置为调用图像绘制组件,根据所述目标即时视频生成文件,将所述每个图像元素按照对应的显示时间参数在显示画布中进行实时绘制,并将所述显示画布中绘制的内容进行实时显示。
本公开实施例通过根据用户输入的即时视频显示指令确定目标即时视频生成模板,并结合视频元素,生成目标即时视频生成文件,并通过调用图像绘制组件,根据目标即时视频生成文件在显示画布中按照显示时间参数实时绘制图像元素,从而在显示画布上展示即时视频,避免了了相关技术中必须通过人工开发并生成完整视频才能看到视频效果的情况,可以基于预设模板生成视频预览数据,实现在未生成完整视频的基础上预览视频效果,可以避免生成冗余视频,减少视频生成的人工成本,提高视频生成效率。
在一实施例中,所述即时视频显示装置还包括:目标视频元素获取模块,设置为从预先构建的视频元素库中获取目标视频元素,所述目标视频元素包括新图像元素和历史使用图像元素中至少之一;目标图像动态效果文件获取模块,设置为从预先构建的图像动态效果库中获取至少一个目标图像动态效果文件;目标图像切换动态效果文件获取模块,设置为从预先构建的图像切换动态效果库中获取至少一个目标图像切换动态效果文件;即时视频生成模板生成模块,设置为根据所述目标视频元素、所述至少一个目标图像动态效果文件和所述至少一个目标图像切换动态效果文件,生成即时视频生成模板,并添加到所述即时视频生成模板库中。
在一实施例中,所述即时视频显示装置还包括:历史视频获取模块,设置为获取历史视频;图像动态效果文件生成模块,设置为从所述历史视频中提取每帧图像的图像动态效果信息,生成图像动态效果文件,添加入所述图像动态效果库;图像切换动态效果文件生成模块,设置为从所述历史视频中提取任意两个连续图像之间的图像切换动态效果信息,生成图像切换动态效果文件,添加入所述图像切换动态效果库。
在一实施例中,所述即时视频显示装置,还包括:用户信息和生成视频选择次数获取模块,设置为获取使用所述目标即时视频生成模板的用户信息,以及所述目标即时视频生成模板的生成视频选择次数;浏览数据获取模块,设置 为统计所述目标视频的浏览数据,作为所述目标视频采用的目标模板的浏览数据;使用率率计算模块,设置为根据所述用户信息、所述生成视频选择次数和所述目标视频采用的目标模板的浏览数据,确定目标即时视频生成模板的使用率;即时视频生成模板库更新模块,设置为根据所述即时视频生成模板库中每个所述即时视频生成模板的使用率,将使用率低于设定阈值的即时视频生成模板从所述即时视频生成模板库中移除。
在一实施例中,所述视频元素还包括至少一个音频元素;所述目标即时视频生成文件还包括:每个所述音频元素在所述目标视频中的播放时间参数,所述播放时间参数与所述显示时间参数关联。
在一实施例中,所述即时视频显示装置还包括:音频播放组件调用模块,设置为调用音频播放组件,将所述音频元素按照对应的播放时间参数进行音频播放。
在一实施例中,所述即时视频显示装置,还包括:图像数据流生成模块,设置为在确定所述显示画布中完整绘制有与一个实时显示时间参数匹配的全部图像元素时,生成与所述显示画布的当前显示内容匹配的图像数据流;视频合成模块,设置为将生成的图像数据流输入至所述视频生成组件中,并在确定存在与所述实时显示时间参数关联的播放时间参数对应的音频片段时,将所述音频片段输入至所述视频生成组件中进行视频合成,直至所述图像绘制组件完成对全部图像元素的绘制,以得到所述目标视频。
在一实施例中,所述图像绘制组件为Canvas组件。
本公开实施例提供的即时视频显示装置,与上述即时视频显示方法属于同一发明构思,未在本公开实施例中详尽描述的技术细节可参见上述即时视频显示方法。
本公开实施例提供了一种终端设备,下面参考图5,其示出了适于用来实现本公开实施例的电子设备(例如客户端或服务器端)500的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,PDA)、平板电脑(Portable Android Device,PAD)、便携式多媒体播放器(Portable Media Player,PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字电视(Television,TV)、台式计算机等等的固定终端。图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图5所示,电子设备500可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(Read-Only Memory,ROM)502中的程序或者从存储装置508加载到随机访问存储器(Random Access Memory, RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有电子设备500操作所需的各种程序和数据。处理装置501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(Input/Output,I/O)接口505也连接至总线504。
通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(Liquid Crystal Display,LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备500与其他设备进行无线或有线通信以交换数据。虽然图5示出了具有各种装置的电子设备500,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM 502被安装。在该计算机程序被处理装置501执行时,执行本公开实施例的方法中限定的上述功能。
本公开实施例还提供了一种计算机可读存储介质,计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有至少一个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程 序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有至少一个程序,在上述至少一个程序被该电子设备执行的情况下,使得该电子设备:获取与待生成的目标视频匹配的视频元素,所述视频元素中包括至少一个图像元素;在检测到用户输入的即时视频显示指令时,从预先构建的即时视频生成模板库中选择与所述即时视频显示指令中匹配的目标即时视频生成模板;将所述图像元素填充到所述目标即时视频生成模板中与所述图像元素匹配的位置处,生成目标即时视频生成文件,其中,所述目标即时视频生成文件包括所述图像元素在所述目标视频中的显示时间参数;调用图像绘制组件,根据所述目标即时视频生成文件,将所述图像元素按照对应的显示时间参数在显示画布中进行实时绘制,并将所述显示画布中绘制的内容进行实时显示。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(Local Area Network,LAN)或广域网(Wide Area Network,WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开多种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含至少一个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
本公开实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬 件的方式来实现。其中,模块的名称在某种情况下并不构成对该模块本身的限定,例如,视频元素获取模块还可以被描述为“获取与待生成的目标视频匹配的视频元素,所述视频元素中包括多个图像元素的模块”。

Claims (16)

  1. 一种即时视频显示方法,包括:
    获取与待生成的目标视频匹配的视频元素,所述视频元素中包括至少一个图像元素;
    在检测到用户输入的即时视频显示指令的情况下,从预先构建的即时视频生成模板库中选择与所述即时视频显示指令匹配的目标即时视频生成模板;
    将所述图像元素填充到所述目标即时视频生成模板中与所述图像元素匹配的位置处,生成目标即时视频生成文件,其中,所述目标即时视频生成文件包括所述图像元素在所述目标视频中的显示时间参数;
    调用图像绘制组件,根据所述目标即时视频生成文件,将所述图像元素按照对应的显示时间参数在显示画布中进行实时绘制,并将所述显示画布中绘制的内容进行实时显示。
  2. 根据权利要求1所述的方法,在所述从预先构建的即时视频生成模板库中选择与所述即时视频显示指令中匹配的目标即时视频生成模板之前,还包括:
    从预先构建的视频元素库中获取目标视频元素,所述目标视频元素包括新图像元素和历史使用图像元素中至少之一;
    从预先构建的图像动态效果库中获取至少一个目标图像动态效果文件;
    从预先构建的图像切换动态效果库中获取至少一个目标图像切换动态效果文件;
    根据所述目标视频元素、所述至少一个目标图像动态效果文件和所述至少一个目标图像切换动态效果文件,生成即时视频生成模板,并添加到所述即时视频生成模板库中。
  3. 根据权利要求2所述的方法,,在所述从预先构建的视频元素库中获取目标视频元素之前,还包括:
    获取历史视频;
    从所述历史视频中提取每帧图像的图像动态效果信息,生成图像动态效果文件,添加入所述图像动态效果库;
    从所述历史视频中提取任意两个连续图像之间的图像切换动态效果信息,生成图像切换动态效果文件,添加入所述图像切换动态效果库。
  4. 根据权利要求1所述的方法,还包括:
    获取使用所述目标即时视频生成模板的用户信息,以及所述目标即时视频生成模板的生成视频选择次数;
    统计所述目标视频的浏览数据,作为所述目标视频采用的目标模板的浏览数据;
    根据所述用户信息、所述生成视频选择次数和所述目标视频采用的目标模板的浏览数据,确定所述目标即时视频生成模板的使用率;
    根据所述即时视频生成模板库中所述即时视频生成模板的使用率,将使用率低于设定阈值的即时视频生成模板从所述即时视频生成模板库中移除。
  5. 根据权利要求1所述的方法,所述视频元素还包括至少一个音频元素;所述目标即时视频生成文件还包括:所述音频元素在所述目标视频中的播放时间参数,所述播放时间参数与所述显示时间参数关联;
    在调用图像绘制组件,根据所述目标即时视频生成文件,将所述图像元素按照对应的显示时间参数在显示画布中进行实时绘制,并将所述显示画布中绘制的内容进行实时显示的同时,还包括:
    调用音频播放组件,将所述音频元素按照对应的播放时间参数进行音频播放。
  6. 根据权利要求5所述的方法,在根据所述目标即时视频生成文件,将所述图像元素按照对应的显示时间参数在显示画布中进行实时绘制,并将所述显示画布中绘制的内容进行实时显示的同时,还包括:
    在确定所述显示画布中完整绘制有与一个实时显示时间参数匹配的全部图像元素的情况下,生成与所述显示画布的当前显示内容匹配的图像数据流;
    将生成的图像数据流输入至视频生成组件中,并在确定存在与所述实时显示时间参数关联的播放时间参数对应的音频片段的情况下,将所述音频片段输入至所述视频生成组件中进行视频合成,直至所述图像绘制组件完成对全部图像元素的绘制,以得到所述目标视频。
  7. 根据权利要求1-6任一项所述的方法,其中,所述图像绘制组件为画布Canvas组件。
  8. 一种即时视频显示装置,包括:
    视频元素获取模块,设置为获取与待生成的目标视频匹配的视频元素,所述视频元素中包括多个图像元素;
    目标即时视频生成模板确定模块,设置为在检测到用户输入的即时视频显示指令的情况下,从预先构建的即时视频生成模板库中选择与所述即时视频显示指令中匹配的目标即时视频生成模板;
    目标即时视频生成文件生成模块,设置为将每个图像元素填充到所述目标即时视频生成模板的与所述每个图像元素匹配的位置处,生成目标即时视频生成文件,其中,所述目标即时视频生成文件包括所述每个图像元素在所述目标视频中的显示时间参数;
    即时视频显示模块,设置为调用图像绘制组件,根据所述目标即时视频生成文件,将所述每个图像元素按照对应的显示时间参数在显示画布中进行实时绘制,并将所述显示画布中绘制的内容进行实时显示。
  9. 根据权利要求8所述的装置,还包括:
    目标视频元素获取模块,设置为从预先构建的视频元素库中获取目标视频元素,所述目标视频元素包括新图像元素和历史使用图像元素中至少之一;
    目标图像动态效果文件获取模块,设置为从预先构建的图像动态效果库中获取至少一个目标图像动态效果文件;
    目标图像切换动态效果文件获取模块,设置为从预先构建的图像切换动态效果库中获取至少一个目标图像切换动态效果文件;
    即时视频生成模板生成模块,设置为根据所述目标视频元素、所述至少一个目标图像动态效果文件和所述至少一个目标图像切换动态效果文件,生成即时视频生成模板,并添加到所述即时视频生成模板库中。
  10. 根据权利要求9所述的装置,还包括:
    历史视频获取模块,设置为获取历史视频;
    图像动态效果文件生成模块,设置为从所述历史视频中提取每帧图像的图像动态效果信息,生成图像动态效果文件,添加入所述图像动态效果库;
    图像切换动态效果文件生成模块,设置为从所述历史视频中提取任意两个连续图像之间的图像切换动态效果信息,生成图像切换动态效果文件,添加入所述图像切换动态效果库。
  11. 根据权利要求8所述的装置,还包括:
    用户信息和生成视频选择次数获取模块,设置为获取使用所述目标即时视频生成模板的用户信息,以及所述目标即时视频生成模板的生成视频选择次数;
    浏览数据获取模块,设置为统计所述目标视频的浏览数据,作为所述目标视频采用的目标模板的浏览数据;
    使用率率计算模块,设置为根据所述用户信息、所述生成视频选择次数和所述目标视频采用的目标模板的浏览数据,确定所述目标即时视频生成模板的使用率;
    即时视频生成模板库更新模块,设置为根据所述即时视频生成模板库中所述即时视频生成模板的使用率,将使用率低于设定阈值的即时视频生成模板从所述即时视频生成模板库中移除。
  12. 根据权利要求8所述的装置,所述视频元素还包括至少一个音频元素;所述目标即时视频生成文件还包括:所述音频元素在所述目标视频中的播放时间参数,所述播放时间参数与所述显示时间参数关联;
    所述装置还包括:
    音频播放组件调用模块,设置为调用音频播放组件,将所述音频元素按照对应的播放时间参数进行音频播放。
  13. 根据权利要求12所述的装置,还包括:
    图像数据流生成模块,设置为在确定所述显示画布中完整绘制有与一个实 时显示时间参数匹配的全部图像元素时,生成与所述显示画布的当前显示内容匹配的图像数据流;
    视频合成模块,设置为将生成的图像数据流输入至视频生成组件中,并在确定存在与所述实时显示时间参数关联的播放时间参数对应的音频片段时,将所述音频片段输入至所述视频生成组件中进行视频合成,直至所述图像绘制组件完成对全部图像元素的绘制,以得到所述目标视频。
  14. 根据权利要求8-13任一项所述的装置,其中,所述图像绘制组件为画布Canvas组件。
  15. 一种终端设备,包括:
    至少一个处理器;
    存储器,设置为存储至少一个程序;
    所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如权利要求1-7任一项所述的即时视频显示方法。
  16. 一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现如权利要求1-7任一项所述的即时视频显示方法。
PCT/CN2019/101565 2018-10-25 2019-08-20 即时视频显示方法、装置、终端设备及存储介质 WO2020082870A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811250337.2A CN109168026B (zh) 2018-10-25 2018-10-25 即时视频显示方法、装置、终端设备及存储介质
CN201811250337.2 2018-10-25

Publications (1)

Publication Number Publication Date
WO2020082870A1 true WO2020082870A1 (zh) 2020-04-30

Family

ID=64876012

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/101565 WO2020082870A1 (zh) 2018-10-25 2019-08-20 即时视频显示方法、装置、终端设备及存储介质

Country Status (2)

Country Link
CN (1) CN109168026B (zh)
WO (1) WO2020082870A1 (zh)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109168026B (zh) * 2018-10-25 2020-09-29 北京字节跳动网络技术有限公司 即时视频显示方法、装置、终端设备及存储介质
CN110198420B (zh) * 2019-04-29 2022-06-10 北京卡路里信息技术有限公司 基于非线性视频编辑的视频生成方法及装置
CN110287368B (zh) * 2019-05-31 2021-10-08 上海萌鱼网络科技有限公司 短视频模板设计图生成装置及短视频模板的生成方法
CN110139159B (zh) * 2019-06-21 2021-04-06 上海摩象网络科技有限公司 视频素材的处理方法、装置及存储介质
CN112132599A (zh) * 2019-06-24 2020-12-25 北京沃东天骏信息技术有限公司 图像处理方法及装置、计算机可读存储介质、电子设备
CN112348748A (zh) * 2019-08-09 2021-02-09 北京字节跳动网络技术有限公司 图像特效处理方法、装置、电子设备和计算机可读存储介质
CN110798737A (zh) * 2019-11-29 2020-02-14 北京达佳互联信息技术有限公司 视音频合成方法、终端和存储介质
CN111432142B (zh) * 2020-04-03 2022-11-22 腾讯云计算(北京)有限责任公司 视频合成方法、装置、设备及存储介质
CN111601039B (zh) * 2020-05-28 2021-10-15 维沃移动通信有限公司 视频拍摄方法、装置及电子设备
CN111935528B (zh) * 2020-06-22 2022-12-16 北京百度网讯科技有限公司 视频生成方法和装置
CN114363641A (zh) * 2020-10-13 2022-04-15 阿里巴巴集团控股有限公司 目标视频生成方法及装置
CN114390353A (zh) * 2020-10-21 2022-04-22 西安诺瓦星云科技股份有限公司 节目播放方法、装置和系统及计算机可读存储介质
CN113766255A (zh) * 2021-01-19 2021-12-07 北京沃东天骏信息技术有限公司 视频流合并方法、装置、电子设备及计算机介质
CN113596579B (zh) * 2021-07-29 2023-04-07 北京字节跳动网络技术有限公司 视频生成方法、装置、介质及电子设备
CN114915841A (zh) * 2022-05-10 2022-08-16 南京搜福居信息科技有限公司 一种基于机器学习算法的视频制作方法及系统

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101448089A (zh) * 2007-11-26 2009-06-03 新奥特(北京)视频技术有限公司 一种非线性编辑系统
CN102866886A (zh) * 2012-09-04 2013-01-09 北京航空航天大学 一种基于Web的算法动画可视化开发系统
CN103458379A (zh) * 2012-05-31 2013-12-18 腾讯科技(深圳)有限公司 信息发送方法、推送方法、装置及系统
CN104780439A (zh) * 2014-01-15 2015-07-15 腾讯科技(深圳)有限公司 视频的处理方法及装置
CN106572395A (zh) * 2016-11-08 2017-04-19 广东小天才科技有限公司 一种视频处理方法和装置
US20180139481A1 (en) * 2016-11-13 2018-05-17 Newtek, Inc. Method and Apparatus for Incorporating Web Based Selection into Graphics System
CN109168026A (zh) * 2018-10-25 2019-01-08 北京字节跳动网络技术有限公司 即时视频显示方法、装置、终端设备及存储介质

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100502483C (zh) * 2006-01-19 2009-06-17 北京维多美雅数字传媒技术有限公司 自制和分享视频贺卡的方法与设备
KR20100059379A (ko) * 2008-11-26 2010-06-04 삼성전자주식회사 컨텐츠 제공을 위한 영상 표시 장치 및 그의 컨텐츠 제공 방법
CN102314441A (zh) * 2010-06-30 2012-01-11 百度在线网络技术(北京)有限公司 用于供用户进行个性化素材输入的方法、设备和系统
CN102724639A (zh) * 2011-03-31 2012-10-10 中国电信股份有限公司 多媒体消息制作方法、装置与系统
CN104090955A (zh) * 2014-07-07 2014-10-08 科大讯飞股份有限公司 一种音视频标签自动标注方法及系统
CN106161988A (zh) * 2015-03-26 2016-11-23 成都理想境界科技有限公司 一种增强现实视频生成方法
CN104793745B (zh) * 2015-04-17 2018-06-05 范剑斌 一种在移动终端上的人机交互方法
CN106330667A (zh) * 2015-07-02 2017-01-11 天脉聚源(北京)科技有限公司 一种微信明信片生成方法及系统
CN105679347A (zh) * 2016-01-07 2016-06-15 北京东方云图科技有限公司 一种通过程序化来制作视频文件的方法和装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101448089A (zh) * 2007-11-26 2009-06-03 新奥特(北京)视频技术有限公司 一种非线性编辑系统
CN103458379A (zh) * 2012-05-31 2013-12-18 腾讯科技(深圳)有限公司 信息发送方法、推送方法、装置及系统
CN102866886A (zh) * 2012-09-04 2013-01-09 北京航空航天大学 一种基于Web的算法动画可视化开发系统
CN104780439A (zh) * 2014-01-15 2015-07-15 腾讯科技(深圳)有限公司 视频的处理方法及装置
CN106572395A (zh) * 2016-11-08 2017-04-19 广东小天才科技有限公司 一种视频处理方法和装置
US20180139481A1 (en) * 2016-11-13 2018-05-17 Newtek, Inc. Method and Apparatus for Incorporating Web Based Selection into Graphics System
CN109168026A (zh) * 2018-10-25 2019-01-08 北京字节跳动网络技术有限公司 即时视频显示方法、装置、终端设备及存储介质

Also Published As

Publication number Publication date
CN109168026B (zh) 2020-09-29
CN109168026A (zh) 2019-01-08

Similar Documents

Publication Publication Date Title
WO2020082870A1 (zh) 即时视频显示方法、装置、终端设备及存储介质
WO2021196903A1 (zh) 视频处理方法、装置、可读介质及电子设备
WO2020233142A1 (zh) 多媒体文件播放方法、装置、电子设备和存储介质
WO2020133373A1 (zh) 视频处理方法、装置、电子设备及计算机可读存储介质
WO2020253453A1 (zh) 图像切换方法、装置、电子设备及存储介质
WO2020151599A1 (zh) 视频同步发布方法、装置、电子设备及可读存储介质
CN110070496B (zh) 图像特效的生成方法、装置和硬件装置
WO2021147461A1 (zh) 展示字幕信息的方法、装置、电子设备和计算机可读介质
CN109168027B (zh) 即时视频展示方法、装置、终端设备及存储介质
WO2022042389A1 (zh) 搜索结果的展示方法、装置、可读介质和电子设备
WO2022022689A1 (zh) 交互方法、装置和电子设备
WO2022007565A1 (zh) 增强现实的图像处理方法、装置、电子设备及存储介质
WO2020220776A1 (zh) 图片类评论数据的展示方法、装置、设备及介质
WO2020220773A1 (zh) 图片预览信息的显示方法、装置、电子设备及计算机可读存储介质
US11785195B2 (en) Method and apparatus for processing three-dimensional video, readable storage medium and electronic device
WO2021197024A1 (zh) 视频特效配置文件生成方法、视频渲染方法及装置
WO2021057740A1 (zh) 视频生成方法、装置、电子设备和计算机可读介质
WO2023165515A1 (zh) 拍摄方法、装置、电子设备和存储介质
US20240040069A1 (en) Image special effect configuration method, image recognition method, apparatus and electronic device
WO2023005831A1 (zh) 一种资源播放方法、装置、电子设备和存储介质
WO2023169356A1 (zh) 图像处理方法、装置、设备及存储介质
CN110519645B (zh) 视频内容的播放方法、装置、电子设备及计算机可读介质
CN111818383A (zh) 视频数据的生成方法、系统、装置、电子设备及存储介质
JP2023538825A (ja) ピクチャのビデオへの変換の方法、装置、機器および記憶媒体
WO2023231918A1 (zh) 图像处理方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19877145

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13.08.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19877145

Country of ref document: EP

Kind code of ref document: A1