CN111565330A - Synchronous subtitle adding method and device, electronic equipment and storage medium - Google Patents

Synchronous subtitle adding method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111565330A
CN111565330A CN202010670890.2A CN202010670890A CN111565330A CN 111565330 A CN111565330 A CN 111565330A CN 202010670890 A CN202010670890 A CN 202010670890A CN 111565330 A CN111565330 A CN 111565330A
Authority
CN
China
Prior art keywords
subtitle
data
target video
track
text
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
CN202010670890.2A
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 Meishe Network Technology Co ltd
Original Assignee
Beijing Meishe Network 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 Meishe Network Technology Co ltd filed Critical Beijing Meishe Network Technology Co ltd
Priority to CN202010670890.2A priority Critical patent/CN111565330A/en
Publication of CN111565330A publication Critical patent/CN111565330A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/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/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Abstract

The embodiment of the invention provides a method and a device for adding synchronous subtitles, electronic equipment and a storage medium, wherein the method comprises the following steps: a graphical user interface is obtained by executing a software application on a processor of the terminal and rendering on a display of the terminal, the graphical user interface displaying a picture of a target video, the method comprising: receiving original text data; sentence dividing is carried out on the original text data to generate subtitle data; creating a subtitle track for the target video; the subtitle data is added to the subtitle track in the target video playing process, so that accurate addition of subtitles in the video playing process is realized, sentences can be automatically divided from original text data, user operation is reduced, and experience and efficiency of a user in video later-stage editing are greatly improved.

Description

Synchronous subtitle adding method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computers, and in particular, to a method and an apparatus for adding a synchronous subtitle, an electronic device, and a storage medium.
Background
In the production of film and television works, the audience may have difficulty understanding the program content only by sound when watching the works due to factors of the works themselves, such as the voice rate of dubbing actors and the large number of words and homophones in the script. Therefore, in order to facilitate better viewing of movie and television works by audiences, producers need to add dubbing subtitles or custom subtitles to video materials in real time in the later editing of videos, and specifically, better viewing experience is brought to the audiences by adjusting the positions and duration of the subtitles and modifying the styles of the subtitles. In addition, subtitles can also be used to translate foreign language programs, so that viewers who do not understand the foreign language can hear the original soundtrack and understand the program content,
however, the addition of the common subtitles cannot be realized in the video playing process, and the precise addition of the subtitles by a producer is not convenient. In addition, the duration of the subtitles needs to be modified one by the producer, and for the producer, when the video needs to add a large amount of subtitles, a lot of time and energy are consumed.
Disclosure of Invention
In view of the above problems, the present invention is proposed to provide a method and apparatus for adding a subtitle, an electronic device, and a storage medium, which overcome or at least partially solve the above problems, including:
in order to solve the above problem, an embodiment of the present invention discloses a method for adding a synchronized subtitle, which is applied to a terminal, and is characterized in that a graphical user interface is obtained by executing a software application on a processor of the terminal and rendering the software application on a display of the terminal, and the graphical user interface displays a picture of a target video, and the method includes:
receiving original text data;
sentence dividing is carried out on the original text data to generate subtitle data;
creating a subtitle track for the target video;
adding the subtitle data to the subtitle track during the target video playback.
Preferably, the graphical user interface further comprises color data and font data; the method further comprises the following steps:
and setting the character colors and the fonts of the subtitle data in batch by adopting the color data and the font data.
Preferably, the step of adding the subtitle data to the subtitle track during the target video playing process includes:
in response to a first adding instruction, determining subtitle texts to be added from the subtitle data;
adding a subtitle text to be added into a subtitle track of the target video being played according to the first adding instruction;
and in response to the end of the first adding instruction, stopping adding the subtitle text to be added into the subtitle track of the target video being played.
Preferably, the step of clauseting the original text data to generate subtitle data includes:
according to punctuation marks in the original text data, clauses are carried out on the original text data to obtain a subtitle text;
and inserting an empty line between every two subtitle texts to generate subtitle data.
Preferably, the method further comprises:
adding an empty line in a subtitle track of the target video being played in response to a second adding instruction;
and stopping adding the empty line in the subtitle track of the target video playing in response to the end of the second adding instruction.
Preferably, after the step of adding the subtitle data to the subtitle track during the target video playing process, the method further includes:
synchronously displaying the subtitle text added to the target video on the subtitle track.
Preferably, after the step of synchronously displaying the subtitle text added to the target video on the subtitle track, the method further comprises:
and adjusting the time of the subtitle text appearing in the target video through the subtitle track.
The embodiment of the invention also discloses a device for adding the synchronous subtitles, which is applied to a terminal and is characterized in that a graphical user interface is obtained by executing software application on a processor of the terminal and rendering on a display of the terminal, the graphical user interface displays the picture of a target video, and the device comprises:
the receiving module is used for receiving original text data;
the generating module is used for carrying out clause division on the original text data to generate subtitle data;
the creation module is used for creating a subtitle track for the target video;
and the adding module is used for adding the subtitle data to the subtitle track in the target video playing process.
The embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the steps of the above method for adding a synchronized subtitle are implemented.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, and when being executed by a processor, the computer program realizes the steps of the above method for adding the synchronous subtitles.
The invention has the following advantages:
in the embodiment of the invention, the original text data is received, the clause is carried out on the original text data to generate the subtitle data, the subtitle track is created for the target video, the subtitle data is added into the subtitle track of the target video in the target video playing process, the independent subtitle track is created for the video, and the subtitle data is added into the subtitle track, so that the subtitle can be accurately added in the video playing process, the clause can be automatically carried out on the original text data, the operation of a user is reduced, and the experience and the efficiency of the user in the video later editing process are greatly improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating steps of a method for adding a subtitle according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of another method for adding a subtitle according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a synchronous subtitle adding step according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an add interface for synchronizing subtitles according to an embodiment of the present invention;
fig. 5 is a schematic diagram of another interface for adding synchronized subtitles according to an embodiment of the present invention;
fig. 6 is a schematic diagram of another interface for adding synchronized subtitles according to an embodiment of the present invention;
fig. 7 is a block diagram of a device for adding a subtitle according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart illustrating steps of a method for adding a synchronized subtitle according to an embodiment of the present invention is shown, where the method is applied to a terminal, and a graphical user interface is obtained by executing a software application on a processor of the terminal and rendering the software application on a display of the terminal, where the graphical user interface displays a picture of a target video, and the method specifically includes the following steps:
step 101, receiving original text data;
it should be noted that the terminal may include various mobile terminals, such as a mobile phone, a tablet computer, a game machine, a PDA, and the like. The operating system of the terminal may include Android (Android), IOS, Windows Phone, Windows, and the like, and may generally support the running of various software applications.
The method comprises the steps that a software application program, such as a web browser application program, is operated on a terminal, a graphical user interface is obtained through opening the web browser application program and rendering on a display of the terminal, a user uploads videos needing to be edited to a server through the graphical user interface, and the server generates editable target videos after analyzing the videos and displays the editable target videos in the graphical user interface.
Subtitles refer to non-video contents such as dialogs in television, movies, and stage works displayed in a text form, and also refer to texts for post-processing of the movie and television works. The commentary and miscellaneous text appearing under the movie screen or television screen, such as the film's title, credits, lyrics, spoken text, captions and the introduction of characters, place names and years, are called subtitles. The subtitles for movies and television works are usually displayed in the middle of the lower part of the screen, while the subtitles for drama works may be displayed on both sides or the upper part of the stage.
The user can input the original text data, i.e. the text to be added, into the graphical user interface in various ways, for example, the original text data can be directly input through an external input device connected with the terminal, or the existing original text data can be copied into the graphical user interface by using a copy function provided by an operating system of the terminal. In addition, the embodiment of the invention can also directly import the subtitle file, and the subtitle file contains the required original text data. For example, the subtitle file with the format of SRT is directly imported into the graphical user interface to obtain the original text data.
102, performing clauses on the original text data to generate subtitle data;
during the playing of video, the displayed subtitles typically appear and disappear in synchronization with the dubbing or the picture. Therefore, after the original text data is input into the graphical user interface, the terminal can perform sentence segmentation on the input original text data, and divide the input large-segment original text data into a plurality of independent sentences to generate subtitle data.
103, creating a subtitle track for the target video;
in the video post-editing, each attribute of the video, such as audio, video, subtitle, etc., has a separate track, i.e., audio track, video track, subtitle track, and the user can modify a single attribute of the video by operating on different tracks. In the embodiment of the invention, a user can create an independent subtitle track for a target video through a terminal, if the video has subtitles, the independent subtitle track can avoid the conflict with the existing subtitles to cause the disorder of subtitle display, and the user can modify the subtitles conveniently.
And 104, adding the subtitle data to the subtitle track in the target video playing process.
After the subtitle track is created, the user can play the target video in the graphical user interface, and during the playing of the target video, when the target video is played to a picture to which the subtitle needs to be added, the user adds the subtitle data to the subtitle track of the target video sentence by pressing keys of an external input device connected with the terminal, such as a keyboard and the like. After the subtitle data is completely added to the subtitle track of the target video and confirmed by the user, the server can store the subtitle data and the target video to generate the target video containing the subtitle data.
In addition, in the process of adding the subtitles, the subtitles added by the user can be displayed in real time in the target video picture, the user can check the effect of subtitle addition in real time, and can correct the subtitles in time when an error occurs in addition, so that the correction workload increased by watching the subtitles after the subtitles are completely added is avoided.
In the embodiment of the invention, the subtitle data is generated by receiving the original text data and dividing sentences of the original text data, the subtitle track is created for the target video, and the subtitle data is added to the subtitle track in the target video playing process, so that the subtitle adding step is simpler and more convenient, the operation of a user is reduced, the subtitle is accurately added in the video playing process, and the experience and the efficiency of the user in the later editing of the video are improved.
Referring to fig. 2, a flowchart illustrating steps of another method for adding a synchronized subtitle according to an embodiment of the present invention is shown, where the method is applied to a terminal, and a graphical user interface is obtained by executing a software application on a processor of the terminal and rendering the software application on a display of the terminal, where the graphical user interface displays a picture of a target video, and the method specifically includes the following steps:
step 201, receiving original text data;
this step is similar to step 101, and the detailed description may refer to step 101, which is not repeated herein.
Step 202, performing clauses on the original text data to generate subtitle data;
in a preferred embodiment of the present invention, the step 202 further comprises the following sub-steps:
according to punctuation marks in the original text data, clauses are carried out on the original text data to obtain a subtitle text;
and inserting an empty line between every two subtitle texts to generate subtitle data.
The original text data input by the user is often a character paragraph with punctuation marks, so the punctuation marks can be used as the characteristics for distinguishing each sentence, the original text data is divided into sentences according to the punctuation marks, and after the division is finished, the punctuation marks can be selected to be deleted according to the actual needs, for example, the added caption text is a human-object conversation, and only the character part is reserved.
In video playback, subtitles are generally displayed in synchronization with a picture or a dubbing, for example, when a subtitle corresponds to a dubbing of an actor, the corresponding subtitle appears when sound starts to sound, and the subtitle disappears when the sound stops. However, because the dialog between the actors in the video is not seamless, generally, after a dialog stops, the next dialog will sound after an interval, and in this interval, because the actors do not speak, the subtitles are not displayed in the picture. In order to prevent the subtitle from being displayed at the intermediate interval time when the subtitle data is added, in the embodiment of the invention, a user can select an 'insert empty line' option in a graphical user interface, so that the empty line is automatically added between every two subtitle texts when the sentence is divided, and the effect of preventing the subtitle from being displayed when the subtitle data is added subsequently is achieved.
Step 203, adopting the color data and the font data to set the character color and the font of the caption data in batch;
the graphic user interface also comprises color data and font data, after the subtitle data is generated, a user can select font colors, such as red, green and the like, of the subtitle data from the color data, and can also select font styles, such as sons body, blackbody and the like, of the subtitle data from the font data, and the selected font colors and font styles can be uniformly applied to all subtitle texts of the subtitle data after being determined by the user without setting by the user one by one. In addition, when the color data and font data in the terminal cannot meet the requirements of the user, the user can be connected with the server through the terminal to download more color data and font data from the server.
Step 204, creating a subtitle track for the target video;
this step is similar to step 103, and the detailed description may refer to step 103, which is not repeated herein.
Step 205, adding the subtitle data to the subtitle track in the target video playing process;
in a preferred embodiment of the present invention, the step 205 further comprises the following sub-steps:
in response to a first adding instruction, determining subtitle texts to be added from the subtitle data;
adding a subtitle text to be added into a subtitle track of the target video being played according to the first adding instruction;
and in response to the end of the first adding instruction, stopping adding the subtitle text to be added into the subtitle track of the target video being played.
In the specific implementation, after a user selects to start adding a caption text, a target video starts playing, the user determines the time when a first caption text should appear according to a playing picture of the target video, then sends a first adding instruction for adding the first caption text into a caption track of the target video through an external device connected with a terminal, such as a key on a keyboard, after receiving the instruction, the terminal determines a to-be-added caption text to be added from caption data, the terminal executes the instruction to add the to-be-added caption text into the caption track of the target video, and simultaneously the to-be-added caption text is also displayed in the playing picture in real time, when the playing picture starts to change or when a person finishes speaking a dialog corresponding to the first caption text, the user finishes the first adding instruction again through the key on the keyboard and starts adding a new caption text, and after receiving the instruction, the terminal executes the instruction to finish the display of the caption text and automatically adds the next caption text to be added into the caption track. It should be noted that the triggering and ending of the first adding instruction may be the same operation of the user, that is, the user simultaneously triggers the operations of adding the subtitle text and ending the subtitle text by pressing one key in the keyboard, for example, when the user completes adding the first subtitle text, the user presses the key of the keyboard, and when the user triggers the end of adding the first subtitle text, the user also triggers the addition of the second subtitle text.
In a preferred embodiment of the present invention, the step 205 further comprises the following sub-steps:
adding an empty line in a subtitle track of the target video being played in response to a second adding instruction;
and stopping adding the empty line in the subtitle track of the target video playing in response to the end of the second adding instruction.
In an actual video, the dialog between actors is not seamless, generally, after a dialog is stopped, a dialog is often sounded after an interval, and in the interval, since the actors do not speak, the subtitles are not displayed in the picture. Therefore, through the second adding instruction of the user, an empty line can be inserted behind the subtitle text added to the subtitle track, and the empty line can be regarded as blank subtitle text, so that before the next subtitle text automatically begins to be added, the user can add the inserted empty line through the second adding instruction, namely, the subtitle text is not displayed on the playing picture, when the character begins to speak the next sentence of dialogue, the user can end the second adding instruction, namely, the display of the empty line is ended, and the second subtitle text is automatically started to be displayed on the playing picture, and the user repeats the operation in the process of playing the target video, and the subtitle data to be added is completely added to the subtitle track of the target video. It should be noted that the end of the first adding instruction and the input of the second adding instruction may be the same operation, that is, when the user presses one key on the keyboard, the end of adding the subtitle text to be added and the start of adding the blank line are triggered at the same time. The input of the first adding instruction and the end of the second adding instruction may also be the same operation, that is, when the user presses one key on the keyboard, the end of adding the blank line and the start of adding the subtitle to be added are triggered simultaneously. In addition, in the adding process, when the user is not satisfied with the subtitle text displayed in real time in the played video picture, the added subtitle text can be singly cancelled through a cancelling option on the graphical user interface, so that the user can modify the subtitle text in real time in the adding process.
Step 206, synchronously displaying the subtitle text added to the target video on the subtitle track;
when a user adds a subtitle text to a subtitle track of a target video, the subtitle text corresponding to the subtitle text also appears on the subtitle track in the graphical user interface, the subtitle text can be displayed in a rectangular color block mode, the rectangular color blocks are equal in width, and different lengths represent different lengths of the subtitle text.
And step 207, adjusting subtitles of the subtitle text in the target video through the subtitle track.
The user can visually check the display time of the subtitle text in the target video through the rectangular color blocks representing the subtitle text on the subtitle track, and when the adjustment is needed, the user can directly drag the rectangular color blocks corresponding to the subtitle text to be adjusted and drag the rectangular color blocks to the appointed position to adjust the appearance time of the subtitle text in the target video.
By applying the embodiment of the invention, the original text data is received, the sentence segmentation and the empty line insertion are carried out on the original text data, the caption data is generated, the color data and the font data are adopted, the character color and the font of the caption data are set in batch, the caption track is created for the target video, the caption data is added to the caption track in the target video playing process, the caption text added to the target video is synchronously displayed on the caption track, and the caption appearing in the target video of the caption text is adjusted through the caption track, so that the user can set the font color and the font style of the caption data in batch, the added caption data can be visually checked through the caption track, the user can modify the caption conveniently, the operation of adding and modifying the caption data by the user is reduced, and the use experience and the efficiency of the user are improved.
In order that those skilled in the art will be better able to understand the inventive arrangements, the present application is illustrated below by way of example, but it should be understood that the present application is not limited thereto.
The specific implementation steps of adding the synchronous subtitles in this embodiment are as shown in fig. 3, and first open a subtitle adding panel, then input original text data in a subtitle adding layout, a user may directly input a text, or input the original text data by importing a subtitle file in an SRT format and copying, after the original text data is obtained, if the original text data is a text paragraph with punctuation marks, automatically perform clause division and insertion of an empty line on the original text data to generate subtitle data and a subtitle track, then set a text color and a font style of the subtitle data, and finally add the subtitle data to the subtitle track in real time in a process of playing a video.
In order to make the application of the synchronous caption adding step better understood by those skilled in the art, the following is an example in practical application, but it should be understood that the present application is not limited thereto.
A user uploads a video to be edited from a terminal to a server, the server generates a target video in an edited state, then the user inputs original text data by opening a subtitle adding layout on the terminal, as shown in fig. 4, which is a schematic diagram of the subtitle adding layout, where 301 is a manual input option, when the user selects a manual input, a subtitle text can be input at a position 303, and when the subtitle text is manually input, the user can input sentence by sentence, and a display time is set for each sentence of the input subtitle text, for example, when the user sets the display time to be 0, 0 min 3 s to 0, 0 min 8 s, the subtitle text will appear at the 3 rd second of the target video and continuously display to the 8 th second. The reference numeral 302 denotes an import button, and a user may click the import button 302 through an external device, such as a mouse, connected to the terminal, select an SRT format subtitle file to be imported, and then directly import subtitle data after determining the file. Of course, the user may also select the copying mode to copy the original text data to the automatic clause and empty line insertion panel of fig. 5, after copying, the user may select 401 and 402 automatic clause insertion options, after selection, the terminal may automatically perform clause and empty line insertion on the original text data according to punctuation marks in the original text data, and display the generated subtitle data in 403. After generating the subtitle data, the user may start playing the target video, and add the subtitle data to the subtitle track of the target video through the keys preset on the keyboard, for example, when an actor starts speaking in the target video picture, the user presses the keys of the keyboard, the subtitle text corresponding to the actor's lines is added to the subtitle track of the target video, and the subtitle is displayed on the target video picture in real time. When the actor finishes speaking the lines, the user presses the key of the keyboard again, the subtitle text corresponding to the lines is added completely, and the addition of the blank line in the subtitle track is automatically started, the subtitle disappears in the video picture, the video picture keeps the subtitle-free state until the actor starts to speak the next line, the user presses the key of the keyboard again, the blank line is finished, and the subtitle text corresponding to the lines is automatically added. Fig. 6 is a schematic diagram of a subtitle adding layout when subtitle data is added, 501 is a subtitle text display area, subtitle text added to a target video is displayed in the area together with adding time in the process of adding subtitle text by a user, 502 is a cancel option, when the user wants to modify the added subtitle text, the last added subtitle text can be cancelled through the cancel option so as to be modified, 503 is a subtitle track, subtitle text added to the subtitle track is displayed in the subtitle track in the form of a rectangular color block, the user can visually check, after the addition of all subtitle text is completed, 504 can be clicked to complete the option, and the server will generate the target video containing subtitle data. In addition, if the subtitle adding job needs to be cancelled, a cancel option can be clicked 505 to cancel the addition of all subtitle texts.
In the embodiment, automatic sentence division and empty line insertion of the input original text data are realized, and a user can add subtitle data in real time through the played video, so that the use experience of the user is improved, and the subtitle adding efficiency is improved.
Referring to fig. 7, a block diagram illustrating a structure of an apparatus for adding a synchronized subtitle according to an embodiment of the present invention is applied to a terminal, and is characterized in that a graphical user interface is obtained by executing a software application on a processor of the terminal and rendering the software application on a display of the terminal, and the graphical user interface displays a picture of a target video, and the apparatus may include the following modules:
a receiving module 601, configured to receive original text data;
a generating module 602, configured to perform clause splitting on the original text data to generate subtitle data;
a creating module 603, configured to create a subtitle track for the target video;
an adding module 604, configured to add the subtitle data to the subtitle track during the target video playing process.
In an embodiment of the present invention, the graphical user interface further includes color data and font data, and the apparatus further includes:
and the style module is used for setting the character colors and the fonts of the subtitle data in batch by adopting the color data and the font data.
In an embodiment of the present invention, the adding module 604 includes:
the first adding instruction response submodule is used for responding to a first adding instruction and determining a subtitle text to be added from the subtitle data;
the subtitle text to be added adding submodule is used for adding the subtitle text to be added into the subtitle track of the target video which is being played according to the first adding instruction;
and the first adding instruction ending sub-module responds to the ending of the first adding instruction and stops adding the subtitle text to be added into the subtitle track of the target video being played.
In an embodiment of the present invention, the generating module 602 includes:
the sentence dividing module is used for dividing sentences of the original text data according to punctuations in the original text data to obtain subtitle texts;
and the empty line submodule is used for inserting an empty line between every two subtitle texts to generate subtitle data.
In an embodiment of the present invention, the adding module 604 further includes:
a second adding instruction response submodule, configured to add an empty line in the subtitle track of the target video being played in response to a second adding instruction;
and the second adding instruction ending sub-module is used for responding to the ending of the second adding instruction and stopping adding the empty line in the subtitle track of the target video being played.
In an embodiment of the present invention, the apparatus further includes:
and the synchronous display module is used for synchronously displaying the subtitle text added to the target video on the subtitle track.
In an embodiment of the present invention, the apparatus further includes:
and the adjusting module is used for adjusting the time of the subtitle text appearing in the target video through the subtitle track.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention also provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the method for adding a synchronized subtitle as described above.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the above method for adding a synchronized subtitle.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. 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 terminal that comprises the element.
The method and apparatus for adding a synchronous subtitle, the electronic device, and the storage medium provided by the present invention are described in detail above, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for adding a synchronous caption, which is applied to a terminal, is characterized in that a graphical user interface is obtained by executing a software application on a processor of the terminal and rendering the software application on a display of the terminal, and the graphical user interface displays a picture of a target video, and the method comprises the following steps:
receiving original text data;
sentence dividing is carried out on the original text data to generate subtitle data;
creating a subtitle track for the target video;
adding the subtitle data to the subtitle track during the target video playback.
2. The method of claim 1, further comprising color data and font data in the graphical user interface, the method further comprising:
and setting the character colors and the fonts of the subtitle data in batch by adopting the color data and the font data.
3. The method of claim 1, wherein the step of adding the subtitle data to the subtitle track during the target video playback comprises:
in response to a first adding instruction, determining subtitle texts to be added from the subtitle data;
adding a subtitle text to be added into a subtitle track of the target video being played according to the first adding instruction;
and in response to the end of the first adding instruction, stopping adding the subtitle text to be added into the subtitle track of the target video being played.
4. The method of claim 3, wherein the step of parsing the original text data to generate caption data comprises:
according to punctuation marks in the original text data, clauses are carried out on the original text data to obtain a subtitle text;
and inserting an empty line between every two subtitle texts to generate subtitle data.
5. The method of claim 4, further comprising:
adding an empty line in a subtitle track of the target video being played in response to a second adding instruction;
and stopping adding the empty line in the subtitle track of the target video playing in response to the end of the second adding instruction.
6. The method of claim 4, wherein the step of adding the subtitle data to the subtitle track during the target video playback is followed by:
synchronously displaying the subtitle text added to the target video on the subtitle track.
7. The method of claim 6, wherein after the step of synchronously displaying the subtitle text added to the target video on the subtitle track, further comprising:
and adjusting the time of the subtitle text appearing in the target video through the subtitle track.
8. An apparatus for adding a synchronized subtitle, applied to a terminal, wherein a graphical user interface displaying a picture of a target video is obtained by executing a software application on a processor of the terminal and rendering the software application on a display of the terminal, the apparatus comprising:
the receiving module is used for receiving original text data;
the generating module is used for carrying out clause division on the original text data to generate subtitle data;
the creation module is used for creating a subtitle track for the target video;
and the adding module is used for adding the subtitle data to the subtitle track in the target video playing process.
9. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of adding synchronized subtitles according to any one of claims 1 to 7.
10. 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 adding a synchronized subtitle according to any one of claims 1 to 7.
CN202010670890.2A 2020-07-13 2020-07-13 Synchronous subtitle adding method and device, electronic equipment and storage medium Pending CN111565330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010670890.2A CN111565330A (en) 2020-07-13 2020-07-13 Synchronous subtitle adding method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010670890.2A CN111565330A (en) 2020-07-13 2020-07-13 Synchronous subtitle adding method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111565330A true CN111565330A (en) 2020-08-21

Family

ID=72070162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010670890.2A Pending CN111565330A (en) 2020-07-13 2020-07-13 Synchronous subtitle adding method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111565330A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970577A (en) * 2020-08-25 2020-11-20 北京字节跳动网络技术有限公司 Subtitle editing method and device and electronic equipment
CN112312196A (en) * 2020-11-13 2021-02-02 深圳市前海手绘科技文化有限公司 Video subtitle making method
CN112702659A (en) * 2020-12-24 2021-04-23 成都新希望金融信息有限公司 Video subtitle processing method and device, electronic equipment and readable storage medium
CN112911404A (en) * 2021-01-25 2021-06-04 当趣网络科技(杭州)有限公司 Video subtitle processing method, apparatus, electronic device, and medium
CN113422996A (en) * 2021-05-10 2021-09-21 北京达佳互联信息技术有限公司 Subtitle information editing method, device and storage medium
WO2022110844A1 (en) * 2020-11-27 2022-06-02 北京达佳互联信息技术有限公司 Method for automatically loading subtitle and electronic device
CN115150631A (en) * 2021-03-16 2022-10-04 北京有竹居网络技术有限公司 Subtitle processing method, subtitle processing device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050123283A1 (en) * 2003-12-08 2005-06-09 Li Adam H. File format for multiple track digital data
CN101188698A (en) * 2007-11-19 2008-05-28 新奥特(北京)视频技术有限公司 A device for importing caption in manuscript in non editing status
US20130322854A1 (en) * 2012-06-05 2013-12-05 Hulu Llc Picture Overlay of Captions on Video Via Out of Band Communication
CN104918097A (en) * 2015-06-01 2015-09-16 无锡天脉聚源传媒科技有限公司 Subtitle generation method and device
CN106303659A (en) * 2016-08-22 2017-01-04 暴风集团股份有限公司 The method and system of picture and text captions are loaded in player

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050123283A1 (en) * 2003-12-08 2005-06-09 Li Adam H. File format for multiple track digital data
CN101188698A (en) * 2007-11-19 2008-05-28 新奥特(北京)视频技术有限公司 A device for importing caption in manuscript in non editing status
US20130322854A1 (en) * 2012-06-05 2013-12-05 Hulu Llc Picture Overlay of Captions on Video Via Out of Band Communication
CN104918097A (en) * 2015-06-01 2015-09-16 无锡天脉聚源传媒科技有限公司 Subtitle generation method and device
CN106303659A (en) * 2016-08-22 2017-01-04 暴风集团股份有限公司 The method and system of picture and text captions are loaded in player

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970577A (en) * 2020-08-25 2020-11-20 北京字节跳动网络技术有限公司 Subtitle editing method and device and electronic equipment
CN111970577B (en) * 2020-08-25 2023-07-25 北京字节跳动网络技术有限公司 Subtitle editing method and device and electronic equipment
CN112312196A (en) * 2020-11-13 2021-02-02 深圳市前海手绘科技文化有限公司 Video subtitle making method
WO2022100093A1 (en) * 2020-11-13 2022-05-19 深圳市前海手绘科技文化有限公司 Video subtitle making method
WO2022110844A1 (en) * 2020-11-27 2022-06-02 北京达佳互联信息技术有限公司 Method for automatically loading subtitle and electronic device
CN112702659A (en) * 2020-12-24 2021-04-23 成都新希望金融信息有限公司 Video subtitle processing method and device, electronic equipment and readable storage medium
CN112702659B (en) * 2020-12-24 2023-01-31 成都新希望金融信息有限公司 Video subtitle processing method and device, electronic equipment and readable storage medium
CN112911404A (en) * 2021-01-25 2021-06-04 当趣网络科技(杭州)有限公司 Video subtitle processing method, apparatus, electronic device, and medium
CN115150631A (en) * 2021-03-16 2022-10-04 北京有竹居网络技术有限公司 Subtitle processing method, subtitle processing device, electronic equipment and storage medium
CN113422996A (en) * 2021-05-10 2021-09-21 北京达佳互联信息技术有限公司 Subtitle information editing method, device and storage medium
CN113422996B (en) * 2021-05-10 2023-01-20 北京达佳互联信息技术有限公司 Subtitle information editing method, device and storage medium

Similar Documents

Publication Publication Date Title
CN111565330A (en) Synchronous subtitle adding method and device, electronic equipment and storage medium
US9696881B2 (en) System and method for captioning media
CN104246750B (en) Make a copy of voice
US9020325B2 (en) Storyboard-directed video production from shared and individualized assets
EP2136370B1 (en) Systems and methods for identifying scenes in a video to be edited and for performing playback
US20180226101A1 (en) Methods and systems for interactive multimedia creation
RU2627096C2 (en) Methods for multimedia presentations prototypes manufacture, devices for multimedia presentations prototypes manufacture, methods for application of devices for multimedia presentations prototypes manufacture (versions)
US20130083036A1 (en) Method of rendering a set of correlated events and computerized system thereof
JPH11162107A (en) System for editing digital video information and audio information
US20140272820A1 (en) Language learning environment
CN111031395A (en) Video playing method, device, terminal and storage medium
CN111654754A (en) Video playing method and device, electronic equipment and readable storage medium
KR20190083532A (en) System for learning languages using the video selected by the learners and learning contents production method thereof
CN114268829B (en) Video processing method, video processing device, electronic equipment and computer readable storage medium
CN105763923A (en) Video and video template editing methods and device thereof
KR101703321B1 (en) Method and apparatus for providing contents complex
US11463633B2 (en) Subtitle data editing method and subtitle data editing program for contents such as moving images
KR102188227B1 (en) Method and apparatus for providing contents complex
Oujezdský Creation of educational video tutorials and their use in education
JP2005285076A (en) Method for producing image information
US11769531B1 (en) Content system with user-input based video content generation feature
KR101390346B1 (en) System for adding caption and method thereof
KR101564659B1 (en) System and method for adding caption using sound effects
JP4084115B2 (en) Program editing method
Raguž Quality Control in Audiovisual Translation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200821

RJ01 Rejection of invention patent application after publication