CN111246289A - Video generation method and device, electronic equipment and storage medium - Google Patents

Video generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111246289A
CN111246289A CN202010157885.1A CN202010157885A CN111246289A CN 111246289 A CN111246289 A CN 111246289A CN 202010157885 A CN202010157885 A CN 202010157885A CN 111246289 A CN111246289 A CN 111246289A
Authority
CN
China
Prior art keywords
media
file
files
media files
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010157885.1A
Other languages
Chinese (zh)
Inventor
陈标
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010157885.1A priority Critical patent/CN111246289A/en
Publication of CN111246289A publication Critical patent/CN111246289A/en
Pending legal-status Critical Current

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/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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing 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 operations for analysing video streams, e.g. detecting features or characteristics in the video 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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing 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
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47205End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The disclosure provides a video generation method and device, electronic equipment and a storage medium, and relates to the technical field of terminal equipment. The video generation method comprises the following steps: acquiring a plurality of target media files and determining media types of the plurality of target media files; selecting a plurality of media files to be edited from the plurality of target media files according to the media categories of the plurality of target media files; and automatically splicing and generating the video file based on the plurality of media files to be edited. The present disclosure may improve the efficiency of video generation.

Description

Video generation method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of terminal device technologies, and in particular, to a video generation method, a video generation apparatus, an electronic device, and a computer-readable storage medium.
Background
With the popularization of mobile terminal devices such as smart phones and tablet computers, more and more users can record life by taking pictures or videos. Moreover, the shot videos and photos can be edited to generate videos with better effects to be shared by other users. However, when a user generates a video, the user needs to repeatedly play a preview and perform a series of editing operations, which complicates the process and reduces the efficiency of generating the video.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a video generation method, a video generation apparatus, an electronic device, and a computer-readable storage medium, thereby overcoming, to some extent, the problem of low video generation efficiency due to the limitations and disadvantages of the related art.
According to a first aspect of the present disclosure, there is provided a video generation method, including:
acquiring a plurality of target media files and determining media categories of the target media files;
selecting a plurality of media files to be edited from the plurality of target media files according to the media categories of the plurality of target media files;
and automatically splicing and generating a video file based on the plurality of media files to be edited.
According to a second aspect of the present disclosure, there is provided a video generating apparatus comprising:
the media category determining module is used for acquiring a plurality of target media files and determining the media categories of the target media files;
the media file selection module is used for selecting a plurality of media files to be edited from the plurality of target media files according to the media categories of the plurality of target media files;
and the video generation module is used for automatically splicing and generating a video file based on the plurality of media files to be edited.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the above-described video generation method via execution of the executable instructions.
According to a fourth aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described video generation method.
Exemplary embodiments of the present disclosure may have some or all of the following benefits:
in the video generation method provided by an exemplary embodiment of the present disclosure, a plurality of media files to be edited may be selected from the target media file according to the media type of the target media file and automatically spliced to generate a video file, and a user may not need to edit, so that the video generation efficiency may be improved. In addition, even if the generated video file does not meet the requirements of the user, the user can do a little processing based on the video file, so that the processing cost can be reduced, and the video generation efficiency and the generated video effect can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
FIG. 1 illustrates a schematic structural diagram of a computer system suitable for use with an electronic device embodying embodiments of the present disclosure;
FIG. 2 illustrates a computer-readable storage medium for implementing a video generation method;
FIG. 3 shows a flow chart of a video generation method in an embodiment of the present disclosure;
FIG. 4 is a flow chart illustrating a method of determining a media category corresponding to a media file in an embodiment of the present disclosure;
fig. 5 shows a schematic structural diagram of a video generation apparatus in an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
FIG. 1 illustrates a schematic structural diagram of a computer system suitable for use in implementing an electronic device of an embodiment of the present disclosure.
It should be noted that the computer system 100 of the electronic device shown in fig. 1 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments of the present disclosure.
As shown in fig. 1, the computer system 100 includes a central processing unit 101, which can perform various appropriate actions and processes according to a program stored in a read only memory 102 or a program loaded from a storage section 108 into a random access memory 103. In the random access memory 103, various programs and data necessary for system operation are also stored. The cpu 101, the rom 102, and the ram 103 are connected to each other via a bus 104. An input/output interface 105 is also connected to the bus 104.
The following components are connected to the input/output interface 105: an input portion 106 including a keyboard, a mouse, and the like; an output section 107 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 108 including a hard disk and the like; and a communication section 109 including a network interface card such as a local area network card, a modem, or the like. The communication section 109 performs communication processing via a network such as the internet. The driver 110 is also connected to the input/output interface 105 as necessary. A removable medium 111 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 110 as necessary, so that a computer program read out therefrom is mounted into the storage section 108 as necessary.
In particular, the processes described below with reference to the flowcharts may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 109, and/or installed from the removable medium 111. When executed by the central processing unit 101, performs the various functions defined in the methods and apparatus of the present application.
It should be noted that the computer readable storage medium shown in the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, radio frequency, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. Referring to fig. 2, the computer-readable storage medium carries one or more computer programs 200 which, when executed by an electronic device, cause the electronic device to implement a method as described in the embodiments below. For example, the electronic device may implement the steps shown in fig. 3, fig. 4, and the like.
The technical solution of the embodiment of the present disclosure is explained in detail below:
with the development of the internet, video editing is more and more widely applied in life. In the existing video generation method, a plurality of video files or pictures can be directly selected, and the video files or pictures are spliced into one video file according to a preset sequence or a random sequence. In this way, the duration of the spliced video file is the sum of the duration of the video file and the duration of the picture, where the duration of the picture may be set to a fixed duration, for example, 3 seconds or 4 seconds. If more pictures and video files are selected, the duration of the spliced video is longer, and the effect is single. In addition, it is relatively inefficient to stitch different types of video files together, for example, a video file containing a person and a video file containing an animal, or other video files with relatively high contrast.
Of course, the user may also edit a single video file and then splice a plurality of edited video files. However, for each video file, the preview needs to be played repeatedly, then the effects of cutting, intercepting, adding filters, music, transition and the like are repeatedly performed on each video file, and the videos of different types need to be deleted and reduced, and the videos of the same type need to be screened from the material, so that the videos which are considered by the user to have better effects can be spliced. Therefore, a large amount of manual editing operation is required in the process, the editing cost is increased, the efficiency is low, and the splicing effect is poor for unprofessional users.
In order to solve the above problems, the present disclosure provides a video generation method, a video generation apparatus, an electronic device, and a computer-readable storage medium, which can improve the efficiency of video generation and the effect of generating a video.
Referring to fig. 3, fig. 3 shows a flowchart of a video generation method in an embodiment of the present disclosure, which may include the following steps:
step S310, acquiring a plurality of target media files, and determining media categories of the plurality of target media files.
Step S320, selecting a plurality of media files to be edited from the plurality of target media files according to the media categories of the plurality of target media files.
Step S330, automatically splicing and generating a video file based on a plurality of media files to be edited.
According to the video generation method, the plurality of media files to be edited can be selected from the target media files according to the media types of the target media files and automatically spliced to generate the video files, and users do not need to edit and process the video files, so that the video generation efficiency can be improved. In addition, even if the generated video file does not meet the requirements of the user, the user can do a little processing based on the video file, so that the processing cost can be reduced, and the video generation efficiency and the generated video effect can be improved.
The video generation method according to the embodiment of the present disclosure is described in more detail below.
In step S310, a plurality of target media files are acquired, and media categories of the plurality of target media files are determined.
In an embodiment of the present disclosure, a media file includes: the target media file refers to a media file selected from media files stored in the terminal device, and may be, for example, a media file stored in the terminal device on the last day, two days, a week, and the like. The method and the device can edit a plurality of video files to generate new video files, can also edit the video files and pictures to generate new video files, and can also edit a plurality of pictures to generate video files.
The media category of the target media file refers to a category to which the target media file belongs, and for example, the category may include: different people, food, flowers, sports, tourism, etc. Video files and picture files of the same person can be classified into one category, video files and picture files containing food can be classified into one category, and the like.
For the media files (all media files or media files under the designated path) stored in the terminal device, the mapping relationship between the media files and the media categories can be established in advance. Specifically, each media file stored in the terminal device may be scanned, the media category of a single media file or a media segment in a single media file may be determined, and a mapping relationship between the media file or the media segment in the media file and the media category may be established. Thus, when searching for media files, the user can also search by media category.
When a single media file is an image, the image category of the image may be directly taken as the media category of the media file. And the video is composed of a video frame sequence, so that the media category corresponding to the video can be determined by the image category corresponding to the video frame sequence. In one implementation manner of the present disclosure, when a single media file is a video, a method for determining a corresponding media category may be as shown in fig. 4, and may include the following steps:
step S410, extracting a plurality of key frames in the video, and determining an image category of each key frame.
In the embodiment of the disclosure, each key frame may be processed based on a deep learning algorithm, and information such as a person, an object, a scene, a behavior, and the like in the key frame is identified, so as to determine an image category of each key frame. For example, the image categories may be people, animals, food, landscapes, and so on.
Step S420, determining the media category of the media file based on the image categories of the plurality of key frames; alternatively, the media category of the media segment in the media file is determined.
It should be noted that, for some video files, the image categories of multiple key frames are the same category, and then the video category of the entire video file can be determined as the category. For other video files, a certain segment in the video file is in one category, and other segments are in other categories, at this time, different video segments in the video file can be respectively marked as different video categories, and of course, the corresponding start time and end time of the video segment of each video category in the video file can also be recorded.
It is worth mentioning that when the user takes a video or a photo, the camera can recognize the face in real time, so that the related face information can be recorded during the taking, and the related face information can also be recorded during the storing of the video or the photo. During scanning, the face information can be directly classified, so that the classification efficiency can be improved.
In the embodiment of the present disclosure, after classifying the media files, if the user is not satisfied with the classification result, or the user wants to perform special processing on a certain media file. For example, a video file whose media category is a person is classified into a landscape category, and the user may adjust the media category of the video file. In response to a media category adjustment operation for any media file, a media category corresponding to the media file may be adjusted from a first media category to a second media category. Optionally, the media category adjusting operation may be: remove the media file from the first media category and reclassify the media file into a second media category, and so on. Therefore, the classification result after adjustment can better meet the requirements of users.
It should be noted that, since the media file in the terminal device may be updated continuously, the video generation process of the embodiment of the present disclosure may also be periodic, for example, a new video file may be generated from the updated media file in the terminal device every day or every two days. Therefore, the plurality of target media files acquired in this step may be media files of the day before the current time, or media files of the two days before, and the like, and may be specifically set according to a period of video generation. Therefore, the media files processed before can not be processed repeatedly in the next processing so as to avoid wasting resources.
In step S320, a plurality of media files to be edited are selected from the plurality of target media files according to the media categories of the plurality of target media files.
In the embodiment of the present disclosure, after the media categories of the multiple target media files are determined, the target media files may be spliced according to the media categories, that is, the media files with the same media category may be spliced, so that the target media files with the same media category may be selected from the multiple target media files and used as the multiple media files to be edited. For example, when a plurality of target media files contain the same character, the target media file of the same character may be selected from the plurality of target media files as a video file to be edited.
In step S330, a video file is automatically generated by splicing based on a plurality of media files to be edited.
In the embodiment of the present disclosure, for a plurality of selected media files to be edited, each media file to be edited may be that the entire media file corresponds to a certain media category, or that one or more media segments in the media file correspond to a certain media category. Therefore, when video splicing is performed, for a single media file to be edited, media segments may be extracted from the media file to be edited first, where media categories of the media segments extracted from multiple media files to be edited are the same. And then automatically splicing a plurality of media segments extracted from a plurality of media files to be edited to generate a video file. Of course, a single media file to be edited and media segments extracted from other media files to be edited may also be automatically spliced to generate a video file. Therefore, the media segments in the media files are used as the splicing materials, and the whole media files are not directly used as the splicing materials, so that the video files which have long video time and contain contents which are not needed by users can be prevented from being generated, and the splicing effect of the video files is improved.
Since the video splicing process is automatically completed without manual operation of a user, the video file can be displayed to the user after the video file is generated. The user may save the video file if satisfied with it. The user may also modify the video file if the user is not satisfied with the video file. Specifically, in response to an editing operation for a video file, the video file is processed to obtain a processed video file. In general, when a user modifies a video file, a simple editing operation can be performed to obtain a video file that the user is satisfied with, so that the video generation efficiency can be improved.
In another implementation manner of the present disclosure, for a plurality of selected media files to be edited, before automatically splicing and generating a video file, a user may also edit the plurality of media files to be edited to generate a target video file that better meets the user requirements. Specifically, in response to an editing operation for a plurality of media files to be edited, the plurality of media files to be edited are edited to obtain edited media files; and responding to the splicing operation of the edited media file to generate a target video file. Although user operations are increased compared with the method for automatically generating the video file, the user can generate the target video file which meets the requirements of the user by performing simple editing operations on the basis of a plurality of media files to be edited, so that the video generation efficiency and the effect of generating the target video file are improved.
In another scenario, the present disclosure may also support a user manually selecting a media file to generate a video file. Specifically, in response to a media file selection operation, a to-be-processed media file selected by a user is acquired, and other media files with the same media type as that of the to-be-processed media file are displayed to the user, so that the user edits according to the other media files. That is, other media files with the same media category may be recommended to the user according to the media file selected by the user. The user can select more media files from other media files for editing according to the own requirements, so that the user can select the desired media files more quickly, and further, the video generation efficiency and the video file generation effect can be improved.
In the video generation method according to the embodiment of the present disclosure, media files or media segments in the media files are classified into predetermined media categories (for example, the same person may be classified into the same media category, different persons may be classified into different media categories, etc.) through automatic scanning or user setting, and the media files or the media segments in the media files are used as materials for subsequently generating video files. When editing, the video file with better effect can be generated according to the media files and the media segments by automatic splicing, and the user does not need to edit, thereby improving the efficiency and the effect of video generation. The user can edit the generated video file to generate a video file with better effect.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Further, in the present exemplary embodiment, there is also provided a video generating apparatus 500, as shown in fig. 5, including:
a media category determining module 510, configured to obtain a plurality of target media files, and determine media categories of the plurality of target media files;
a media file selecting module 520, configured to select a plurality of media files to be edited from the plurality of target media files according to the media categories of the plurality of target media files;
and the video generating module 530 is configured to automatically generate a video file by splicing based on a plurality of media files to be edited.
Optionally, the video generating apparatus according to the embodiment of the present disclosure further includes:
the media type pre-determining module is used for scanning each media file stored in the terminal equipment and determining the media type of a single media file or a media fragment in the single media file;
the mapping relation establishing module is used for establishing a mapping relation between the media file or the media fragment and the media category in the media file;
the media file selection module is specifically configured to select a target media file with the same media category from the multiple target media files as multiple media files to be edited.
Optionally, the video generating module is specifically configured to, for a single media file to be edited, extract media segments from the media file to be edited, where media categories of the media segments extracted from multiple media files to be edited are the same; and automatically splicing a plurality of media segments extracted from a plurality of media files to be edited to generate a video file.
Optionally, the video generating apparatus according to the embodiment of the present disclosure further includes:
and the video file processing module is used for responding to the editing operation aiming at the video file and processing the video file to obtain the processed video file.
Optionally, the video generating apparatus according to the embodiment of the present disclosure further includes:
the file editing module is used for responding to editing operation aiming at a plurality of media files to be edited and editing the plurality of media files to be edited to obtain edited media files;
and the target video generation module is used for responding to the splicing operation of the edited media file and generating a target video file.
Optionally, the video generating apparatus according to the embodiment of the present disclosure further includes:
and the media category adjusting module is used for responding to the media category adjusting operation aiming at any media file and adjusting the media category corresponding to the media file from the first media category to the second media category.
Optionally, the media category pre-determining module includes:
the video category determining unit is used for extracting a plurality of key frames in the video and determining the image category of each key frame when the single media file is the video; determining a media category of the media file based on the image categories of the plurality of key frames; or, determining the media category of the media segment in the media file;
and the image type determining unit is used for taking the image type of the image as the media type of the media file when the single media file is the image.
The details of each module or unit in the above device have been described in detail in the corresponding method, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method of video generation, the method comprising:
acquiring a plurality of target media files and determining media categories of the target media files;
selecting a plurality of media files to be edited from the plurality of target media files according to the media categories of the plurality of target media files;
and automatically splicing and generating a video file based on the plurality of media files to be edited.
2. The method of claim 1, wherein prior to said determining the media categories of the plurality of target media files, the method further comprises:
scanning each media file stored in the terminal equipment, and determining the media category of a single media file or a media fragment in the single media file;
establishing a mapping relation between media files or media fragments in the media files and media categories;
the selecting a plurality of media files to be edited from the plurality of target media files according to the media categories of the plurality of target media files comprises:
and selecting the target media files with the same media categories from the plurality of target media files as a plurality of media files to be edited.
3. The method of claim 2, wherein automatically splicing to generate a video file based on the plurality of media files to be edited comprises:
extracting media segments from a single media file to be edited, wherein the media segments extracted from the plurality of media files to be edited have the same media category;
and automatically splicing a plurality of media segments extracted from the plurality of media files to be edited to generate a video file.
4. The method of claim 1, wherein after automatically stitching to generate a video file based on the plurality of media files to be edited, the method further comprises:
and responding to the editing operation aiming at the video file, and processing the video file to obtain a processed video file.
5. The method of claim 1, wherein after the selecting a plurality of media files to be edited from the plurality of target media files according to the media categories of the plurality of target media files, the method comprises:
responding to the editing operation aiming at the plurality of media files to be edited, editing the plurality of media files to be edited to obtain edited media files;
and responding to the splicing operation of the edited media file to generate a target video file.
6. The method of claim 2, wherein after establishing the mapping relationship between the media file or the media segments and the media categories in the media file, the method further comprises:
and responding to the media category adjustment operation aiming at any media file, and adjusting the media category corresponding to the media file from the first media category to the second media category.
7. The method of claim 2, wherein determining the media category of the single media file or the media segments in the single media file comprises:
when a single media file is a video, extracting a plurality of key frames in the video, and determining the image category of each key frame;
determining a media category of the media file based on the image categories of the plurality of key frames; or, determining the media category of the media segment in the media file;
when a single media file is an image, the image category of the image is taken as the media category of the media file.
8. A video generation apparatus, characterized in that the apparatus comprises:
the media category determining module is used for acquiring a plurality of target media files and determining the media categories of the target media files;
the media file selection module is used for selecting a plurality of media files to be edited from the plurality of target media files according to the media categories of the plurality of target media files;
and the video generation module is used for automatically splicing and generating a video file based on the plurality of media files to be edited.
9. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1-7 via execution of the executable instructions.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 7.
CN202010157885.1A 2020-03-09 2020-03-09 Video generation method and device, electronic equipment and storage medium Pending CN111246289A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010157885.1A CN111246289A (en) 2020-03-09 2020-03-09 Video generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010157885.1A CN111246289A (en) 2020-03-09 2020-03-09 Video generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111246289A true CN111246289A (en) 2020-06-05

