CN110198486B - Method for previewing video material, computer equipment and readable storage medium - Google Patents

Method for previewing video material, computer equipment and readable storage medium Download PDF

Info

Publication number
CN110198486B
CN110198486B CN201910449300.0A CN201910449300A CN110198486B CN 110198486 B CN110198486 B CN 110198486B CN 201910449300 A CN201910449300 A CN 201910449300A CN 110198486 B CN110198486 B CN 110198486B
Authority
CN
China
Prior art keywords
track
video
edited
length
display interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910449300.0A
Other languages
Chinese (zh)
Other versions
CN110198486A (en
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 Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology 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 Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN201910449300.0A priority Critical patent/CN110198486B/en
Publication of CN110198486A publication Critical patent/CN110198486A/en
Application granted granted Critical
Publication of CN110198486B publication Critical patent/CN110198486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects

Abstract

The invention discloses a method for previewing video materials, computer equipment and a readable storage medium, wherein the method comprises the following steps: acquiring a video to be edited, and determining the length of a track according to the playing duration of the video to be edited; creating a video track according to the track length, and adding a picture frame for previewing the video to be edited in the video track; when the fact that materials are added in the video to be edited is detected, a material track is created according to the track length, and an identifier used for representing the materials is added at the corresponding position of the material track; displaying the video track and the material track in a user display interface; the method and the device can display the material information added in the video in real time in the video editing process, and are convenient for a user to edit the video in the later period.

Description

Method for previewing video material, computer equipment and readable storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a method for previewing video materials, computer equipment and a readable storage medium.
Background
After a user takes a video, the video is often edited using video editing software, such as: adding materials such as subtitles, stickers and music in the video, and adding different types of materials at different time points in the video by a user; when an edited video is previewed, all the materials added to the video can be sequentially displayed along with the playing progress, all the materials added to the video cannot be integrally displayed, and detailed information of each material cannot be displayed; since a user often needs to repeatedly modify the video in the process of editing the video, when using conventional video editing software, the problems that information of all materials added to the video cannot be acquired and the positions of the added materials cannot be easily located exist, which brings inconvenience to the user, and thus causes poor user experience.
Disclosure of Invention
The invention aims to provide a method for previewing a video material, computer equipment and a readable storage medium, which can display material information added in a video in real time in the video editing process and facilitate the later-stage video editing of a user.
According to one aspect of the present invention there is provided a method of previewing video material, the method comprising the steps of:
acquiring a video to be edited, and determining the length of a track according to the playing duration of the video to be edited;
creating a video track according to the track length, and adding a picture frame for previewing the video to be edited in the video track;
when the fact that materials are added in the video to be edited is detected, a material track is created according to the track length, and an identifier used for representing the materials is added at the corresponding position of the material track;
and displaying the video track and the material track in a user display interface.
Optionally, adding a picture frame for previewing the video to be edited in the video track specifically includes:
determining a time interval according to the playing duration of the video to be edited;
and extracting picture frames from the video to be edited according to the time interval, and sequentially adding the extracted picture frames into the video track.
Optionally, when it is detected that a material is added to the video to be edited, creating a material track according to the track length, and adding an identifier for indicating the material at a corresponding position of the material track, specifically including:
judging whether a material track corresponding to the type of the material exists or not;
if yes, adding an identifier for representing the material at a corresponding position on an existing material track;
and if not, creating a material track corresponding to the type of the material, and adding an identifier for representing the material at a corresponding position on the created material track.
Optionally, adding an identifier for representing the material at a corresponding position of the material track specifically includes:
determining starting and ending time points of the material appearing in the video to be edited;
and determining a starting and stopping position corresponding to the starting and stopping time point on the material track, and adding an identifier for representing the material at the starting and stopping position.
Optionally, the displaying the video track and the material track in a user display interface specifically includes:
and longitudinally arranging the video track and the material track in the user display interface, wherein the starting position of the video track is aligned with the starting position of the material track.
Optionally, the longitudinally arranging the video track and the material track in the user display interface specifically includes:
acquiring the interface width of the user display interface, and judging whether the interface width is smaller than the track length;
if so, intercepting the track content with the set length away from the initial position of the video track from the video track, intercepting the track content with the set length away from the initial position of the material track from the material track, and longitudinally arranging the intercepted track content in the user display interface; wherein the set length is less than the interface width;
and if not, longitudinally arranging all track contents of the video track and the material track in the user display interface.
Optionally, when the interface width is smaller than the track length, after the displaying the video track and the material track in the user display interface, the method further includes:
and in the process of playing the video to be edited, synchronously translating the video track and the material track according to the playing speed.
Optionally, when the interface width is smaller than the track length, after the displaying the video track and the material track in the user display interface, the method further includes:
when a video adjusting instruction is acquired on the video track, determining a track translation distance and a track translation direction corresponding to the video adjusting instruction;
and simultaneously translating the video track and the material track by the track translation distance according to the track translation direction.
In order to achieve the above object, the present invention further provides a computer device, which specifically includes: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above-described method of previewing video material when executing the computer program.
To achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, realizes the above-described steps of the method for previewing video material.
According to the method for previewing the video materials, the computer equipment and the readable storage medium, provided by the invention, each material added in the video to be edited by a user is obtained, and a corresponding material track is created for each type of material; adding material identification at the corresponding position of the material track of the corresponding type aiming at one material; displaying each material track with the material identification in a user display interface so that a user can visually observe the type information, the position information and the attribute information of the material added in the video to be edited; in addition, when the video to be edited is played, each material track can synchronously adjust the track content in the user display interface along with the playing progress so as to facilitate the user to see and obtain the video; the method and the device can display the material information added in the video in real time in the video editing process, and are convenient for a user to edit the video in the later period.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flow chart of an alternative method for previewing video material according to an embodiment;
fig. 2 is a schematic diagram of a user display interface including a video track and a material track according to the first embodiment;
FIG. 3 is a diagram illustrating a user display interface when a video to be edited is not played according to the first embodiment;
FIG. 4 is a schematic diagram of an alternative program module of the apparatus for previewing video material according to the second embodiment;
fig. 5 is a schematic diagram of an alternative hardware architecture of the computer device according to the third embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. 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 invention.
The method, apparatus, computer device and readable storage medium for previewing video material provided by the present invention are described with reference to the accompanying drawings.
Example one
An embodiment of the present invention provides a method for previewing a video material, where fig. 1 is an optional flowchart of the method, and as shown in fig. 1, the method specifically includes the following steps:
step S101: and acquiring a video to be edited, and determining the length of the track according to the playing time of the video to be edited.
Specifically, the acquiring the video to be edited includes:
and acquiring the video to be edited from a local photo album of the terminal, or shooting the video through a camera of the terminal to obtain the video to be edited.
Further, the determining the track length according to the playing duration of the video to be edited includes:
converting the playing time length into standard playing time length with the unit of second, finding out the corresponding time length and length proportion according to the standard playing time length, and determining the track length according to the time length and length proportion.
For example, when the playing time of the video to be edited is 1 minute, the standard playing time of the video to be edited is 60 seconds; the preset length-to-length ratio of 10 seconds corresponds to 1 centimeter, so that the track length of the video to be edited is 6 centimeters. It should be noted that different time length to length ratios are preset according to different standard playing time lengths, for example, for a video with a standard playing time length of less than 20 seconds, the time length to length ratio is 1 second to 1 cm, and for a video with a standard playing time length of more than 20 seconds and less than 60 seconds, the time length to length ratio is 10 seconds to 1 cm.
Step S102: and creating a video track according to the track length, and adding a picture frame for previewing the video to be edited in the video track.
Specifically, the adding of the picture frame for previewing the video to be edited in the video track includes:
determining a time interval according to the playing duration of the video to be edited;
and extracting picture frames from the video to be edited according to the time interval, and sequentially adding the extracted picture frames into the video track.
For example, when the playing time of the video to be edited is 1 minute, the time interval is determined to be 10 seconds, the picture frames of 10 th, 20 th, 30 th, 40 th, 50 th and 60 th seconds are extracted from the video to be edited, and the extracted picture frames are sequentially added to a video track with the track length of 6 centimeters.
The video content of the video to be edited can be roughly previewed through the picture frames in the video track, so that a later user can locate a position where video editing is needed based on the video content.
Step S103: when the fact that the materials are added in the video to be edited is detected, a material track is created according to the track length, and marks used for representing the materials are added at the corresponding position of the material track.
Specifically, step S103 includes:
judging whether a material track corresponding to the type of the material exists or not;
if yes, adding an identifier for representing the material at a corresponding position on an existing material track;
and if not, creating a material track corresponding to the type of the material, and adding an identifier for representing the material at a corresponding position on the created material track.
In an embodiment of the invention, the material includes the following types: theme, filter, background music, text, sticker, special effect; creating a corresponding material track for each type of material according to the type of the material added in the video to be edited; for example, if background music, characters and stickers are added to the video to be edited, a music material track, a character material track and a sticker material track are respectively created; in addition, in the embodiment of the invention, in order to avoid the repeated creation of the material track, only one material track is created for a plurality of materials of the same type; for example, two pieces of background music are added at the beginning and the end of the video to be edited, respectively, a first identifier is added at the front end of the music material track, and a second identifier is added at the tail end of the music material track. In practical application, in order to distinguish various types of material tracks, a corresponding track type identifier may be set in front of each material track; the identifier added to the material track to represent the material may be a material name and a material attribute, such as: music name, special effect name.
Further, adding an identifier for representing the material at a corresponding position of the material track specifically includes:
determining starting and ending time points of the material appearing in the video to be edited;
and determining a starting and stopping position corresponding to the starting and stopping time point on the material track, and adding an identifier for representing the material at the starting and stopping position.
For example, characters are added in the video to be edited with the playing time of 1 minute, and the characters are added in the 20 th to 40 th seconds; and calculating the starting and stopping positions (2 cm to 4 cm) according to the track length of 6 cm, the playing time of 1 min and the starting and stopping time points (20 s to 40 s), namely adding the material marks at the positions of 2 cm to 4 cm of the corresponding material track.
Step S104: and displaying the video track and the material track in a user display interface.
Specifically, step S104 includes:
and longitudinally arranging the video track and the material track in the user display interface, wherein the starting position of the video track is aligned with the starting position of the material track.
As shown in fig. 2, an interface is displayed for a user containing a video track and a material track; the user display interface includes two areas: a video display area and a track display area; the video display area is used for playing the video to be edited, and the track display area is used for displaying the video tracks and the material tracks.
Further, the longitudinally arranging the video track and the material track in the user display interface specifically includes:
acquiring the interface width of the user display interface, and judging whether the interface width is smaller than the track length;
if so, intercepting the track content with the set length away from the initial position of the video track from the video track, intercepting the track content with the set length away from the initial position of the material track from the material track, and longitudinally arranging the intercepted track content in the user display interface; wherein the set length is less than the interface width;
and if not, longitudinally arranging all track contents of the video track and the material track in the user display interface.
Because the playing time of the video to be edited can be long or short, and because the length of the track corresponding to the long video is long, if the video tracks and all the material tracks are all displayed in the user display interface, the track content is crowded to a small space, which is not beneficial to the watching and searching of the user. In order to solve the problem of displaying the track content of the long video, in the embodiment of the invention, only part of the track content is displayed in the user display interface.
When the video to be edited is not played, acquiring track contents with set lengths away from the initial position from the video track and each material track respectively; for example, as shown in fig. 3, the schematic diagram of a user display interface when a video to be edited is not played is shown, and a reference timeline is set in the middle of a track display area of the user display interface and is used for determining a currently played time point; since the interface width of the user display interface is 6 cm, the track content of the first 3 cm is acquired from the video track and each material track respectively to be displayed in the user display interface.
Further, when the interface width is less than the track length, after the displaying the video track and the material track in a user display interface, the method further comprises:
and in the process of playing the video to be edited, synchronously translating the video track and the material track according to the playing speed.
Specifically, the video track and the material track are translated synchronously according to the playing speed; the method specifically comprises the following steps:
and determining the track translation distance required to move every second according to the playing speed, and simultaneously moving the video track and each material track forward by the track translation distance every second.
For example, when the playback speed is single-time playback, it is determined that the movement needs to be 0.1 cm per second according to the track length (6 cm) and the playback time (1 min); in the process of playing the video, the video track and each material track are moved forward 0.1 cm per second at the same time.
Further, when the interface width is less than the track length, after the displaying the video track and the material track in a user display interface, the method further comprises:
step A1: when a video adjusting instruction is acquired on the video track, determining a track translation distance and a track translation direction corresponding to the video adjusting instruction;
step A2: and simultaneously translating the video track and the material track by the track translation distance according to the track translation direction.
Wherein the video adjustment instruction comprises: a user sliding distance and a user sliding direction;
step a1, specifically including:
calculating a track translation distance according to the user sliding distance in the video adjusting instruction; and determining the track translation direction according to the user sliding direction in the video adjusting instruction.
In the embodiment of the invention, a user can adjust the playing progress of the video to be edited by sliding the video track; when a user adjusts the playing progress by sliding the video track, the video track and each material track need to be adjusted correspondingly according to the sliding operation of the user.
In the embodiment of the invention, all the materials added in the video to be edited by a user are obtained, and a corresponding material track is created for each type of material; adding material identification at the corresponding position of the material track of the corresponding type aiming at one material; displaying each material track with the material identification in a user display interface so that a user can visually observe the type information, the position information and the attribute information of the material added in the video to be edited; in addition, when the video to be edited is played, the track content in the user display interface can be synchronously adjusted along with the playing progress of each material track, so that the user can see and obtain the video.
Example two
Based on the method for previewing video material provided in the first embodiment, an apparatus for previewing video material is provided in this embodiment, and in particular, fig. 4 illustrates an alternative structure block diagram of the apparatus for previewing video material, the apparatus for previewing video material is divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors, so as to complete the present invention. The program module referred to in the present invention refers to a series of computer program instruction segments capable of performing specific functions, and is more suitable for describing the execution process of the apparatus for previewing video material in a storage medium than the program itself, and the following description will specifically describe the functions of each program module in this embodiment.
As shown in fig. 4, the apparatus for previewing a video material according to an embodiment of the present invention specifically includes the following components:
an obtaining module 401, configured to obtain a video to be edited, and determine a track length according to a playing duration of the video to be edited;
a video module 402, configured to create a video track according to the track length, and add a picture frame for previewing the video to be edited in the video track;
a material module 403, configured to, when it is detected that a material is added to the video to be edited, create a material track according to the track length, and add an identifier indicating the material at a corresponding position of the material track;
a display module 404, configured to display the video track and the material track in a user display interface.
Wherein, the obtaining module 401 includes:
the acquisition unit is used for acquiring the video to be edited from a local album of the terminal or shooting the video through a camera of the terminal to obtain the video to be edited;
and the computing unit is used for converting the playing time length into a standard playing time length with the unit of second, searching a corresponding time length-length ratio according to the standard playing time length, and determining the track length according to the time length-length ratio.
A video module 402 to:
determining a time interval according to the playing duration of the video to be edited; and extracting picture frames from the video to be edited according to the time interval, and sequentially adding the extracted picture frames into the video track.
The material module 403 is further configured to:
judging whether a material track corresponding to the type of the material exists or not; if yes, adding an identifier for representing the material at a corresponding position on an existing material track; and if not, creating a material track corresponding to the type of the material, and adding an identifier for representing the material at a corresponding position on the created material track.
Further, the material module 403 is specifically configured to:
determining starting and ending time points of the material appearing in the video to be edited; and determining a starting and stopping position corresponding to the starting and stopping time point on the material track, and adding an identifier for representing the material at the starting and stopping position.
A display module 404 for:
and longitudinally arranging the video track and the material track in the user display interface, wherein the starting position of the video track is aligned with the starting position of the material track.
Further, when implementing the vertical arrangement of the video track and the material track in the user display interface, the display module 404 is specifically configured to:
acquiring the interface width of the user display interface, and judging whether the interface width is smaller than the track length; if so, intercepting the track content with the set length away from the initial position of the video track from the video track, intercepting the track content with the set length away from the initial position of the material track from the material track, and longitudinally arranging the intercepted track content in the user display interface; wherein the set length is less than the interface width; and if not, longitudinally arranging all track contents of the video track and the material track in the user display interface.
Still further, the apparatus further comprises:
and the adjusting module is used for synchronously translating the video track and the material track according to the playing magnification in the process of playing the video to be edited after the video track and the material track are displayed in a user display interface when the interface width is smaller than the track length.
The adjusting module is further configured to:
when the interface width is smaller than the track length, after the video track and the material track are displayed in a user display interface, and when a video adjustment instruction is acquired on the video track, determining a track translation distance and a track translation direction corresponding to the video adjustment instruction, and simultaneously translating the video track and the material track by the track translation distance according to the track translation direction.
EXAMPLE III
The embodiment also provides a computer device, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server or a rack server (including an independent server or a server cluster composed of a plurality of servers) capable of executing programs, and the like. As shown in fig. 5, the computer device 50 of the present embodiment includes at least but is not limited to: a memory 501, a processor 502 communicatively coupled to each other via a system bus. It is noted that FIG. 5 only shows the computer device 50 having the components 501 and 502, but it is understood that not all of the shown components are required and that more or fewer components may be implemented instead.
In this embodiment, the memory 501 (i.e., a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 501 may be an internal storage unit of the computer device 50, such as a hard disk or a memory of the computer device 50. In other embodiments, the memory 501 may also be an external storage device of the computer device 50, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device 50. Of course, the memory 501 may also include both internal and external storage devices for the computer device 50. In the present embodiment, the memory 501 is generally used for storing an operating system and various types of application software installed in the computer device 50, such as program codes of the apparatus for previewing video material of the second embodiment. Further, the memory 501 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 502 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 502 generally serves to control the overall operation of the computer device 50.
Specifically, in this embodiment, the processor 502 is configured to execute a program of a method for previewing video material stored in the processor 502, and the program of the method for previewing video material implements the following steps when executed:
acquiring a video to be edited, and determining the length of a track according to the playing duration of the video to be edited;
creating a video track according to the track length, and adding a picture frame for previewing the video to be edited in the video track;
when the fact that materials are added in the video to be edited is detected, a material track is created according to the track length, and an identifier used for representing the materials is added at the corresponding position of the material track;
and displaying the video track and the material track in a user display interface.
The specific embodiment process of the above method steps can be referred to in the first embodiment, and the detailed description of this embodiment is not repeated here.
Example four
The present embodiments also provide a computer readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, etc., having stored thereon a computer program that when executed by a processor implements the method steps of:
acquiring a video to be edited, and determining the length of a track according to the playing duration of the video to be edited;
creating a video track according to the track length, and adding a picture frame for previewing the video to be edited in the video track;
when the fact that materials are added in the video to be edited is detected, a material track is created according to the track length, and an identifier used for representing the materials is added at the corresponding position of the material track;
and displaying the video track and the material track in a user display interface.
The specific embodiment process of the above method steps can be referred to in the first embodiment, and the detailed description of this embodiment is not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method of previewing video material, the method comprising:
acquiring a video to be edited, and determining the length of a track according to the playing duration of the video to be edited;
creating a video track according to the track length, and adding a picture frame for previewing the video to be edited in the video track;
when the fact that materials are added in the video to be edited is detected, a material track is created according to the track length, and an identifier used for representing the materials is added at the corresponding position of the material track;
displaying the video track and the material track in a user display interface;
specifically, the displaying the video track and the material track in a user display interface includes:
arranging the video track and the material track in the user display interface longitudinally, wherein the starting position of the video track is aligned with the starting position of the material track;
further, the longitudinally arranging the video track and the material track in the user display interface specifically includes:
acquiring the interface width of the user display interface, and judging whether the interface width is smaller than the track length;
if so, intercepting the track content with the set length away from the initial position of the video track from the video track, intercepting the track content with the set length away from the initial position of the material track from the material track, and longitudinally arranging the intercepted track content in the user display interface; wherein the set length is less than the interface width;
and if not, longitudinally arranging all track contents of the video track and the material track in the user display interface.
2. The method for previewing a video material according to claim 1, wherein adding a frame for previewing the video to be edited in the video track specifically comprises:
determining a time interval according to the playing duration of the video to be edited;
and extracting picture frames from the video to be edited according to the time interval, and sequentially adding the extracted picture frames into the video track.
3. The method according to claim 1, wherein when it is detected that material is added to the video to be edited, creating a material track according to the track length, and adding an identifier representing the material at a corresponding position of the material track, specifically comprises:
judging whether a material track corresponding to the type of the material exists or not;
if yes, adding an identifier for representing the material at a corresponding position on an existing material track;
and if not, creating a material track corresponding to the type of the material, and adding an identifier for representing the material at a corresponding position on the created material track.
4. The method for previewing video material according to claim 1 or 3, wherein said adding an identifier for representing said material at a corresponding position of said material track comprises:
determining starting and ending time points of the material appearing in the video to be edited;
and determining a starting and stopping position corresponding to the starting and stopping time point on the material track, and adding an identifier for representing the material at the starting and stopping position.
5. The method of previewing video material according to claim 1, wherein after said displaying said video track and said material track in a user display interface when said interface width is less than said track length, said method further comprises:
and in the process of playing the video to be edited, synchronously translating the video track and the material track according to the playing speed.
6. The method of previewing video material according to claim 1, wherein after said displaying said video track and said material track in a user display interface when said interface width is less than said track length, said method further comprises:
when a video adjusting instruction is acquired on the video track, determining a track translation distance and a track translation direction corresponding to the video adjusting instruction;
and simultaneously translating the video track and the material track by the track translation distance according to the track translation direction.
7. A computer device, the computer device comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when executing the computer program.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201910449300.0A 2019-05-28 2019-05-28 Method for previewing video material, computer equipment and readable storage medium Active CN110198486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910449300.0A CN110198486B (en) 2019-05-28 2019-05-28 Method for previewing video material, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910449300.0A CN110198486B (en) 2019-05-28 2019-05-28 Method for previewing video material, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110198486A CN110198486A (en) 2019-09-03
CN110198486B true CN110198486B (en) 2022-04-05

Family

ID=67753193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910449300.0A Active CN110198486B (en) 2019-05-28 2019-05-28 Method for previewing video material, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110198486B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110582018B (en) * 2019-09-16 2022-06-10 腾讯科技(深圳)有限公司 Video file processing method, related device and equipment
CN111050220B (en) * 2019-12-11 2022-12-06 深圳市米兰显示技术有限公司 Media data playing method and related device
US11295782B2 (en) * 2020-03-24 2022-04-05 Meta Platforms, Inc. Timed elements in video clips
CN111541945B (en) * 2020-04-28 2022-05-10 Oppo广东移动通信有限公司 Video playing progress control method and device, storage medium and electronic equipment
CN111629252B (en) * 2020-06-10 2022-03-25 北京字节跳动网络技术有限公司 Video processing method and device, electronic equipment and computer readable storage medium
CN111757013B (en) * 2020-07-23 2022-04-29 北京字节跳动网络技术有限公司 Video processing method, device, equipment and storage medium
CN112287128B (en) * 2020-10-23 2024-01-12 北京百度网讯科技有限公司 Method and device for editing multimedia file, electronic equipment and storage medium
CN112506412B (en) * 2020-12-07 2022-09-30 北京达佳互联信息技术有限公司 Video editing method and device and electronic equipment
CN113473223B (en) * 2021-05-31 2023-07-04 北京达佳互联信息技术有限公司 Material processing method, device, electronic equipment and storage medium
CN113473204B (en) * 2021-05-31 2023-10-13 北京达佳互联信息技术有限公司 Information display method and device, electronic equipment and storage medium
CN113347479B (en) * 2021-05-31 2023-05-26 网易(杭州)网络有限公司 Editing method, device, equipment and storage medium of multimedia material
CN115442539B (en) * 2021-06-04 2023-11-07 北京字跳网络技术有限公司 Video editing method, device, equipment and storage medium
CN114374872A (en) * 2021-12-08 2022-04-19 卓米私人有限公司 Video generation method and device, electronic equipment and storage medium
CN114339446B (en) * 2021-12-28 2024-04-05 北京百度网讯科技有限公司 Audio/video editing method, device, equipment, storage medium and program product
CN114827722A (en) * 2022-04-12 2022-07-29 咪咕文化科技有限公司 Video preview method, device, equipment and storage medium
CN116055799B (en) * 2022-05-30 2023-11-21 荣耀终端有限公司 Multi-track video editing method, graphical user interface and electronic equipment
CN115278306A (en) * 2022-06-20 2022-11-01 阿里巴巴(中国)有限公司 Video editing method and device
CN115297272B (en) * 2022-08-01 2024-03-15 北京字跳网络技术有限公司 Video processing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783205A (en) * 2004-10-22 2006-06-07 索尼株式会社 Picture displaying method, picture displaying program, and editing apparatus
CN1863295A (en) * 2004-05-13 2006-11-15 索尼公司 Image data processing apparatus, image data processing method, program and recording medium
CN102881308A (en) * 2011-06-27 2013-01-16 索尼公司 Editing device, editing method, and program
US20130121668A1 (en) * 2011-11-14 2013-05-16 Brian Meaney Media editing with multi-camera media clips
CN106060343A (en) * 2016-06-21 2016-10-26 广州伟度计算机科技有限公司 Micro class assistant implementation system and method used for assisting teaching process

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863295A (en) * 2004-05-13 2006-11-15 索尼公司 Image data processing apparatus, image data processing method, program and recording medium
CN1783205A (en) * 2004-10-22 2006-06-07 索尼株式会社 Picture displaying method, picture displaying program, and editing apparatus
CN102881308A (en) * 2011-06-27 2013-01-16 索尼公司 Editing device, editing method, and program
US20130121668A1 (en) * 2011-11-14 2013-05-16 Brian Meaney Media editing with multi-camera media clips
CN106060343A (en) * 2016-06-21 2016-10-26 广州伟度计算机科技有限公司 Micro class assistant implementation system and method used for assisting teaching process

Also Published As

Publication number Publication date
CN110198486A (en) 2019-09-03

Similar Documents

Publication Publication Date Title
CN110198486B (en) Method for previewing video material, computer equipment and readable storage medium
US8775472B2 (en) Dynamic presentation framework
US9237322B2 (en) Systems and methods for performing selective video rendering
CN102932679A (en) Network video previewing system and method
KR101916874B1 (en) Apparatus, method for auto generating a title of video contents, and computer readable recording medium
US20050235198A1 (en) Editing system for audiovisual works and corresponding text for television news
CN108320319B (en) Cartoon synthesis method, device and equipment and computer readable storage medium
CN109561240B (en) System and method for generating media assets
CN111263186A (en) Video generation, playing, searching and processing method, device and storage medium
CN112866790A (en) Video playing method and system
US11941728B2 (en) Previewing method and apparatus for effect application, and device, and storage medium
CN112104908A (en) Audio and video file playing method and device, computer equipment and readable storage medium
CN104349173A (en) Video repeating method and device
EP4080507A1 (en) Method and apparatus for editing object, electronic device and storage medium
CN112422844A (en) Method, device and equipment for adding special effect in video and readable storage medium
CN114666637A (en) Video editing method, audio editing method and electronic equipment
US20240104669A1 (en) Method, apparatus, device and storage medium for content capturing
CN112445400A (en) Visual graph creating method, device, terminal and computer readable storage medium
CN106951405B (en) Data processing method and device based on typesetting engine
CN109862295B (en) GIF generation method, device, computer equipment and storage medium
CN113014957A (en) Video shot segmentation method and device, medium and computer equipment
CN115297272B (en) Video processing method, device, equipment and storage medium
CN112533058A (en) Video processing method, device, equipment and computer readable storage medium
KR101442355B1 (en) Device and method to create media summary data
CN112399261B (en) Video data processing method and device

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40010929

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant