Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the embodiment of the invention provides a subtitle editing method, a terminal, a server, a system and a storage medium, which can improve the efficiency of online subtitle editing, and an editor can clearly know the part being edited by other editors, so that repeated editing is avoided, the editing efficiency of online subtitles is improved, and the complexity of the system is reduced.
A subtitle editing method according to an embodiment of a first aspect of the present invention is applied to a terminal capable of performing online subtitle editing, and the method includes: acquiring first subtitle information from a server, wherein the first subtitle information comprises unedited subtitle information; the unedited subtitle information comprises character information and time point information; obtaining a subtitle time interval to be edited according to the unedited subtitle information; sending the subtitle time interval to be edited to a server; editing second subtitle information according to the subtitle time interval to be edited; and sending the second subtitle information to a server.
The subtitle editing method provided by the embodiment of the invention at least has the following beneficial effects: the equipment at the terminal can acquire the edited subtitle information and the editing time interval from the server, and can select the unedited time interval for editing, so that the efficiency during online subtitle editing is improved, the complexity is reduced, and the requirement of multi-user collaborative online subtitle editing can be met.
According to some embodiments of the invention, the first subtitle information further includes edited subtitle information.
According to some embodiments of the invention, the first subtitle information further includes subtitle information being edited.
According to some embodiments of the present invention, the unedited subtitle information, the subtitle information being edited, and the edited subtitle information together constitute the first subtitle information.
According to some embodiments of the present invention, the second subtitle information includes subtitle information that has been edited by the terminal.
A subtitle editing method according to an embodiment of a second aspect of the present invention is a subtitle editing method for a server that can support online subtitle editing, the server communicatively connecting at least two terminals, including: generating original caption information according to the video or the audio; acquiring second caption information from the first terminal, wherein the second caption information comprises the edited caption information; acquiring a subtitle time interval to be edited from a first terminal; generating first subtitle information according to the original subtitle information and the second subtitle information; generating a subtitle time interval which is being edited according to the subtitle time interval to be edited of the first terminal; and sending the edited caption time interval and the first caption information to a second terminal.
The subtitle editing method provided by the embodiment of the invention at least has the following beneficial effects: the method comprises the steps of obtaining the subtitle information and the time interval information from the terminal, integrating the information from the terminal with the time point information, and sending the subtitle information and the time interval information from the terminal to other terminals, so that the other terminals can obtain the edited subtitle information and the time nodes of the subtitle being edited, repeated editing is avoided, and the efficiency of collaboratively editing the subtitle is improved.
According to some embodiments of the invention, further comprising: and if the subtitle time interval to be edited updated by the first terminal is obtained, sending the change information of the subtitle time interval being edited to the second terminal.
A terminal according to an embodiment of a third aspect of the present invention is a terminal for online subtitle editing, including: the information acquisition module is used for acquiring first subtitle information and a subtitle time interval to be edited from the server; the information editing module is used for editing the subtitle information; and the information sending module is used for sending the edited subtitle information to the server.
According to the terminal of the third aspect of the embodiment of the invention, the terminal-side subtitle editing method can be realized as the terminal, the efficiency of collaborative subtitle translation is improved, and the requirement of multi-user collaborative online subtitle editing is met.
A server according to a fourth aspect of the present invention is a server for online subtitle editing, including: the information generation module is used for generating original subtitle information according to the video or audio; the information acquisition module is used for acquiring second subtitle information and a subtitle time interval to be edited from the first terminal; the information integration module is used for integrating the original subtitle information, the second subtitle information and the subtitle time interval to be edited; and the information sending module is used for sending the integrated first subtitle information to the second terminal.
According to the server of the fourth aspect of the invention, the subtitle editing method at the server side can be realized as the server, the efficiency of collaborative subtitle translation is improved, and the requirement of multi-user collaborative online subtitle editing is met.
A subtitle editing system according to an embodiment of a fifth aspect of the present invention includes: at least one terminal as described in the third aspect; and at least two servers as described in the fourth aspect, the servers including a first server and a second server; the time delay judging module is used for reconnecting the terminal to the second server if the first time delay of the terminal connected to the first server is higher than the second time delay of the terminal connected to the second server when the terminal is connected to the first server; the storage module comprises at least two databases, the number of the databases is equal to that of the servers, and the databases are used for storing subtitle information and subtitle editing time interval information; and the synchronization module is used for synchronizing the subtitle information of the database with the subtitle editing time interval information.
The subtitle editing system according to the embodiment of the invention has at least the following beneficial effects: the method and the system can carry out caption information interaction between the server and the terminal, and the server can acquire the translated part and transmit the time point of the caption being translated to other terminals, so that repeated translation operation is avoided, and the caption translation efficiency is improved.
A computer-readable storage medium according to a sixth aspect of the present invention stores computer-executable instructions for: performing the subtitle editing method as described in the first aspect; alternatively, the subtitle editing method according to the second aspect is performed.
The computer-readable storage medium according to the embodiment of the invention has at least the following advantages: the method can be used as a terminal to realize the subtitle editing method at the terminal side, and can also be used as a server to realize the subtitle editing method at the server side, so that repeated translation is avoided, the efficiency of collaborative subtitle translation is improved, and the requirement of multi-user collaborative online subtitle editing is met.
The embodiment of the invention provides a subtitle editing method, a subtitle editing system, a terminal and a storage medium, which can improve the efficiency of online subtitle editing, an editor can definitely know the finished parts and the editing parts of other editors, repeated editing is avoided, a time interval needing to be translated can be selected independently, the editing efficiency of online subtitles is improved, and the complexity of a translation system is reduced.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "axial", "radial", "circumferential", and the like, indicate orientations and positional relationships based on the orientations and positional relationships shown in the drawings, and are used merely for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the device or element so referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore, should not be construed as limiting the present invention. Furthermore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless otherwise specified.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in a specific case to those of ordinary skill in the art.
A subtitle editing method according to an embodiment of the present invention is described below with reference to fig. 1.
As shown in fig. 1, a subtitle editing method according to an embodiment of the present invention includes at least the following steps: s101: acquiring first subtitle information from a server; s102: acquiring a subtitle time interval to be edited according to the unedited subtitle information; s103: sending a subtitle time interval to be edited to a server; s104: editing second subtitle information according to the subtitle time interval to be edited; s105: and sending the second caption information to the server.
S101: first subtitle information from a server is acquired.
In some embodiments, the terminal establishes a connection with the server and maintains a listening state to acquire the first subtitle information from the server. The first subtitle information includes unedited subtitle information, subtitle information being edited, edited subtitle information, and original subtitle information generated by the server from video or audio.
S102: and acquiring a subtitle time interval to be edited according to the unedited subtitle information.
In some embodiments, after the terminal establishes the connection with the server, the time interval of the subtitle to be edited is further obtained according to the obtained information of the subtitle which is not edited.
S103: and sending the subtitle time interval to be edited to a server.
In some embodiments, the terminal selects the subtitle time zone to be edited according to the video time interval in the editing state. The subtitle time zone to be edited comprises a video time zone to be edited by the terminal, and the video time zone can be adjusted at any time.
S104: and sending the second subtitle editing time point to the server.
In some embodiments, the second subtitle editing time point is transmitted to the server.
S105: and sending the second caption information to the server.
In some embodiments, the terminal transmits the edited second subtitle information to the server.
A subtitle editing method according to an embodiment of a first aspect of the present invention is applied to a terminal capable of performing online subtitle editing, and the method includes: acquiring first subtitle information from a server; acquiring a first subtitle editing time point; setting a second subtitle editing time point according to the first subtitle editing time point; sending the second subtitle editing time point to a server; editing second subtitle information according to the second subtitle editing time point; and sending the second caption information to the server.
In some embodiments, the user may implement the application of the subtitle editing method through software in the terminal. And a UI is arranged in the software, and a user can visually create, edit or delete subtitles through the UI. The efficiency of online subtitle editing is improved.
In some embodiments, different permissions may be set for different users in the software, for example, a proof user is added, the proof user has a higher permission than a general user, the edited subtitles may be marked for modification, and a tag, such as "accepted," may be added. When the tag is displayed as accepted, this indicates that the passage of the subtitle has passed the preliminary review, and may be displayed to the end user of the video.
In some embodiments, a user can access a piece of video at the same time through the terminal, and can select any subtitle which is not being edited by other users for editing, and at the same time, can adjust the time of the subtitle which is desired to be edited.
In some embodiments, when the user at the terminal side selects a section of the subtitle to be edited, the UIs of all other online terminals will also be updated, displaying the creation of a subtitle being edited from time X to time Y. Subsequently, the other terminals will not be able to create subtitles to be edited that conflict with the time axes X to Y.
In some embodiments, after a user of a terminal selects a subtitle to be edited, users in front of other terminals may obtain updated information in the UI.
In some embodiments, the rights of the software may also be provided with the creator. The creator may create a piece of the video item to be edited. The general users can select the video project to be translated, the users can coordinate with each other, and the time to be translated is determined according to the translation time selected by other users. The efficiency of online translation is further improved.
In some embodiments, the manuscript correcting user can perform manuscript correction while a general user performs translation, and the manuscript correction can be performed without waiting for the completion of all translations, so that the efficiency of online collaborative translation is improved.
In some embodiments, when the terminal starts to perform subtitle editing, the subtitle information and the time point information are downloaded from the server side, and a polling connection is maintained with the server side to receive updates of the subtitle information and the time point information.
In some embodiments, the terminal stores the subtitle information in the memory, updates the information of the server side to the terminal synchronously, and displays the latest data according to the updated information.
In some embodiments, the terminal only sends the updated part of the subtitle to the server, which reduces the traffic consumption and improves the stability of the system.
In some embodiments, a user at the terminal side may connect to the server through a network cloud or the internet. Users can be synchronously translated without being limited in a certain area, and users in different areas can be synchronously translated without worrying about low efficiency caused by the fact that multiple users simultaneously select the same text subtitle for translation during synchronous translation.
In some embodiments, the first subtitle information includes subtitle information generated by the server from the video information; the subtitle information generated from the video information also includes edited subtitle information.
In some embodiments, the first subtitle editing time point includes a video time point in an editing state.
In some embodiments, the second subtitle editing time point includes a video time point to be edited by the terminal.
In some embodiments, the second subtitle information includes subtitle information edited by the terminal.
A subtitle editing method according to an embodiment of the present invention is described below with reference to fig. 2.
As shown in fig. 2, a subtitle editing method according to an embodiment of the present invention includes at least the following steps: s201: generating original caption information according to the video or audio; s202: acquiring second subtitle information from the first terminal; s203: acquiring a subtitle time interval to be edited from a first terminal; s204: generating first subtitle information according to the original subtitle information and the second subtitle information; s205: generating a subtitle time interval which is being edited according to a subtitle time interval to be edited of a first terminal; s206: and sending the subtitle time interval being edited and the first subtitle information to the second terminal.
S201: original subtitle information is generated from video or audio.
In some embodiments, the server obtains video information and generates a corresponding piece of original subtitle information according to the video information.
S202: second subtitle information from the first terminal is obtained.
In some embodiments, second subtitle information is obtained from the first terminal. The second subtitle information includes subtitle information edited by the terminal.
S203: and acquiring a subtitle time interval to be edited from the first terminal.
In some embodiments, a subtitle time interval to be edited from a first terminal is obtained.
S204: and generating first subtitle information according to the original subtitle information and the second subtitle information.
In some embodiments, the first subtitle information is generated from subtitle information generated from the video information and edited subtitle information from the first terminal.
S205: and generating the subtitle time interval which is being edited according to the subtitle time interval to be edited of the first terminal.
In some embodiments, the subtitle time interval being edited is generated from the subtitle time interval to be edited. Namely, the port of the subtitle at the editing time is determined according to the subtitle editing time interval fed back by the terminal.
S206: and sending the subtitle time interval being edited and the first subtitle information to the second terminal.
In some embodiments, the time interval being edited is transmitted to the terminal.
A subtitle editing method according to an embodiment of the present invention is applied to a server capable of performing online subtitle editing, and includes: acquiring subtitle information generated according to the video information; acquiring second subtitle information from at least one terminal; acquiring a second subtitle editing time point from at least one terminal; generating first subtitle information according to the subtitle information generated according to the video information and the second subtitle information; generating a first video editing time point according to the second subtitle editing time point; and sending the first video editing time point to the terminal.
In some embodiments, the server may recognize the video and the voice through a voice recognition system, and establish an initial subtitle. The user can edit the selected video subtitle file through the terminal, and the efficiency of online subtitle editing is improved.
In some embodiments, in order to reduce the generation of conflict, only one section of subtitle can be edited by one common user at the same time. Each document or each subtitle is provided with only one unique revision number, and the revision number is updated along with updating of the subtitles. And updating the subtitles only when the revision number of the terminal is the same as the revision number of the server.
In some embodiments, since the terminal may use software to perform subtitle editing, in order to simplify operations, a user may obtain an editing right by clicking a subtitle, and after the user clicks a subtitle, other users cannot select the subtitle to edit. When the user clicks another segment of the subtitle, the editing right of the previous segment of the subtitle is lost. If the user remains inactive for a period of time or has exited the software, the user loses the editing rights for the passage of the subtitle. Other users can edit the subtitle, and the stability of the system is improved.
In some embodiments, each terminal connected to the server is assigned an identity. The updating is based on identification and not on the user. For example, when a terminal update is synchronized to the server, the server may push the update to other terminals than the terminal that initiated the update. Therefore, the user can log in different terminals to operate at the same time, and when the subtitle of one terminal is updated, the subtitle can be synchronized to the other terminal.
In some embodiments, the subtitle editing method further includes: and if the new second subtitle editing time point is obtained, sending the change information of the second subtitle editing time point to the terminal.
In some embodiments, the server need not segment the video and delegate the task to each user, and the user can select the portion and length of the video they want to translate.
A subtitle editing system according to an embodiment of the present invention is described below with reference to fig. 3.
As shown in fig. 3, a subtitle editing system according to an embodiment of the present invention includes: the first terminal 110, the second terminal 120, the third terminal 130, the third terminal 140, the first server 210, the first database 211, the second server 220, and the second database 221.
In some embodiments, the first server 210 and the second server 220 adopt a synchronous architecture, and the first database 211 and the second database 221 synchronize data to ensure that the subtitle editing information obtained by terminals connected to different servers is the same.
In some embodiments, the first terminal 110 is connected to the first server 210, the second terminal 120 is connected to the first server 210, the third terminal 130 is connected to the second server 220, and the fourth terminal 140 is connected to the second server 220. When the first terminal 110 is connected to the first server 210, the connection delay between the second server 220 and the second server 220 is determined, and the server with the lowest connection delay is selected. The stability of the online caption translation system can be improved, and the probability of conflict is reduced.
A subtitle editing system according to an embodiment of the present invention is applied to at least two terminals and a first server that are capable of performing online subtitle editing, and includes: the information acquisition module is used for acquiring subtitle information and time point information; and the information sending module is used for sending the subtitle information and the time point information.
In some embodiments, the subtitle editing system further includes: a second server; the time delay judging module is used for judging the time delay of the terminal connected to the first server when the terminal is connected to the first server, and connecting the terminal to the second server if the time delay of the terminal connected to the first server is higher than the time delay of the terminal connected to the second server; the storage module comprises at least two databases, and the number of the databases corresponds to the number of the servers and is used for storing the subtitle information and the time point information; and the synchronization module is used for synchronizing the subtitle information and the time point information of the database.
In some embodiments, the server side is further provided with a master document, and each terminal synchronizes the edited subtitles to the master document. The content of the main document can be synchronously forwarded to other terminals and other server terminals, and a terminal user can obtain real-time document updating without refreshing the document, so that a repeated translation process is avoided.
In some embodiments, the client in the subtitle editing system keeps consistent with the content of the master control document and is not connected with other clients, so that the stability of the system is improved, the complexity of the system is reduced, and the overlapping of time axes of the documents to be edited among different terminals can be prevented.
In some embodiments, when there are multiple servers, the terminal may be delayed and connected to the server with the lowest latency.
A terminal according to an embodiment of the present invention is characterized by including: the system comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, the subtitle editing method of the terminal side is realized; alternatively, the subtitle editing method on the server side is described above.
A computer-readable storage medium according to an embodiment of the present invention stores computer-executable instructions for: executing the caption editing method on the terminal side; alternatively, the subtitle editing method on the server side as described above is performed.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
It will be understood by those of ordinary skill in the art that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, or suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.