CN114071238A - Method, apparatus, device, medium and product for generating video progress bar - Google Patents

Method, apparatus, device, medium and product for generating video progress bar Download PDF

Info

Publication number
CN114071238A
CN114071238A CN202111336371.3A CN202111336371A CN114071238A CN 114071238 A CN114071238 A CN 114071238A CN 202111336371 A CN202111336371 A CN 202111336371A CN 114071238 A CN114071238 A CN 114071238A
Authority
CN
China
Prior art keywords
progress bar
video progress
style
pendant
initial 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
CN202111336371.3A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202111336371.3A priority Critical patent/CN114071238A/en
Publication of CN114071238A publication Critical patent/CN114071238A/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/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/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/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/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4854End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast
    • 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/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure provides a method, apparatus, device, medium, and product for generating a video progress bar, relating to the technical field of artificial intelligence, and in particular to the technical field of image processing. The specific implementation scheme is as follows: acquiring an initial video progress bar; determining a custom operation corresponding to the initial video progress bar; and generating a target video progress bar corresponding to the initial video progress bar based on the custom operation. The implementation mode can improve the generation flexibility of the video progress bar.

Description

Method, apparatus, device, medium and product for generating video progress bar
Technical Field
The present disclosure relates to the field of artificial intelligence technology, and in particular to the field of image processing technology.
Background
At present, in the process of video clipping, a video progress bar is often needed to mark the video playing progress. The video progress bar is a mode for marking the video playing progress in the video playing process. For a clear-organized and structured knowledge sharing video, the progress bar can also reflect the currently shared paragraph core content.
The current generation mode of the video progress bar is generally as follows: and presetting the style, wherein the user can select the used style from the preset styles and generate the video progress bar according to the style selected by the user. However, the generation mode of the video progress bar can only generate a specified style, and cannot meet various generation requirements of users. Therefore, the generation method of the video progress bar has the problem of poor generation flexibility.
Disclosure of Invention
The present disclosure provides a method, apparatus, device, medium, and product for generating a video progress bar.
According to an aspect of the present disclosure, there is provided a method for generating a video progress bar, including: acquiring an initial video progress bar; determining a custom operation corresponding to the initial video progress bar; and generating a target video progress bar corresponding to the initial video progress bar based on the custom operation.
According to another aspect of the present disclosure, there is provided an apparatus for generating a video progress bar, including: a progress bar acquisition unit configured to acquire an initial video progress bar; an operation determination unit configured to determine a custom operation corresponding to the initial video progress bar; and the progress bar generating unit is configured to generate a target video progress bar corresponding to the initial video progress bar based on the self-defined operation.
According to another aspect of the present disclosure, there is provided an electronic device including: one or more processors; a memory for storing one or more programs; when executed by one or more processors, cause the one or more processors to implement a method for generating a video progress bar as any one of the above.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method for generating a video progress bar as any one of the above.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a method for generating a video progress bar as any one of the above.
According to the technology of the disclosure, a method for generating a video progress bar is provided, which can improve the generating flexibility of the video progress bar.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present disclosure may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for generating a video progress bar according to the present disclosure;
FIG. 3 is a schematic diagram of one application scenario of a method for generating a video progress bar according to the present disclosure;
FIG. 4 is a flow diagram of another embodiment of a method for generating a video progress bar according to the present disclosure;
FIG. 5 is a schematic structural diagram of one embodiment of an apparatus for generating a video progress bar according to the present disclosure;
fig. 6 is a block diagram of an electronic device for implementing a method for generating a video progress bar according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The terminal devices 101, 102, 103 interact with a server 105 via a network 104 to receive or send messages or the like. The terminal devices 101, 102, and 103 may run application software for clipping a video, and a user can add a video progress bar to a video by performing corresponding operations in the application software, and specifically, in the process of generating the video progress bar, the terminal devices 101, 102, and 103 may first obtain an initial video progress bar selected by the user from video progress bars of preset styles and simultaneously obtain a user-defined operation triggered by a touch operation of the user on the initial video progress bar, and then the terminal devices 101, 102, and 103 may upload the initial video progress bar and the user-defined operation on the initial video progress bar to the server 105 through the network 104.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices including, but not limited to, a mobile phone, a computer, a tablet, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, for example, the server 105 may obtain that the terminal devices 101, 102, 103 transmit the initial video progress bar and a custom operation for the initial video progress bar, and generate a target video progress bar corresponding to the initial video progress bar based on the custom operation, and then return the target video progress bar to the terminal devices 101, 102, 103 through the network 104, so that the terminal devices 101, 102, 103 display the target video progress bar for the user to perform subsequent operations such as preview, adjustment, and the like.
The server 105 may be hardware or software. When the server 105 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the server 105 is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for generating a video progress bar provided by the embodiment of the present disclosure may be executed by the terminal devices 101, 102, and 103, and may also be executed by the server 105, and the apparatus for generating a video progress bar may be disposed in the terminal devices 101, 102, and 103, and may also be disposed in the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a method for generating a video progress bar in accordance with the present disclosure is shown. The method for generating the video progress bar of the embodiment comprises the following steps:
step 201, obtaining an initial video progress bar.
In this embodiment, the executing agent (such as the terminal devices 101, 102, 103 or the server 105 in fig. 1) may obtain an initial video progress bar that needs to be customized from other electronic devices that are locally stored or have a connection established in advance. The initial video progress bar is used for describing the video progress condition, the initial video progress bar can be a preset video progress bar with a fixed style, and a user can generate a target video progress bar which is more suitable for the use requirement of the user by carrying out user-defined operation on the initial video progress bar.
Step 202, determining a custom operation corresponding to the initial video progress bar.
In this embodiment, the custom operation may be a custom operation performed by a user with respect to configuration parameters of an initial video progress bar, where the configuration parameters may include, but are not limited to, a style parameter of the video progress bar, a version parameter of the video progress bar, an export parameter of the video progress bar, and the like, and this embodiment is not limited thereto.
The style parameter of the video progress bar may be used to configure a display style of the video progress bar, such as a display font, a display color, a display pendant, and the like, which is not limited in this embodiment. The version parameter of the video progress bar can be used for configuring the display version of the video progress bar, such as horizontal display and vertical display. Derived parameters of the video progress bar may be used to configure parameters of the derived video progress bar, such as derived frames per second, derived rate, etc.
Specifically, the user may trigger a custom instruction for the initial video progress bar, so that the execution subject determines the custom operation instructed by the user based on the custom instruction.
In some optional implementations of this embodiment, determining the custom operation corresponding to the initial video progress bar may include: detecting touch operation triggered by a user in application software for clipping a video; in response to determining that the touch operation triggers a preset custom instruction, determining a custom category corresponding to the touch operation, wherein the custom category may include but is not limited to a style custom category, a version custom category, an export custom category, and the like; and determining the corresponding custom operation in the custom category. The number of the customization categories may be one or more, and this embodiment does not limit this. By determining the type of the user-defined instruction triggered by the user and then determining the user-defined operation under the type, the corresponding relation between the user-defined type and the user-defined operation can be established, and the user-defined operation can be managed conveniently.
And 203, generating a target video progress bar corresponding to the initial video progress bar based on the self-defined operation.
In this embodiment, the execution main body may perform corresponding operations on the initial video progress bar according to the above-mentioned custom operations, so as to obtain a target video progress bar corresponding to the initial video progress bar. For example, if the user-defined operation indicates to configure the display style of the initial video progress bar, the display style of the initial video progress bar is configured according to the style parameter indicated by the user-defined operation, so as to obtain the target video progress bar. And if the user-defined operation instruction configures the display version of the initial video progress bar, configuring the initial video progress bar into a corresponding horizontal display version or vertical display version according to the display version indicated by the user-defined operation instruction, and obtaining the target video progress bar. Or, if the user-defined operation instruction configures the derived parameters of the initial video progress bar, setting the derived frames per second and the derived rate of the initial video progress bar according to the configured derived parameters.
With continued reference to fig. 3, a schematic diagram of one application scenario of a method for generating a video progress bar according to the present disclosure is shown. In the application scenario of fig. 3, the executing subject may generate a video progress bar corresponding to a video in the application software for clipping the video. The display interface 301 is directed to a scene in which a video progress bar is displayed in a horizontal version, and the display interface 302 is directed to a scene in which a video progress bar is displayed in a vertical version. In the display interface 301, the execution main body may first obtain the initial video progress bar 3011 generated according to a preset fixed style, and then, the execution main body may detect a custom instruction triggered by a touch operation executed by a user in application software, and determine a custom operation corresponding to the initial video progress bar 3011. The custom operation here may be style custom, for example, a user may adjust font sizes of the "first section title" and the "second section title" in the initial video progress bar 3011 by a touch operation such as dragging a font size adjustment option. Still alternatively, the user may define the color of the initial video progress bar 3011 by performing a touch operation on the color. The user can select any one of the color A, the color B, the color C and the color D to realize color customization. Still alternatively, the user may define to add a pendant for the initial video progress bar 3011 by performing a touch operation on the pendant, for example, the user may select to add pendant a or pendant B. Optionally, the user can click an option of uploading the pendant, and more pendant adding modes are realized through modes of locally uploading images or online matting and the like. In addition, the user's custom operation may also be version-custom, for example, the user may customize the initial video progress bar 3011 to a vertical version of the progress bar. In the display interface 302, the initial video progress bar 3012 may be a vertical progress bar, and a user may trigger a user-defined instruction through touch operation to implement operations such as style customization and version customization (converting a vertical version into a horizontal version) on the initial video progress bar 3012. And after generating a target video progress bar corresponding to the initial video progress bar 3011 or the initial video progress bar 3012 based on a custom operation, the execution subject may implement video export of a video including the target video progress bar, so that the exported video presents the target video progress bar.
According to the method for generating the video progress bar provided by the embodiment of the disclosure, the target video progress bar corresponding to the initial video progress bar can be generated based on the user-defined operation corresponding to the initial video progress bar, so that the generation flexibility of the video progress bar can be improved.
With continued reference to fig. 4, a flow 400 of another embodiment of a method for generating a video progress bar according to the present disclosure is shown. As shown in fig. 4, the method for generating a video progress bar of the present embodiment may include the following steps:
step 401, obtaining an initial video progress bar.
In this embodiment, please refer to the detailed description of step 201 for the detailed description of step 401, which is not repeated herein.
And 402, determining custom operation corresponding to the initial video progress bar, wherein the custom operation comprises style custom operation and version custom operation, and the version custom operation comprises horizontal version custom operation and vertical version custom operation.
In this embodiment, the customization operation may include a style customization operation and/or a version customization operation, where the style customization operation is used to customize a display style of the initial video progress bar, and the version customization operation is used to customize a display version of the initial video progress bar. The version self-defining operation comprises horizontal version self-defining operation of self-defining initial video progress bars displayed in horizontal versions and vertical version self-defining operation of self-defining initial video progress bars displayed in vertical versions.
Step 403, determining style parameters corresponding to the style self-defining operation; the style parameter includes at least one of: character parameters, color parameters and hanging part parameters.
In this embodiment, the style parameters may include a text parameter for configuring text of the video progress bar, a color parameter for configuring color of the video progress bar, and a pendant parameter for configuring a pendant of the video progress bar. The text parameters may include, but are not limited to, a font parameter, a font size parameter, a display effect parameter, and the like. The color parameters may include, but are not limited to, a pure color system color parameter, a multi-color system color parameter, a gradient system color parameter, and the like, which is not limited in this embodiment. The pendant parameters may include, but are not limited to, a pendant category configuration parameter, a pendant name parameter, and the like, which is not limited in this embodiment.
And step 404, based on the style parameter, changing the style corresponding to the initial video progress bar to obtain a target video progress bar.
In this embodiment, the execution main body may change the style of the initial video progress bar based on the style parameter to obtain the target video progress bar. For example, the execution subject may change the text corresponding to the initial video progress bar based on the text parameter to obtain the target video progress bar. Or, the execution subject may also change the color corresponding to the initial video progress bar based on the color parameter, so as to obtain the target video progress bar. Or, the execution main body may also change the pendant parameter corresponding to the initial video progress bar based on the pendant parameter, so as to obtain the target video progress bar. Or, the execution main body may also change the text, the color, and the pendant of the initial video progress bar simultaneously based on the text parameter, the color parameter, and the pendant parameter. For the specific way of changing the style corresponding to the initial video progress bar, this embodiment does not limit this.
In some optional implementation manners of this embodiment, based on the style parameter, changing a style corresponding to the initial video progress bar to obtain the target video progress bar includes: based on the character parameters, changing the character style corresponding to the initial video progress bar to obtain a target video progress bar; the text style includes at least one of: character style, size and character display effect.
In this implementation manner, the text style of the initial video progress bar may be a fixed style, and specifically, a fixed font size, and a fixed text display effect may be set. The execution main body can change the fixed style to obtain the target video progress bar. Or, the initial video progress bar may not be provided with various style parameters, or with text parameters, color parameters, and pendant parameters, and after the style parameters are obtained, the initial video progress bar may be configured in a corresponding style based on the style parameters, so as to obtain the target video progress bar.
Specifically, the execution main body can change the font of the initial video progress bar, so that the changed font can be displayed in a proper font, and the problem of character occlusion is solved. And the execution main body can provide various font styles for the user to select, and based on the font parameters corresponding to the font styles selected by the user, the character styles corresponding to the initial video progress bar are changed, so that the personalized display of the font styles is realized. The execution main body can also provide different character display effects for the user to select, for example, the user can select to adopt character display effects such as thickening, shading and tracing, and the execution main body can change the character style corresponding to the initial video progress bar based on the display effect parameters selected by the user, so that richer character display effects are realized.
In other optional implementation manners of this embodiment, based on the style parameter, changing a style corresponding to the initial video progress bar to obtain the target video progress bar includes: changing a color style corresponding to the initial video progress bar based on the color parameters to obtain a target video progress bar; the color pattern includes at least one of: pure color, multi-color, and gradient color.
In this implementation manner, the pure color system color may be a single color display style, the multi-color system color may be a color display style of multiple color systems, and the gradient system color may be a color display style with a gradient effect. The execution main body can obtain a pure color system color parameter, a multi-color system color parameter or a gradual change system color parameter, and changes the color style of the initial video progress bar to obtain the target video progress bar.
In other optional implementation manners of this embodiment, based on the style parameter, changing a style corresponding to the initial video progress bar to obtain the target video progress bar includes: determining the category of the pendant based on the pendant parameters; based on the category of the pendant, the pendant style corresponding to the initial video progress bar is changed to obtain a target video progress bar; the pendant style includes at least one of: preset pendant, user upload pendant, scratch the pendant.
In this implementation, the execution body may analyze the pendant parameters, and determine the pendant type that the user indicates to be customized. The pendant type can be a pendant configuration mode from different types, and can include a local preset pendant type, a pendant type uploaded by a user in a user-defined mode, and a pendant type set by matting.
Based on the pendant type, the pendant style corresponding to the initial video progress bar is changed, and the manner of obtaining the target video progress bar specifically may be: in response to the fact that the pendant type is determined to be a local preset pendant type, changing the preset pendant in the initial video progress bar into a target pendant indicated by a user to obtain a target video progress bar; in response to the fact that the pendant type is determined to be the pendant type uploaded by the user through self definition, obtaining pendants uploaded by the user, and filling the pendants uploaded by the user into a pendant frame corresponding to the pendants uploaded by the user to obtain a target video progress bar; and responding to the fact that the pendant type is determined to be the matte pendant type, determining a matte image based on online matte operation executed by a user, generating a matte pendant corresponding to the initial video progress bar based on the matte image, and obtaining a target video progress bar.
And 405, in response to the fact that the version self-defining operation is determined to be a vertical self-defining operation, performing vertical conversion operation on the initial video progress bar to obtain a converted initial video progress bar.
In this embodiment, the execution main body may receive the version customization operation, compare the version customization operation with the current version of the initial video progress bar, and convert the version of the initial video progress bar to obtain the converted initial video progress bar if the version indicated by the version customization operation is inconsistent with the current version of the initial video progress bar. And if the version indicated by the version self-defining operation is consistent with the current version of the initial video progress bar, directly determining the initial video progress bar as the target video progress bar without executing conversion processing.
Specifically, the execution main body can reduce the horizontal initial video progress bar in an equal proportion, control all elements (such as character elements and pendant elements) in the initial video progress bar to be kept unchanged, and display the initial video progress bar in a vertical mode to obtain the converted initial video progress bar.
And step 406, determining a target video progress bar based on the converted initial video progress bar.
In this embodiment, the execution subject may directly use the converted initial video progress bar as the target video progress bar, or may perform corresponding processing on the converted initial video progress bar to obtain the target video progress bar.
In some optional implementation manners of this embodiment, determining the target video progress bar based on the converted initial video progress bar includes: in response to the fact that the pendants exist in the converted initial video progress bar and are shielded, correcting the positions of the pendants to obtain a target video progress bar; and the pendant after the position correction in the target video progress bar is not shielded.
In the implementation mode, if the sheltered pendant exists in the converted initial video progress bar, the pendant position which cannot be sheltered is determined through image recognition, and the position of the pendant is adjusted according to the pendant position which cannot be sheltered to obtain the target video progress bar, so that the pendant after position correction in the target video progress bar cannot be sheltered.
In other optional implementation manners of this embodiment, determining the target video progress bar based on the converted initial video progress bar includes: and changing the character style of the converted initial video progress bar according to the character quantity information in the converted initial video progress bar to obtain the target video progress bar.
In this implementation, the execution main body may change the text style based on the text number information in the initial video progress bar, for example, if the number of the text in the initial video progress bar is large, the font size of the text may be reduced for the adaptation vertical version display.
The execution main body can determine the character number information in the converted initial video progress bar, then determine the character size and/or the character style corresponding to the character number information, and change the character style of the initial video progress bar according to the character size and/or the character style corresponding to the character number information to obtain the target video progress bar.
Step 407, obtaining a video duration corresponding to the target video progress bar.
In this embodiment, the execution subject may further determine the video duration of the video corresponding to the target video progress bar.
In step 408, the number of frames per second corresponding to the video duration is determined.
In this embodiment, the number of frames per second may be the number of video frames per second, where the longer the number of frames per second, the better the video effect, but the lower the video derivation efficiency. The execution subject may preset the number of frames per second corresponding to different video durations.
Preferably, for video durations of less than or equal to one minute, the number of frames per second may be 20 frames/second; for video durations greater than one minute and less than or equal to three minutes, the number of frames per second may be 15 frames/second; for video durations greater than three minutes and less than or equal to ten minutes, the number of frames per second may be 10 frames/second; for video durations greater than ten minutes and less than or equal to fifteen minutes, the number of frames per second may be 5 frames/second; for video durations greater than fifteen minutes and less than or equal to twenty minutes, the number of frames per second may be 3 frames per second; for video durations greater than twenty minutes, the number of frames per second may be 1 frame/second.
Step 409, deriving a video including a target video progress bar based on the number of frames per second.
In this embodiment, the video is derived according to the number of frames per second corresponding to the different durations, so that the video deriving efficiency can be further improved on the basis of ensuring the video effect.
The method for generating the video progress bar provided by the embodiment of the disclosure can also realize that the user self-defines the characters, colors and hanging pieces of the video progress bar, so that the self-defined content is richer, and the user experience is better. And moreover, the adaptive version of the video progress bar can be customized, so that the video progress bar can be adapted to horizontal display and vertical display according to requirements, and the application richness of the video progress bar is improved. And when the video is exported, the corresponding frame per second can be determined according to the video duration, and the video export is carried out according to the frame per second, so that the video export efficiency can be further improved on the basis of ensuring the video effect.
With further reference to fig. 5, as an implementation of the methods shown in the above-mentioned figures, the present disclosure provides an embodiment of an apparatus for generating a video progress bar, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to a terminal device and a server.
As shown in fig. 5, the apparatus 500 for generating a video progress bar of the present embodiment includes: a progress bar acquisition unit 501, an operation determination unit 502, and a progress bar generation unit 503.
A progress bar obtaining unit 501 configured to obtain an initial video progress bar.
An operation determination unit 502 configured to determine a custom operation corresponding to the initial video progress bar.
A progress bar generating unit 503 configured to generate a target video progress bar corresponding to the initial video progress bar based on a custom operation.
In some optional implementations of this embodiment, the method further includes: a video derivation unit configured to obtain a video duration corresponding to the target video progress bar; determining the number of frames per second corresponding to the video time length; and deriving a video containing the target video progress bar based on the number of frames per second.
In some optional implementations of this embodiment, the customization operation includes at least a style customization operation; and, the progress bar generating unit 503 is further configured to: determining a style parameter corresponding to the style self-defining operation; the style parameter includes at least one of: character parameters, color parameters and hanging part parameters; and changing the style corresponding to the initial video progress bar based on the style parameters to obtain the target video progress bar.
In some optional implementations of the present embodiment, the progress bar generating unit 503 is further configured to: based on the character parameters, changing the character style corresponding to the initial video progress bar to obtain a target video progress bar; the text style includes at least one of: character style, size and character display effect.
In some optional implementations of the present embodiment, the progress bar generating unit 503 is further configured to: changing a color style corresponding to the initial video progress bar based on the color parameters to obtain a target video progress bar; the color pattern includes at least one of: pure color, multi-color, and gradient color.
In some optional implementations of the present embodiment, the progress bar generating unit 503 is further configured to: determining the category of the pendant based on the pendant parameters; based on the category of the pendant, the pendant style corresponding to the initial video progress bar is changed to obtain a target video progress bar; the pendant style includes at least one of: preset pendant, user upload pendant, scratch the pendant.
In some optional implementation manners of the embodiment, the customization operation at least includes a version customization operation, and the version customization operation includes a horizontal version customization operation and a vertical version customization operation; and, the progress bar generating unit 503 is further configured to: in response to the fact that the version self-defining operation is determined to be vertical self-defining operation, performing vertical conversion operation on the initial video progress bar to obtain a converted initial video progress bar; and determining a target video progress bar based on the converted initial video progress bar.
In some optional implementations of the present embodiment, the progress bar generating unit 503 is further configured to: in response to the fact that the pendants exist in the converted initial video progress bar and are shielded, correcting the positions of the pendants to obtain a target video progress bar; and the pendant after the position correction in the target video progress bar is not shielded.
In some optional implementations of the present embodiment, the progress bar generating unit 503 is further configured to: and changing the character style of the converted initial video progress bar according to the character quantity information in the converted initial video progress bar to obtain the target video progress bar.
It should be understood that the units 501 to 504 recorded in the apparatus 500 for generating a video progress bar correspond to respective steps in the method described with reference to fig. 2, respectively. Thus, the operations and features described above for the method for generating a video progress bar are also applicable to the apparatus 500 and the units included therein, and are not described herein again.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 6 illustrates a schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the apparatus 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data required for the operation of the device 600 can also be stored. The calculation unit 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, or the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 601 performs the respective methods and processes described above, such as a method for generating a video progress bar. For example, in some embodiments, the method for generating a video progress bar may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into the RAM603 and executed by the computing unit 601, one or more steps of the method for generating a video progress bar described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured by any other suitable means (e.g., by means of firmware) to perform the method for generating a video progress bar.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (21)

