CN112261472A - Short video generation method and related equipment - Google Patents

Short video generation method and related equipment Download PDF

Info

Publication number
CN112261472A
CN112261472A CN202011117996.6A CN202011117996A CN112261472A CN 112261472 A CN112261472 A CN 112261472A CN 202011117996 A CN202011117996 A CN 202011117996A CN 112261472 A CN112261472 A CN 112261472A
Authority
CN
China
Prior art keywords
sub
video
videos
target
target 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
CN202011117996.6A
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.)
Shanghai Pateo Electronic Equipment Manufacturing Co Ltd
Original Assignee
Shanghai Pateo Electronic Equipment Manufacturing Co 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 Shanghai Pateo Electronic Equipment Manufacturing Co Ltd filed Critical Shanghai Pateo Electronic Equipment Manufacturing Co Ltd
Priority to CN202011117996.6A priority Critical patent/CN112261472A/en
Publication of CN112261472A publication Critical patent/CN112261472A/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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44008Processing 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 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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44016Processing 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 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/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
    • H04N21/4402Processing 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 involving reformatting operations of video signals for household redistribution, storage or real-time display
    • 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/47217End-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 controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • 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/4722End-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 requesting additional data associated with the content

Abstract

The application discloses a short video generation method and related equipment, which are applied to electronic equipment, wherein the method comprises the following steps: acquiring a target video; performing video processing on the target video to obtain N first sub-videos; determining a heat of each of the N first sub-videos; determining S second sub-videos in the N first sub-videos based on the heat of each first sub-video, wherein S is a positive integer; and generating a target short video based on the S second sub videos. By adopting the embodiment of the application, the user experience can be improved.

Description

Short video generation method and related equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a short video generation method and related devices.
Background
With the development of information technology and the continuous improvement of network bandwidth, the on-line viewing of road condition information in a vehicle is becoming more and more popular. The existing video website and video application program can select the road condition video which the user wants to watch from the video play list. However, in the process of watching a video, if the attention of a certain segment in the video is high, the segment cannot be effectively stored, and further cannot be played back, which affects the watching experience of the user.
Disclosure of Invention
The embodiment of the application provides a short video generation method and related equipment.
In a first aspect, an embodiment of the present application provides a short video generation method, which is applied to an electronic device, and the method includes:
acquiring a target video;
performing video processing on the target video to obtain N first sub-videos, wherein N is an integer greater than 1;
determining a heat of each of the N first sub-videos;
determining S second sub-videos in the N first sub-videos based on the heat of each first sub-video, wherein S is a positive integer;
and generating a target short video based on the S second sub videos.
In a second aspect, an embodiment of the present application provides an apparatus for generating a short video, where the apparatus includes:
an acquisition unit configured to acquire a target video;
the processing unit is used for carrying out video processing on the target video to obtain N first sub-videos, wherein N is an integer greater than 1;
a first determining unit, configured to determine a heat of each of the N first sub-videos;
a second determining unit, configured to determine S second sub-videos in the N first sub-videos based on a heat of each of the first sub-videos, where S is a positive integer and is less than or equal to N;
and the generating unit is used for generating the target short video based on the S second sub-videos.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in the method according to the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps described in the method according to the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps described in the method according to the first aspect of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, a target video is obtained first, then video processing is performed on the target video to obtain N first sub-videos, then the heat degree of each first sub-video in the N first sub-videos is determined, then S second sub-videos are determined in the N first sub-videos based on the heat degree of each first sub-video, and finally a target short video is generated based on the S second sub-videos.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a short video generation method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of another electronic device provided in the embodiment of the present application;
fig. 4 is a schematic structural diagram of a short video generating apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Hereinafter, some terms in the present application are explained to facilitate understanding by those skilled in the art.
Electronic devices may include various handheld devices, vehicle mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication capabilities, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), and so forth.
As shown in fig. 1, fig. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. The electronic device includes a processor, Memory, signal processor, transceiver, display screen, speaker, communication interface, Random Access Memory (RAM), camera, sensor, and the like. The storage, the signal processor, the display screen, the loudspeaker, the RAM, the camera, the sensor and the communication interface are connected with the processor, and the transceiver is connected with the signal processor.
The Display screen may be a Liquid Crystal Display (LCD), an Organic or inorganic Light-Emitting Diode (OLED), an Active Matrix/Organic Light-Emitting Diode (AMOLED), or the like.
The camera may be a common camera, an infrared camera, or an intelligent camera, and is not limited herein. The camera may be a front camera or a rear camera, and is not limited herein.
Wherein the sensor comprises at least one of: light-sensitive sensors, gyroscopes, infrared proximity sensors, fingerprint sensors, pressure sensors, etc. Among them, the light sensor, also called an ambient light sensor, is used to detect the ambient light brightness. The light sensor may include a light sensitive element and an analog to digital converter. The photosensitive element is used for converting collected optical signals into electric signals, and the analog-to-digital converter is used for converting the electric signals into digital signals. Optionally, the light sensor may further include a signal amplifier, and the signal amplifier may amplify the electrical signal converted by the photosensitive element and output the amplified electrical signal to the analog-to-digital converter. The photosensitive element may include at least one of a photodiode, a phototransistor, a photoresistor, and a silicon photocell.
The processor is a control center of the electronic equipment, various interfaces and lines are used for connecting all parts of the whole electronic equipment, and various functions and processing data of the electronic equipment are executed by operating or executing software programs and/or modules stored in the memory and calling data stored in the memory, so that the electronic equipment is monitored integrally.
The processor may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
The memory is used for storing software programs and/or modules, and the processor executes various functional applications and data processing of the electronic equipment by operating the software programs and/or modules stored in the memory. The memory mainly comprises a program storage area and a data storage area, wherein the program storage area can store an operating system, a software program required by at least one function and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The following describes embodiments of the present application in detail.
As shown in fig. 2, a method for generating a short video according to an embodiment of the present application is applied to the electronic device, and specifically includes the following steps:
step 201: acquiring a target video;
step 202: and carrying out video processing on the target video to obtain N first sub-videos, wherein N is an integer greater than 1.
Wherein the target video comprises N first sub-videos.
The N first sub-videos may be a complete target video after being synthesized, or may not be a complete target video after being synthesized.
Wherein the N first sub-videos are different from each other.
Step 203: determining a heat of each of the N first sub-videos.
Wherein the popularity is used for evaluating the user's preference for the first sub-video.
The popularity can be determined by the number of the barrage of the playing interface of the first sub-video, or the number of operations on the first sub-video, where the operations may be skipping, fast forwarding, dragging, fast rewinding, and the like, or the number of praise on the first sub-video.
Step 204: determining S second sub-videos in the N first sub-videos based on the heat of each first sub-video.
The S second sub-videos may be selected from the N first sub-videos based on a preset heat range, or may be selected from the N first sub-videos according to a selection principle that the heat is from high to low.
Step 205: and generating a target short video based on the S second sub videos.
The S second sub-videos can be connected according to the principle that time is from small to large to generate a target short video, the S second sub-videos can also be connected according to the principle that heat is from large to small to generate the target short video, and the S second sub-videos can also be connected randomly to generate the target short video.
It can be seen that, in the embodiment of the present application, a target video is obtained first, then video processing is performed on the target video to obtain N first sub-videos, then the heat degree of each first sub-video in the N first sub-videos is determined, then S second sub-videos are determined in the N first sub-videos based on the heat degree of each first sub-video, and finally a target short video is generated based on the S second sub-videos.
In an implementation manner of the present application, before the obtaining the target video, the method further includes:
the method comprises the steps of playing the target video, recording a first time position in a first time recording table in the process of playing the target video, and recording a second time position in a second time recording table, wherein the first time position is a time position of current playing of the target video when a bullet screen appears on a playing interface of the target video, the second time position is a time position of current playing of the target video when a first operation instruction aiming at the target video is detected, and the target video is a video which is played in a total amount within a preset time period and is larger than a first preset playing amount and played in an amount on the day and is larger than a second preset playing amount.
Wherein, other videos than the target video are also played.
The duration of the preset time period may be 5 days, 7 days, 8 days, and the like.
The first preset playing amount may be determined based on the playing amounts of all videos in the preset time period, and the second preset playing amount may be determined based on the total playing amount of the target video on the previous day.
Optionally, sorting the played videos according to a first principle that the total playing amount in a preset time period is from high to bottom and a second principle that the total playing amount in the current day is from high to low to obtain a played video sequence; and taking the playing video which is taken as the sequence head in the playing video sequence as the target video.
Wherein, the first operation instruction can be fast forward, fast play, fast rewind, slow play, collection, etc.
And recording the current playing time position of the target video once in a first time recording table when one bullet screen appears on the playing interface of the target video.
And recording the current playing time position of the target video in the second time recording table once when the operation instruction of one side aiming at the target video is detected.
It can be seen that, in the embodiment of the application, the time when the target video appears in the bullet screen in the playing process of the target video is recorded in the first time recording table, and the time when the operation instruction for the target video is detected is recorded in the second time recording table, which is beneficial to determining the heat degree of the target video based on the number of the recorded time.
In an implementation manner of the present application, the performing video processing on the target video to obtain N first sub-videos includes:
performing scene recognition on the target video, and determining M scenes included in the target video and a time period of each scene in the target video, wherein M is a positive integer;
splitting the target video into N first sub-videos based on the M scenes, wherein the duration of each first sub-video is greater than or equal to a first preset duration and the duration of each first sub-video is less than a second preset duration, time intervals occupied by scenes included in each first sub-video in the target video are continuous, and each first sub-video includes at least one scene.
The time intervals of different scenes are different, and the time lengths of different scenes may be different.
Wherein the scene in the first sub video is a complete scene.
The first preset time length is less than the second preset time length.
For example, the target video comprises 4 scenes (C1, C2, C3 and C4), wherein the time period of C1 in the target video is 00: 00-10: 30, the time period of C2 in the target video is 10: 30-12: 40, the time period of C3 in the target video is 12: 40-14: 00, and the time period of C4 in the target video is 14: 00-20: 00. Assuming that the first preset time period is 5 minutes and the second preset time period is 12 minutes, since the time period of C1 is 10 minutes and 30 seconds, the time period of C2 is 2 minutes and 10 seconds, the time period of C3 is 1 minute and 20 seconds, and the time period of C4 is 6 minutes, 2 first sub-videos (S1 and S2) are obtained, wherein S1 includes C1, S2 is composed of C2, C3, and C4, and S2 is composed of the time periods of C2, then C3, and finally C4.
Optionally, a first scene with the longest duration among the M scenes is determined, and a second preset duration is determined based on the duration of the first scene.
It can be seen that, in the embodiment of the application, the target video is split into the N first sub-videos according to the scene, which is beneficial to ensuring the integrity of the scene in the sub-videos, avoiding the problem of scene interruption, and being beneficial to improving the user experience.
In an implementation manner of the present application, the performing video processing on the target video to obtain N first sub-videos includes:
acquiring a target image;
based on the target image and the target video, intercepting the N first sub-videos from the target video, wherein each frame of the N first sub-videos comprises the target image.
The target image may be stored in the database in advance, may be an image selected by the user, or may be an image input by the user.
For example, if the target image is a, and each frame in the target video in the time periods 10: 30-15: 00, 20: 34-23: 50, 26: 33-30: 02 and 35: 56-46: 00 includes the target image a, the target video is cut out of 10: 30-15: 00, 20: 34-23: 50, 26: 33-30: 02 and 35: 56-46: 00 to obtain 4 first sub-videos.
The target image may be a scene image on the driving route, an image of a place where a car accident is likely to occur on the driving route, an image of a place where a scene is beautiful on the driving route, or the like.
It can be seen that in the embodiment of the application, the N first sub-videos are intercepted from the target video based on the target image, so that the short video can be formulated according to the user requirements, and the user experience is favorably improved.
In an implementation manner of the present application, the determining the heat of each of the N first sub-videos includes:
determining a first time period of each of the first sub-videos in the target video;
determining a first number of barrages appearing on a playing interface of each first sub-video based on the first time recording list and the first time period;
determining a second number of operation instructions for each of the first sub-videos based on the second schedule and the first period;
determining a heat of each of the first sub-videos based on the first number and the second number.
The first number is the number of time positions in the first time period recorded in the first time recording table.
Wherein the second number is the number of time positions located in the first period recorded in the second time recording table.
Wherein the heat of the first sub-video is the sum of the first number and the second number.
Optionally, determining a second time period with highest heat in the target video based on the first time table and the second time table; intercepting a third sub video corresponding to a second time interval from the target video; and playing the third-word video.
It can be seen that in the embodiment of the application, the popularity is determined through the first quantity and the second quantity, the number of people can be visually reflected, and the accuracy of determining the popularity is improved.
In an implementation manner of the present application, determining S second sub-videos in the N first sub-videos based on the heat of each of the first sub-videos includes:
sequencing the N first sub-videos to obtain a sub-video sequence based on an arrangement rule of the heat degree from top to bottom and the heat degree of each first sub-video;
and selecting S first sub-videos from the sub-video sequence based on a top-to-bottom selection rule to obtain S second sub-videos.
In an implementation manner of the present application, after generating the target short video based on the S second sub-videos, the method further includes:
playing the target short video, and counting the praise number aiming at the target short video;
and determining feasibility of the generation method of the target short video based on the praise number.
It can be seen that in the embodiment of the application, the feasibility of the target short video generation method is determined through the praise number, which is beneficial to the improvement of the target short video and further improves the user experience.
Referring to fig. 3, in accordance with the embodiment shown in fig. 2, fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and as shown in the figure, the electronic device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps:
an acquisition unit configured to acquire a target video;
the processing unit is used for carrying out video processing on the target video to obtain N first sub-videos, wherein N is an integer greater than 1;
a first determining unit, configured to determine a heat of each of the N first sub-videos;
a second determining unit, configured to determine S second sub-videos in the N first sub-videos based on a heat of each of the first sub-videos, where S is a positive integer and is less than or equal to N;
and the generating unit is used for generating the target short video based on the S second sub-videos.
In an implementation manner of the present application, before the target video is obtained, the program further includes instructions for executing the following steps:
the method comprises the steps of playing the target video, recording a first time position in a first time recording table in the process of playing the target video, and recording a second time position in a second time recording table, wherein the first time position is a time position of current playing of the target video when a bullet screen appears on a playing interface of the target video, the second time position is a time position of current playing of the target video when a first operation instruction aiming at the target video is detected, and the target video is a video which is played in a total amount within a preset time period and is larger than a first preset playing amount and played in an amount on the day and is larger than a second preset playing amount.
In an implementation manner of the present application, in terms of performing video processing on the target video to obtain N first sub-videos, the program includes instructions for executing the following steps:
performing scene recognition on the target video, and determining M scenes included in the target video, wherein M is a positive integer;
splitting the target video into N first sub-videos based on the M scenes, wherein the duration of each first sub-video is greater than or equal to a first preset duration and the duration of each first sub-video is less than a second preset duration, time intervals occupied by scenes included in each first sub-video in the target video are continuous, and each first sub-video includes at least one scene.
In an implementation manner of the present application, in terms of performing video processing on the target video to obtain N first sub-videos, the program includes instructions for executing the following steps:
acquiring a target image;
based on the target image and the target video, intercepting the N first sub-videos from the target video, wherein each frame of the N first sub-videos comprises the target image.
In an implementation manner of the present application, in determining the heat of each of the N first sub-videos, the program includes instructions for executing the following steps:
determining a first time period of each of the first sub-videos in the target video;
determining a first number of barrages appearing on a playing interface of each first sub-video based on the first time recording list and the first time period;
determining a second number of operation instructions for each of the first sub-videos based on the second schedule and the first period;
determining a heat of each of the first sub-videos based on the first number and the second number.
In an implementation manner of the present application, in determining S second sub-videos in the N first sub-videos based on the heat of each of the first sub-videos, the program includes instructions for executing the following steps:
sequencing the N first sub-videos to obtain a sub-video sequence based on an arrangement rule of the heat degree from top to bottom and the heat degree of each first sub-video;
and selecting S first sub-videos from the sub-video sequence based on a top-to-bottom selection rule to obtain S second sub-videos.
In an implementation manner of the present application, after generating the target short video based on the S second sub-videos, the program further includes instructions for executing the following steps:
playing the target short video, and counting the praise number aiming at the target short video;
and determining feasibility of the generation method of the target short video based on the praise number.
It should be noted that, for the specific implementation process of the present embodiment, reference may be made to the specific implementation process described in the above method embodiment, and a description thereof is omitted here.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a short video generating apparatus according to an embodiment of the present application, applied to an electronic device, where the apparatus includes:
an acquisition unit 401 configured to acquire a target video;
a processing unit 402, configured to perform video processing on the target video to obtain N first sub-videos, where N is an integer greater than 1;
a first determining unit 403, configured to determine a heat of each of the N first sub-videos;
a second determining unit 404, configured to determine S second sub-videos in the N first sub-videos based on a heat degree of each of the first sub-videos, where S is a positive integer and is less than or equal to N;
a generating unit 405, configured to generate a target short video based on the S second sub videos.
In a possible implementation manner, the short video generating apparatus further includes a playing unit 406.
In an implementation manner of the present application, before obtaining the target video, the playing unit 406 includes instructions for performing the following steps:
the method comprises the steps of playing the target video, recording a first time position in a first time recording table in the process of playing the target video, and recording a second time position in a second time recording table, wherein the first time position is a time position of current playing of the target video when a bullet screen appears on a playing interface of the target video, the second time position is a time position of current playing of the target video when a first operation instruction aiming at the target video is detected, and the target video is a video which is played in a total amount within a preset time period and is larger than a first preset playing amount and played in an amount on the day and is larger than a second preset playing amount.
In an implementation manner of the present application, in terms of performing video processing on the target video to obtain N first sub-videos, the processing unit 402 includes instructions for executing the following steps:
performing scene recognition on the target video, and determining M scenes included in the target video, wherein M is a positive integer;
splitting the target video into N first sub-videos based on the M scenes, wherein the duration of each first sub-video is greater than or equal to a first preset duration and the duration of each first sub-video is less than a second preset duration, time intervals occupied by scenes included in each first sub-video in the target video are continuous, and each first sub-video includes at least one scene.
In an implementation manner of the present application, in terms of performing video processing on the target video to obtain N first sub-videos, the processing unit 402 includes instructions for executing the following steps:
acquiring a target image;
based on the target image and the target video, intercepting the N first sub-videos from the target video, wherein each frame of the N first sub-videos comprises the target image.
In an implementation manner of the present application, in determining the heat of each of the N first sub-videos, the first determining unit 403 includes instructions for performing the following steps:
determining a first time period of each of the first sub-videos in the target video;
determining a first number of barrages appearing on a playing interface of each first sub-video based on the first time recording list and the first time period;
determining a second number of operation instructions for each of the first sub-videos based on the second schedule and the first period;
determining a heat of each of the first sub-videos based on the first number and the second number.
In an implementation manner of the present application, in terms of determining S second sub videos in the N first sub videos based on the heat of each of the first sub videos, the second determining unit 404 includes instructions for performing the following steps:
sequencing the N first sub-videos to obtain a sub-video sequence based on an arrangement rule of the heat degree from top to bottom and the heat degree of each first sub-video;
and selecting S first sub-videos from the sub-video sequence based on a top-to-bottom selection rule to obtain S second sub-videos.
In an implementation manner of the present application, after generating the target short video based on the S second sub-videos, the playing unit 406 further includes instructions for executing the following steps:
playing the target short video, and counting the praise number aiming at the target short video;
and determining feasibility of the generation method of the target short video based on the praise number.
It should be noted that the obtaining unit 401, the processing unit 402, the first determining unit 403, the second determining unit 404, and the generating unit 405 may be implemented by a processor, and the playing unit 406 may be implemented by a display screen.
The present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps described in the electronic device in the above method embodiments.
Embodiments of the present application also provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in the electronic device in the above method. The computer program product may be a software installation package.
The steps of a method or algorithm described in the embodiments of the present application may be implemented in hardware, or may be implemented by a processor executing software instructions. The software instructions may be comprised of corresponding software modules that may be stored in Random Access Memory (RAM), flash Memory, Read Only Memory (ROM), Erasable Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), registers, a hard disk, a removable disk, a compact disc Read Only Memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. Additionally, the ASIC may reside in an access network device, a target network device, or a core network device. Of course, the processor and the storage medium may reside as discrete components in an access network device, a target network device, or a core network device.
Those skilled in the art will appreciate that in one or more of the examples described above, the functionality described in the embodiments of the present application may be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., Digital Video Disk (DVD)), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the embodiments of the present application in further detail, and it should be understood that the above-mentioned embodiments are only specific embodiments of the present application, and are not intended to limit the scope of the embodiments of the present application, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the embodiments of the present application should be included in the scope of the embodiments of the present application.

Claims (10)

1. A short video generation method applied to an electronic device, the method comprising:
acquiring a target video;
performing video processing on the target video to obtain N first sub-videos, wherein N is an integer greater than 1;
determining a heat of each of the N first sub-videos;
determining S second sub-videos in the N first sub-videos based on the heat of each first sub-video, wherein S is a positive integer;
and generating a target short video based on the S second sub videos.
2. The method of claim 1, wherein prior to obtaining the target video, the method further comprises:
the method comprises the steps of playing the target video, recording a first time position in a first time recording table in the process of playing the target video, and recording a second time position in a second time recording table, wherein the first time position is a time position of current playing of the target video when a bullet screen appears on a playing interface of the target video, the second time position is a time position of current playing of the target video when a first operation instruction aiming at the target video is detected, and the target video is a video which is played in a total amount within a preset time period and is larger than a first preset playing amount and played in an amount on the day and is larger than a second preset playing amount.
3. The method according to claim 2, wherein the video processing the target video to obtain N first sub-videos comprises:
performing scene recognition on the target video, and determining M scenes included in the target video, wherein M is a positive integer;
splitting the target video into N first sub-videos based on the M scenes, wherein the duration of each first sub-video is greater than or equal to a first preset duration and the duration of each first sub-video is less than a second preset duration, time intervals occupied by scenes included in each first sub-video in the target video are continuous, and each first sub-video includes at least one scene.
4. The method according to claim 2, wherein the video processing the target video to obtain N first sub-videos comprises:
acquiring a target image;
based on the target image and the target video, intercepting the N first sub-videos from the target video, wherein each frame of the N first sub-videos comprises the target image.
5. The method according to claim 3 or 4, wherein the determining the heat of each of the N first sub-videos comprises:
determining a first time period of each of the first sub-videos in the target video;
determining a first number of barrages appearing on a playing interface of each first sub-video based on the first time recording list and the first time period;
determining a second number of operation instructions for each of the first sub-videos based on the second schedule and the first period;
determining a heat of each of the first sub-videos based on the first number and the second number.
6. The method according to claim 5, wherein the determining S second sub-videos among the N first sub-videos based on the heat of each of the first sub-videos comprises:
sequencing the N first sub-videos to obtain a sub-video sequence based on an arrangement rule of the heat degree from top to bottom and the heat degree of each first sub-video;
and selecting S first sub-videos from the sub-video sequence based on a top-to-bottom selection rule to obtain S second sub-videos.
7. The method of claim 6, wherein after generating the target short video based on the S second sub-videos, the method further comprises:
playing the target short video, and counting the praise number aiming at the target short video;
and determining feasibility of the generation method of the target short video based on the praise number.
8. A short video generation device applied to an electronic device, the method comprising:
an acquisition unit configured to acquire a target video;
the processing unit is used for carrying out video processing on the target video to obtain N first sub-videos, wherein N is an integer greater than 1;
a first determining unit, configured to determine a heat of each of the N first sub-videos;
a second determining unit, configured to determine S second sub-videos in the N first sub-videos based on a heat of each of the first sub-videos, where S is a positive integer and is less than or equal to N;
and the generating unit is used for generating the target short video based on the S second sub-videos.
9. An electronic device, comprising a processor, memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, wherein the computer program is processed to perform the method according to any of claims 1-7.
CN202011117996.6A 2020-10-19 2020-10-19 Short video generation method and related equipment Pending CN112261472A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011117996.6A CN112261472A (en) 2020-10-19 2020-10-19 Short video generation method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011117996.6A CN112261472A (en) 2020-10-19 2020-10-19 Short video generation method and related equipment