Family

ID=70865154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010157885.1A Pending CN111246289A (en) 2020-03-09 2020-03-09 Video generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111246289A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015927A (en) * 2020-09-29 2020-12-01 北京百度网讯科技有限公司 Multimedia file editing method and device, electronic equipment and storage medium
CN112287128A (en) * 2020-10-23 2021-01-29 北京百度网讯科技有限公司 Multimedia file editing method and device, electronic equipment and storage medium
CN113301386A (en) * 2021-05-21 2021-08-24 北京达佳互联信息技术有限公司 Video processing method, device, server and storage medium
CN114297150A (en) * 2021-11-19 2022-04-08 北京达佳互联信息技术有限公司 Media file processing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019880A (en) * 2017-09-04 2019-07-16 优酷网络技术(北京)有限公司 Video clipping method and device
CN110139158A (en) * 2019-06-21 2019-08-16 上海摩象网络科技有限公司 The generation method of video and sub-video, device, electronic equipment
CN110557565A (en) * 2019-08-30 2019-12-10 维沃移动通信有限公司 Video processing method and mobile terminal
CN110602546A (en) * 2019-09-06 2019-12-20 Oppo广东移动通信有限公司 Video generation method, terminal and computer-readable storage medium
CN110730381A (en) * 2019-07-12 2020-01-24 北京达佳互联信息技术有限公司 Method, device, terminal and storage medium for synthesizing video based on video template
CN110855904A (en) * 2019-11-26 2020-02-28 Oppo广东移动通信有限公司 Video processing method, electronic device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019880A (en) * 2017-09-04 2019-07-16 优酷网络技术(北京)有限公司 Video clipping method and device
CN110139158A (en) * 2019-06-21 2019-08-16 上海摩象网络科技有限公司 The generation method of video and sub-video, device, electronic equipment
CN110730381A (en) * 2019-07-12 2020-01-24 北京达佳互联信息技术有限公司 Method, device, terminal and storage medium for synthesizing video based on video template
CN110557565A (en) * 2019-08-30 2019-12-10 维沃移动通信有限公司 Video processing method and mobile terminal
CN110602546A (en) * 2019-09-06 2019-12-20 Oppo广东移动通信有限公司 Video generation method, terminal and computer-readable storage medium
CN110855904A (en) * 2019-11-26 2020-02-28 Oppo广东移动通信有限公司 Video processing method, electronic device and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015927A (en) * 2020-09-29 2020-12-01 北京百度网讯科技有限公司 Multimedia file editing method and device, electronic equipment and storage medium
CN112015927B (en) * 2020-09-29 2023-08-15 北京百度网讯科技有限公司 Method and device for editing multimedia file, electronic equipment and storage medium
CN112287128A (en) * 2020-10-23 2021-01-29 北京百度网讯科技有限公司 Multimedia file editing method and device, electronic equipment and storage medium
CN112287128B (en) * 2020-10-23 2024-01-12 北京百度网讯科技有限公司 Method and device for editing multimedia file, electronic equipment and storage medium
US11929097B2 (en) 2020-10-23 2024-03-12 Beijing Baidu Netcom Science Technology Co., Ltd. Method and apparatus of editing multimedia file, electronic device, and storage medium
CN113301386A (en) * 2021-05-21 2021-08-24 北京达佳互联信息技术有限公司 Video processing method, device, server and storage medium
CN113301386B (en) * 2021-05-21 2023-04-07 北京达佳互联信息技术有限公司 Video processing method, device, server and storage medium
CN114297150A (en) * 2021-11-19 2022-04-08 北京达佳互联信息技术有限公司 Media file processing method, device, equipment and storage medium
WO2023087703A1 (en) * 2021-11-19 2023-05-25 北京达佳互联信息技术有限公司 Media file processing method and apparatus