1. A method for generating a video progress bar, comprising:
acquiring an initial video progress bar;
determining a custom operation corresponding to the initial video progress bar;
and generating a target video progress bar corresponding to the initial video progress bar based on the self-defined operation.
2. The method of claim 1, further comprising:
acquiring video time corresponding to the target video progress bar;
determining the number of frames per second corresponding to the video time length;
and deriving a video containing the target video progress bar based on the frames per second.
3. The method of claim 1, wherein the customization operations include at least a style customization operation; and
generating a target video progress bar corresponding to the initial video progress bar based on the custom operation, wherein the generating comprises:
determining a style parameter corresponding to the style self-defining operation; the style parameter includes at least one of: character parameters, color parameters and hanging part parameters;
and changing the style corresponding to the initial video progress bar based on the style parameter to obtain the target video progress bar.
4. The method of claim 3, wherein the changing the style corresponding to the initial video progress bar based on the style parameter to obtain the target video progress bar comprises:
changing a character style corresponding to the initial video progress bar based on the character parameters to obtain the target video progress bar; the text style includes at least one of: character style, size and character display effect.
5. The method of claim 3, wherein the changing the style corresponding to the initial video progress bar based on the style parameter to obtain the target video progress bar comprises:
changing a color style corresponding to the initial video progress bar based on the color parameters to obtain the target video progress bar; the color pattern includes at least one of: pure color, multi-color, and gradient color.
6. The method of claim 3, wherein the changing the style corresponding to the initial video progress bar based on the style parameter to obtain the target video progress bar comprises:
determining a pendant category based on the pendant parameters;
changing the pendant style corresponding to the initial video progress bar based on the pendant type to obtain the target video progress bar; the pendant style includes at least one of: preset pendant, user upload pendant, scratch the pendant.
7. The method of claim 1, wherein the customization operations include at least a version customization operation, the version customization operation including a landscape customization operation and a portrait customization operation; and
generating a target video progress bar corresponding to the initial video progress bar based on the custom operation, wherein the generating comprises:
in response to the fact that the version self-defining operation is determined to be the vertical self-defining operation, performing vertical conversion operation on the initial video progress bar to obtain a converted initial video progress bar;
and determining the target video progress bar based on the converted initial video progress bar.
8. The method of claim 7, wherein the determining the target video progress bar based on the converted initial video progress bar comprises:
in response to the fact that the converted initial video progress bar has a pendant and the pendant is shielded, correcting the position of the pendant to obtain the target video progress bar; and the pendant after the position correction in the target video progress bar is not shielded.
9. The method of claim 7, wherein the determining the target video progress bar based on the converted initial video progress bar comprises:
and changing the character style of the converted initial video progress bar according to the character quantity information in the converted initial video progress bar to obtain the target video progress bar.
10. An apparatus for generating a video progress bar, comprising:
a progress bar acquisition unit configured to acquire an initial video progress bar;
an operation determination unit configured to determine a custom operation corresponding to the initial video progress bar;
and the progress bar generating unit is configured to generate a target video progress bar corresponding to the initial video progress bar based on the self-defined operation.
11. The apparatus of claim 10, further comprising:
a video derivation unit configured to obtain a video duration corresponding to the target video progress bar; determining the number of frames per second corresponding to the video time length; and deriving a video containing the target video progress bar based on the frames per second.
12. The apparatus of claim 10, wherein the customization operations include at least a style customization operation; and
the progress bar generating unit is further configured to:
determining a style parameter corresponding to the style self-defining operation; the style parameter includes at least one of: character parameters, color parameters and hanging part parameters;
and changing the style corresponding to the initial video progress bar based on the style parameter to obtain the target video progress bar.
13. The apparatus of claim 12, wherein the progress bar generating unit is further configured to:
changing a character style corresponding to the initial video progress bar based on the character parameters to obtain the target video progress bar; the text style includes at least one of: character style, size and character display effect.
14. The apparatus of claim 12, wherein the progress bar generating unit is further configured to:
changing a color style corresponding to the initial video progress bar based on the color parameters to obtain the target video progress bar; the color pattern includes at least one of: pure color, multi-color, and gradient color.
15. The apparatus of claim 12, wherein the progress bar generating unit is further configured to:
determining a pendant category based on the pendant parameters;
changing the pendant style corresponding to the initial video progress bar based on the pendant type to obtain the target video progress bar; the pendant style includes at least one of: preset pendant, user upload pendant, scratch the pendant.
16. The apparatus of claim 10, wherein the customization operations include at least a version customization operation, the version customization operation including a landscape customization operation and a portrait customization operation; and
the progress bar generating unit is further configured to:
in response to the fact that the version self-defining operation is determined to be the vertical self-defining operation, performing vertical conversion operation on the initial video progress bar to obtain a converted initial video progress bar;
and determining the target video progress bar based on the converted initial video progress bar.
17. The apparatus of claim 16, wherein the progress bar generating unit is further configured to:
in response to the fact that the converted initial video progress bar has a pendant and the pendant is shielded, correcting the position of the pendant to obtain the target video progress bar; and the pendant after the position correction in the target video progress bar is not shielded.
18. The apparatus of claim 16, wherein the progress bar generating unit is further configured to:
and changing the character style of the converted initial video progress bar according to the character quantity information in the converted initial video progress bar to obtain the target video progress bar.
19. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-9.
20. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-9.
21. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-9.
CN202111336371.3A 2021-11-12 2021-11-12 Method, apparatus, device, medium and product for generating video progress bar Pending CN114071238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111336371.3A CN114071238A (en) 2021-11-12 2021-11-12 Method, apparatus, device, medium and product for generating video progress bar

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111336371.3A CN114071238A (en) 2021-11-12 2021-11-12 Method, apparatus, device, medium and product for generating video progress bar