Publications (1)

Publication Number Publication Date
CN112261472A true CN112261472A (en) 2021-01-22

Family

ID=74244725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011117996.6A Pending CN112261472A (en) 2020-10-19 2020-10-19 Short video generation method and related equipment

Country Status (1)

Country Link
CN (1) CN112261472A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113038195A (en) * 2021-03-17 2021-06-25 北京市商汤科技开发有限公司 Video processing method, device, system, medium and computer equipment
CN113542818A (en) * 2021-07-16 2021-10-22 北京字节跳动网络技术有限公司 Video display method, video editing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150365623A1 (en) * 2013-09-26 2015-12-17 Hangzhou Hikvision Digital Technology Co., Ltd. Method and Device for Storing Video Images
CN110191358A (en) * 2019-07-19 2019-08-30 北京奇艺世纪科技有限公司 Video generation method and device
CN110248258A (en) * 2019-07-18 2019-09-17 腾讯科技(深圳)有限公司 Recommended method, device, storage medium and the computer equipment of video clip
CN110769284A (en) * 2019-11-19 2020-02-07 深圳市迅雷网络技术有限公司 Video highlight caching method and related device
CN110798752A (en) * 2018-08-03 2020-02-14 北京京东尚科信息技术有限公司 Method and system for generating video summary
CN110798716A (en) * 2019-11-19 2020-02-14 深圳市迅雷网络技术有限公司 Video highlight playing method and related device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150365623A1 (en) * 2013-09-26 2015-12-17 Hangzhou Hikvision Digital Technology Co., Ltd. Method and Device for Storing Video Images
CN110798752A (en) * 2018-08-03 2020-02-14 北京京东尚科信息技术有限公司 Method and system for generating video summary
CN110248258A (en) * 2019-07-18 2019-09-17 腾讯科技(深圳)有限公司 Recommended method, device, storage medium and the computer equipment of video clip
CN110191358A (en) * 2019-07-19 2019-08-30 北京奇艺世纪科技有限公司 Video generation method and device
CN110769284A (en) * 2019-11-19 2020-02-07 深圳市迅雷网络技术有限公司 Video highlight caching method and related device
CN110798716A (en) * 2019-11-19 2020-02-14 深圳市迅雷网络技术有限公司 Video highlight playing method and related device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113038195A (en) * 2021-03-17 2021-06-25 北京市商汤科技开发有限公司 Video processing method, device, system, medium and computer equipment
CN113542818A (en) * 2021-07-16 2021-10-22 北京字节跳动网络技术有限公司 Video display method, video editing method and device

Similar Documents

Publication Publication Date Title
CN106791958B (en) Position mark information generation method and device
CN111147878B (en) Stream pushing method and device in live broadcast and computer storage medium
CN106502693A (en) A kind of method for displaying image and device
CN109660817B (en) Video live broadcast method, device and system
CN112261226A (en) Horizontal screen interaction method and device, electronic equipment and storage medium
CN111209437B (en) Label processing method and device, storage medium and electronic equipment
JP2023507068A (en) Information interaction method, device, equipment, storage medium and program product
CN112261472A (en) Short video generation method and related equipment
US10466955B1 (en) Crowdsourced audio normalization for presenting media content
CN107948562B (en) Video recording method and video recording terminal
CN111147787B (en) Method for processing interpolation frame and related equipment
US11928152B2 (en) Search result display method, readable medium, and terminal device
US10095713B2 (en) Information device, server, recording medium with image file recorded thereon, image file generating method, image file management method, and computer readable recording medium
CN113194351A (en) Video display method and device, electronic equipment and storage medium
CN106610770A (en) Picture viewing method and device
CN110557565A (en) Video processing method and mobile terminal
CN111416996B (en) Multimedia file detection method, multimedia file playing device, multimedia file equipment and storage medium
CN111787415A (en) Video interaction method and device, electronic equipment and storage medium
WO2022262645A1 (en) Video processing method and apparatus, and electronic device and storage medium
WO2021018186A1 (en) Video update push method and terminal
CN108012101B (en) Video recording method and video recording terminal
CN112291614A (en) Video generation method and device
CN112969093A (en) Interactive service processing method, device, equipment and storage medium
JP2022140458A (en) Information processing device, information processing method, and program
CN106534552A (en) Mobile terminal and photographing method thereof

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
CB02 Change of applicant information

Address after: 201821 room 208, building 4, No. 1411, Yecheng Road, Jiading Industrial Zone, Jiading District, Shanghai

Applicant after: Botai vehicle networking technology (Shanghai) Co.,Ltd.

Address before: Room 208, building 4, 1411 Yecheng Road, Jiading Industrial Zone, Jiading District, Shanghai, 201800

Applicant before: SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20210122

RJ01 Rejection of invention patent application after publication