Similar Documents

Publication Publication Date Title
CN111246289A (en) Video generation method and device, electronic equipment and storage medium
US20220148622A1 (en) Processing method, electronic device, and non-transitory computer-readable storage medium
CN108833787B (en) Method and apparatus for generating short video
US10652613B2 (en) Splicing user generated clips into target media information
CN111432138B (en) Video splicing method and device, computer readable medium and electronic equipment
KR102308369B1 (en) Automatic video editing system through artificial intelligence sound source analysis
CN110070593B (en) Method, device, equipment and medium for displaying picture preview information
WO2021248835A1 (en) Video processing method and apparatus, and electronic device, storage medium and computer program
CN111787354B (en) Video generation method and device
KR20140119609A (en) Method and device for displaying page for executing application
WO2022063124A1 (en) Video fusion method and device
US11871137B2 (en) Method and apparatus for converting picture into video, and device and storage medium
CN110134300A (en) Picture editing method and device
CN110781349A (en) Method, equipment, client device and electronic equipment for generating short video
CN115278306B (en) Video editing method and device
CN114598815A (en) Shooting method, shooting device, electronic equipment and storage medium
CN113891017A (en) Automatic video generation method and device, terminal equipment and storage device
CN115190357B (en) Video abstract generation method and device
CN111726685A (en) Video processing method, video processing device, electronic equipment and medium
WO2023241377A1 (en) Video data processing method and device, equipment, system, and storage medium
EP4340372A1 (en) Video processing method, apparatus, and device, and storage medium
CN113840099B (en) Video processing method, device, equipment and computer readable storage medium
CN117786159A (en) Text material acquisition method, apparatus, device, medium and program product
KR102212077B1 (en) Method and apparatus for automatic video editing
CN116991513A (en) Configuration file generation method, device, electronic equipment, medium and program product

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200605