Publications (1)

Publication Number Publication Date
CN114071238A true CN114071238A (en) 2022-02-18

Family

ID=80275638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111336371.3A Pending CN114071238A (en) 2021-11-12 2021-11-12 Method, apparatus, device, medium and product for generating video progress bar

Country Status (1)

Country Link
CN (1) CN114071238A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130239039A1 (en) * 2012-03-09 2013-09-12 Apple Inc. Rocket effect in a progress bar
CN104063149A (en) * 2014-06-13 2014-09-24 深圳市东信时代信息技术有限公司 Adjustable progress bar system and method
US20150117834A1 (en) * 2013-10-31 2015-04-30 Lenovo (Beijing) Limited Information processing method and electronic device thereof
CN104869465A (en) * 2014-02-26 2015-08-26 腾讯科技(深圳)有限公司 Video playing control method and device
US20160182965A1 (en) * 2014-12-23 2016-06-23 Rovi Guides, Inc. Methods and systems for presenting information about media assets
CN106990951A (en) * 2017-02-22 2017-07-28 福建天泉教育科技有限公司 The method for drafting and system of a kind of progress bar
CN109901894A (en) * 2017-12-07 2019-06-18 腾讯科技(深圳)有限公司 A kind of progress bar image generating method, device and storage medium
CN110753201A (en) * 2019-11-12 2020-02-04 维沃移动通信有限公司 Video recording method and device, electronic equipment and storage medium
CN111124404A (en) * 2019-11-29 2020-05-08 武汉虹信技术服务有限责任公司 Custom color display method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130239039A1 (en) * 2012-03-09 2013-09-12 Apple Inc. Rocket effect in a progress bar
US20150117834A1 (en) * 2013-10-31 2015-04-30 Lenovo (Beijing) Limited Information processing method and electronic device thereof
CN104869465A (en) * 2014-02-26 2015-08-26 腾讯科技(深圳)有限公司 Video playing control method and device
CN104063149A (en) * 2014-06-13 2014-09-24 深圳市东信时代信息技术有限公司 Adjustable progress bar system and method
US20160182965A1 (en) * 2014-12-23 2016-06-23 Rovi Guides, Inc. Methods and systems for presenting information about media assets
CN106990951A (en) * 2017-02-22 2017-07-28 福建天泉教育科技有限公司 The method for drafting and system of a kind of progress bar
CN109901894A (en) * 2017-12-07 2019-06-18 腾讯科技(深圳)有限公司 A kind of progress bar image generating method, device and storage medium
CN110753201A (en) * 2019-11-12 2020-02-04 维沃移动通信有限公司 Video recording method and device, electronic equipment and storage medium
CN111124404A (en) * 2019-11-29 2020-05-08 武汉虹信技术服务有限责任公司 Custom color display method and system

Similar Documents

Publication Publication Date Title
WO2016165615A1 (en) Expression specific animation loading method in real-time video and electronic device
CN113099298B (en) Method and device for changing virtual image and terminal equipment
CN113643412A (en) Virtual image generation method and device, electronic equipment and storage medium
CN113808231B (en) Information processing method and device, image rendering method and device, and electronic device
CN113014937B (en) Video frame insertion method, device, equipment and storage medium
CN114092675A (en) Image display method, image display device, electronic apparatus, and storage medium
CN113453073A (en) Image rendering method and device, electronic equipment and storage medium
CN113380269B (en) Video image generation method, apparatus, device, medium, and computer program product
JP2021006982A (en) Method and device for determining character color
US20150189126A1 (en) Controlling content frame rate based on refresh rate of a display
CN115495175A (en) Picture display method and device, terminal equipment and computer medium
CN112562043A (en) Image processing method and device and electronic equipment
CN113535541A (en) Test method, test device, storage medium and computer equipment
CN114071238A (en) Method, apparatus, device, medium and product for generating video progress bar
CN113327311B (en) Virtual character-based display method, device, equipment and storage medium
CN115643468A (en) Poster generation method and device, electronic equipment and storage medium
CN114995875A (en) Page component configuration method and device, electronic equipment and storage medium
CN102789503A (en) Method, system and client for transforming image age in instant communication
CN112541477A (en) Expression package generation method and device, electronic equipment and storage medium
CN113127058A (en) Data annotation method, related device and computer program product
CN112507671B (en) Method, apparatus, and readable medium for adjusting text distance
CN111737372A (en) Map data generation method and device
CN115272524B (en) Multi-curve parallel drawing method, device, equipment and storage medium
CN113377380B (en) User interface component deployment method and device
CN116306496B (en) Character generation method, training method and device of character generation model

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