WO2022237202A1 - Subtitle information editing method and apparatus - Google Patents

Subtitle information editing method and apparatus Download PDF

Info

Publication number
WO2022237202A1
WO2022237202A1 PCT/CN2021/143883 CN2021143883W WO2022237202A1 WO 2022237202 A1 WO2022237202 A1 WO 2022237202A1 CN 2021143883 W CN2021143883 W CN 2021143883W WO 2022237202 A1 WO2022237202 A1 WO 2022237202A1
Authority
WO
WIPO (PCT)
Prior art keywords
subtitle
target
editing
segment
track
Prior art date
Application number
PCT/CN2021/143883
Other languages
French (fr)
Chinese (zh)
Inventor
洪嘉慧
Original Assignee
北京达佳互联信息技术有限公司
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 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2022237202A1 publication Critical patent/WO2022237202A1/en

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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • 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
    • H04N21/4316Generation 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 for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Definitions

  • the present disclosure relates to the technical field of information editing, and in particular to a subtitle information editing method, device and storage medium.
  • the subtitle information obtained by using speech recognition technology is usually not accurate enough and needs to be further processed; the existing technology usually matches the subtitle track evenly according to the duration corresponding to the subtitle information, that is, subtitle The information is segmented at a uniform speed, which easily leads to the situation that the subtitle track after segmentation has no corresponding sound; in the prior art, there is no solution for accurately matching the corresponding time of the sound with the appearance time of the subtitle; When segmenting a sentence, it is necessary to separate the subtitle track and the subtitle segment, and it involves manual deletion of the subtitle track. There are many steps to modify the subtitles in the video, and the modification efficiency is low.
  • the disclosure provides a subtitle information editing method, device and storage medium.
  • a method for editing subtitle information including:
  • a subtitle editing page is displayed, the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and a display time corresponding to the target video frame The target subtitle information;
  • the subtitle editing area is displayed with a target editing subtitle track generated based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis;
  • the target subtitle information displayed in the target video frame is updated.
  • the subtitle editing area further displays subtitle text information corresponding to the target subtitle segment
  • the subtitle adjustment instruction includes a subtitle segmentation instruction
  • the response to the user edits the subtitle track based on the target
  • the subtitle adjustment instruction triggered by the target subtitle segment adjusts the target subtitle segment corresponding to the subtitle adjustment instruction, including:
  • the edited subtitle track based on the adjusted target updates the target subtitle information displayed in the target video frame, including:
  • the target subtitle information displayed in the target video frame is updated.
  • the subtitle editing area further displays a cursor for selecting the target subtitle segment, the cursor is set in the character gap of the subtitle text information; the response to the user based on the target Editing the subtitle segmentation instruction triggered by the target subtitle segment in the subtitle track determines the segmentation position in the subtitle text information, including:
  • a segmentation position in the subtitle text information is determined.
  • the Segmentation position in subtitle text information in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edit subtitle track, based on the position of the cursor in the subtitle text information, determine the Segmentation position in subtitle text information, including:
  • the division position in the subtitle text information is determined.
  • the subtitle adjustment instruction includes a subtitle merging instruction, and there are at least two target editing subtitle tracks, and the subtitle adjustment instruction triggered by the user based on the target subtitle segment in the target editing subtitle track, Adjusting the target subtitle segment corresponding to the subtitle adjustment instruction includes:
  • the two adjacent target subtitle segments corresponding to the subtitle merging instruction are merged to obtain a merging result
  • the edited subtitle track based on the adjusted target updates the target subtitle information displayed in the target video frame, including:
  • the target subtitle information displayed in the target video frame is updated.
  • the subtitle editing area further displays at least one subtitle merging operation information
  • the subtitle merging operation information corresponds to any two adjacent target edited subtitle tracks
  • the subtitle merging operation information uses Combining the subtitle segments arranged along the display time axis in corresponding two adjacent target editing subtitle tracks; the subtitle merging triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks Instructions, merging two adjacent target subtitle segments corresponding to the subtitle merging instruction to obtain a merging result, including:
  • the two adjacent targets corresponding to the subtitle merging instruction are merged to obtain the merged result.
  • the two adjacent target subtitles corresponding to the subtitle merging instruction Segments are merged to obtain the merged results, including:
  • the two adjacent target subtitle segments corresponding to the position movement operation instruction are combined to obtain a combination result.
  • the two adjacent target subtitle segments corresponding to the position movement operation instruction are merged to obtain a merge result, including :
  • a merging result is determined.
  • the editing subtitle track based on the target of the first merging, and determining the merging result include:
  • the two adjacent target subtitle segments combined once are combined along the display time axis for a second time to obtain Overlapping information between target subtitle tracks corresponding to the two adjacent target subtitle segments;
  • the two adjacent target subtitles corresponding to the subtitle merging instruction Segments are merged to obtain the merged results, including:
  • the display result of the combined subtitle segment is determined according to the display time and display position of the combined subtitle segment.
  • the determining the display time of the merged subtitle segment includes:
  • the display time of the merged subtitle segment is determined.
  • the determining the display time of the merged subtitle segment includes:
  • the display time of the merged subtitle segment is determined.
  • the determining the display time of the merged subtitle segment includes:
  • the display time of the merged subtitle segment is determined.
  • the determining the display position of the merged subtitle segment includes:
  • the display position of the merged subtitle segment is determined.
  • the determining the display position of the merged subtitle segment includes:
  • the display position of the merged subtitle segment is determined.
  • the determining the display position of the merged subtitle segment includes:
  • the display position of the merged subtitle segment is determined.
  • the updating of the target subtitle information displayed in the target video frame based on the adjusted target edited subtitle track includes:
  • the subtitle information editing method further includes:
  • the preset video includes a target video frame, and the subtitle information corresponding to the preset video includes at least one subtitle segment;
  • a target editing subtitle track corresponding to the preset video is generated.
  • the subtitle editing page also displays withdrawal operation information
  • the subtitle information editing method further includes:
  • the undo update operation is performed on the update target edited subtitle track corresponding to the undo operation instruction.
  • the displaying the subtitle editing page in response to the editing operation on the target subtitle track includes:
  • the target edited subtitle track corresponding to each video frame is scrolled and displayed.
  • the subtitle information editing method further includes:
  • the target editing subtitle track corresponding to each video frame is scrolled
  • displaying the subtitle editing page includes:
  • the subtitle editing page is displayed on the original page in response to a subtitle modification instruction triggered based on the subtitle modification operation information.
  • the original page displays subtitle switching operation information
  • the subtitle information editing method further includes:
  • the target editing subtitle track of the subtitle to be switched is displayed on the original page.
  • a subtitle information editing device including:
  • the subtitle editing page display module is configured to display a subtitle editing page in response to an editing operation for the target subtitle track, and the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays the target video frame and the Target subtitle information corresponding to the display time of the target video frame; the subtitle editing area displays a target editing subtitle track based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis ;
  • the subtitle segment adjustment module is configured to adjust the target subtitle segment corresponding to the subtitle adjustment instruction in response to the subtitle adjustment instruction triggered by the user based on the target subtitle segment in the target editing subtitle track;
  • the target editing subtitle track display module is configured to display the adjusted target editing subtitle track in the subtitle editing area
  • the target subtitle information update module is configured to update the target subtitle information displayed in the target video frame based on the adjusted target edited subtitle track.
  • the subtitle editing area is also displayed with subtitle text information corresponding to the target subtitle segment
  • the subtitle adjustment instruction includes a subtitle segmentation instruction
  • the subtitle segment adjustment module includes:
  • the segmentation position determination submodule is configured to determine the segmentation position in the subtitle text information in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edited subtitle track;
  • the subtitle segment segmentation submodule is configured to segment the target subtitle segment based on the segmentation position in the subtitle text information to form at least two subtitle segments arranged along the display time axis;
  • the target editing subtitle track update submodule is configured to update the target editing subtitle track based on the divided subtitle segments
  • the target subtitle information update module includes:
  • the first update submodule is configured to update the target subtitle information displayed in the target video frame based on the segmented and updated target edited subtitle track.
  • the subtitle editing area also displays a cursor for selecting the target subtitle segment, the cursor is set in the character gap of the subtitle text information;
  • the sub-module for determining the segmentation position includes:
  • the segmentation position determination unit is configured to determine the subtitle segmentation instruction based on the position of the cursor in the subtitle text information in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edited subtitle track. The split position in the subtitle text information.
  • the segmentation location determination unit includes:
  • the cursor position determination subunit is configured to determine the position of the dragged cursor in response to the user's operation of dragging the subtitle text information
  • the division position determining subunit is configured to determine the division position in the subtitle text information based on the position of the dragged cursor.
  • the subtitle adjustment instruction includes a subtitle merging instruction
  • the target editing subtitle track is at least two
  • the subtitle segment adjustment module includes:
  • the merging result determination submodule is configured to respond to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks, and combine the two adjacent targets corresponding to the subtitle merging instruction The subtitle segment is merged to obtain the merged result;
  • the subtitle track updating submodule is configured to update the target editing subtitle track corresponding to the subtitle merging instruction according to the merging result;
  • the target subtitle information update module includes:
  • the second update submodule is configured to update the target subtitle information displayed in the target video frame based on the merged and updated target edited subtitle track.
  • the subtitle editing area further displays at least one subtitle merging operation information
  • the subtitle merging operation information corresponds to any two adjacent target edited subtitle tracks
  • the subtitle merging operation information uses Merge the subtitle segments arranged along the display time axis in two corresponding adjacent target editing subtitle tracks
  • the submodule for determining the merged result includes:
  • the first merging result determination unit is configured to respond to the subtitle merging instruction triggered by the user for the target subtitle segment in any two adjacent target edited subtitle tracks based on the target subtitle merging operation information, and combine the subtitle The two adjacent target subtitle segments corresponding to the merging instruction are merged to obtain a merging result.
  • the combination result determination submodule includes:
  • the position movement result determining unit is configured to obtain the position movement results of any two adjacent target edited subtitle tracks in response to the position movement operation instruction triggered by the user based on any two adjacent target edited subtitle tracks;
  • the second merge result determining unit is configured to merge two adjacent target subtitle segments corresponding to the position shift operation instruction according to the position shift results of any two adjacent target edited subtitle tracks to obtain a merge result .
  • the second combination result determination unit includes:
  • the one-time merging subunit is configured to, according to the position movement results of the any two adjacent target edited subtitle tracks, carry out the two adjacent target subtitle segments corresponding to the position movement operation instruction along the display time axis once Merge to obtain a merged target edited subtitle track; the time end point of the target subtitle segment that shows the time ahead in the target edited subtitle track of the merged one time coincides with the time start point of the target subtitle segment that is displayed behind the time;
  • the merging result determining subunit is configured to determine a merging result based on the target edited subtitle track of the first merging.
  • the subunit for determining the combination result includes:
  • the overlapping information determination subunit is configured to respond to the position movement instruction triggered by the user based on the two adjacent target subtitle segments after the first combination, and to combine the two adjacent target subtitle segments along the Displaying the time axis for secondary merging to obtain overlapping information between target subtitle tracks corresponding to the two adjacent target subtitle segments;
  • the target duration determining subunit is configured to, based on a merge result and the overlap information between the target subtitle tracks corresponding to the two adjacent target subtitle segments, determine whether any two adjacent target edited subtitle tracks are merged The target duration corresponding to the subtitle segment;
  • the subtitle segment merging subunit is configured to merge target subtitle segments in any two adjacent target edited subtitle tracks based on the target duration.
  • the subtitle information editing device further includes:
  • Merged subtitle segment determination module configured to determine the merged subtitle segment in response to the subtitle merge instruction triggered by the user based on the target subtitle segment in any two adjacent target edited subtitle tracks;
  • a display time determination module configured to determine the display time of the merged subtitle segment
  • a display position determination module configured to determine the display position of the merged subtitle segment
  • the display result determining module is configured to determine the display result of the merged subtitle segment according to the display time and display position of the merged subtitle segment.
  • the display time determination module includes:
  • the first display time determining submodule is configured to determine the display time of the merged subtitle segment based on the display time corresponding to the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments.
  • the display time determination module includes:
  • the second display time determining submodule is configured to determine the display time of the merged subtitle segment based on the display time corresponding to the target subtitle segment whose display time is later among the two adjacent target subtitle segments.
  • the display time determination module includes:
  • the first candidate target subtitle segment determination submodule is configured to determine the first candidate target corresponding to the trigger instruction in response to the user's trigger instruction for any target subtitle segment in the two adjacent target subtitle segments subtitle segment;
  • the third display time determining submodule is configured to determine the display time of the merged subtitle segment based on the display time corresponding to the first candidate target subtitle segment.
  • the display position determination module includes:
  • the first display position determining submodule is configured to determine the display position of the merged subtitle segment based on the display position of the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments.
  • the display position determination module includes:
  • the second display position determining submodule is configured to determine the display position of the combined subtitle segment based on the display position of the target subtitle segment whose display time is later among the two adjacent target subtitle segments.
  • the display position determination module includes:
  • the second candidate target subtitle segment determination submodule is configured to determine the second candidate target corresponding to the trigger instruction in response to the user's trigger instruction for any target subtitle segment in the two adjacent target subtitle segments subtitle segment;
  • the third display position determining submodule is configured to determine the display position of the merged subtitle segment based on the display position corresponding to the second candidate target subtitle segment.
  • the target subtitle information update module includes:
  • the video preview sub-module is configured to edit the subtitle track based on the adjusted target, and preview and play the video displaying the subtitle information;
  • the edit page display submodule is configured to display the edit page of the target subtitle segment in response to the edit instruction for the adjusted target edit subtitle track;
  • the subtitle segment modification submodule is configured to modify the target subtitle segment in response to the user's editing operation on the editing page of the target subtitle segment;
  • the information update submodule is configured to update the target subtitle information displayed in the target video frame based on the modified target subtitle segment.
  • the subtitle information editing device further includes:
  • a subtitle information acquisition module configured to acquire subtitle information corresponding to a preset video; the preset video includes a target video frame, and the subtitle information corresponding to the preset video includes at least one subtitle segment;
  • a time information determination module configured to determine the time start point and time end point of the subtitle information corresponding to the preset video in the preset video;
  • a video frame determination module configured to determine a start video frame and an end video frame based on the time start point and the time end point;
  • a subtitle track construction module configured to construct a subtitle track between the start video frame and the end video frame
  • the corresponding relationship building module is configured to construct the corresponding relationship between the subtitle segment and the subtitle track according to the corresponding time of the subtitle track and the corresponding time of the subtitle information corresponding to the preset video;
  • the target editing subtitle track generation module is configured to generate the target editing subtitle track corresponding to the preset video based on the correspondence between the subtitle segment and the subtitle track.
  • the subtitle editing page also displays withdrawal operation information
  • the subtitle information editing device further includes:
  • the undo operation module is configured to, in response to the undo operation instruction triggered by the user based on the undo operation information, perform an undo update operation on the update target edited subtitle track corresponding to the undo operation instruction.
  • the subtitle editing page display module includes:
  • the video playing submodule is configured to play the video in the subtitle editing page in response to the editing operation for the target subtitle track;
  • the scrolling display submodule is configured to scroll and display the target editing subtitle track corresponding to each video frame during the playing process of the video.
  • the subtitle information editing device further includes:
  • the original video playback module is configured to play the video on the original page; the original page displays subtitle modification operation information;
  • the subtitle track rolling display module is configured to scroll and display the corresponding target editing subtitle track of each video frame during the playback of the video;
  • the subtitle editing page display module includes:
  • the subtitle editing page display submodule is configured to display the subtitle editing page on the original page in response to a subtitle modification instruction triggered based on the subtitle modification operation information.
  • the original page displays subtitle switching operation information
  • the subtitle information editing device further includes:
  • the subtitle to be switched acquisition module is configured to respond to the subtitle switching instruction triggered based on the subtitle switching operation information on the original page, and acquire the subtitle to be switched corresponding to the subtitle switching instruction;
  • the target editing subtitle track acquisition module of the subtitle to be switched is configured to acquire the target editing subtitle track of the subtitle to be switched
  • the target edited subtitle track display module of the subtitle to be switched is configured to display the target edited subtitle track of the to-be-switched subtitle on the original page.
  • an electronic device including:
  • the processor is configured to execute the instructions, so as to realize the subtitle information editing method as described above.
  • a computer-readable storage medium when the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device can execute the above subtitle information edit method.
  • a computer program product including a computer program, wherein when the computer program is executed by a processor, the subtitle information editing method as described above is realized.
  • the present disclosure displays a subtitle editing page, the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and a display corresponding to the target video frame Time-corresponding target subtitle information; the subtitle editing area displays a target editing subtitle track based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis; wherein each subtitle track is Corresponding to subtitles, avoiding the situation that some subtitle tracks do not have corresponding subtitles; that is, avoiding the situation where the subtitle track has no corresponding sound when the speech rate is not uniform; the disclosure responds to the user editing the subtitle track based on the target
  • the subtitle adjustment instruction triggered by the target subtitle segment of the subtitle adjustment instruction is adjusted to the target subtitle segment corresponding to the subtitle adjustment instruction; the adjusted target edit subtitle track is displayed in the subtitle editing area; based on the adjusted target edit subtitle track, update all Describe the target subtitle information displayed in the target video frame; realize the synchronous segmentation of the subtitle segment
  • Fig. 1 is an application environment diagram of a method for editing subtitle information according to an exemplary embodiment.
  • Fig. 2 is a flowchart of a method for editing subtitle information according to an exemplary embodiment.
  • Fig. 3 is a flowchart showing a method for generating a target editing subtitle track according to an exemplary embodiment.
  • Fig. 4 is a flowchart of a subtitle segmentation method according to an exemplary embodiment.
  • Fig. 5 is a flowchart showing a method for determining segmentation positions in subtitle text information according to an exemplary embodiment.
  • Fig. 6 is a flow chart of a subtitle merging method according to an exemplary embodiment.
  • Fig. 7 is a flowchart showing a method for merging two adjacent target subtitle segments corresponding to the subtitle merging instruction according to an exemplary embodiment.
  • Fig. 8 is a flowchart showing a method for determining a merging result based on the target edited subtitle track of the first merging according to an exemplary embodiment.
  • Fig. 9a is a schematic diagram of an original page according to an exemplary embodiment.
  • Fig. 9b is a schematic diagram showing a subtitle track edited by scrolling playback targets on a subtitle editing page according to an exemplary embodiment.
  • Fig. 9c is a schematic diagram showing a subtitle track edited by a pausing and scrolling playback target on a subtitle editing page according to an exemplary embodiment.
  • Figures 10a-b are schematic diagrams showing a combination of target edited subtitle tracks according to an exemplary embodiment.
  • Figs. 10c-11a are schematic diagrams of target edited subtitle track segmentation during video pause playback according to an exemplary embodiment.
  • Fig. 11b-c are schematic diagrams showing a withdraw operation according to an exemplary embodiment.
  • Fig. 12a-c are schematic diagrams of subtitle track segmentation for target editing by moving subtitle text information during video playback according to an exemplary embodiment.
  • Figs. 13a-b are schematic diagrams of target edited subtitle track segmentation during video playback according to an exemplary embodiment.
  • Figs. 14a-d are schematic diagrams of dragging two adjacent target edited subtitle tracks to merge target edited subtitle tracks according to an exemplary embodiment.
  • Figs. 15a-c are schematic diagrams showing target editing subtitle track switching according to an exemplary embodiment.
  • 16a-c are schematic diagrams showing modified subtitle information in a target edited subtitle track according to an exemplary embodiment.
  • Fig. 17 is a block diagram of an apparatus for editing subtitle information according to an exemplary embodiment.
  • Fig. 18 is a block diagram of a server according to an exemplary embodiment.
  • FIG. 1 shows an application environment diagram of a subtitle information editing method according to an exemplary embodiment
  • the application environment may include a server 01 and a client 02 .
  • the server 01 may include an independently running server, or a distributed server, or a server cluster composed of multiple servers, and may also provide cloud services, cloud databases, cloud Computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms .
  • the server 01 may include a network communication unit, a processor, a memory, and so on. In some embodiments, the server 01 may be used to store the updated subtitle information of the video.
  • the client 02 may include physical devices such as smart phones, desktop computers, tablet computers, notebook computers, digital assistants, smart wearable devices, and vehicle terminals, and may also include Software, such as web pages provided by some service providers to users, may also be applications provided by these service providers to users.
  • the client 02 may be configured to update the subtitle information in the playing video, and send the video with updated subtitle information to the server 01 .
  • Fig. 2 is a flowchart of a method for editing subtitle information according to an exemplary embodiment.
  • the method is applied to the client 02 shown in Fig. 1, and includes the following steps: Step S21, in response to For the editing operation of the target subtitle track, a subtitle editing page is displayed, and the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and a target corresponding to the display time of the target video frame Subtitle information; the subtitle editing area displays a target editing subtitle track based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis; step S22, in response to the user based on the target Edit the subtitle adjustment command triggered by the target subtitle segment in the subtitle track to adjust the target subtitle segment corresponding to the subtitle adjustment command; step S23, display the adjusted target edit subtitle track in the subtitle editing area; step S24, based on The adjusted target edits the subtitle track, and updates the target subtitle information displayed in the target video frame.
  • step S21 in response to the editing operation for the target subtitle track, a subtitle editing page is displayed, and the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays the target video frame and the target video frame.
  • the target subtitle information corresponding to the display time of the frame; the subtitle editing area displays a target edited subtitle track generated based on the target subtitle track, and the target edited subtitle track includes subtitle segments arranged along the display time axis.
  • the subtitle editing area is used to edit the subtitles displayed in the target video frame; the subtitle editing area displays the target editing subtitle track generated according to the target subtitle track; wherein the subtitle segment is subtitle text, and the subtitle segment is displayed along the
  • the time axis arrangement shows that the time axis is associated with the subtitle track, and the subtitle track represents the time point when the subtitle appears in the video.
  • the displaying the subtitle editing page in response to the editing operation on the target subtitle track includes:
  • the target edited subtitle track corresponding to each video frame is scrolled and displayed.
  • the video frame and the corresponding target edited subtitle track can be scrolled and displayed, so that the video frame subtitle information can be automatically scrolled to check the picture effect, and the target edited subtitle track can be edited at the same time.
  • the disclosure reduces the number of clicks of the user, and can preview the modification result more intuitively, and is more suitable for the editing scene.
  • the above subtitle information editing method further includes:
  • the playback stop instruction may be an instruction triggered by the user's dragging or sliding operation on the target edited subtitle track; Stop playing the video and display the page corresponding to the current video frame.
  • the play key 04 when the user clicks the play key 04 on the page, the scrolling and playback of the target editing subtitle track is stopped, and the play key 04 becomes the pause key 07 in Figure 9c;
  • the target video frame is displayed, and the user can edit the target editing subtitle track corresponding to the video frame.
  • the subtitle information editing method further includes:
  • step S31 the subtitle information corresponding to the preset video is obtained; the preset video includes a target video frame, and the subtitle information corresponding to the preset video includes at least one subtitle segment;
  • the preset video may include multiple video frames, one of which is the target video frame; the subtitle information corresponding to the preset video may be obtained through voice information; in some embodiments, the voice information may be analyzed through voice recognition technology It is obtained by identifying; according to the sentence segmentation result of the text in the subtitle information, one or more subtitle segments in the subtitle information can be determined.
  • step S32 determine the time start point and time end point of the subtitle information corresponding to the preset video in the preset video;
  • the time start point and time end point of the subtitle information in the preset video can be determined, so as to further determine the start point video frame and the end point video frame.
  • step S33 based on the time start point and the time end point, determine a start point video frame and an end point video frame;
  • step S34 construct the subtitle track between described start video frame and described end video frame
  • step S35 according to the corresponding time of the subtitle track and the corresponding time of the subtitle information corresponding to the preset video, the corresponding relationship between the subtitle segment and the subtitle track is constructed;
  • step S36 based on the correspondence between the subtitle segment and the subtitle track, a target edited subtitle track corresponding to the preset video is generated.
  • the subtitle editing page also displays withdrawal operation information
  • the subtitle information editing method further includes:
  • the undo update operation is performed on the update target edited subtitle track corresponding to the undo operation instruction.
  • the subtitle editing page includes a withdrawal sign, and the user can return to the interface before subtitle division as shown in FIG. 11 c in response to clicking the sign.
  • sentence sentence modification may include multiple modifications and involves refined modification, it is possible to withdraw the current operation and return to the previous operation interface by withdrawing the operation information, which improves the user's sense of security during operation and improves the user experience. Operational security.
  • the subtitle information editing method further includes:
  • the original page may be a page before the subtitle editing page, wherein the subtitle modification operation information may be identification information of copywriting quick modification.
  • the target editing subtitle track corresponding to each video frame is scrolled and displayed.
  • displaying the subtitle editing page includes:
  • the subtitle editing page is displayed on the original page in response to a subtitle modification instruction triggered based on the subtitle modification operation information.
  • Figure 9a is the original page, which includes the "Quick Copywriting" logo 03, that is, subtitle modification operation information; in response to the user clicking the logo 03, you can jump to the The subtitle editing page of 9b, wherein the subtitle editing area includes a subtitle merging tool 05 and a subtitle splitting tool 06; the user can trigger the subtitle merging tool 05 or the subtitle splitting tool 06 to edit the target editing subtitle track corresponding to the video frame.
  • the target editing subtitle track corresponding to each video frame can be displayed by scrolling on the original page, so that it is convenient for the user to selectively edit after browsing the target editing subtitle track; for example, if the user finds a problematic subtitle during browsing,
  • the subtitle modification operation information can be triggered to perform editing operations; in addition, the subtitle modification operation information can be set in the original page to improve the efficiency of jumping to the subtitle editing page, thereby increasing the update rate of the subtitle information.
  • the original page displays subtitle switching operation information
  • the subtitle information editing method further includes:
  • the target editing subtitle track of the subtitle to be switched is displayed on the original page.
  • the subtitle switching operation information is displayed on the page, and the information can be "previous line", "next line”, etc.
  • the identification information in FIG. 15b, the user clicks “Up Line”; as shown in FIG. 15c, the target editing subtitle track of the previous line corresponding to the current subtitle switching operation information is displayed on the subtitle editing page.
  • the subtitle switching operation information can be used to facilitate the user to check the picture effect of the subtitle information in multiple video frames, and it is convenient for the user to intuitively and quickly locate the subtitle track at the same vertical height of the picture for sentence adjustment.
  • step S22 in response to the subtitle adjustment instruction triggered by the user based on the target subtitle segment in the target edited subtitle track, the target subtitle segment corresponding to the subtitle adjustment instruction is adjusted.
  • the subtitle adjustment instruction may include a subtitle segmentation instruction, a subtitle merging instruction, and a subtitle modification instruction; the target editing subtitle track may be adjusted based on different instructions; The information is modified.
  • the subtitle track can be edited by double-clicking the target, and the letter keyboard is displayed in Figure 16b, so as to perform text editing operations on the subtitle information in the target editing subtitle track corresponding to the double-click operation; and the ⁇ mark in the trigger page 12.
  • Determine the subtitle information modification result so as to obtain the modified target edited subtitle track 13 in the page shown in FIG. 16c.
  • the subtitle editing area further displays subtitle text information corresponding to the target subtitle segment
  • the subtitle adjustment instruction includes a subtitle segmentation instruction, as shown in FIG. 4
  • the response to the user based on the The subtitle adjustment instruction triggered by the target subtitle segment in the target editing subtitle track, adjusting the target subtitle segment corresponding to the subtitle adjustment instruction includes: Step S41, responding to the target subtitle in the target editing subtitle track based on the user
  • the subtitle segmentation instruction triggered by the segment determines the segmentation position in the subtitle text information; step S42, based on the segmentation position in the subtitle text information, segment the target subtitle segment to form at least two segments along the display Subtitle segments arranged on a time axis; Step 43: Based on the divided subtitle segments, update the target edited subtitle track.
  • step S41 in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edited subtitle track, the segmentation position in the subtitle text information is determined.
  • the subtitle editing area further displays a cursor for selecting the target subtitle segment, the cursor is set in the character gap of the subtitle text information; the response to the user based on the target Editing the subtitle segmentation instruction triggered by the target subtitle segment in the subtitle track determines the segmentation position in the subtitle text information, including:
  • a segmentation position in the subtitle text information is determined.
  • the cursor may be set corresponding to the subtitle segmentation operation information
  • the subtitle segmentation operation information may be a subtitle segmentation tool, as shown in FIG. 10c, the subtitle segmentation tool may be 06 in FIG. 10c.
  • the position of the cursor can be positioned.
  • the subtitle segmentation operation can be performed during the video scrolling playback process, and can also be performed during the video pause playback process; during the video playback process, the user clicks the subtitle segmentation tool 06 in FIG.
  • the character segmentation position and the corresponding track segmentation time can be determined respectively, so as to segment the subtitle text information and the subtitle track respectively, and obtain the target editing subtitle track shown in FIG. 11a .
  • the user can move the subtitle text information or subtitle track to change the position of the cursor, thereby changing the character division position and track division time.
  • the character segmentation position and track segmentation time can be quickly located through the cursor, which improves the accuracy and efficiency of the segmentation operation.
  • the segmentation position in the subtitle text information in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edit subtitle track, based on the cursor being in the subtitle text information position, determine the segmentation position in the subtitle text information, including:
  • step S51 in response to the user's operation of dragging the subtitle text information, determine the position of the dragged cursor;
  • step S52 based on the position of the dragged cursor, the division position in the subtitle text information is determined.
  • the position of the cursor can be changed by dragging the text information of the subtitle, so as to realize rapid modification of the segmentation position and better meet the needs of the user.
  • the subtitle adjustment instruction includes a subtitle merging instruction, and there are at least two target editing subtitle tracks, as shown in FIG.
  • the triggered subtitle adjustment instruction adjusts the target subtitle segment corresponding to the subtitle adjustment instruction, including: Step S61, responding to the subtitle merge triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks Instructing to merge two adjacent target subtitle segments corresponding to the subtitle merging instruction to obtain a merging result; Step S62 , updating the target edited subtitle track corresponding to the subtitle merging instruction according to the merging result.
  • step S61 in response to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target edited subtitle tracks, the two adjacent target subtitle segments corresponding to the subtitle merging instruction are merged, Get the combined result.
  • the adjacent target subtitle segment can be quickly merged, and the merged subtitle track can be determined according to the time axis corresponding to the target subtitle segment; the subtitle track and subtitle Fast merging of segments.
  • the subtitle editing area further displays at least one subtitle merging operation information
  • the subtitle merging operation information corresponds to any two adjacent target edited subtitle tracks
  • the subtitle merging operation information uses Combining the subtitle segments arranged along the display time axis in corresponding two adjacent target editing subtitle tracks; the subtitle merging triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks Instructions, merging two adjacent target subtitle segments corresponding to the subtitle merging instruction to obtain a merging result, including:
  • the two adjacent targets corresponding to the subtitle merging instruction are merged to obtain the merged result.
  • the subtitle merging operation information can be a subtitle merging operation tool 05, and the tool 05 can be set between two adjacent target editing subtitle tracks; in response to the user clicking the subtitle merging operation The tool 05 can merge two adjacent target edited subtitle tracks corresponding to the tool 05, and obtain the merged result shown in FIG. 10b.
  • the subtitle merging operation information on the display page, it is convenient for the user to realize the fast merging operation of the target editing subtitle track based on the operation information, and the merging efficiency of the target editing subtitle track is improved.
  • the two subtitle merging instructions corresponding to the The adjacent target subtitle segments are merged to obtain the merged result, including:
  • step S71 in response to the position movement operation instruction triggered by the user based on any two adjacent target edited subtitle tracks, the result of position movement of any two adjacent target edited subtitle tracks is obtained;
  • step S72 according to the position movement results of any two adjacent target edited subtitle tracks, the two adjacent target subtitle segments corresponding to the position movement operation instruction are combined to obtain a combination result.
  • subtitle merging operation information may not be set, and the merging operation of subtitle information and subtitle tracks can be realized only through the user's gesture operation, which improves the user's ability to merge target edited subtitle tracks. flexibility.
  • the two adjacent target subtitle segments corresponding to the position movement operation instruction are merged to obtain a merge result, including :
  • a merging result is determined.
  • the editing subtitle track based on the merged target to determine the merged result includes:
  • step S81 in response to the position movement instruction triggered by the user based on the two adjacent target subtitle segments after the first combination, the two adjacent target subtitle segments combined once are displayed along the display time axis Secondary merging to obtain overlapping information between target subtitle tracks corresponding to the two adjacent target subtitle segments;
  • step S82 based on the result of one merge and the overlap information between the target subtitle tracks corresponding to the two adjacent target subtitle segments, it is determined whether the subtitle segment corresponding to the merged subtitle segment in any two adjacent target edited subtitle tracks target duration;
  • step S83 based on the target duration, the target subtitle segments in any two adjacent target edited subtitle tracks are merged.
  • the user can simultaneously click on two adjacent targets to edit subtitle tracks; as shown in Figure 14b, and then drag the two towards each other; As shown in Fig. 14c, two adjacent target edited subtitle tracks overlap, so that the merged result shown in Fig. 14d is obtained.
  • the merged subtitle track when the user drags two adjacent target editing subtitle tracks closer together, the merged subtitle track can be determined by the overlapping length of the text boxes corresponding to the two adjacent target editing subtitle tracks, that is, the user Adjust the overall duration corresponding to the merged target editing subtitle track by pinching the distance between the two fingers.
  • the user adjusts the overall duration corresponding to the merged target editing subtitle track by pinching the distance between the two fingers.
  • the result of merging the corresponding subtitle tracks can realize the precise adjustment of subtitle tracks.
  • the two adjacent target subtitles corresponding to the subtitle merging instruction Segments are merged to obtain the merged results, including:
  • Determine the display position of the combined subtitle segment determine the display result of the combined subtitle segment according to the display time and display position of the combined subtitle segment.
  • the determining the display time of the merged subtitle segment includes:
  • the display time of the merged subtitle segment is determined.
  • the start point of display time corresponding to the target subtitle segment whose display time is earlier may be determined as the start point of display time of the merged subtitle segment, so as to realize flexible setting of the start point of display time of the merged subtitle segment.
  • the determining the display time of the merged subtitle segment includes:
  • the end point of the display time corresponding to the target subtitle segment whose display time is later may be determined as the end point of the display time of the merged subtitle segment, so as to realize the flexible setting of the start point of the display time of the merged subtitle segment.
  • the determining the display time of the merged subtitle segment includes:
  • the display time of the merged subtitle segment is determined.
  • the display time of the combined subtitle segment can be determined according to the user's selection, which improves the flexibility of setting the display time of the combined subtitle segment.
  • the determining the display position of the merged subtitle segment includes:
  • the display position of the merged subtitle segment is determined.
  • the starting point of the display position corresponding to the target subtitle segment whose display time is earlier is determined as the starting point of the display position of the combined subtitle segment, so as to realize the flexible setting of the starting point of the display position of the combined subtitle segment.
  • the determining the display position of the merged subtitle segment includes:
  • the display position of the merged subtitle segment is determined.
  • the end point of the display position corresponding to the target subtitle segment whose display time is later is determined as the end point of the display position of the combined subtitle segment, so as to realize the flexible setting of the end point of the display position of the combined subtitle segment.
  • the determining the display position of the merged subtitle segment includes:
  • the display position of the merged subtitle segment is determined.
  • the display position of the merged subtitle segment can be determined according to the user's selection, which improves the flexibility of setting the display position of the merged subtitle segment.
  • the display result of the merged subtitle segment can be determined according to the display time and display position of the merged subtitle segment, thereby realizing precise positioning of the display time and display position of the merged subtitle segment.
  • step S62 according to the merging result, the target edited subtitle track corresponding to the subtitle merging instruction is updated.
  • step S42 based on the segmentation position in the subtitle text information, the target subtitle segment is divided to form at least two subtitle segments arranged along the display time axis.
  • the cursor can be used to quickly segment the target subtitle segment in the target edited subtitle track.
  • the subtitle text information can be segmented with one click, and the subtitle segment in the target edited subtitle track can be determined.
  • the subtitle track is divided according to the time displayed in the time axis corresponding to the subtitle segment. One click realizes the division operation of two parts of information, which reduces the user's operation steps and improves the efficiency of the division operation.
  • step S43 the target edited subtitle track is updated based on the divided subtitle segments.
  • step S23 the adjusted target editing subtitle track is displayed in the subtitle editing area.
  • step S24 update the target subtitle information shown in the target video frame based on the adjusted target edited subtitle track.
  • the updating of the target subtitle information displayed in the target video frame based on the adjusted target edited subtitle track includes:
  • the target subtitle information displayed in the target video frame is updated.
  • the updating of the target subtitle information displayed in the target video frame based on the adjusted target edited subtitle track includes:
  • the target subtitle information displayed in the target video frame is updated.
  • the updating of the target subtitle information displayed in the target video frame based on the adjusted target edited subtitle track includes:
  • the edit page of the target subtitle segment may include a character keyboard for editing the subtitle information in the target edit subtitle track.
  • FIG. 16a when the user double-clicks the target edit subtitle track corresponding to "I didn't poke it", a character keyboard is displayed in FIG. 16b for editing the subtitle information. For example, it can be changed to "I didn't poke it". After the modification is completed, click the confirmation mark " ⁇ " to display the modified target edited subtitle track in 16c.
  • the user after the user performs adjustments such as splitting or merging operations on the target edited subtitle track, he can preview the adjustment result, and can further modify the subtitles in the target edited subtitle track, which improves the editing flexibility of the subtitles in the video .
  • the present disclosure displays a subtitle editing page, the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and a display corresponding to the target video frame Time-corresponding target subtitle information; the subtitle editing area displays a target editing subtitle track based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis; wherein each subtitle track is Corresponding to subtitles, avoiding the situation that some subtitle tracks do not have corresponding subtitles; that is, avoiding the situation where the subtitle track has no corresponding sound when the speech rate is not uniform; the disclosure responds to the user editing the subtitle track based on the target
  • the subtitle adjustment instruction triggered by the target subtitle segment in the subtitle adjustment instruction is adjusted to the target subtitle segment corresponding to the subtitle adjustment instruction; the adjusted target edit subtitle track is displayed in the subtitle editing area; based on the adjusted target edit subtitle track, update The target subtitle information shown in the target video frame; the synchronous segmentation of the subtitle segment and the subtitle track
  • Fig. 17 is a block diagram of an apparatus for editing subtitle information according to an exemplary embodiment.
  • the device 1700 includes:
  • the subtitle editing page display module 1710 is configured to display a subtitle editing page in response to an editing operation for the target subtitle track, the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and Target subtitle information corresponding to the display time of the target video frame; the subtitle editing area displays a target editing subtitle track based on the target subtitle track, and the target editing subtitle track includes subtitles arranged along the display time axis part;
  • the subtitle segment adjustment module 1720 is configured to adjust the target subtitle segment corresponding to the subtitle adjustment instruction in response to the subtitle adjustment instruction triggered by the user based on the target subtitle segment in the target edited subtitle track;
  • the target editing subtitle track display module 1730 is configured to display the adjusted target editing subtitle track in the subtitle editing area
  • the target subtitle information updating module 1740 is configured to update the target subtitle information displayed in the target video frame based on the adjusted target edited subtitle track.
  • the subtitle editing area is also displayed with subtitle text information corresponding to the target subtitle segment
  • the subtitle adjustment instruction includes a subtitle segmentation instruction
  • the subtitle segment adjustment module includes:
  • the segmentation position determination submodule is configured to determine the segmentation position in the subtitle text information in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edited subtitle track;
  • the subtitle segment segmentation submodule is configured to segment the target subtitle segment based on the segmentation position in the subtitle text information to form at least two subtitle segments arranged along the display time axis;
  • the target editing subtitle track update submodule is configured to update the target editing subtitle track based on the divided subtitle segments
  • the target subtitle information update module includes:
  • the first update submodule is configured to update the target subtitle information displayed in the target video frame based on the segmented and updated target edited subtitle track.
  • the subtitle editing area also displays a cursor for selecting the target subtitle segment, the cursor is set in the character gap of the subtitle text information;
  • the sub-module for determining the segmentation position includes:
  • the segmentation position determination unit is configured to determine the subtitle segmentation instruction based on the position of the cursor in the subtitle text information in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edited subtitle track. The split position in the subtitle text information.
  • the segmentation location determination unit includes:
  • the cursor position determination subunit is configured to determine the position of the dragged cursor in response to the user's operation of dragging the subtitle text information
  • the division position determining subunit is configured to determine the division position in the subtitle text information based on the position of the dragged cursor.
  • the subtitle adjustment instruction includes a subtitle merging instruction
  • the target editing subtitle track is at least two
  • the subtitle segment adjustment module includes:
  • the merging result determination submodule is configured to respond to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks, and combine the two adjacent targets corresponding to the subtitle merging instruction The subtitle segment is merged to obtain the merged result;
  • the subtitle track updating submodule is configured to update the target editing subtitle track corresponding to the subtitle merging instruction according to the merging result;
  • the target subtitle information update module includes:
  • the second update submodule is configured to update the target subtitle information displayed in the target video frame based on the merged and updated target edited subtitle track.
  • the subtitle editing area further displays at least one subtitle merging operation information
  • the subtitle merging operation information corresponds to any two adjacent target edited subtitle tracks
  • the subtitle merging operation information uses In merging the subtitle segments arranged along the display time axis in two corresponding adjacent target editing subtitle tracks;
  • the submodule for determining the merging result includes:
  • the first merging result determination unit is configured to respond to the subtitle merging instruction triggered by the user for the target subtitle segment in any two adjacent target edited subtitle tracks based on the target subtitle merging operation information, and combine the subtitle The two adjacent target subtitle segments corresponding to the merging instruction are merged to obtain a merging result.
  • the submodule for determining the combination result includes:
  • the position movement result determining unit is configured to obtain the position movement results of any two adjacent target edited subtitle tracks in response to the position movement operation instruction triggered by the user based on any two adjacent target edited subtitle tracks;
  • the second merge result determining unit is configured to merge two adjacent target subtitle segments corresponding to the position shift operation instruction according to the position shift results of any two adjacent target edited subtitle tracks to obtain a merge result .
  • the second combination result determination unit includes:
  • the one-time merging subunit is configured to, according to the position movement results of the any two adjacent target edited subtitle tracks, carry out the two adjacent target subtitle segments corresponding to the position movement operation instruction along the display time axis once Merge to obtain a merged target edited subtitle track; the time end point of the target subtitle segment that shows the time ahead in the target edited subtitle track of the merged one time coincides with the time start point of the target subtitle segment that is displayed behind the time;
  • the merging result determining subunit is configured to determine a merging result based on the target edited subtitle track of the first merging.
  • the subunit for determining the combination result includes:
  • the overlapping information determination subunit is configured to respond to the position movement instruction triggered by the user based on the two adjacent target subtitle segments after the first combination, and to combine the two adjacent target subtitle segments along the Displaying the time axis for secondary merging to obtain overlapping information between target subtitle tracks corresponding to the two adjacent target subtitle segments;
  • the target duration determination subunit is configured to, based on a merge result and the overlapping information between the target subtitle tracks corresponding to the two adjacent target subtitle segments, determine whether any two adjacent target edited subtitle tracks are merged The target duration corresponding to the subtitle segment;
  • the subtitle segment merging subunit is configured to merge target subtitle segments in any two adjacent target edited subtitle tracks based on the target duration.
  • the subtitle information editing device further includes:
  • Merged subtitle segment determination module configured to determine the merged subtitle segment in response to the subtitle merge instruction triggered by the user based on the target subtitle segment in any two adjacent target edited subtitle tracks;
  • a display time determination module configured to determine the display time of the merged subtitle segment
  • a display position determination module configured to determine the display position of the merged subtitle segment
  • the display result determining module is configured to determine the display result of the merged subtitle segment according to the display time and display position of the merged subtitle segment.
  • the display time determination module includes:
  • the first display time determining submodule is configured to determine the display time of the merged subtitle segment based on the display time corresponding to the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments.
  • the display time determination module includes:
  • the second display time determining submodule is configured to determine the display time of the merged subtitle segment based on the display time corresponding to the target subtitle segment whose display time is later among the two adjacent target subtitle segments.
  • the display time determination module includes:
  • the first candidate target subtitle segment determination submodule is configured to determine the first candidate target corresponding to the trigger instruction in response to the user's trigger instruction for any target subtitle segment in the two adjacent target subtitle segments subtitle segment;
  • the third display time determining submodule is configured to determine the display time of the merged subtitle segment based on the display time corresponding to the first candidate target subtitle segment.
  • the display position determination module includes:
  • the first display position determining submodule is configured to determine the display position of the merged subtitle segment based on the display position of the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments.
  • the display position determination module includes:
  • the second display position determining submodule is configured to determine the display position of the merged subtitle segment based on the display position of the target subtitle segment whose display time is later among the two adjacent target subtitle segments.
  • the display position determination module includes:
  • the second candidate target subtitle segment determination submodule is configured to determine the second candidate target corresponding to the trigger instruction in response to the user's trigger instruction for any target subtitle segment in the two adjacent target subtitle segments subtitle segment;
  • the third display position determining submodule is configured to determine the display position of the merged subtitle segment based on the display position corresponding to the second candidate target subtitle segment.
  • the target subtitle information update module includes:
  • the video preview sub-module is configured to edit the subtitle track based on the adjusted target, and preview and play the video displaying the subtitle information;
  • the edit page display submodule is configured to display the edit page of the target subtitle segment in response to the edit instruction for the adjusted target edit subtitle track;
  • the subtitle segment modification submodule is configured to modify the target subtitle segment in response to the user's editing operation on the editing page of the target subtitle segment;
  • the information update submodule is configured to update the target subtitle information displayed in the target video frame based on the modified target subtitle segment.
  • the subtitle information editing device further includes:
  • a subtitle information acquisition module configured to acquire subtitle information corresponding to a preset video; the preset video includes a target video frame, and the subtitle information corresponding to the preset video includes at least one subtitle segment;
  • a time information determination module configured to determine the time start point and time end point of the subtitle information corresponding to the preset video in the preset video;
  • a video frame determination module configured to determine a start video frame and an end video frame based on the time start point and the time end point;
  • a subtitle track construction module configured to construct a subtitle track between the start video frame and the end video frame
  • the corresponding relationship building module is configured to construct the corresponding relationship between the subtitle segment and the subtitle track according to the corresponding time of the subtitle track and the corresponding time of the subtitle information corresponding to the preset video;
  • the target editing subtitle track generation module is configured to generate the target editing subtitle track corresponding to the preset video based on the correspondence between the subtitle segment and the subtitle track.
  • the subtitle editing page also displays withdrawal operation information
  • the subtitle information editing device further includes:
  • the undo operation module is configured to, in response to the undo operation instruction triggered by the user based on the undo operation information, perform an undo update operation on the update target edited subtitle track corresponding to the undo operation instruction.
  • the subtitle editing page display module includes:
  • the video playing submodule is configured to play the video in the subtitle editing page in response to the editing operation for the target subtitle track;
  • the scrolling display submodule is configured to scroll and display the target editing subtitle track corresponding to each video frame during the playing process of the video.
  • the subtitle information editing device further includes:
  • the original video playback module is configured to play the video on the original page; the original page displays subtitle modification operation information;
  • the subtitle track rolling display module is configured to scroll and display the corresponding target editing subtitle track of each video frame during the playback of the video;
  • the subtitle editing page display module includes:
  • the subtitle editing page display submodule is configured to display the subtitle editing page on the original page in response to a subtitle modification instruction triggered based on the subtitle modification operation information.
  • the original page displays subtitle switching operation information
  • the subtitle information editing device further includes:
  • the subtitle to be switched acquisition module is configured to respond to the subtitle switching instruction triggered based on the subtitle switching operation information on the original page, and acquire the subtitle to be switched corresponding to the subtitle switching instruction;
  • the target editing subtitle track acquisition module of the subtitle to be switched is configured to acquire the target editing subtitle track of the subtitle to be switched
  • the target edited subtitle track display module of the subtitle to be switched is configured to display the target edited subtitle track of the to-be-switched subtitle on the original page.
  • an electronic device comprising:
  • a processor a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the above subtitle information editing method.
  • a computer-readable storage medium including instructions such as a memory including instructions, the instructions can be executed by a processor of an electronic device to complete the above subtitle information editing method.
  • the computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
  • a computer program product including a computer program, and when the computer program is executed by a processor, the above subtitle information editing method is implemented.
  • FIG. 18 is a hardware structural block diagram of a subtitle information updating server provided in an embodiment of the present application.
  • the server 1800 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (Central Processing Units, CPU) 1818 (processor 1818 may include but not limited to microprocessor MCU or programmable logic device FPGA, etc.), memory 1830 for storing data, one or more storage media 1820 for storing application programs 1823 or data 1822 (for example, one or more mass storage devices).
  • CPU Central Processing Units
  • storage media 1820 for storing application programs 1823 or data 1822 (for example, one or more mass storage devices).
  • the memory 1830 and the storage medium 1820 may be temporary storage or persistent storage.
  • the program stored in the storage medium 1820 may include one or more modules, and each module may include a series of instructions to operate on the server.
  • the central processing unit 1818 may be configured to communicate with the storage medium 1820 , and execute a series of instruction operations in the storage medium 1820 on the server 1800 .
  • the server 1800 can also include one or more power supplies 1860, one or more wired or wireless network interfaces 1850, one or more input and output interfaces 1840, and/or, one or more operating systems 1821, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • the input-output interface 1840 may be used to receive or send data via a network.
  • the specific example of the above network may include a wireless network provided by the communication provider of the server 1800 .
  • the input and output interface 1840 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the input and output interface 1840 may be a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • server 1800 may also include more or fewer components than shown in FIG. 18 , or have a different configuration than that shown in FIG. 18 .
  • the present disclosure displays a subtitle editing page, the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and a display corresponding to the target video frame Time-corresponding target subtitle information; the subtitle editing area displays a target editing subtitle track based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis; wherein each subtitle track is Corresponding to subtitles, avoiding the situation that some subtitle tracks do not have corresponding subtitles; that is, avoiding the situation where the subtitle track has no corresponding sound when the speech rate is not uniform; the disclosure responds to the user editing the subtitle track based on the target
  • the subtitle adjustment instruction triggered by the target subtitle segment in the subtitle adjustment instruction is adjusted to the target subtitle segment corresponding to the subtitle adjustment instruction; the adjusted target edit subtitle track is displayed in the subtitle editing area; based on the adjusted target edit subtitle track, update The target subtitle information shown in the target video frame; the synchronous segmentation of the subtitle segment and the subtitle track

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Studio Circuits (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The present application relates to the technical field of information editing, and to a subtitle information editing method and apparatus, and a storage medium. The method comprises: in response to an editing operation for a target subtitle track, displaying a subtitle editing page; in response to a subtitle adjustment instruction triggered by a user on the basis of a target subtitle segment in the target editing subtitle track, adjusting the target subtitle segment corresponding to the subtitle adjustment instruction; displaying the adjusted target editing subtitle track in a subtitle editing area; and updating, on the basis of the adjusted target editing subtitle track, target subtitle information displayed in the target video frame.

Description

字幕信息编辑方法及装置Subtitle information editing method and device
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202110507607.9、申请日为2021年05月10日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with application number 202110507607.9 and a filing date of May 10, 2021, and claims the priority of this Chinese patent application. The entire content of this Chinese patent application is hereby incorporated by reference into this application.
技术领域technical field
本公开涉及信息编辑技术领域,尤其涉及一种字幕信息编辑方法、装置及存储介质。The present disclosure relates to the technical field of information editing, and in particular to a subtitle information editing method, device and storage medium.
背景技术Background technique
相关技术中,由于语音音源的语速多样,采用语音识别技术得到的字幕信息通常不够准确,需要对其进行进一步处理;现有技术通常是按照字幕信息对应的时长均匀匹配字幕轨道,即对字幕信息进行匀速分割,这样容易导致分割后的字幕轨道没有相应的声音的情况;现有技术中并没有将声音对应时间与字幕出现时间进行精准匹配的方案;此外,在视频中对语音识别字幕进行断句时,需要将字幕轨道与字幕段两个部分分开进行,且涉及到人工手动删减字幕轨道,视频中字幕修改步骤繁多,修改效率低下。In related technologies, due to the variety of speech speeds of voice sources, the subtitle information obtained by using speech recognition technology is usually not accurate enough and needs to be further processed; the existing technology usually matches the subtitle track evenly according to the duration corresponding to the subtitle information, that is, subtitle The information is segmented at a uniform speed, which easily leads to the situation that the subtitle track after segmentation has no corresponding sound; in the prior art, there is no solution for accurately matching the corresponding time of the sound with the appearance time of the subtitle; When segmenting a sentence, it is necessary to separate the subtitle track and the subtitle segment, and it involves manual deletion of the subtitle track. There are many steps to modify the subtitles in the video, and the modification efficiency is low.
因此,有必要提供一种字幕信息编辑方法、装置及存储介质,避免了字幕轨道没有相应的声音的情况;实现了对目标编辑字幕轨道中沿着时间轴排列的字幕段的分割,即实现了字幕轨道与字幕段的同步分割,避免人工手动增减字幕轨道,且实现了对视频中字幕进行快速编辑。Therefore, it is necessary to provide a subtitle information editing method, device and storage medium, which avoids the situation that the subtitle track does not have corresponding sound; realizes the segmentation of the subtitle segments arranged along the time axis in the target editing subtitle track, that is, realizes The synchronous segmentation of subtitle tracks and subtitle segments avoids manual addition and deletion of subtitle tracks, and realizes rapid editing of subtitles in videos.
发明内容Contents of the invention
本公开提供一种字幕信息编辑方法、装置及存储介质。The disclosure provides a subtitle information editing method, device and storage medium.
根据本公开实施例的第一方面,提供一种字幕信息编辑方法,包括:According to the first aspect of an embodiment of the present disclosure, a method for editing subtitle information is provided, including:
响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,所述字幕编辑页面包括视频预览区域和字幕编辑区域,所述视频预览区域显示有目标视频帧和与所述目标视频帧的显示时间对应的目标字幕信息;所述字幕编辑区域显示有基于所述目标字幕轨道生成的目标编辑字幕轨道,所述目标编辑字幕轨道包括沿着显示时间轴排列的字幕段;In response to the editing operation for the target subtitle track, a subtitle editing page is displayed, the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and a display time corresponding to the target video frame The target subtitle information; The subtitle editing area is displayed with a target editing subtitle track generated based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis;
响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整;In response to a subtitle adjustment instruction triggered by the user based on the target subtitle segment in the target edited subtitle track, adjust the target subtitle segment corresponding to the subtitle adjustment instruction;
在所述字幕编辑区域显示调整后的目标编辑字幕轨道;Displaying the adjusted target editing subtitle track in the subtitle editing area;
基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。Based on the adjusted target edited subtitle track, the target subtitle information displayed in the target video frame is updated.
在一些实施方式中,所述字幕编辑区域还显示有与所述目标字幕段对应的字幕文本信息,所述字幕调整指令包括字幕分割指令,所述响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整,包括:In some implementations, the subtitle editing area further displays subtitle text information corresponding to the target subtitle segment, the subtitle adjustment instruction includes a subtitle segmentation instruction, and the response to the user edits the subtitle track based on the target The subtitle adjustment instruction triggered by the target subtitle segment adjusts the target subtitle segment corresponding to the subtitle adjustment instruction, including:
响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,确定所述字幕文本信息中的分割位置;determining a segmentation position in the subtitle text information in response to the subtitle segmentation instruction triggered by the user based on a target subtitle segment in the target edited subtitle track;
基于所述字幕文本信息中的分割位置,对所述目标字幕段进行分割,形成至少两个沿着显示时间轴排列的字幕段;Segmenting the target subtitle segment based on the segmentation position in the subtitle text information to form at least two subtitle segments arranged along the display time axis;
基于分割后的字幕段,更新所述目标编辑字幕轨道;Based on the segmented subtitle segment, updating the target edited subtitle track;
所述基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息,包括:The edited subtitle track based on the adjusted target updates the target subtitle information displayed in the target video frame, including:
基于分割更新后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。Based on the segmented and updated target edited subtitle track, the target subtitle information displayed in the target video frame is updated.
在一些实施方式中,所述字幕编辑区域还显示有用于选中所述目标字幕段的光标,所述光标设置于所述字幕文本信息的字符间隙中;所述响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,确定所述字幕文本信息中的分割位置,包括:In some embodiments, the subtitle editing area further displays a cursor for selecting the target subtitle segment, the cursor is set in the character gap of the subtitle text information; the response to the user based on the target Editing the subtitle segmentation instruction triggered by the target subtitle segment in the subtitle track determines the segmentation position in the subtitle text information, including:
响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,基于所述光标在所述字幕文本信息中的位置,确定所述字幕文本信息中的分割位置。In response to the subtitle segmentation instruction triggered by the user based on a target subtitle segment in the target edited subtitle track, based on the position of the cursor in the subtitle text information, a segmentation position in the subtitle text information is determined.
在一些实施方式中,所述响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,基于所述光标在所述字幕文本信息中的位置,确定所述字幕文本信息中的分割位置,包括:In some implementations, in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edit subtitle track, based on the position of the cursor in the subtitle text information, determine the Segmentation position in subtitle text information, including:
响应于所述用户拖动所述字幕文本信息的操作,确定拖动后的所述光标的位置;In response to the user's operation of dragging the subtitle text information, determine the position of the dragged cursor;
基于所述拖动后的所述光标的位置,确定所述字幕文本信息中的分割位置。Based on the position of the cursor after the dragging, the division position in the subtitle text information is determined.
在一些实施方式中,所述字幕调整指令包括字幕合并指令,所述目标编辑字幕轨道为至少两 个,所述响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整,包括:In some implementations, the subtitle adjustment instruction includes a subtitle merging instruction, and there are at least two target editing subtitle tracks, and the subtitle adjustment instruction triggered by the user based on the target subtitle segment in the target editing subtitle track, Adjusting the target subtitle segment corresponding to the subtitle adjustment instruction includes:
响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果;In response to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks, the two adjacent target subtitle segments corresponding to the subtitle merging instruction are merged to obtain a merging result;
根据所述合并结果,更新所述字幕合并指令对应的目标编辑字幕轨道;According to the merging result, update the target editing subtitle track corresponding to the subtitle merging instruction;
所述基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息,包括:The edited subtitle track based on the adjusted target updates the target subtitle information displayed in the target video frame, including:
基于合并更新后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。Based on the merged and updated target edited subtitle track, the target subtitle information displayed in the target video frame is updated.
在一些实施方式中,所述字幕编辑区域还显示有至少一个字幕合并操作信息,所述字幕合并操作信息与所述任意两个相邻的目标编辑字幕轨道相对应,所述字幕合并操作信息用于合并对应的两个相邻目标编辑字幕轨道中沿着显示时间轴排列的字幕段;所述响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果,包括:In some embodiments, the subtitle editing area further displays at least one subtitle merging operation information, the subtitle merging operation information corresponds to any two adjacent target edited subtitle tracks, and the subtitle merging operation information uses Combining the subtitle segments arranged along the display time axis in corresponding two adjacent target editing subtitle tracks; the subtitle merging triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks Instructions, merging two adjacent target subtitle segments corresponding to the subtitle merging instruction to obtain a merging result, including:
响应于所述用户基于目标字幕合并操作信息,对所述任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果。In response to the subtitle merging instruction triggered by the user on the target subtitle segment in the edited subtitle track of any two adjacent targets based on the target subtitle merging operation information, the two adjacent targets corresponding to the subtitle merging instruction The subtitle segments are merged to obtain the merged result.
在一些实施方式中,所述响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果,包括:In some implementations, in response to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks, the two adjacent target subtitles corresponding to the subtitle merging instruction Segments are merged to obtain the merged results, including:
响应于所述用户基于任意两个相邻的目标编辑字幕轨道触发的位置移动操作指令,得到所述任意两个相邻的目标编辑字幕轨道的位置移动结果;Responding to the position movement operation instruction triggered by the user based on any two adjacent target editing subtitle tracks, obtaining the position movement results of the any two adjacent target editing subtitle tracks;
根据所述任意两个相邻的目标编辑字幕轨道的位置移动结果,将所述位置移动操作指令对应的两个相邻的目标字幕段合并,得到合并结果。According to the position movement results of any two adjacent target edited subtitle tracks, the two adjacent target subtitle segments corresponding to the position movement operation instruction are combined to obtain a combination result.
在一些实施方式中,所述根据所述任意两个相邻的目标编辑字幕轨道的位置移动结果,将所述位置移动操作指令对应的两个相邻的目标字幕段合并,得到合并结果,包括:In some embodiments, according to the position movement results of any two adjacent target edited subtitle tracks, the two adjacent target subtitle segments corresponding to the position movement operation instruction are merged to obtain a merge result, including :
根据所述任意两个相邻的目标编辑字幕轨道的位置移动结果,将所述位置移动操作指令对应的两个相邻的目标字幕段沿着显示时间轴进行一次合并,得到一次合并的目标编辑字幕轨道;所述一次合并的目标编辑字幕轨道中显示时间靠前的目标字幕段的时间终点与显示时间靠后的目标字幕段的时间起点重合;According to the position movement results of any two adjacent target editing subtitle tracks, merge the two adjacent target subtitle segments corresponding to the position movement operation instruction along the display time axis to obtain a merged target editing Subtitle track; the time end point of the target subtitle segment whose display time is earlier in the target edited subtitle track of the first merge coincides with the time start point of the target subtitle segment whose display time is later;
基于所述一次合并的目标编辑字幕轨道,确定合并结果。Based on the target edited subtitle track of the first merging, a merging result is determined.
在一些实施方式中,所述基于所述一次合并的目标编辑字幕轨道,确定合并结果,包括:In some implementation manners, the editing subtitle track based on the target of the first merging, and determining the merging result include:
响应于所述用户基于所述一次合并后所述两个相邻的目标字幕段触发的位置移动指令,对一次合并的两个相邻的目标字幕段沿着显示时间轴进行二次合并,得到所述两个相邻的目标字幕段对应的目标字幕轨道之间的重叠信息;In response to the position movement instruction triggered by the user based on the two adjacent target subtitle segments after the first combination, the two adjacent target subtitle segments combined once are combined along the display time axis for a second time to obtain Overlapping information between target subtitle tracks corresponding to the two adjacent target subtitle segments;
基于一次合并结果以及所述两个相邻的目标字幕段对应的目标字幕轨道之间的重叠信息,确定所述任意两个相邻的目标编辑字幕轨道中合并字幕段对应的目标时长;Based on a merging result and the overlapping information between the target subtitle tracks corresponding to the two adjacent target subtitle segments, determine the target duration corresponding to the merged subtitle segment in any two adjacent target edited subtitle tracks;
基于所述目标时长,将所述任意两个相邻的目标编辑字幕轨道中目标字幕段进行合并。Based on the target duration, merge target subtitle segments in any two adjacent target edited subtitle tracks.
在一些实施方式中,所述响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果,包括:In some implementations, in response to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks, the two adjacent target subtitles corresponding to the subtitle merging instruction Segments are merged to obtain the merged results, including:
响应于所述用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,确定合并字幕段;In response to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target edited subtitle tracks, determine to merge the subtitle segment;
确定所述合并字幕段的显示时间;determining the display time of the merged subtitle segment;
确定所述合并字幕段的显示位置;determining the display position of the merged subtitle segment;
根据所述合并字幕段的显示时间以及显示位置,确定所述合并字幕段的显示结果。The display result of the combined subtitle segment is determined according to the display time and display position of the combined subtitle segment.
在一些实施方式中,所述确定所述合并字幕段的显示时间,包括:In some implementation manners, the determining the display time of the merged subtitle segment includes:
基于所述两个相邻的目标字幕段中,显示时间靠前的目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。Based on the display time corresponding to the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments, the display time of the merged subtitle segment is determined.
在一些实施方式中,所述确定所述合并字幕段的显示时间,包括:In some implementation manners, the determining the display time of the merged subtitle segment includes:
基于所述两个相邻的目标字幕段中,显示时间靠后的目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。Based on the display time corresponding to the target subtitle segment whose display time is later among the two adjacent target subtitle segments, the display time of the merged subtitle segment is determined.
在一些实施方式中,所述确定所述合并字幕段的显示时间,包括:In some implementation manners, the determining the display time of the merged subtitle segment includes:
响应于所述用户对所述两个相邻的目标字幕段中任一目标字幕段的触发指令,确定所述触发 指令对应的第一候选目标字幕段;In response to the trigger instruction of the user to any target subtitle segment in the two adjacent target subtitle segments, determine the first candidate target subtitle segment corresponding to the trigger instruction;
基于所述第一候选目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。Based on the display time corresponding to the first candidate target subtitle segment, the display time of the merged subtitle segment is determined.
在一些实施方式中,所述确定所述合并字幕段的显示位置,包括:In some implementation manners, the determining the display position of the merged subtitle segment includes:
基于所述两个相邻的目标字幕段中,显示时间靠前的目标字幕段的显示位置,确定所述合并字幕段的显示位置。Based on the display position of the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments, the display position of the merged subtitle segment is determined.
在一些实施方式中,所述确定所述合并字幕段的显示位置,包括:In some implementation manners, the determining the display position of the merged subtitle segment includes:
基于所述两个相邻的目标字幕段中,显示时间靠后的目标字幕段的显示位置,确定所述合并字幕段的显示位置。Based on the display position of the target subtitle segment whose display time is later among the two adjacent target subtitle segments, the display position of the merged subtitle segment is determined.
在一些实施方式中,所述确定所述合并字幕段的显示位置,包括:In some implementation manners, the determining the display position of the merged subtitle segment includes:
响应于所述用户对所述两个相邻的目标字幕段中任一目标字幕段的触发指令,确定所述触发指令对应的第二候选目标字幕段;Responding to a trigger instruction from the user for any target subtitle segment in the two adjacent target subtitle segments, determining a second candidate target subtitle segment corresponding to the trigger instruction;
基于所述第二候选目标字幕段对应的显示位置,确定所述合并字幕段的显示位置。Based on the display position corresponding to the second candidate target subtitle segment, the display position of the merged subtitle segment is determined.
在一些实施方式中,所述基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息,包括:In some implementation manners, the updating of the target subtitle information displayed in the target video frame based on the adjusted target edited subtitle track includes:
基于调整后的目标编辑字幕轨道,预览播放显示有字幕信息的视频;Edit the subtitle track based on the adjusted target, preview and play the video with subtitle information displayed;
响应于针对所述调整后的目标编辑字幕轨道的编辑指令,显示所述目标字幕段的编辑页面;In response to an editing instruction for the adjusted target editing subtitle track, display an editing page of the target subtitle segment;
响应于所述用户在所述目标字幕段的编辑页面的编辑操作,对所述目标字幕段进行修改;Modifying the target subtitle segment in response to the user's editing operation on the editing page of the target subtitle segment;
基于修改后的目标字幕段,更新所述目标视频帧中展示的目标字幕信息。Based on the modified target subtitle segment, update the target subtitle information displayed in the target video frame.
在一些实施方式中,所述字幕信息编辑方法还包括:In some implementation manners, the subtitle information editing method further includes:
获取预设视频对应的字幕信息;所述预设视频包括目标视频帧,所述预设视频对应的字幕信息包括至少一个字幕段;Obtain subtitle information corresponding to a preset video; the preset video includes a target video frame, and the subtitle information corresponding to the preset video includes at least one subtitle segment;
确定所述预设视频对应的字幕信息在所述预设视频中的时间起点与时间终点;Determining the time start point and time end point of the subtitle information corresponding to the preset video in the preset video;
基于所述时间起点与所述时间终点,确定起点视频帧与终点视频帧;Based on the time start point and the time end point, determine a start point video frame and an end point video frame;
构建所述起点视频帧与所述终点视频帧之间的字幕轨道;Constructing the subtitle track between the starting point video frame and the ending point video frame;
根据所述字幕轨道的对应时间与所述预设视频对应的字幕信息的对应时间,构建字幕段与字幕轨道的对应关系;According to the corresponding time of the subtitle track and the corresponding time of the subtitle information corresponding to the preset video, construct the corresponding relationship between the subtitle segment and the subtitle track;
基于所述字幕段与字幕轨道的对应关系,生成所述预设视频对应的目标编辑字幕轨道。Based on the correspondence between the subtitle segment and the subtitle track, a target editing subtitle track corresponding to the preset video is generated.
在一些实施方式中,所述字幕编辑页面还显示有撤回操作信息,所述字幕信息编辑方法还包括:In some implementation manners, the subtitle editing page also displays withdrawal operation information, and the subtitle information editing method further includes:
响应于所述用户基于所述撤回操作信息触发的撤回操作指令,对所述撤回操作指令对应的更新目标编辑字幕轨道进行撤回更新操作。In response to the undo operation instruction triggered by the user based on the undo operation information, the undo update operation is performed on the update target edited subtitle track corresponding to the undo operation instruction.
在一些实施方式中,所述响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,包括:In some implementation manners, the displaying the subtitle editing page in response to the editing operation on the target subtitle track includes:
响应于针对目标字幕轨道的编辑操作,在所述字幕编辑页面中播放所述视频;Playing the video on the subtitle editing page in response to an editing operation on the target subtitle track;
在所述视频的播放过程中,滚动展示每个视频帧对应的目标编辑字幕轨道。During the playing process of the video, the target edited subtitle track corresponding to each video frame is scrolled and displayed.
在一些实施方式中,所述字幕信息编辑方法还包括:In some implementation manners, the subtitle information editing method further includes:
在原始页面播放所述视频;所述原始页面显示有字幕修改操作信息;Play the video on the original page; the original page displays subtitle modification operation information;
在所述视频的播放过程中,滚动展示每个视频帧对应的目标编辑字幕轨道;During the playback of the video, the target editing subtitle track corresponding to each video frame is scrolled;
相应的,所述响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,包括:Correspondingly, in response to the editing operation for the target subtitle track, displaying the subtitle editing page includes:
在所述原始页面响应于基于所述字幕修改操作信息触发的字幕修改指令,显示所述字幕编辑页面。The subtitle editing page is displayed on the original page in response to a subtitle modification instruction triggered based on the subtitle modification operation information.
在一些实施方式中,所述原始页面显示有字幕切换操作信息,所述字幕信息编辑方法还包括:In some embodiments, the original page displays subtitle switching operation information, and the subtitle information editing method further includes:
在所述原始页面响应于基于所述字幕切换操作信息触发的字幕切换指令,获取所述字幕切换指令对应的待切换字幕;Responding to the subtitle switching instruction triggered based on the subtitle switching operation information on the original page, acquiring the subtitle to be switched corresponding to the subtitle switching instruction;
获取所述待切换字幕的目标编辑字幕轨道;Obtain the target editing subtitle track of the subtitle to be switched;
在所述原始页面显示所述待切换字幕的目标编辑字幕轨道。The target editing subtitle track of the subtitle to be switched is displayed on the original page.
根据本公开实施例的第二方面,提供一种字幕信息编辑装置,包括:According to a second aspect of an embodiment of the present disclosure, a subtitle information editing device is provided, including:
字幕编辑页面显示模块,被配置为响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,所述字幕编辑页面包括视频预览区域和字幕编辑区域,所述视频预览区域显示有目标视频帧和与所述目标视频帧的显示时间对应的目标字幕信息;所述字幕编辑区域显示有基于所述目标字幕轨道生成的目标编辑字幕轨道,所述目标编辑字幕轨道包括沿着显示时间轴排列的字幕段;The subtitle editing page display module is configured to display a subtitle editing page in response to an editing operation for the target subtitle track, and the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays the target video frame and the Target subtitle information corresponding to the display time of the target video frame; the subtitle editing area displays a target editing subtitle track based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis ;
字幕段调整模块,被配置为响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整;The subtitle segment adjustment module is configured to adjust the target subtitle segment corresponding to the subtitle adjustment instruction in response to the subtitle adjustment instruction triggered by the user based on the target subtitle segment in the target editing subtitle track;
目标编辑字幕轨道显示模块,被配置为在所述字幕编辑区域显示调整后的目标编辑字幕轨道;The target editing subtitle track display module is configured to display the adjusted target editing subtitle track in the subtitle editing area;
目标字幕信息更新模块,被配置为基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。The target subtitle information update module is configured to update the target subtitle information displayed in the target video frame based on the adjusted target edited subtitle track.
在一些实施方式中,所述字幕编辑区域还显示有与所述目标字幕段对应的字幕文本信息,所述字幕调整指令包括字幕分割指令,所述字幕段调整模块包括:In some embodiments, the subtitle editing area is also displayed with subtitle text information corresponding to the target subtitle segment, the subtitle adjustment instruction includes a subtitle segmentation instruction, and the subtitle segment adjustment module includes:
分割位置确定子模块,被配置为响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,确定所述字幕文本信息中的分割位置;The segmentation position determination submodule is configured to determine the segmentation position in the subtitle text information in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edited subtitle track;
字幕段分割子模块,被配置为基于所述字幕文本信息中的分割位置,对所述目标字幕段进行分割,形成至少两个沿着显示时间轴排列的字幕段;The subtitle segment segmentation submodule is configured to segment the target subtitle segment based on the segmentation position in the subtitle text information to form at least two subtitle segments arranged along the display time axis;
目标编辑字幕轨道更新子模块,被配置为基于分割后的字幕段,更新所述目标编辑字幕轨道;The target editing subtitle track update submodule is configured to update the target editing subtitle track based on the divided subtitle segments;
所述目标字幕信息更新模块包括:The target subtitle information update module includes:
第一更新子模块,被配置为基于分割更新后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。The first update submodule is configured to update the target subtitle information displayed in the target video frame based on the segmented and updated target edited subtitle track.
在一些实施方式中,所述字幕编辑区域还显示有用于选中所述目标字幕段的光标,所述光标设置于所述字幕文本信息的字符间隙中;所述分割位置确定子模块包括:In some implementations, the subtitle editing area also displays a cursor for selecting the target subtitle segment, the cursor is set in the character gap of the subtitle text information; the sub-module for determining the segmentation position includes:
分割位置确定单元,被配置为响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,基于所述光标在所述字幕文本信息中的位置,确定所述字幕文本信息中的分割位置。The segmentation position determination unit is configured to determine the subtitle segmentation instruction based on the position of the cursor in the subtitle text information in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edited subtitle track. The split position in the subtitle text information.
在一些实施方式中,所述分割位置确定单元包括:In some implementations, the segmentation location determination unit includes:
光标位置确定子单元,被配置为响应于所述用户拖动所述字幕文本信息的操作,确定拖动后的所述光标的位置;The cursor position determination subunit is configured to determine the position of the dragged cursor in response to the user's operation of dragging the subtitle text information;
分割位置确定子单元,被配置为基于所述拖动后的所述光标的位置,确定所述字幕文本信息中的分割位置。The division position determining subunit is configured to determine the division position in the subtitle text information based on the position of the dragged cursor.
在一些实施方式中,所述字幕调整指令包括字幕合并指令,所述目标编辑字幕轨道为至少两个,所述字幕段调整模块包括:In some implementation manners, the subtitle adjustment instruction includes a subtitle merging instruction, the target editing subtitle track is at least two, and the subtitle segment adjustment module includes:
合并结果确定子模块,被配置为响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果;The merging result determination submodule is configured to respond to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks, and combine the two adjacent targets corresponding to the subtitle merging instruction The subtitle segment is merged to obtain the merged result;
字幕轨道更新子模块,被配置为根据所述合并结果,更新所述字幕合并指令对应的目标编辑字幕轨道;The subtitle track updating submodule is configured to update the target editing subtitle track corresponding to the subtitle merging instruction according to the merging result;
相应的,所述目标字幕信息更新模块包括:Correspondingly, the target subtitle information update module includes:
第二更新子模块,被配置为基于合并更新后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。The second update submodule is configured to update the target subtitle information displayed in the target video frame based on the merged and updated target edited subtitle track.
在一些实施方式中,所述字幕编辑区域还显示有至少一个字幕合并操作信息,所述字幕合并操作信息与所述任意两个相邻的目标编辑字幕轨道相对应,所述字幕合并操作信息用于合并对应的两个相邻目标编辑字幕轨道中沿着显示时间轴排列的字幕段;所述合并结果确定子模块包括:In some embodiments, the subtitle editing area further displays at least one subtitle merging operation information, the subtitle merging operation information corresponds to any two adjacent target edited subtitle tracks, and the subtitle merging operation information uses Merge the subtitle segments arranged along the display time axis in two corresponding adjacent target editing subtitle tracks; the submodule for determining the merged result includes:
第一合并结果确定单元,被配置为响应于所述用户基于目标字幕合并操作信息,对所述任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果。The first merging result determination unit is configured to respond to the subtitle merging instruction triggered by the user for the target subtitle segment in any two adjacent target edited subtitle tracks based on the target subtitle merging operation information, and combine the subtitle The two adjacent target subtitle segments corresponding to the merging instruction are merged to obtain a merging result.
在一些实施方式中,所述合并结果确定子模块包括:In some embodiments, the combination result determination submodule includes:
位置移动结果确定单元,被配置为响应于所述用户基于任意两个相邻的目标编辑字幕轨道触发的位置移动操作指令,得到所述任意两个相邻的目标编辑字幕轨道的位置移动结果;The position movement result determining unit is configured to obtain the position movement results of any two adjacent target edited subtitle tracks in response to the position movement operation instruction triggered by the user based on any two adjacent target edited subtitle tracks;
第二合并结果确定单元,被配置为根据所述任意两个相邻的目标编辑字幕轨道的位置移动结果,将所述位置移动操作指令对应的两个相邻的目标字幕段合并,得到合并结果。The second merge result determining unit is configured to merge two adjacent target subtitle segments corresponding to the position shift operation instruction according to the position shift results of any two adjacent target edited subtitle tracks to obtain a merge result .
在一些实施方式中,所述第二合并结果确定单元包括:In some embodiments, the second combination result determination unit includes:
一次合并子单元,被配置为根据所述任意两个相邻的目标编辑字幕轨道的位置移动结果,将所述位置移动操作指令对应的两个相邻的目标字幕段沿着显示时间轴进行一次合并,得到一次合并的目标编辑字幕轨道;所述一次合并的目标编辑字幕轨道中显示时间靠前的目标字幕段的时间终点与显示时间靠后的目标字幕段的时间起点重合;The one-time merging subunit is configured to, according to the position movement results of the any two adjacent target edited subtitle tracks, carry out the two adjacent target subtitle segments corresponding to the position movement operation instruction along the display time axis once Merge to obtain a merged target edited subtitle track; the time end point of the target subtitle segment that shows the time ahead in the target edited subtitle track of the merged one time coincides with the time start point of the target subtitle segment that is displayed behind the time;
合并结果确定子单元,被配置为基于所述一次合并的目标编辑字幕轨道,确定合并结果。The merging result determining subunit is configured to determine a merging result based on the target edited subtitle track of the first merging.
在一些实施方式中,所述合并结果确定子单元包括:In some embodiments, the subunit for determining the combination result includes:
重叠信息确定子单元,被配置为响应于所述用户基于所述一次合并后所述两个相邻的目标字 幕段触发的位置移动指令,对一次合并的两个相邻的目标字幕段沿着显示时间轴进行二次合并,得到所述两个相邻的目标字幕段对应的目标字幕轨道之间的重叠信息;The overlapping information determination subunit is configured to respond to the position movement instruction triggered by the user based on the two adjacent target subtitle segments after the first combination, and to combine the two adjacent target subtitle segments along the Displaying the time axis for secondary merging to obtain overlapping information between target subtitle tracks corresponding to the two adjacent target subtitle segments;
目标时长确定子单元,被配置为基于一次合并结果以及所述两个相邻的目标字幕段对应的目标字幕轨道之间的重叠信息,确定所述任意两个相邻的目标编辑字幕轨道中合并字幕段对应的目标时长;The target duration determining subunit is configured to, based on a merge result and the overlap information between the target subtitle tracks corresponding to the two adjacent target subtitle segments, determine whether any two adjacent target edited subtitle tracks are merged The target duration corresponding to the subtitle segment;
字幕段合并子单元,被配置为基于所述目标时长,将所述任意两个相邻的目标编辑字幕轨道中目标字幕段进行合并。The subtitle segment merging subunit is configured to merge target subtitle segments in any two adjacent target edited subtitle tracks based on the target duration.
在一些实施方式中,所述字幕信息编辑装置还包括:In some implementation manners, the subtitle information editing device further includes:
合并字幕段确定模块,被配置为响应于所述用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,确定合并字幕段;Merged subtitle segment determination module, configured to determine the merged subtitle segment in response to the subtitle merge instruction triggered by the user based on the target subtitle segment in any two adjacent target edited subtitle tracks;
显示时间确定模块,被配置为确定所述合并字幕段的显示时间;a display time determination module configured to determine the display time of the merged subtitle segment;
显示位置确定模块,被配置为确定所述合并字幕段的显示位置;a display position determination module configured to determine the display position of the merged subtitle segment;
显示结果确定模块,被配置为根据所述合并字幕段的显示时间以及显示位置,确定所述合并字幕段的显示结果。The display result determining module is configured to determine the display result of the merged subtitle segment according to the display time and display position of the merged subtitle segment.
在一些实施方式中,所述显示时间确定模块包括:In some embodiments, the display time determination module includes:
第一显示时间确定子模块,被配置为基于所述两个相邻的目标字幕段中,显示时间靠前的目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。The first display time determining submodule is configured to determine the display time of the merged subtitle segment based on the display time corresponding to the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments.
在一些实施方式中,所述显示时间确定模块包括:In some embodiments, the display time determination module includes:
第二显示时间确定子模块,被配置为基于所述两个相邻的目标字幕段中,显示时间靠后的目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。The second display time determining submodule is configured to determine the display time of the merged subtitle segment based on the display time corresponding to the target subtitle segment whose display time is later among the two adjacent target subtitle segments.
在一些实施方式中,所述显示时间确定模块包括:In some embodiments, the display time determination module includes:
第一候选目标字幕段确定子模块,被配置为响应于所述用户对所述两个相邻的目标字幕段中任一目标字幕段的触发指令,确定所述触发指令对应的第一候选目标字幕段;The first candidate target subtitle segment determination submodule is configured to determine the first candidate target corresponding to the trigger instruction in response to the user's trigger instruction for any target subtitle segment in the two adjacent target subtitle segments subtitle segment;
第三显示时间确定子模块,被配置为基于所述第一候选目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。The third display time determining submodule is configured to determine the display time of the merged subtitle segment based on the display time corresponding to the first candidate target subtitle segment.
在一些实施方式中,所述显示位置确定模块包括:In some implementations, the display position determination module includes:
第一显示位置确定子模块,被配置为基于所述两个相邻的目标字幕段中,显示时间靠前的目标字幕段的显示位置,确定所述合并字幕段的显示位置。The first display position determining submodule is configured to determine the display position of the merged subtitle segment based on the display position of the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments.
在一些实施方式中,所述显示位置确定模块包括:In some implementations, the display position determination module includes:
第二显示位置确定子模块,被配置为基于所述两个相邻的目标字幕段中,显示时间靠后的目标字幕段的显示位置,确定所述合并字幕段的显示位置。The second display position determining submodule is configured to determine the display position of the combined subtitle segment based on the display position of the target subtitle segment whose display time is later among the two adjacent target subtitle segments.
在一些实施方式中,所述显示位置确定模块包括:In some implementations, the display position determination module includes:
第二候选目标字幕段确定子模块,被配置为响应于所述用户对所述两个相邻的目标字幕段中任一目标字幕段的触发指令,确定所述触发指令对应的第二候选目标字幕段;The second candidate target subtitle segment determination submodule is configured to determine the second candidate target corresponding to the trigger instruction in response to the user's trigger instruction for any target subtitle segment in the two adjacent target subtitle segments subtitle segment;
第三显示位置确定子模块,被配置为基于所述第二候选目标字幕段对应的显示位置,确定所述合并字幕段的显示位置。The third display position determining submodule is configured to determine the display position of the merged subtitle segment based on the display position corresponding to the second candidate target subtitle segment.
在一些实施方式中,所述目标字幕信息更新模块包括:In some embodiments, the target subtitle information update module includes:
视频预览子模块,被配置为基于调整后的目标编辑字幕轨道,预览播放显示有字幕信息的视频;The video preview sub-module is configured to edit the subtitle track based on the adjusted target, and preview and play the video displaying the subtitle information;
编辑页面显示子模块,被配置为响应于针对所述调整后的目标编辑字幕轨道的编辑指令,显示所述目标字幕段的编辑页面;The edit page display submodule is configured to display the edit page of the target subtitle segment in response to the edit instruction for the adjusted target edit subtitle track;
字幕段修改子模块,被配置为响应于所述用户在所述目标字幕段的编辑页面的编辑操作,对所述目标字幕段进行修改;The subtitle segment modification submodule is configured to modify the target subtitle segment in response to the user's editing operation on the editing page of the target subtitle segment;
信息更新子模块,被配置为基于修改后的目标字幕段,更新所述目标视频帧中展示的目标字幕信息。The information update submodule is configured to update the target subtitle information displayed in the target video frame based on the modified target subtitle segment.
在一些实施方式中,所述字幕信息编辑装置还包括:In some implementation manners, the subtitle information editing device further includes:
字幕信息获取模块,被配置为获取预设视频对应的字幕信息;所述预设视频包括目标视频帧,所述预设视频对应的字幕信息包括至少一个字幕段;A subtitle information acquisition module configured to acquire subtitle information corresponding to a preset video; the preset video includes a target video frame, and the subtitle information corresponding to the preset video includes at least one subtitle segment;
时间信息确定模块,被配置为确定所述预设视频对应的字幕信息在所述预设视频中的时间起点与时间终点;A time information determination module, configured to determine the time start point and time end point of the subtitle information corresponding to the preset video in the preset video;
视频帧确定模块,被配置为基于所述时间起点与所述时间终点,确定起点视频帧与终点视频帧;A video frame determination module configured to determine a start video frame and an end video frame based on the time start point and the time end point;
字幕轨道构建模块,被配置为构建所述起点视频帧与所述终点视频帧之间的字幕轨道;A subtitle track construction module configured to construct a subtitle track between the start video frame and the end video frame;
对应关系构建模块,被配置为根据所述字幕轨道的对应时间与所述预设视频对应的字幕信息的对应时间,构建字幕段与字幕轨道的对应关系;The corresponding relationship building module is configured to construct the corresponding relationship between the subtitle segment and the subtitle track according to the corresponding time of the subtitle track and the corresponding time of the subtitle information corresponding to the preset video;
目标编辑字幕轨道生成模块,被配置为基于所述字幕段与字幕轨道的对应关系,生成所述预设视频对应的目标编辑字幕轨道。The target editing subtitle track generation module is configured to generate the target editing subtitle track corresponding to the preset video based on the correspondence between the subtitle segment and the subtitle track.
在一些实施方式中,所述字幕编辑页面还显示有撤回操作信息,所述字幕信息编辑装置还包括:In some implementation manners, the subtitle editing page also displays withdrawal operation information, and the subtitle information editing device further includes:
撤回操作模块,被配置为响应于所述用户基于所述撤回操作信息触发的撤回操作指令,对所述撤回操作指令对应的更新目标编辑字幕轨道进行撤回更新操作。The undo operation module is configured to, in response to the undo operation instruction triggered by the user based on the undo operation information, perform an undo update operation on the update target edited subtitle track corresponding to the undo operation instruction.
在一些实施方式中,所述字幕编辑页面显示模块包括:In some embodiments, the subtitle editing page display module includes:
视频播放子模块,被配置为响应于针对目标字幕轨道的编辑操作,在所述字幕编辑页面中播放所述视频;The video playing submodule is configured to play the video in the subtitle editing page in response to the editing operation for the target subtitle track;
滚动展示子模块,被配置为在所述视频的播放过程中,滚动展示每个视频帧对应的目标编辑字幕轨道。The scrolling display submodule is configured to scroll and display the target editing subtitle track corresponding to each video frame during the playing process of the video.
在一些实施方式中,所述字幕信息编辑装置还包括:In some implementation manners, the subtitle information editing device further includes:
原始视频播放模块,被配置为在原始页面播放所述视频;所述原始页面显示有字幕修改操作信息;The original video playback module is configured to play the video on the original page; the original page displays subtitle modification operation information;
字幕轨道滚动展示模块,被配置为在所述视频的播放过程中,滚动展示每个视频帧对应的目标编辑字幕轨道;The subtitle track rolling display module is configured to scroll and display the corresponding target editing subtitle track of each video frame during the playback of the video;
所述字幕编辑页面显示模块包括:The subtitle editing page display module includes:
字幕编辑页面显示子模块,被配置为在所述原始页面响应于基于所述字幕修改操作信息触发的字幕修改指令,显示所述字幕编辑页面。The subtitle editing page display submodule is configured to display the subtitle editing page on the original page in response to a subtitle modification instruction triggered based on the subtitle modification operation information.
在一些实施方式中,所述原始页面显示有字幕切换操作信息,所述字幕信息编辑装置还包括:In some embodiments, the original page displays subtitle switching operation information, and the subtitle information editing device further includes:
待切换字幕获取模块,被配置为在所述原始页面响应于基于所述字幕切换操作信息触发的字幕切换指令,获取所述字幕切换指令对应的待切换字幕;The subtitle to be switched acquisition module is configured to respond to the subtitle switching instruction triggered based on the subtitle switching operation information on the original page, and acquire the subtitle to be switched corresponding to the subtitle switching instruction;
待切换字幕的目标编辑字幕轨道获取模块,被配置为获取所述待切换字幕的目标编辑字幕轨道;The target editing subtitle track acquisition module of the subtitle to be switched is configured to acquire the target editing subtitle track of the subtitle to be switched;
待切换字幕的目标编辑字幕轨道显示模块,被配置为在所述原始页面显示所述待切换字幕的目标编辑字幕轨道。The target edited subtitle track display module of the subtitle to be switched is configured to display the target edited subtitle track of the to-be-switched subtitle on the original page.
根据本公开实施例的第三方面,提供一种电子设备,包括:According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
处理器;processor;
用于存储所述处理器可执行指令的存储器;memory for storing said processor-executable instructions;
其中,所述处理器被配置为执行所述指令,以实现如上所述的字幕信息编辑方法。Wherein, the processor is configured to execute the instructions, so as to realize the subtitle information editing method as described above.
根据本公开实施例的第四方面,提供一种计算机可读存储介质,当所述计算机可读存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如上所述的字幕信息编辑方法。According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, when the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device can execute the above subtitle information edit method.
根据本公开实施例的第五方面,提供一种计算机程序产品,包括计算机程序,其中,所述计算机程序被处理器执行时实现如上所述的字幕信息编辑方法。According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product, including a computer program, wherein when the computer program is executed by a processor, the subtitle information editing method as described above is realized.
本公开响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,所述字幕编辑页面包括视频预览区域和字幕编辑区域,所述视频预览区域显示有目标视频帧和与所述目标视频帧的显示时间对应的目标字幕信息;所述字幕编辑区域显示有基于所述目标字幕轨道生成的目标编辑字幕轨道,所述目标编辑字幕轨道包括沿着显示时间轴排列的字幕段;其中每个字幕轨道都对应有字幕,避免出现某些字幕轨道没有对应的字幕的情况;即避免了语速非匀速的情况下,字幕轨道没有相应的声音的情况;本公开响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整;在所述字幕编辑区域显示调整后的目标编辑字幕轨道;基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息;实现了目标编辑字幕轨道中字幕段与字幕轨道的同步分割,避免人工手动增减字幕轨道;并在字幕编辑区域展示调整后的目标编辑字幕轨道,且对视频帧中字幕信息进行同步更新,实现了对视频中字幕进行快速编辑。In response to an editing operation on the target subtitle track, the present disclosure displays a subtitle editing page, the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and a display corresponding to the target video frame Time-corresponding target subtitle information; the subtitle editing area displays a target editing subtitle track based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis; wherein each subtitle track is Corresponding to subtitles, avoiding the situation that some subtitle tracks do not have corresponding subtitles; that is, avoiding the situation where the subtitle track has no corresponding sound when the speech rate is not uniform; the disclosure responds to the user editing the subtitle track based on the target The subtitle adjustment instruction triggered by the target subtitle segment of the subtitle adjustment instruction is adjusted to the target subtitle segment corresponding to the subtitle adjustment instruction; the adjusted target edit subtitle track is displayed in the subtitle editing area; based on the adjusted target edit subtitle track, update all Describe the target subtitle information displayed in the target video frame; realize the synchronous segmentation of the subtitle segment and the subtitle track in the target edited subtitle track, avoid manual increase or decrease of the subtitle track; and display the adjusted target edited subtitle track in the subtitle editing area, and The subtitle information in the video frame is updated synchronously, realizing the rapid editing of subtitles in the video.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The accompanying drawings here are incorporated into the specification and constitute a part of the specification, show embodiments consistent with the disclosure, and are used together with the description to explain the principle of the disclosure, and do not constitute an improper limitation of the disclosure.
图1是根据一示例性实施例示出的一种字幕信息编辑方法的应用环境图。Fig. 1 is an application environment diagram of a method for editing subtitle information according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种字幕信息编辑方法的流程图。Fig. 2 is a flowchart of a method for editing subtitle information according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种生成目标编辑字幕轨道的方法的流程图。Fig. 3 is a flowchart showing a method for generating a target editing subtitle track according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种字幕分割方法的流程图。Fig. 4 is a flowchart of a subtitle segmentation method according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种确定字幕文本信息中的分割位置的方法的流程图。Fig. 5 is a flowchart showing a method for determining segmentation positions in subtitle text information according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种字幕合并方法的流程图。Fig. 6 is a flow chart of a subtitle merging method according to an exemplary embodiment.
图7是根据一示例性实施例示出的将所述字幕合并指令对应的两个相邻的目标字幕段进行合并的方法的流程图。Fig. 7 is a flowchart showing a method for merging two adjacent target subtitle segments corresponding to the subtitle merging instruction according to an exemplary embodiment.
图8是根据一示例性实施例示出的一种基于所述一次合并的目标编辑字幕轨道,确定合并结果的方法的流程图。Fig. 8 is a flowchart showing a method for determining a merging result based on the target edited subtitle track of the first merging according to an exemplary embodiment.
图9a是根据一示例性实施例示出的一种原始页面示意图。Fig. 9a is a schematic diagram of an original page according to an exemplary embodiment.
图9b是根据一示例性实施例示出的一种字幕编辑页面中滚动播放目标编辑字幕轨道示意图。Fig. 9b is a schematic diagram showing a subtitle track edited by scrolling playback targets on a subtitle editing page according to an exemplary embodiment.
图9c是根据一示例性实施例示出的一种字幕编辑页面中暂停滚动播放目标编辑字幕轨道示意图。Fig. 9c is a schematic diagram showing a subtitle track edited by a pausing and scrolling playback target on a subtitle editing page according to an exemplary embodiment.
图10a-b是根据一示例性实施例示出的一种目标编辑字幕轨道合并的示意图。Figures 10a-b are schematic diagrams showing a combination of target edited subtitle tracks according to an exemplary embodiment.
图10c-11a是根据一示例性实施例示出的视频暂停播放过程中,目标编辑字幕轨道分割的示意图。Figs. 10c-11a are schematic diagrams of target edited subtitle track segmentation during video pause playback according to an exemplary embodiment.
图11b-c是根据一示例性实施例示出的一种撤回操作的示意图。Fig. 11b-c are schematic diagrams showing a withdraw operation according to an exemplary embodiment.
图12a-c是根据一示例性实施例示出的视频播放过程中,移动字幕文本信息进行目标编辑字幕轨道分割的示意图。Fig. 12a-c are schematic diagrams of subtitle track segmentation for target editing by moving subtitle text information during video playback according to an exemplary embodiment.
图13a-b是根据一示例性实施例示出的视频播放过程中,目标编辑字幕轨道分割的示意图。Figs. 13a-b are schematic diagrams of target edited subtitle track segmentation during video playback according to an exemplary embodiment.
图14a-d是根据一示例性实施例示出的拖动两个相邻目标编辑字幕轨道进行目标编辑字幕轨道合并的示意图。Figs. 14a-d are schematic diagrams of dragging two adjacent target edited subtitle tracks to merge target edited subtitle tracks according to an exemplary embodiment.
图15a-c是根据一示例性实施例示出的目标编辑字幕轨道切换的示意图。Figs. 15a-c are schematic diagrams showing target editing subtitle track switching according to an exemplary embodiment.
图16a-c是根据一示例性实施例示出的目标编辑字幕轨道中修改字幕信息的示意图。16a-c are schematic diagrams showing modified subtitle information in a target edited subtitle track according to an exemplary embodiment.
图17是根据一示例性实施例示出的一种字幕信息编辑装置的框图。Fig. 17 is a block diagram of an apparatus for editing subtitle information according to an exemplary embodiment.
图18是根据一示例性实施例示出的一种服务器的框图。Fig. 18 is a block diagram of a server according to an exemplary embodiment.
具体实施方式Detailed ways
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。It should be noted that the terms "first" and "second" in the specification and claims of the present disclosure and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
请参阅图1,其所示为根据一示例性实施例示出的一种字幕信息编辑方法的应用环境图,该应用环境可以包括服务器01和客户端02。Please refer to FIG. 1 , which shows an application environment diagram of a subtitle information editing method according to an exemplary embodiment, and the application environment may include a server 01 and a client 02 .
在一些实施例中,本说明书实施例中,所述服务器01可以包括一个独立运行的服务器,或者分布式服务器,或者由多个服务器组成的服务器集群,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)、以及大数据和人工智能平台等基础云计算服务的云服务器。服务器01可以包括有网络通信单元、处理器和存储器等等。在一些实施例中,所述服务器01可以用于存储字幕信息更新后的视频。In some embodiments, in the embodiment of this specification, the server 01 may include an independently running server, or a distributed server, or a server cluster composed of multiple servers, and may also provide cloud services, cloud databases, cloud Computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms . The server 01 may include a network communication unit, a processor, a memory, and so on. In some embodiments, the server 01 may be used to store the updated subtitle information of the video.
在一些实施例中,所述客户端02可以包括智能手机、台式电脑、平板电脑、笔记本电脑、数字助理、智能可穿戴设备、车载终端等类型的实体设备,也可以包括运行于实体设备中的软体,例如一些服务商提供给用户的网页页面,也可以为该些服务商提供给用户的应用。在一些实施例中,所述客户端02可以用于对播放视频中字幕信息进行更新处理,并向服务器01发送字幕信息更新后的视频。In some embodiments, the client 02 may include physical devices such as smart phones, desktop computers, tablet computers, notebook computers, digital assistants, smart wearable devices, and vehicle terminals, and may also include Software, such as web pages provided by some service providers to users, may also be applications provided by these service providers to users. In some embodiments, the client 02 may be configured to update the subtitle information in the playing video, and send the video with updated subtitle information to the server 01 .
图2是根据一示例性实施例示出的一种字幕信息编辑方法的流程图,如图2所示,该方法应 用于图1所示的客户端02中,包括以下步骤:步骤S21,响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,所述字幕编辑页面包括视频预览区域和字幕编辑区域,所述视频预览区域显示有目标视频帧和与所述目标视频帧的显示时间对应的目标字幕信息;所述字幕编辑区域显示有基于所述目标字幕轨道生成的目标编辑字幕轨道,所述目标编辑字幕轨道包括沿着显示时间轴排列的字幕段;步骤S22,响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整;步骤S23,在所述字幕编辑区域显示调整后的目标编辑字幕轨道;步骤S24,基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。Fig. 2 is a flowchart of a method for editing subtitle information according to an exemplary embodiment. As shown in Fig. 2, the method is applied to the client 02 shown in Fig. 1, and includes the following steps: Step S21, in response to For the editing operation of the target subtitle track, a subtitle editing page is displayed, and the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and a target corresponding to the display time of the target video frame Subtitle information; the subtitle editing area displays a target editing subtitle track based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis; step S22, in response to the user based on the target Edit the subtitle adjustment command triggered by the target subtitle segment in the subtitle track to adjust the target subtitle segment corresponding to the subtitle adjustment command; step S23, display the adjusted target edit subtitle track in the subtitle editing area; step S24, based on The adjusted target edits the subtitle track, and updates the target subtitle information displayed in the target video frame.
在步骤S21中,响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,所述字幕编辑页面包括视频预览区域和字幕编辑区域,所述视频预览区域显示有目标视频帧和与所述目标视频帧的显示时间对应的目标字幕信息;所述字幕编辑区域显示有基于所述目标字幕轨道生成的目标编辑字幕轨道,所述目标编辑字幕轨道包括沿着显示时间轴排列的字幕段。In step S21, in response to the editing operation for the target subtitle track, a subtitle editing page is displayed, and the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays the target video frame and the target video frame. The target subtitle information corresponding to the display time of the frame; the subtitle editing area displays a target edited subtitle track generated based on the target subtitle track, and the target edited subtitle track includes subtitle segments arranged along the display time axis.
本公开实施例中,字幕编辑区域用于对目标视频帧中显示的字幕进行编辑;该字幕编辑区域显示有根据目标字幕轨道生成的目标编辑字幕轨道;其中字幕段为字幕文本,字幕段沿显示时间轴排列,显示时间轴与字幕轨道关联,字幕轨道表征字幕在视频中出现的时间点。In the embodiment of the present disclosure, the subtitle editing area is used to edit the subtitles displayed in the target video frame; the subtitle editing area displays the target editing subtitle track generated according to the target subtitle track; wherein the subtitle segment is subtitle text, and the subtitle segment is displayed along the The time axis arrangement shows that the time axis is associated with the subtitle track, and the subtitle track represents the time point when the subtitle appears in the video.
在一些实施方式中,所述响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,包括:In some implementation manners, the displaying the subtitle editing page in response to the editing operation on the target subtitle track includes:
响应于针对目标字幕轨道的编辑操作,在所述字幕编辑页面中播放所述视频;Playing the video on the subtitle editing page in response to an editing operation on the target subtitle track;
在所述视频的播放过程中,滚动展示每个视频帧对应的目标编辑字幕轨道。During the playing process of the video, the target edited subtitle track corresponding to each video frame is scrolled and displayed.
本公开实施例中,可以滚动展示视频帧以及对应的目标编辑字幕轨道,从而一边自动滚动播放视频帧字幕信息,检查画面效果;一边对目标编辑字幕轨道进行编辑。相比于现有技术中用户逐帧点击视频帧进行字幕信息编辑,本公开减少了用户的点击次数,且能够更直观地预览修改结果,更贴合剪辑场景。In the embodiment of the present disclosure, the video frame and the corresponding target edited subtitle track can be scrolled and displayed, so that the video frame subtitle information can be automatically scrolled to check the picture effect, and the target edited subtitle track can be edited at the same time. Compared with the prior art where the user clicks the video frame frame by frame to edit the subtitle information, the disclosure reduces the number of clicks of the user, and can preview the modification result more intuitively, and is more suitable for the editing scene.
在一些实施方式中,上述字幕信息编辑方法还包括:In some implementation manners, the above subtitle information editing method further includes:
响应于基于上述目标编辑字幕轨道触发的播放停止指令,确定上述播放停止指令对应的当前视频帧;In response to the playback stop instruction triggered based on the above-mentioned target editing subtitle track, determine the current video frame corresponding to the above-mentioned playback stop instruction;
显示上述当前视频帧对应的页面。Display the page corresponding to the above current video frame.
本公开实施例中,播放停止指令可以为用户对目标编辑字幕轨道的拖动或滑动操作触发的指令;在一些实施方式中,响应于检测到用户对目标编辑字幕轨道进行左右滑动,即可立即停止播放视频,并显示当前视频帧对应的页面。在另一些实施方式中,如图9b所示,在用户点击页面中播放键04的情况下,停止滚动播放目标编辑字幕轨道,播放键04变成图9c中暂停键07;此时目标页面中展示目标视频帧,用户可以对该视频帧对应的目标编辑字幕轨道进行编辑。In the embodiment of the present disclosure, the playback stop instruction may be an instruction triggered by the user's dragging or sliding operation on the target edited subtitle track; Stop playing the video and display the page corresponding to the current video frame. In some other implementations, as shown in Figure 9b, when the user clicks the play key 04 on the page, the scrolling and playback of the target editing subtitle track is stopped, and the play key 04 becomes the pause key 07 in Figure 9c; The target video frame is displayed, and the user can edit the target editing subtitle track corresponding to the video frame.
在一些实施方式中,如图3所示,所述字幕信息编辑方法还包括:In some implementation manners, as shown in FIG. 3 , the subtitle information editing method further includes:
在步骤S31中,获取预设视频对应的字幕信息;所述预设视频包括目标视频帧,所述预设视频对应的字幕信息包括至少一个字幕段;In step S31, the subtitle information corresponding to the preset video is obtained; the preset video includes a target video frame, and the subtitle information corresponding to the preset video includes at least one subtitle segment;
本公开实施例中,预设视频可以包括多个视频帧,其中一个为目标视频帧;预设视频对应的字幕信息可以通过语音信息得到;在一些实施例中,可以通过语音识别技术对语音信息进行识别得到;根据该字幕信息中文本的断句结果,可以确定该字幕信息中的一个或多个字幕段。In the embodiment of the present disclosure, the preset video may include multiple video frames, one of which is the target video frame; the subtitle information corresponding to the preset video may be obtained through voice information; in some embodiments, the voice information may be analyzed through voice recognition technology It is obtained by identifying; according to the sentence segmentation result of the text in the subtitle information, one or more subtitle segments in the subtitle information can be determined.
在步骤S32中,确定所述预设视频对应的字幕信息在所述预设视频中的时间起点与时间终点;In step S32, determine the time start point and time end point of the subtitle information corresponding to the preset video in the preset video;
本公开实施例中,可以确定字幕信息在预设视频中的时间起点与时间终点,从而进一步确定出起点视频帧与终点视频帧。In the embodiment of the present disclosure, the time start point and time end point of the subtitle information in the preset video can be determined, so as to further determine the start point video frame and the end point video frame.
在步骤S33中,基于所述时间起点与所述时间终点,确定起点视频帧与终点视频帧;In step S33, based on the time start point and the time end point, determine a start point video frame and an end point video frame;
在步骤S34中,构建所述起点视频帧与所述终点视频帧之间的字幕轨道;In step S34, construct the subtitle track between described start video frame and described end video frame;
在步骤S35中,根据所述字幕轨道的对应时间与所述预设视频对应的字幕信息的对应时间,构建字幕段与字幕轨道的对应关系;In step S35, according to the corresponding time of the subtitle track and the corresponding time of the subtitle information corresponding to the preset video, the corresponding relationship between the subtitle segment and the subtitle track is constructed;
本公开实施例中,字幕段与字幕轨道为一一对应的关系,可以根据两者对应的时间,构建两者的对应关系。In the embodiment of the present disclosure, there is a one-to-one correspondence relationship between the subtitle segment and the subtitle track, and the corresponding relationship between the two can be constructed according to the corresponding time between the two.
在步骤S36中,基于所述字幕段与字幕轨道的对应关系,生成所述预设视频对应的目标编辑字幕轨道。In step S36, based on the correspondence between the subtitle segment and the subtitle track, a target edited subtitle track corresponding to the preset video is generated.
现有技术中用户创作视频前会写好完整的字幕文案,在移动端剪辑的情况下,只能每条手动添加+调时间,分行复制粘贴一遍字幕文案,过程很繁琐。本公开实施例中,用户只添加一遍字幕,调整好全文案(字幕信息)的时间起点、终点,快速地分割文案和以及文案出现在画面的时间点。例如:将「文案修改」「时间调整」和各种「添加/删除轨道」的操作高成本重复操作,转化为「找 分割点」的低成本操作。本公开提高了编辑视频中字幕信息的效率,且降低了视频中字幕信息的编辑成本。In the existing technology, users will write a complete subtitle copy before creating a video. In the case of mobile editing, they can only manually add + adjust the time for each item, and copy and paste the subtitle copy one by one. The process is very cumbersome. In the embodiment of the present disclosure, the user only adds subtitles once, adjusts the time start point and end point of the full text (subtitle information), and quickly divides the text and the time point when the text appears on the screen. For example: the high-cost repetitive operations of "copywriting modification", "time adjustment" and various "add/delete tracks" are transformed into low-cost operations of "finding split points". The disclosure improves the efficiency of editing the subtitle information in the video, and reduces the editing cost of the subtitle information in the video.
在一些实施方式中,所述字幕编辑页面还显示有撤回操作信息,所述字幕信息编辑方法还包括:In some implementation manners, the subtitle editing page also displays withdrawal operation information, and the subtitle information editing method further includes:
响应于所述用户基于所述撤回操作信息触发的撤回操作指令,对所述撤回操作指令对应的更新目标编辑字幕轨道进行撤回更新操作。In response to the undo operation instruction triggered by the user based on the undo operation information, the undo update operation is performed on the update target edited subtitle track corresponding to the undo operation instruction.
本公开实施例中,如图11b所示,字幕编辑页面中包括撤回标识,响应于用户点击该标识,即可返回至图11c所示的字幕分割前界面。In the embodiment of the present disclosure, as shown in FIG. 11 b , the subtitle editing page includes a withdrawal sign, and the user can return to the interface before subtitle division as shown in FIG. 11 c in response to clicking the sign.
本公开实施例中,由于断句修改可能包括多次修改,且涉及到精细化修改,可以通过撤回操作信息,撤回当前操作返回到上一步的操作界面,提升了用户操作时的安全感,提高了操作安全性。In the embodiment of the present disclosure, since sentence sentence modification may include multiple modifications and involves refined modification, it is possible to withdraw the current operation and return to the previous operation interface by withdrawing the operation information, which improves the user's sense of security during operation and improves the user experience. Operational security.
在一些实施方式中,所述字幕信息编辑方法还包括:In some implementation manners, the subtitle information editing method further includes:
在原始页面播放所述视频;所述原始页面显示有字幕修改操作信息;Play the video on the original page; the original page displays subtitle modification operation information;
本公开实施例中,原始页面可以为字幕编辑页面之前的页面,其中,字幕修改操作信息可以为文案速改标识信息。In the embodiment of the present disclosure, the original page may be a page before the subtitle editing page, wherein the subtitle modification operation information may be identification information of copywriting quick modification.
在所述视频的播放过程中,滚动展示每个视频帧对应的目标编辑字幕轨道。During the playing process of the video, the target editing subtitle track corresponding to each video frame is scrolled and displayed.
相应的,所述响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,包括:Correspondingly, in response to the editing operation for the target subtitle track, displaying the subtitle editing page includes:
在所述原始页面响应于基于所述字幕修改操作信息触发的字幕修改指令,显示所述字幕编辑页面。The subtitle editing page is displayed on the original page in response to a subtitle modification instruction triggered based on the subtitle modification operation information.
本公开实施例中,用户可以在原始页面点击字幕修改操作信息,实现从原始页面跳转至字幕编辑页面。在一些实施例中,如图9a所示,图9a为原始页面,该页面中包括“文案速改”标识03,即字幕修改操作信息;响应于用户点击该标识03,即可跳转至图9b的字幕编辑页面,其中字幕编辑区域包括字幕合并工具05和字幕分割工具06;用户可以触发字幕合并工具05或字幕分割工具06,对该视频帧对应的目标编辑字幕轨道进行编辑。In the embodiment of the present disclosure, the user can click on the subtitle modification operation information on the original page to jump from the original page to the subtitle editing page. In some embodiments, as shown in Figure 9a, Figure 9a is the original page, which includes the "Quick Copywriting" logo 03, that is, subtitle modification operation information; in response to the user clicking the logo 03, you can jump to the The subtitle editing page of 9b, wherein the subtitle editing area includes a subtitle merging tool 05 and a subtitle splitting tool 06; the user can trigger the subtitle merging tool 05 or the subtitle splitting tool 06 to edit the target editing subtitle track corresponding to the video frame.
本公开实施例中,可以通过在原始页面滚动展示每个视频帧对应的目标编辑字幕轨道,从而便于用户浏览目标编辑字幕轨道后进行选择性编辑;例如用户在浏览过程中发现有问题的字幕,即可触发字幕修改操作信息进行编辑操作;另外,可以通过在原始页面中设置字幕修改操作信息,提高跳转至字幕编辑页面的效率,从而提高字幕信息的更新速率。In the embodiment of the present disclosure, the target editing subtitle track corresponding to each video frame can be displayed by scrolling on the original page, so that it is convenient for the user to selectively edit after browsing the target editing subtitle track; for example, if the user finds a problematic subtitle during browsing, The subtitle modification operation information can be triggered to perform editing operations; in addition, the subtitle modification operation information can be set in the original page to improve the efficiency of jumping to the subtitle editing page, thereby increasing the update rate of the subtitle information.
在一些实施方式中,所述原始页面显示有字幕切换操作信息,所述字幕信息编辑方法还包括:In some embodiments, the original page displays subtitle switching operation information, and the subtitle information editing method further includes:
在所述原始页面响应于基于所述字幕切换操作信息触发的字幕切换指令,获取所述字幕切换指令对应的待切换字幕;Responding to the subtitle switching instruction triggered based on the subtitle switching operation information on the original page, acquiring the subtitle to be switched corresponding to the subtitle switching instruction;
获取所述待切换字幕的目标编辑字幕轨道;Obtain the target editing subtitle track of the subtitle to be switched;
在所述原始页面显示所述待切换字幕的目标编辑字幕轨道。The target editing subtitle track of the subtitle to be switched is displayed on the original page.
本公开实施例中,如图15a所示,在用户点击15a页面的文案速改标识的情况下,在页面中显示了字幕切换操作信息,该信息可以为“上一行”、“下一行”等标识信息,图15b中,用户点击“上一行”;如图15c所示,在字幕编辑页面中显示当前字幕切换操作信息对应的上一行目标编辑字幕轨道。In the embodiment of the present disclosure, as shown in Figure 15a, when the user clicks on the quick copy text change icon on the page 15a, the subtitle switching operation information is displayed on the page, and the information can be "previous line", "next line", etc. As for the identification information, in FIG. 15b, the user clicks “Up Line”; as shown in FIG. 15c, the target editing subtitle track of the previous line corresponding to the current subtitle switching operation information is displayed on the subtitle editing page.
本公开实施例中,可以通过字幕切换操作信息,便于用户检查字幕信息在多个视频帧的画面效果,且便于用户直观快速定位到同画面竖向高度的字幕轨道进行断句调整。In the embodiment of the present disclosure, the subtitle switching operation information can be used to facilitate the user to check the picture effect of the subtitle information in multiple video frames, and it is convenient for the user to intuitively and quickly locate the subtitle track at the same vertical height of the picture for sentence adjustment.
在步骤S22中,响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整。In step S22 , in response to the subtitle adjustment instruction triggered by the user based on the target subtitle segment in the target edited subtitle track, the target subtitle segment corresponding to the subtitle adjustment instruction is adjusted.
本公开实施例中,字幕调整指令可以包括字幕分割指令、字幕合并指令以及字幕修改指令;可以基于不同的指令对目标编辑字幕轨道进行调整;例如可以基于字幕修改指令,对字幕信息中的错别信息进行修改。如图16a所示,可以通过双击操作目标编辑字幕轨道,在图16b中展示字母键盘,从而对双击操作对应的目标编辑字幕轨道中字幕信息进行文字编辑操作;且可以通过触发页面中的√标识12,确定字幕信息修改结果,从而得到图16c的页面中修改后的目标编辑字幕轨道13。In the embodiment of the present disclosure, the subtitle adjustment instruction may include a subtitle segmentation instruction, a subtitle merging instruction, and a subtitle modification instruction; the target editing subtitle track may be adjusted based on different instructions; The information is modified. As shown in Figure 16a, the subtitle track can be edited by double-clicking the target, and the letter keyboard is displayed in Figure 16b, so as to perform text editing operations on the subtitle information in the target editing subtitle track corresponding to the double-click operation; and the √ mark in the trigger page 12. Determine the subtitle information modification result, so as to obtain the modified target edited subtitle track 13 in the page shown in FIG. 16c.
在一些实施方式中,所述字幕编辑区域还显示有与所述目标字幕段对应的字幕文本信息,所述字幕调整指令包括字幕分割指令,如图4所示,所述响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整,包括:步骤S41,响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,确定所述字幕文本信息中的分割位置;步骤S42,基于所述字幕文本信息中的分割位置,对所述 目标字幕段进行分割,形成至少两个沿着显示时间轴排列的字幕段;步骤43:基于分割后的字幕段,更新所述目标编辑字幕轨道。In some embodiments, the subtitle editing area further displays subtitle text information corresponding to the target subtitle segment, and the subtitle adjustment instruction includes a subtitle segmentation instruction, as shown in FIG. 4 , the response to the user based on the The subtitle adjustment instruction triggered by the target subtitle segment in the target editing subtitle track, adjusting the target subtitle segment corresponding to the subtitle adjustment instruction, includes: Step S41, responding to the target subtitle in the target editing subtitle track based on the user The subtitle segmentation instruction triggered by the segment determines the segmentation position in the subtitle text information; step S42, based on the segmentation position in the subtitle text information, segment the target subtitle segment to form at least two segments along the display Subtitle segments arranged on a time axis; Step 43: Based on the divided subtitle segments, update the target edited subtitle track.
在步骤S41中,响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,确定所述字幕文本信息中的分割位置。In step S41, in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edited subtitle track, the segmentation position in the subtitle text information is determined.
在一些实施方式中,所述字幕编辑区域还显示有用于选中所述目标字幕段的光标,所述光标设置于所述字幕文本信息的字符间隙中;所述响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,确定所述字幕文本信息中的分割位置,包括:In some embodiments, the subtitle editing area further displays a cursor for selecting the target subtitle segment, the cursor is set in the character gap of the subtitle text information; the response to the user based on the target Editing the subtitle segmentation instruction triggered by the target subtitle segment in the subtitle track determines the segmentation position in the subtitle text information, including:
响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,基于所述光标在所述字幕文本信息中的位置,确定所述字幕文本信息中的分割位置。In response to the subtitle segmentation instruction triggered by the user based on a target subtitle segment in the target edited subtitle track, based on the position of the cursor in the subtitle text information, a segmentation position in the subtitle text information is determined.
本公开实施例中,光标可以与字幕分割操作信息对应设置,字幕分割操作信息可以为字幕分割工具,如图10c所示,字幕分割工具可以为图10c中06。In the embodiment of the present disclosure, the cursor may be set corresponding to the subtitle segmentation operation information, and the subtitle segmentation operation information may be a subtitle segmentation tool, as shown in FIG. 10c, the subtitle segmentation tool may be 06 in FIG. 10c.
在用户点击字幕分割工具的情况下,即可定位光标的位置。When the user clicks on the subtitle segmentation tool, the position of the cursor can be positioned.
本公开实施例中,字幕分割操作可以在视频滚动播放过程中进行,也可以在视频暂停播放过程中进行;在视频播放过程中,用户通过点击图10c中字幕分割工具06,将该工具06对应的目标编辑字幕轨道进行分割,在一些实施例中,可以分别确定出字符分割位置和对应的轨道分割时间,从而分别对字幕文本信息以及字幕轨道进行分割,得到图11a所示的目标编辑字幕轨道。在视频暂停播放过程中,如图13a所示,用户点击字幕分割工具06,将字幕文本信息从字幕分割工具06对应的光标处分割,同时对字幕轨道进行分割,从而得到图13b所示的目标编辑字幕轨道。In the embodiment of the present disclosure, the subtitle segmentation operation can be performed during the video scrolling playback process, and can also be performed during the video pause playback process; during the video playback process, the user clicks the subtitle segmentation tool 06 in FIG. In some embodiments, the character segmentation position and the corresponding track segmentation time can be determined respectively, so as to segment the subtitle text information and the subtitle track respectively, and obtain the target editing subtitle track shown in FIG. 11a . During the playback pause of the video, as shown in Figure 13a, the user clicks the subtitle segmentation tool 06 to segment the subtitle text information from the cursor corresponding to the subtitle segmentation tool 06, and at the same time segment the subtitle track, so as to obtain the target shown in Figure 13b Edit subtitle track.
在一些实施方式中,如图12a-c所示,在视频滚动播放过程中,用户可以移动字幕文本信息或字幕轨道,来更改光标的位置,从而更改字符分割位置以及轨道分割时间。In some implementations, as shown in Figures 12a-c, during video scrolling, the user can move the subtitle text information or subtitle track to change the position of the cursor, thereby changing the character division position and track division time.
本公开实施例中,可以通过光标快速定位出字符分割位置和轨道分割时间,提高了分割操作的精确度和效率。In the embodiment of the present disclosure, the character segmentation position and track segmentation time can be quickly located through the cursor, which improves the accuracy and efficiency of the segmentation operation.
在一些实施方式中,如图5所示,所述响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,基于所述光标在所述字幕文本信息中的位置,确定所述字幕文本信息中的分割位置,包括:In some implementations, as shown in FIG. 5 , in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edit subtitle track, based on the cursor being in the subtitle text information position, determine the segmentation position in the subtitle text information, including:
在步骤S51中,响应于所述用户拖动所述字幕文本信息的操作,确定拖动后的所述光标的位置;In step S51, in response to the user's operation of dragging the subtitle text information, determine the position of the dragged cursor;
在步骤S52中,基于所述拖动后的所述光标的位置,确定所述字幕文本信息中的分割位置。In step S52, based on the position of the dragged cursor, the division position in the subtitle text information is determined.
本公开实施例中,可以拖动字幕文本信息来改变光标的位置,从而实现快速修改分割位置,更好的满足用户的需求。In the embodiment of the present disclosure, the position of the cursor can be changed by dragging the text information of the subtitle, so as to realize rapid modification of the segmentation position and better meet the needs of the user.
在一些实施方式中,所述字幕调整指令包括字幕合并指令,所述目标编辑字幕轨道为至少两个,如图6所示,所述响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整,包括:步骤S61,响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果;步骤S62,根据所述合并结果,更新所述字幕合并指令对应的目标编辑字幕轨道。In some implementations, the subtitle adjustment instruction includes a subtitle merging instruction, and there are at least two target editing subtitle tracks, as shown in FIG. The triggered subtitle adjustment instruction adjusts the target subtitle segment corresponding to the subtitle adjustment instruction, including: Step S61, responding to the subtitle merge triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks Instructing to merge two adjacent target subtitle segments corresponding to the subtitle merging instruction to obtain a merging result; Step S62 , updating the target edited subtitle track corresponding to the subtitle merging instruction according to the merging result.
在步骤S61中,响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果。In step S61, in response to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target edited subtitle tracks, the two adjacent target subtitle segments corresponding to the subtitle merging instruction are merged, Get the combined result.
本公开实施例中,可以根据用户触发的字幕合并指令,对相邻的目标字幕段进行快速合并操作,并根据目标字幕段对应的时间轴,可以确定合并的字幕轨道;实现了字幕轨道以及字幕段的快速合并。In the embodiment of the present disclosure, according to the subtitle merging command triggered by the user, the adjacent target subtitle segment can be quickly merged, and the merged subtitle track can be determined according to the time axis corresponding to the target subtitle segment; the subtitle track and subtitle Fast merging of segments.
在一些实施方式中,所述字幕编辑区域还显示有至少一个字幕合并操作信息,所述字幕合并操作信息与所述任意两个相邻的目标编辑字幕轨道相对应,所述字幕合并操作信息用于合并对应的两个相邻目标编辑字幕轨道中沿着显示时间轴排列的字幕段;所述响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果,包括:In some embodiments, the subtitle editing area further displays at least one subtitle merging operation information, the subtitle merging operation information corresponds to any two adjacent target edited subtitle tracks, and the subtitle merging operation information uses Combining the subtitle segments arranged along the display time axis in corresponding two adjacent target editing subtitle tracks; the subtitle merging triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks Instructions, merging two adjacent target subtitle segments corresponding to the subtitle merging instruction to obtain a merging result, including:
响应于所述用户基于目标字幕合并操作信息,对所述任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果。In response to the subtitle merging instruction triggered by the user on the target subtitle segment in the edited subtitle track of any two adjacent targets based on the target subtitle merging operation information, the two adjacent targets corresponding to the subtitle merging instruction The subtitle segments are merged to obtain the merged result.
在一些实施方式中,如图10a所示,其中字幕合并操作信息可以为字幕合并操作工具05,该工具05可以设置于两个相邻目标编辑字幕轨道之间;响应于用户点击该字幕合并操作工具05, 即可对该工具05对应的两个相邻目标编辑字幕轨道进行合并,得到图10b所示的合并结果。In some implementations, as shown in Figure 10a, wherein the subtitle merging operation information can be a subtitle merging operation tool 05, and the tool 05 can be set between two adjacent target editing subtitle tracks; in response to the user clicking the subtitle merging operation The tool 05 can merge two adjacent target edited subtitle tracks corresponding to the tool 05, and obtain the merged result shown in FIG. 10b.
本公开实施例中,通过在显示页面中设置字幕合并操作信息,便于用户基于该操作信息实现目标编辑字幕轨道的快速合并操作,提高了目标编辑字幕轨道的合并效率。In the embodiment of the present disclosure, by setting the subtitle merging operation information on the display page, it is convenient for the user to realize the fast merging operation of the target editing subtitle track based on the operation information, and the merging efficiency of the target editing subtitle track is improved.
在一些实施方式中,如图7所示,所述响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果,包括:In some implementations, as shown in FIG. 7 , in response to the subtitle merging instruction triggered by the user based on the target subtitle segments in any two adjacent target edited subtitle tracks, the two subtitle merging instructions corresponding to the The adjacent target subtitle segments are merged to obtain the merged result, including:
在步骤S71中,响应于所述用户基于任意两个相邻的目标编辑字幕轨道触发的位置移动操作指令,得到所述任意两个相邻的目标编辑字幕轨道的位置移动结果;In step S71, in response to the position movement operation instruction triggered by the user based on any two adjacent target edited subtitle tracks, the result of position movement of any two adjacent target edited subtitle tracks is obtained;
在步骤S72中,根据所述任意两个相邻的目标编辑字幕轨道的位置移动结果,将所述位置移动操作指令对应的两个相邻的目标字幕段合并,得到合并结果。In step S72, according to the position movement results of any two adjacent target edited subtitle tracks, the two adjacent target subtitle segments corresponding to the position movement operation instruction are combined to obtain a combination result.
本公开实施例中,在目标编辑字幕轨道合并过程中,可以不设置字幕合并操作信息,仅仅通过用户的手势操作,即可实现字幕信息以及字幕轨道的合并操作,提高了用户合并目标编辑字幕轨道的灵活性。In the embodiment of the present disclosure, in the process of merging target edited subtitle tracks, subtitle merging operation information may not be set, and the merging operation of subtitle information and subtitle tracks can be realized only through the user's gesture operation, which improves the user's ability to merge target edited subtitle tracks. flexibility.
在一些实施方式中,所述根据所述任意两个相邻的目标编辑字幕轨道的位置移动结果,将所述位置移动操作指令对应的两个相邻的目标字幕段合并,得到合并结果,包括:In some embodiments, according to the position movement results of any two adjacent target edited subtitle tracks, the two adjacent target subtitle segments corresponding to the position movement operation instruction are merged to obtain a merge result, including :
根据所述任意两个相邻的目标编辑字幕轨道的位置移动结果,将所述位置移动操作指令对应的两个相邻的目标字幕段沿着显示时间轴进行一次合并,得到一次合并的目标编辑字幕轨道;所述一次合并的目标编辑字幕轨道中显示时间靠前的目标字幕段的时间终点与显示时间靠后的目标字幕段的时间起点重合;According to the position movement results of any two adjacent target editing subtitle tracks, merge the two adjacent target subtitle segments corresponding to the position movement operation instruction along the display time axis to obtain a merged target editing Subtitle track; the time end point of the target subtitle segment whose display time is earlier in the target edited subtitle track of the first merge coincides with the time start point of the target subtitle segment whose display time is later;
基于所述一次合并的目标编辑字幕轨道,确定合并结果。Based on the target edited subtitle track of the first merging, a merging result is determined.
在一些实施方式中,如图8所示,所述基于所述一次合并的目标编辑字幕轨道,确定合并结果,包括:In some implementation manners, as shown in FIG. 8 , the editing subtitle track based on the merged target to determine the merged result includes:
在步骤S81中,响应于所述用户基于所述一次合并后所述两个相邻的目标字幕段触发的位置移动指令,对一次合并的两个相邻的目标字幕段沿着显示时间轴进行二次合并,得到所述两个相邻的目标字幕段对应的目标字幕轨道之间的重叠信息;In step S81, in response to the position movement instruction triggered by the user based on the two adjacent target subtitle segments after the first combination, the two adjacent target subtitle segments combined once are displayed along the display time axis Secondary merging to obtain overlapping information between target subtitle tracks corresponding to the two adjacent target subtitle segments;
在步骤S82中,基于一次合并结果以及所述两个相邻的目标字幕段对应的目标字幕轨道之间的重叠信息,确定所述任意两个相邻的目标编辑字幕轨道中合并字幕段对应的目标时长;In step S82, based on the result of one merge and the overlap information between the target subtitle tracks corresponding to the two adjacent target subtitle segments, it is determined whether the subtitle segment corresponding to the merged subtitle segment in any two adjacent target edited subtitle tracks target duration;
在步骤S83中,基于所述目标时长,将所述任意两个相邻的目标编辑字幕轨道中目标字幕段进行合并。In step S83, based on the target duration, the target subtitle segments in any two adjacent target edited subtitle tracks are merged.
在一些实施方式中,如图14a所示,用户可以同时点击两个相邻目标编辑字幕轨道;如图14b所示,然后将两者向相互靠近的方向拖动;拖动过程中,如图14c所示,两个相邻目标编辑字幕轨道出现重叠,从而得到图14d所示的合并结果。In some implementations, as shown in Figure 14a, the user can simultaneously click on two adjacent targets to edit subtitle tracks; as shown in Figure 14b, and then drag the two towards each other; As shown in Fig. 14c, two adjacent target edited subtitle tracks overlap, so that the merged result shown in Fig. 14d is obtained.
本公开实施例中,在用户拖动两个相邻目标编辑字幕轨道不断靠近的情况下,可以通过两个相邻目标编辑字幕轨道对应文本框的重叠长度,确定合并后的字幕轨道,即用户通过两指之间捏合的距离调整合并后目标编辑字幕轨道对应的整体时长,调整时会有“预合并轨道”的反馈提示,告知用户释放后的轨道时长调整效果;便于用户提前预览当前手势操作对应的字幕轨道合并结果,从而能够实现对字幕轨道的精确调整。In the embodiment of the present disclosure, when the user drags two adjacent target editing subtitle tracks closer together, the merged subtitle track can be determined by the overlapping length of the text boxes corresponding to the two adjacent target editing subtitle tracks, that is, the user Adjust the overall duration corresponding to the merged target editing subtitle track by pinching the distance between the two fingers. When adjusting, there will be a "pre-merged track" feedback prompt to inform the user of the track duration adjustment effect after release; it is convenient for the user to preview the current gesture operation in advance The result of merging the corresponding subtitle tracks can realize the precise adjustment of subtitle tracks.
在一些实施方式中,所述响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果,包括:In some implementations, in response to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks, the two adjacent target subtitles corresponding to the subtitle merging instruction Segments are merged to obtain the merged results, including:
响应于所述用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,确定合并字幕段;In response to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target edited subtitle tracks, determine to merge the subtitle segment;
确定所述合并字幕段的显示时间;determining the display time of the merged subtitle segment;
确定所述合并字幕段的显示位置;根据所述合并字幕段的显示时间以及显示位置,确定所述合并字幕段的显示结果。Determine the display position of the combined subtitle segment; determine the display result of the combined subtitle segment according to the display time and display position of the combined subtitle segment.
在一些实施方式中,所述确定所述合并字幕段的显示时间,包括:In some implementation manners, the determining the display time of the merged subtitle segment includes:
基于所述两个相邻的目标字幕段中,显示时间靠前的目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。Based on the display time corresponding to the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments, the display time of the merged subtitle segment is determined.
本公开实施例中,可以将显示时间靠前的目标字幕段对应的显示时间起点,确定为所述合并字幕段的显示时间起点,实现合并字幕段的显示时间起点的灵活设置。In the embodiment of the present disclosure, the start point of display time corresponding to the target subtitle segment whose display time is earlier may be determined as the start point of display time of the merged subtitle segment, so as to realize flexible setting of the start point of display time of the merged subtitle segment.
在一些实施方式中,所述确定所述合并字幕段的显示时间,包括:In some implementation manners, the determining the display time of the merged subtitle segment includes:
基于所述两个相邻的目标字幕段中,显示时间靠后的目标字幕段对应的显示时间,确定所述 合并字幕段的显示时间。Based on the display time corresponding to the target subtitle segment whose display time is later among the two adjacent target subtitle segments, determine the display time of the merged subtitle segment.
本公开实施例中,可以将显示时间靠后的目标字幕段对应的显示时间终点,确定为所述合并字幕段的显示时间终点,实现合并字幕段的显示时间起点的灵活设置。In the embodiment of the present disclosure, the end point of the display time corresponding to the target subtitle segment whose display time is later may be determined as the end point of the display time of the merged subtitle segment, so as to realize the flexible setting of the start point of the display time of the merged subtitle segment.
在一些实施方式中,所述确定所述合并字幕段的显示时间,包括:In some implementation manners, the determining the display time of the merged subtitle segment includes:
响应于所述用户对所述两个相邻的目标字幕段中任一目标字幕段的触发指令,确定所述触发指令对应的第一候选目标字幕段;Responding to the user's trigger instruction for any target subtitle segment in the two adjacent target subtitle segments, determine the first candidate target subtitle segment corresponding to the trigger instruction;
基于所述第一候选目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。Based on the display time corresponding to the first candidate target subtitle segment, the display time of the merged subtitle segment is determined.
本公开实施例中,可以根据用户的选择来确定合并字幕段的显示时间,提高了设置合并字幕段的显示时间的灵活性。In the embodiment of the present disclosure, the display time of the combined subtitle segment can be determined according to the user's selection, which improves the flexibility of setting the display time of the combined subtitle segment.
在一些实施方式中,所述确定所述合并字幕段的显示位置,包括:In some implementation manners, the determining the display position of the merged subtitle segment includes:
基于所述两个相邻的目标字幕段中,显示时间靠前的目标字幕段的显示位置,确定所述合并字幕段的显示位置。Based on the display position of the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments, the display position of the merged subtitle segment is determined.
本公开实施例中,将显示时间靠前的目标字幕段对应的显示位置起点起点,确定为所述合并字幕段的显示位置起点,实现合并字幕段的显示位置起点的灵活设置。In the embodiment of the present disclosure, the starting point of the display position corresponding to the target subtitle segment whose display time is earlier is determined as the starting point of the display position of the combined subtitle segment, so as to realize the flexible setting of the starting point of the display position of the combined subtitle segment.
在一些实施方式中,所述确定所述合并字幕段的显示位置,包括:In some implementation manners, the determining the display position of the merged subtitle segment includes:
基于所述两个相邻的目标字幕段中,显示时间靠后的目标字幕段的显示位置,确定所述合并字幕段的显示位置。Based on the display position of the target subtitle segment whose display time is later among the two adjacent target subtitle segments, the display position of the merged subtitle segment is determined.
本公开实施例中,将显示时间靠后的目标字幕段对应的显示位置终点,确定为所述合并字幕段的显示位置终点,实现合并字幕段的显示位置终点的灵活设置。In the embodiment of the present disclosure, the end point of the display position corresponding to the target subtitle segment whose display time is later is determined as the end point of the display position of the combined subtitle segment, so as to realize the flexible setting of the end point of the display position of the combined subtitle segment.
在一些实施方式中,所述确定所述合并字幕段的显示位置,包括:In some implementation manners, the determining the display position of the merged subtitle segment includes:
响应于所述用户对所述两个相邻的目标字幕段中任一目标字幕段的触发指令,确定所述触发指令对应的第二候选目标字幕段;Responding to a trigger instruction from the user for any target subtitle segment in the two adjacent target subtitle segments, determining a second candidate target subtitle segment corresponding to the trigger instruction;
基于所述第二候选目标字幕段对应的显示位置,确定所述合并字幕段的显示位置。Based on the display position corresponding to the second candidate target subtitle segment, the display position of the merged subtitle segment is determined.
本公开实施例中,可以根据用户的选择,确定合并字幕段的显示位置,提高了设置合并字幕段的显示位置的灵活性。In the embodiment of the present disclosure, the display position of the merged subtitle segment can be determined according to the user's selection, which improves the flexibility of setting the display position of the merged subtitle segment.
本公开实施例中,可以根据合并字幕段的显示时间以及显示位置,确定合并字幕段的显示结果,实现了对合并字幕段的显示时间和显示位置的精确定位。In the embodiment of the present disclosure, the display result of the merged subtitle segment can be determined according to the display time and display position of the merged subtitle segment, thereby realizing precise positioning of the display time and display position of the merged subtitle segment.
在步骤S62中,根据所述合并结果,更新所述字幕合并指令对应的目标编辑字幕轨道。In step S62, according to the merging result, the target edited subtitle track corresponding to the subtitle merging instruction is updated.
在步骤S42中,基于所述字幕文本信息中的分割位置,对所述目标字幕段进行分割,形成至少两个沿着显示时间轴排列的字幕段。In step S42, based on the segmentation position in the subtitle text information, the target subtitle segment is divided to form at least two subtitle segments arranged along the display time axis.
本公开实施例中,可以通过光标对目标编辑字幕轨道中目标字幕段进行快速分割,在一些实施例中,通过一次点击,即可对字幕文本信息进行分割,确定目标编辑字幕轨道中的字幕段,同时根据字幕段对应的时间轴中显示时间对字幕轨道进行分割,一次点击实现了两部分信息的分割操作,减少了用户的操作步骤,提高了分割操作效率。In the embodiments of the present disclosure, the cursor can be used to quickly segment the target subtitle segment in the target edited subtitle track. In some embodiments, the subtitle text information can be segmented with one click, and the subtitle segment in the target edited subtitle track can be determined. At the same time, the subtitle track is divided according to the time displayed in the time axis corresponding to the subtitle segment. One click realizes the division operation of two parts of information, which reduces the user's operation steps and improves the efficiency of the division operation.
在步骤S43中,基于分割后的字幕段,更新所述目标编辑字幕轨道。In step S43, the target edited subtitle track is updated based on the divided subtitle segments.
在步骤S23中,在所述字幕编辑区域显示调整后的目标编辑字幕轨道。In step S23, the adjusted target editing subtitle track is displayed in the subtitle editing area.
在步骤S24中,基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。In step S24, update the target subtitle information shown in the target video frame based on the adjusted target edited subtitle track.
在一些实施方式中,所述基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息,包括:In some implementation manners, the updating of the target subtitle information displayed in the target video frame based on the adjusted target edited subtitle track includes:
基于分割更新后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。Based on the segmented and updated target edited subtitle track, the target subtitle information displayed in the target video frame is updated.
在一些实施方式中,所述基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息,包括:In some implementation manners, the updating of the target subtitle information displayed in the target video frame based on the adjusted target edited subtitle track includes:
基于合并更新后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。Based on the merged and updated target edited subtitle track, the target subtitle information displayed in the target video frame is updated.
在一些实施方式中,所述基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息,包括:In some implementation manners, the updating of the target subtitle information displayed in the target video frame based on the adjusted target edited subtitle track includes:
基于调整后的目标编辑字幕轨道,预览播放显示有字幕信息的视频;Edit the subtitle track based on the adjusted target, preview and play the video with subtitle information displayed;
响应于针对所述调整后的目标编辑字幕轨道的编辑指令,显示所述目标字幕段的编辑页面;In response to an editing instruction for the adjusted target editing subtitle track, display an editing page of the target subtitle segment;
响应于所述用户在所述目标字幕段的编辑页面的编辑操作,对所述目标字幕段进行修改;Modifying the target subtitle segment in response to the user's editing operation on the editing page of the target subtitle segment;
基于修改后的目标字幕段,更新所述目标视频帧中展示的目标字幕信息。Based on the modified target subtitle segment, update the target subtitle information displayed in the target video frame.
本公开实施例中,目标字幕段的编辑页面可以包括字符键盘;用于对目标编辑字幕轨道中的字幕信息进行编辑。In the embodiment of the present disclosure, the edit page of the target subtitle segment may include a character keyboard for editing the subtitle information in the target edit subtitle track.
本公开实施例中,如图16a所示,在用户双击“么没戳到啊”对应的目标编辑字幕轨道的情况下,在图16b中显示字符键盘,用于对该条字幕信息进行编辑,例如可以更改为“么没戳到”,修改完成后,点击确认标识“√”,即可在16c中显示修改的目标编辑字幕轨道。In the embodiment of the present disclosure, as shown in FIG. 16a , when the user double-clicks the target edit subtitle track corresponding to "I didn't poke it", a character keyboard is displayed in FIG. 16b for editing the subtitle information. For example, it can be changed to "I didn't poke it". After the modification is completed, click the confirmation mark "√" to display the modified target edited subtitle track in 16c.
本公开实施例中,用户在对目标编辑字幕轨道进行分割或合并操作等调整之后,可以预览调整结果,并可以进一步对目标编辑字幕轨道中字幕进行修改,提高了对视频中字幕的编辑灵活性。In the embodiment of the present disclosure, after the user performs adjustments such as splitting or merging operations on the target edited subtitle track, he can preview the adjustment result, and can further modify the subtitles in the target edited subtitle track, which improves the editing flexibility of the subtitles in the video .
本公开响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,所述字幕编辑页面包括视频预览区域和字幕编辑区域,所述视频预览区域显示有目标视频帧和与所述目标视频帧的显示时间对应的目标字幕信息;所述字幕编辑区域显示有基于所述目标字幕轨道生成的目标编辑字幕轨道,所述目标编辑字幕轨道包括沿着显示时间轴排列的字幕段;其中每个字幕轨道都对应有字幕,避免出现某些字幕轨道没有对应的字幕的情况;即避免了在语速非匀速的情况下,字幕轨道没有相应的声音的情况;本公开响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整;在所述字幕编辑区域显示调整后的目标编辑字幕轨道;基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息;实现了目标编辑字幕轨道中字幕段与字幕轨道的同步分割,避免人工手动增减字幕轨道;并在字幕编辑区域展示调整后的目标编辑字幕轨道,且对视频帧中字幕信息进行同步更新,实现了对视频中字幕进行快速编辑。In response to an editing operation on the target subtitle track, the present disclosure displays a subtitle editing page, the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and a display corresponding to the target video frame Time-corresponding target subtitle information; the subtitle editing area displays a target editing subtitle track based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis; wherein each subtitle track is Corresponding to subtitles, avoiding the situation that some subtitle tracks do not have corresponding subtitles; that is, avoiding the situation where the subtitle track has no corresponding sound when the speech rate is not uniform; the disclosure responds to the user editing the subtitle track based on the target The subtitle adjustment instruction triggered by the target subtitle segment in the subtitle adjustment instruction is adjusted to the target subtitle segment corresponding to the subtitle adjustment instruction; the adjusted target edit subtitle track is displayed in the subtitle editing area; based on the adjusted target edit subtitle track, update The target subtitle information shown in the target video frame; the synchronous segmentation of the subtitle segment and the subtitle track in the target editing subtitle track is realized, avoiding manual increase and decrease of the subtitle track; and the adjusted target editing subtitle track is displayed in the subtitle editing area, In addition, the subtitle information in the video frame is updated synchronously, realizing fast editing of the subtitle in the video.
图17是根据一示例性实施例示出的一种字幕信息编辑装置框图。参照图17,该装置1700包括:Fig. 17 is a block diagram of an apparatus for editing subtitle information according to an exemplary embodiment. Referring to Figure 17, the device 1700 includes:
字幕编辑页面显示模块1710,被配置为响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,所述字幕编辑页面包括视频预览区域和字幕编辑区域,所述视频预览区域显示有目标视频帧和与所述目标视频帧的显示时间对应的目标字幕信息;所述字幕编辑区域显示有基于所述目标字幕轨道生成的目标编辑字幕轨道,所述目标编辑字幕轨道包括沿着显示时间轴排列的字幕段;The subtitle editing page display module 1710 is configured to display a subtitle editing page in response to an editing operation for the target subtitle track, the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and Target subtitle information corresponding to the display time of the target video frame; the subtitle editing area displays a target editing subtitle track based on the target subtitle track, and the target editing subtitle track includes subtitles arranged along the display time axis part;
字幕段调整模块1720,被配置为响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整;The subtitle segment adjustment module 1720 is configured to adjust the target subtitle segment corresponding to the subtitle adjustment instruction in response to the subtitle adjustment instruction triggered by the user based on the target subtitle segment in the target edited subtitle track;
目标编辑字幕轨道显示模块1730,被配置为在所述字幕编辑区域显示调整后的目标编辑字幕轨道;The target editing subtitle track display module 1730 is configured to display the adjusted target editing subtitle track in the subtitle editing area;
目标字幕信息更新模块1740,被配置为基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。The target subtitle information updating module 1740 is configured to update the target subtitle information displayed in the target video frame based on the adjusted target edited subtitle track.
在一些实施方式中,所述字幕编辑区域还显示有与所述目标字幕段对应的字幕文本信息,所述字幕调整指令包括字幕分割指令,所述字幕段调整模块包括:In some embodiments, the subtitle editing area is also displayed with subtitle text information corresponding to the target subtitle segment, the subtitle adjustment instruction includes a subtitle segmentation instruction, and the subtitle segment adjustment module includes:
分割位置确定子模块,被配置为响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,确定所述字幕文本信息中的分割位置;The segmentation position determination submodule is configured to determine the segmentation position in the subtitle text information in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edited subtitle track;
字幕段分割子模块,被配置为基于所述字幕文本信息中的分割位置,对所述目标字幕段进行分割,形成至少两个沿着显示时间轴排列的字幕段;The subtitle segment segmentation submodule is configured to segment the target subtitle segment based on the segmentation position in the subtitle text information to form at least two subtitle segments arranged along the display time axis;
目标编辑字幕轨道更新子模块,被配置为基于分割后的字幕段,更新所述目标编辑字幕轨道;The target editing subtitle track update submodule is configured to update the target editing subtitle track based on the divided subtitle segments;
相应的,所述目标字幕信息更新模块包括:Correspondingly, the target subtitle information update module includes:
第一更新子模块,被配置为基于分割更新后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。The first update submodule is configured to update the target subtitle information displayed in the target video frame based on the segmented and updated target edited subtitle track.
在一些实施方式中,所述字幕编辑区域还显示有用于选中所述目标字幕段的光标,所述光标设置于所述字幕文本信息的字符间隙中;所述分割位置确定子模块包括:In some implementations, the subtitle editing area also displays a cursor for selecting the target subtitle segment, the cursor is set in the character gap of the subtitle text information; the sub-module for determining the segmentation position includes:
分割位置确定单元,被配置为响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,基于所述光标在所述字幕文本信息中的位置,确定所述字幕文本信息中的分割位置。The segmentation position determination unit is configured to determine the subtitle segmentation instruction based on the position of the cursor in the subtitle text information in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edited subtitle track. The split position in the subtitle text information.
在一些实施方式中,所述分割位置确定单元包括:In some implementations, the segmentation location determination unit includes:
光标位置确定子单元,被配置为响应于所述用户拖动所述字幕文本信息的操作,确定拖动后的所述光标的位置;The cursor position determination subunit is configured to determine the position of the dragged cursor in response to the user's operation of dragging the subtitle text information;
分割位置确定子单元,被配置为基于所述拖动后的所述光标的位置,确定所述字幕文本信息 中的分割位置。The division position determining subunit is configured to determine the division position in the subtitle text information based on the position of the dragged cursor.
在一些实施方式中,所述字幕调整指令包括字幕合并指令,所述目标编辑字幕轨道为至少两个,所述字幕段调整模块包括:In some implementation manners, the subtitle adjustment instruction includes a subtitle merging instruction, the target editing subtitle track is at least two, and the subtitle segment adjustment module includes:
合并结果确定子模块,被配置为响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果;The merging result determination submodule is configured to respond to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks, and combine the two adjacent targets corresponding to the subtitle merging instruction The subtitle segment is merged to obtain the merged result;
字幕轨道更新子模块,被配置为根据所述合并结果,更新所述字幕合并指令对应的目标编辑字幕轨道;The subtitle track updating submodule is configured to update the target editing subtitle track corresponding to the subtitle merging instruction according to the merging result;
相应的,所述目标字幕信息更新模块包括:Correspondingly, the target subtitle information update module includes:
第二更新子模块,被配置为基于合并更新后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。The second update submodule is configured to update the target subtitle information displayed in the target video frame based on the merged and updated target edited subtitle track.
在一些实施方式中,所述字幕编辑区域还显示有至少一个字幕合并操作信息,所述字幕合并操作信息与所述任意两个相邻的目标编辑字幕轨道相对应,所述字幕合并操作信息用于合并对应的两个相邻目标编辑字幕轨道中沿着显示时间轴排列的字幕段;所述合并结果确定子模块包括:In some embodiments, the subtitle editing area further displays at least one subtitle merging operation information, the subtitle merging operation information corresponds to any two adjacent target edited subtitle tracks, and the subtitle merging operation information uses In merging the subtitle segments arranged along the display time axis in two corresponding adjacent target editing subtitle tracks; the submodule for determining the merging result includes:
第一合并结果确定单元,被配置为响应于所述用户基于目标字幕合并操作信息,对所述任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果。The first merging result determination unit is configured to respond to the subtitle merging instruction triggered by the user for the target subtitle segment in any two adjacent target edited subtitle tracks based on the target subtitle merging operation information, and combine the subtitle The two adjacent target subtitle segments corresponding to the merging instruction are merged to obtain a merging result.
在一些实施方式中,所述合并结果确定子模块包括:In some embodiments, the submodule for determining the combination result includes:
位置移动结果确定单元,被配置为响应于所述用户基于任意两个相邻的目标编辑字幕轨道触发的位置移动操作指令,得到所述任意两个相邻的目标编辑字幕轨道的位置移动结果;The position movement result determining unit is configured to obtain the position movement results of any two adjacent target edited subtitle tracks in response to the position movement operation instruction triggered by the user based on any two adjacent target edited subtitle tracks;
第二合并结果确定单元,被配置为根据所述任意两个相邻的目标编辑字幕轨道的位置移动结果,将所述位置移动操作指令对应的两个相邻的目标字幕段合并,得到合并结果。The second merge result determining unit is configured to merge two adjacent target subtitle segments corresponding to the position shift operation instruction according to the position shift results of any two adjacent target edited subtitle tracks to obtain a merge result .
在一些实施方式中,所述第二合并结果确定单元包括:In some embodiments, the second combination result determination unit includes:
一次合并子单元,被配置为根据所述任意两个相邻的目标编辑字幕轨道的位置移动结果,将所述位置移动操作指令对应的两个相邻的目标字幕段沿着显示时间轴进行一次合并,得到一次合并的目标编辑字幕轨道;所述一次合并的目标编辑字幕轨道中显示时间靠前的目标字幕段的时间终点与显示时间靠后的目标字幕段的时间起点重合;The one-time merging subunit is configured to, according to the position movement results of the any two adjacent target edited subtitle tracks, carry out the two adjacent target subtitle segments corresponding to the position movement operation instruction along the display time axis once Merge to obtain a merged target edited subtitle track; the time end point of the target subtitle segment that shows the time ahead in the target edited subtitle track of the merged one time coincides with the time start point of the target subtitle segment that is displayed behind the time;
合并结果确定子单元,被配置为基于所述一次合并的目标编辑字幕轨道,确定合并结果。The merging result determining subunit is configured to determine a merging result based on the target edited subtitle track of the first merging.
在一些实施方式中,所述合并结果确定子单元包括:In some embodiments, the subunit for determining the combination result includes:
重叠信息确定子单元,被配置为响应于所述用户基于所述一次合并后所述两个相邻的目标字幕段触发的位置移动指令,对一次合并的两个相邻的目标字幕段沿着显示时间轴进行二次合并,得到所述两个相邻的目标字幕段对应的目标字幕轨道之间的重叠信息;The overlapping information determination subunit is configured to respond to the position movement instruction triggered by the user based on the two adjacent target subtitle segments after the first combination, and to combine the two adjacent target subtitle segments along the Displaying the time axis for secondary merging to obtain overlapping information between target subtitle tracks corresponding to the two adjacent target subtitle segments;
目标时长确定子单元,被配置为基于一次合并结果以及所述两个相邻的目标字幕段对应的目标字幕轨道之间的重叠信息,确定所述任意两个相邻的目标编辑字幕轨道中合并字幕段对应的目标时长;The target duration determination subunit is configured to, based on a merge result and the overlapping information between the target subtitle tracks corresponding to the two adjacent target subtitle segments, determine whether any two adjacent target edited subtitle tracks are merged The target duration corresponding to the subtitle segment;
字幕段合并子单元,被配置为基于所述目标时长,将所述任意两个相邻的目标编辑字幕轨道中目标字幕段进行合并。The subtitle segment merging subunit is configured to merge target subtitle segments in any two adjacent target edited subtitle tracks based on the target duration.
在一些实施方式中,所述字幕信息编辑装置还包括:In some implementation manners, the subtitle information editing device further includes:
合并字幕段确定模块,被配置为响应于所述用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,确定合并字幕段;Merged subtitle segment determination module, configured to determine the merged subtitle segment in response to the subtitle merge instruction triggered by the user based on the target subtitle segment in any two adjacent target edited subtitle tracks;
显示时间确定模块,被配置为确定所述合并字幕段的显示时间;a display time determination module configured to determine the display time of the merged subtitle segment;
显示位置确定模块,被配置为确定所述合并字幕段的显示位置;a display position determination module configured to determine the display position of the merged subtitle segment;
显示结果确定模块,被配置为根据所述合并字幕段的显示时间以及显示位置,确定所述合并字幕段的显示结果。The display result determining module is configured to determine the display result of the merged subtitle segment according to the display time and display position of the merged subtitle segment.
在一些实施方式中,所述显示时间确定模块包括:In some embodiments, the display time determination module includes:
第一显示时间确定子模块,被配置为基于所述两个相邻的目标字幕段中,显示时间靠前的目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。The first display time determining submodule is configured to determine the display time of the merged subtitle segment based on the display time corresponding to the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments.
在一些实施方式中,所述显示时间确定模块包括:In some embodiments, the display time determination module includes:
第二显示时间确定子模块,被配置为基于所述两个相邻的目标字幕段中,显示时间靠后的目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。The second display time determining submodule is configured to determine the display time of the merged subtitle segment based on the display time corresponding to the target subtitle segment whose display time is later among the two adjacent target subtitle segments.
在一些实施方式中,所述显示时间确定模块包括:In some embodiments, the display time determination module includes:
第一候选目标字幕段确定子模块,被配置为响应于所述用户对所述两个相邻的目标字幕段中 任一目标字幕段的触发指令,确定所述触发指令对应的第一候选目标字幕段;The first candidate target subtitle segment determination submodule is configured to determine the first candidate target corresponding to the trigger instruction in response to the user's trigger instruction for any target subtitle segment in the two adjacent target subtitle segments subtitle segment;
第三显示时间确定子模块,被配置为基于所述第一候选目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。The third display time determining submodule is configured to determine the display time of the merged subtitle segment based on the display time corresponding to the first candidate target subtitle segment.
在一些实施方式中,所述显示位置确定模块包括:In some implementations, the display position determination module includes:
第一显示位置确定子模块,被配置为基于所述两个相邻的目标字幕段中,显示时间靠前的目标字幕段的显示位置,确定所述合并字幕段的显示位置。The first display position determining submodule is configured to determine the display position of the merged subtitle segment based on the display position of the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments.
在一些实施方式中,所述显示位置确定模块包括:In some implementations, the display position determination module includes:
第二显示位置确定子模块,被配置为基于所述两个相邻的目标字幕段中,显示时间靠后的目标字幕段的显示位置,确定所述合并字幕段的显示位置。The second display position determining submodule is configured to determine the display position of the merged subtitle segment based on the display position of the target subtitle segment whose display time is later among the two adjacent target subtitle segments.
在一些实施方式中,所述显示位置确定模块包括:In some implementations, the display position determination module includes:
第二候选目标字幕段确定子模块,被配置为响应于所述用户对所述两个相邻的目标字幕段中任一目标字幕段的触发指令,确定所述触发指令对应的第二候选目标字幕段;The second candidate target subtitle segment determination submodule is configured to determine the second candidate target corresponding to the trigger instruction in response to the user's trigger instruction for any target subtitle segment in the two adjacent target subtitle segments subtitle segment;
第三显示位置确定子模块,被配置为基于所述第二候选目标字幕段对应的显示位置,确定所述合并字幕段的显示位置。The third display position determining submodule is configured to determine the display position of the merged subtitle segment based on the display position corresponding to the second candidate target subtitle segment.
在一些实施方式中,所述目标字幕信息更新模块包括:In some embodiments, the target subtitle information update module includes:
视频预览子模块,被配置为基于调整后的目标编辑字幕轨道,预览播放显示有字幕信息的视频;The video preview sub-module is configured to edit the subtitle track based on the adjusted target, and preview and play the video displaying the subtitle information;
编辑页面显示子模块,被配置为响应于针对所述调整后的目标编辑字幕轨道的编辑指令,显示所述目标字幕段的编辑页面;The edit page display submodule is configured to display the edit page of the target subtitle segment in response to the edit instruction for the adjusted target edit subtitle track;
字幕段修改子模块,被配置为响应于所述用户在所述目标字幕段的编辑页面的编辑操作,对所述目标字幕段进行修改;The subtitle segment modification submodule is configured to modify the target subtitle segment in response to the user's editing operation on the editing page of the target subtitle segment;
信息更新子模块,被配置为基于修改后的目标字幕段,更新所述目标视频帧中展示的目标字幕信息。The information update submodule is configured to update the target subtitle information displayed in the target video frame based on the modified target subtitle segment.
在一些实施方式中,所述字幕信息编辑装置还包括:In some implementation manners, the subtitle information editing device further includes:
字幕信息获取模块,被配置为获取预设视频对应的字幕信息;所述预设视频包括目标视频帧,所述预设视频对应的字幕信息包括至少一个字幕段;A subtitle information acquisition module configured to acquire subtitle information corresponding to a preset video; the preset video includes a target video frame, and the subtitle information corresponding to the preset video includes at least one subtitle segment;
时间信息确定模块,被配置为确定所述预设视频对应的字幕信息在所述预设视频中的时间起点与时间终点;A time information determination module, configured to determine the time start point and time end point of the subtitle information corresponding to the preset video in the preset video;
视频帧确定模块,被配置为基于所述时间起点与所述时间终点,确定起点视频帧与终点视频帧;A video frame determination module configured to determine a start video frame and an end video frame based on the time start point and the time end point;
字幕轨道构建模块,被配置为构建所述起点视频帧与所述终点视频帧之间的字幕轨道;A subtitle track construction module configured to construct a subtitle track between the start video frame and the end video frame;
对应关系构建模块,被配置为根据所述字幕轨道的对应时间与所述预设视频对应的字幕信息的对应时间,构建字幕段与字幕轨道的对应关系;The corresponding relationship building module is configured to construct the corresponding relationship between the subtitle segment and the subtitle track according to the corresponding time of the subtitle track and the corresponding time of the subtitle information corresponding to the preset video;
目标编辑字幕轨道生成模块,被配置为基于所述字幕段与字幕轨道的对应关系,生成所述预设视频对应的目标编辑字幕轨道。The target editing subtitle track generation module is configured to generate the target editing subtitle track corresponding to the preset video based on the correspondence between the subtitle segment and the subtitle track.
在一些实施方式中,所述字幕编辑页面还显示有撤回操作信息,所述字幕信息编辑装置还包括:In some implementation manners, the subtitle editing page also displays withdrawal operation information, and the subtitle information editing device further includes:
撤回操作模块,被配置为响应于所述用户基于所述撤回操作信息触发的撤回操作指令,对所述撤回操作指令对应的更新目标编辑字幕轨道进行撤回更新操作。The undo operation module is configured to, in response to the undo operation instruction triggered by the user based on the undo operation information, perform an undo update operation on the update target edited subtitle track corresponding to the undo operation instruction.
在一些实施方式中,所述字幕编辑页面显示模块包括:In some embodiments, the subtitle editing page display module includes:
视频播放子模块,被配置为响应于针对目标字幕轨道的编辑操作,在所述字幕编辑页面中播放所述视频;The video playing submodule is configured to play the video in the subtitle editing page in response to the editing operation for the target subtitle track;
滚动展示子模块,被配置为在所述视频的播放过程中,滚动展示每个视频帧对应的目标编辑字幕轨道。The scrolling display submodule is configured to scroll and display the target editing subtitle track corresponding to each video frame during the playing process of the video.
在一些实施方式中,所述字幕信息编辑装置还包括:In some implementation manners, the subtitle information editing device further includes:
原始视频播放模块,被配置为在原始页面播放所述视频;所述原始页面显示有字幕修改操作信息;The original video playback module is configured to play the video on the original page; the original page displays subtitle modification operation information;
字幕轨道滚动展示模块,被配置为在所述视频的播放过程中,滚动展示每个视频帧对应的目标编辑字幕轨道;The subtitle track rolling display module is configured to scroll and display the corresponding target editing subtitle track of each video frame during the playback of the video;
相应的,所述字幕编辑页面显示模块包括:Correspondingly, the subtitle editing page display module includes:
字幕编辑页面显示子模块,被配置为在所述原始页面响应于基于所述字幕修改操作信息触发的字幕修改指令,显示所述字幕编辑页面。The subtitle editing page display submodule is configured to display the subtitle editing page on the original page in response to a subtitle modification instruction triggered based on the subtitle modification operation information.
在一些实施方式中,所述原始页面显示有字幕切换操作信息,所述字幕信息编辑装置还包括:In some embodiments, the original page displays subtitle switching operation information, and the subtitle information editing device further includes:
待切换字幕获取模块,被配置为在所述原始页面响应于基于所述字幕切换操作信息触发的字幕切换指令,获取所述字幕切换指令对应的待切换字幕;The subtitle to be switched acquisition module is configured to respond to the subtitle switching instruction triggered based on the subtitle switching operation information on the original page, and acquire the subtitle to be switched corresponding to the subtitle switching instruction;
待切换字幕的目标编辑字幕轨道获取模块,被配置为获取所述待切换字幕的目标编辑字幕轨道;The target editing subtitle track acquisition module of the subtitle to be switched is configured to acquire the target editing subtitle track of the subtitle to be switched;
待切换字幕的目标编辑字幕轨道显示模块,被配置为在所述原始页面显示所述待切换字幕的目标编辑字幕轨道。The target edited subtitle track display module of the subtitle to be switched is configured to display the target edited subtitle track of the to-be-switched subtitle on the original page.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
在一些实施方式中,还提供了一种电子设备,包括:In some embodiments, there is also provided an electronic device, comprising:
处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现上述的字幕信息编辑方法。A processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the above subtitle information editing method.
在一些实施方式中,还提供了一种包括指令的计算机可读存储介质,例如包括指令的存储器,上述指令可由电子设备的处理器执行以完成上述的字幕信息编辑方法。可选地,计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In some embodiments, there is also provided a computer-readable storage medium including instructions, such as a memory including instructions, the instructions can be executed by a processor of an electronic device to complete the above subtitle information editing method. Alternatively, the computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
在一些实施方式中,还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现上述的字幕信息编辑方法。In some embodiments, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the above subtitle information editing method is implemented.
本公开实施例所提供的目标对象确定方法实施例可以在移动终端、计算机终端、服务器或者类似的运算装置中执行。以运行在服务器上为例,图18是本申请实施例提供的一种字幕信息更新的服务器的硬件结构框图。如图18所示,该服务器1800可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(Central Processing Units,CPU)1818(处理器1818可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器1830,一个或一个以上存储应用程序1823或数据1822的存储介质1820(例如一个或一个以上海量存储设备)。其中,存储器1830和存储介质1820可以是短暂存储或持久存储。存储在存储介质1820的程序可以包括一个或一个以上模块,每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器1818可以设置为与存储介质1820通信,在服务器1800上执行存储介质1820中的一系列指令操作。服务器1800还可以包括一个或一个以上电源1860,一个或一个以上有线或无线网络接口1850,一个或一个以上输入输出接口1840,和/或,一个或一个以上操作系统1821,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。The target object determination method embodiments provided by the embodiments of the present disclosure may be executed in mobile terminals, computer terminals, servers or similar computing devices. Taking running on a server as an example, FIG. 18 is a hardware structural block diagram of a subtitle information updating server provided in an embodiment of the present application. As shown in Figure 18, the server 1800 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (Central Processing Units, CPU) 1818 (processor 1818 may include but not limited to microprocessor MCU or programmable logic device FPGA, etc.), memory 1830 for storing data, one or more storage media 1820 for storing application programs 1823 or data 1822 (for example, one or more mass storage devices). Wherein, the memory 1830 and the storage medium 1820 may be temporary storage or persistent storage. The program stored in the storage medium 1820 may include one or more modules, and each module may include a series of instructions to operate on the server. Further, the central processing unit 1818 may be configured to communicate with the storage medium 1820 , and execute a series of instruction operations in the storage medium 1820 on the server 1800 . The server 1800 can also include one or more power supplies 1860, one or more wired or wireless network interfaces 1850, one or more input and output interfaces 1840, and/or, one or more operating systems 1821, such as Windows Server™, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
输入输出接口1840可以用于经由一个网络接收或者发送数据。上述的网络具体实例可包括服务器1800的通信供应商提供的无线网络。在一个实例中,输入输出接口1840包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,输入输出接口1840可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。The input-output interface 1840 may be used to receive or send data via a network. The specific example of the above network may include a wireless network provided by the communication provider of the server 1800 . In one example, the input and output interface 1840 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the input and output interface 1840 may be a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet in a wireless manner.
本领域普通技术人员可以理解,图18所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,服务器1800还可包括比图18中所示更多或者更少的组件,或者具有与图18所示不同的配置。Those of ordinary skill in the art can understand that the structure shown in FIG. 18 is only a schematic diagram, which does not limit the structure of the above-mentioned electronic device. For example, server 1800 may also include more or fewer components than shown in FIG. 18 , or have a different configuration than that shown in FIG. 18 .
本公开响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,所述字幕编辑页面包括视频预览区域和字幕编辑区域,所述视频预览区域显示有目标视频帧和与所述目标视频帧的显示时间对应的目标字幕信息;所述字幕编辑区域显示有基于所述目标字幕轨道生成的目标编辑字幕轨道,所述目标编辑字幕轨道包括沿着显示时间轴排列的字幕段;其中每个字幕轨道都对应有字幕,避免出现某些字幕轨道没有对应的字幕的情况;即避免了在语速非匀速的情况下,字幕轨道没有相应的声音的情况;本公开响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整;在所述字幕编辑区域显示调整后的目标编辑字幕轨道;基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息;实现了目标编辑字幕轨道中字幕段与字幕轨道的同步分割,避免人工手动增减字幕轨道;并在字幕编辑区域展示调整后的目标编辑字幕轨道,且对视频帧中字幕信息进行同步更新,实现了对视频中字幕进行快速编辑。In response to an editing operation on the target subtitle track, the present disclosure displays a subtitle editing page, the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and a display corresponding to the target video frame Time-corresponding target subtitle information; the subtitle editing area displays a target editing subtitle track based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis; wherein each subtitle track is Corresponding to subtitles, avoiding the situation that some subtitle tracks do not have corresponding subtitles; that is, avoiding the situation where the subtitle track has no corresponding sound when the speech rate is not uniform; the disclosure responds to the user editing the subtitle track based on the target The subtitle adjustment instruction triggered by the target subtitle segment in the subtitle adjustment instruction is adjusted to the target subtitle segment corresponding to the subtitle adjustment instruction; the adjusted target edit subtitle track is displayed in the subtitle editing area; based on the adjusted target edit subtitle track, update The target subtitle information shown in the target video frame; the synchronous segmentation of the subtitle segment and the subtitle track in the target editing subtitle track is realized, avoiding manual increase and decrease of the subtitle track; and the adjusted target editing subtitle track is displayed in the subtitle editing area, In addition, the subtitle information in the video frame is updated synchronously, realizing fast editing of the subtitle in the video.
本公开所有实施例均可以单独被执行,也可以与其他实施例相结合被执行,均视为本公开要求的保护范围。All the embodiments of the present disclosure can be implemented independently or in combination with other embodiments, which are all regarded as the scope of protection required by the present disclosure.

Claims (47)

  1. 一种字幕信息编辑方法,包括:A method for editing subtitle information, comprising:
    响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,所述字幕编辑页面包括视频预览区域和字幕编辑区域,所述视频预览区域显示有目标视频帧和与所述目标视频帧的显示时间对应的目标字幕信息;所述字幕编辑区域显示有基于所述目标字幕轨道生成的目标编辑字幕轨道,所述目标编辑字幕轨道包括沿着显示时间轴排列的字幕段;In response to the editing operation for the target subtitle track, a subtitle editing page is displayed, the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and a display time corresponding to the target video frame The target subtitle information; The subtitle editing area is displayed with a target editing subtitle track generated based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis;
    响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整;In response to a subtitle adjustment instruction triggered by the user based on the target subtitle segment in the target edited subtitle track, adjust the target subtitle segment corresponding to the subtitle adjustment instruction;
    在所述字幕编辑区域显示调整后的目标编辑字幕轨道;Displaying the adjusted target editing subtitle track in the subtitle editing area;
    基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。Based on the adjusted target edited subtitle track, the target subtitle information displayed in the target video frame is updated.
  2. 根据权利要求1所述的字幕信息编辑方法,其中,所述字幕编辑区域还显示有与所述目标字幕段对应的字幕文本信息,所述字幕调整指令包括字幕分割指令,所述响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整,包括:The subtitle information editing method according to claim 1, wherein the subtitle editing area also displays subtitle text information corresponding to the target subtitle segment, the subtitle adjustment instruction includes a subtitle segmentation instruction, and the response to the user based on The subtitle adjustment command triggered by the target subtitle segment in the target editing subtitle track adjusts the target subtitle segment corresponding to the subtitle adjustment command, including:
    响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,确定所述字幕文本信息中的分割位置;determining a segmentation position in the subtitle text information in response to the subtitle segmentation instruction triggered by the user based on a target subtitle segment in the target edited subtitle track;
    基于所述字幕文本信息中的分割位置,对所述目标字幕段进行分割,形成至少两个沿着显示时间轴排列的字幕段;Segmenting the target subtitle segment based on the segmentation position in the subtitle text information to form at least two subtitle segments arranged along the display time axis;
    基于分割后的字幕段,更新所述目标编辑字幕轨道;Based on the segmented subtitle segment, updating the target edited subtitle track;
    所述基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息,包括:The edited subtitle track based on the adjusted target updates the target subtitle information displayed in the target video frame, including:
    基于分割更新后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。Based on the segmented and updated target edited subtitle track, the target subtitle information displayed in the target video frame is updated.
  3. 根据权利要求2所述的字幕信息编辑方法,其中,所述字幕编辑区域还显示有用于选中所述目标字幕段的光标,所述光标设置于所述字幕文本信息的字符间隙中;所述响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,确定所述字幕文本信息中的分割位置,包括:The subtitle information editing method according to claim 2, wherein, the subtitle editing area also displays a cursor for selecting the target subtitle segment, and the cursor is set in the character gap of the subtitle text information; the response Based on the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edited subtitle track, determining the segmentation position in the subtitle text information includes:
    响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,基于所述光标在所述字幕文本信息中的位置,确定所述字幕文本信息中的分割位置。In response to the subtitle segmentation instruction triggered by the user based on a target subtitle segment in the target edited subtitle track, based on the position of the cursor in the subtitle text information, a segmentation position in the subtitle text information is determined.
  4. 根据权利要求3所述的字幕信息编辑方法,其中,所述响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,基于所述光标在所述字幕文本信息中的位置,确定所述字幕文本信息中的分割位置,包括:The subtitle information editing method according to claim 3, wherein said response to said subtitle segmentation instruction triggered by said user based on a target subtitle segment in said target edit subtitle track is based on said cursor being in said subtitle text The position in the information determines the segmentation position in the subtitle text information, including:
    响应于所述用户拖动所述字幕文本信息的操作,确定拖动后的所述光标的位置;In response to the user's operation of dragging the subtitle text information, determine the position of the dragged cursor;
    基于所述拖动后的所述光标的位置,确定所述字幕文本信息中的分割位置。Based on the position of the cursor after the dragging, the division position in the subtitle text information is determined.
  5. 根据权利要求1所述的字幕信息编辑方法,其中,所述字幕调整指令包括字幕合并指令,所述目标编辑字幕轨道为至少两个,所述响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整,包括:The subtitle information editing method according to claim 1, wherein said subtitle adjustment instruction includes a subtitle merging instruction, said target editing subtitle track is at least two, and said responding to the target editing subtitle track based on said target The subtitle adjustment instruction triggered by the subtitle segment adjusts the target subtitle segment corresponding to the subtitle adjustment instruction, including:
    响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果;In response to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks, the two adjacent target subtitle segments corresponding to the subtitle merging instruction are merged to obtain a merging result;
    根据所述合并结果,更新所述字幕合并指令对应的目标编辑字幕轨道;According to the merging result, update the target editing subtitle track corresponding to the subtitle merging instruction;
    所述基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息,包括:The edited subtitle track based on the adjusted target updates the target subtitle information displayed in the target video frame, including:
    基于合并更新后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。Based on the merged and updated target edited subtitle track, the target subtitle information displayed in the target video frame is updated.
  6. 根据权利要求5所述的字幕信息编辑方法,其中,所述字幕编辑区域还显示有至少一个字幕合并操作信息,所述字幕合并操作信息与所述任意两个相邻的目标编辑字幕轨道相对应,所述字幕合并操作信息用于合并对应的两个相邻目标编辑字幕轨道中沿着显示时间轴排列的字幕段;所述响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果,包括:The subtitle information editing method according to claim 5, wherein the subtitle editing area further displays at least one subtitle merging operation information, and the subtitle merging operation information corresponds to any two adjacent target edited subtitle tracks , the subtitle merging operation information is used to merge the subtitle segments arranged along the display time axis in the corresponding two adjacent target editing subtitle tracks; The subtitle merging instruction triggered by the subtitle segment merges two adjacent target subtitle segments corresponding to the subtitle merging instruction to obtain a merging result, including:
    响应于所述用户基于目标字幕合并操作信息,对所述任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果。In response to the subtitle merging instruction triggered by the user on the target subtitle segment in the edited subtitle track of any two adjacent targets based on the target subtitle merging operation information, the two adjacent targets corresponding to the subtitle merging instruction The subtitle segments are merged to obtain the merged result.
  7. 根据权利要求5所述的字幕信息编辑方法,其中,所述响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果,包括:The subtitle information editing method according to claim 5, wherein, in response to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks, the subtitle merging instruction corresponds to The two adjacent target subtitle segments are merged to obtain the merged result, including:
    响应于所述用户基于任意两个相邻的目标编辑字幕轨道触发的位置移动操作指令,得到所述 任意两个相邻的目标编辑字幕轨道的位置移动结果;In response to the position movement operation instruction triggered by the user based on any two adjacent target editing subtitle tracks, obtain the position movement result of the any two adjacent target editing subtitle tracks;
    根据所述任意两个相邻的目标编辑字幕轨道的位置移动结果,将所述位置移动操作指令对应的两个相邻的目标字幕段合并,得到合并结果。According to the position movement results of any two adjacent target edited subtitle tracks, the two adjacent target subtitle segments corresponding to the position movement operation instruction are combined to obtain a combination result.
  8. 根据权利要求7所述的字幕信息编辑方法,其中,所述根据所述任意两个相邻的目标编辑字幕轨道的位置移动结果,将所述位置移动操作指令对应的两个相邻的目标字幕段合并,得到合并结果,包括:The subtitle information editing method according to claim 7, wherein, according to the position movement results of the any two adjacent target edited subtitle tracks, the two adjacent target subtitles corresponding to the position movement operation instruction Segments are merged to obtain the merged results, including:
    根据所述任意两个相邻的目标编辑字幕轨道的位置移动结果,将所述位置移动操作指令对应的两个相邻的目标字幕段沿着显示时间轴进行一次合并,得到一次合并的目标编辑字幕轨道;所述一次合并的目标编辑字幕轨道中显示时间靠前的目标字幕段的时间终点与显示时间靠后的目标字幕段的时间起点重合;According to the position movement results of any two adjacent target editing subtitle tracks, merge the two adjacent target subtitle segments corresponding to the position movement operation instruction along the display time axis to obtain a merged target editing Subtitle track; the time end point of the target subtitle segment whose display time is earlier in the target edited subtitle track of the first merge coincides with the time start point of the target subtitle segment whose display time is later;
    基于所述一次合并的目标编辑字幕轨道,确定合并结果。Based on the target edited subtitle track of the first merging, a merging result is determined.
  9. 根据权利要求8所述的字幕信息编辑方法,其中,所述基于所述一次合并的目标编辑字幕轨道,确定合并结果,包括:The subtitle information editing method according to claim 8, wherein said editing a subtitle track based on said once-merged target, and determining a merging result, comprises:
    响应于所述用户基于所述一次合并后所述两个相邻的目标字幕段触发的位置移动指令,对一次合并的两个相邻的目标字幕段沿着显示时间轴进行二次合并,得到所述两个相邻的目标字幕段对应的目标字幕轨道之间的重叠信息;In response to the position movement instruction triggered by the user based on the two adjacent target subtitle segments after the first combination, the two adjacent target subtitle segments combined once are combined along the display time axis for a second time to obtain Overlapping information between target subtitle tracks corresponding to the two adjacent target subtitle segments;
    基于一次合并结果以及所述两个相邻的目标字幕段对应的目标字幕轨道之间的重叠信息,确定所述任意两个相邻的目标编辑字幕轨道中合并字幕段对应的目标时长;Based on a merging result and the overlapping information between the target subtitle tracks corresponding to the two adjacent target subtitle segments, determine the target duration corresponding to the merged subtitle segment in any two adjacent target edited subtitle tracks;
    基于所述目标时长,将所述任意两个相邻的目标编辑字幕轨道中目标字幕段进行合并。Based on the target duration, merge target subtitle segments in any two adjacent target edited subtitle tracks.
  10. 根据权利要求5所述的字幕信息编辑方法,其中,所述响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果,包括:The subtitle information editing method according to claim 5, wherein, in response to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks, the subtitle merging instruction corresponds to The two adjacent target subtitle segments are merged to obtain the merged result, including:
    响应于所述用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,确定合并字幕段;In response to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target edited subtitle tracks, determine to merge the subtitle segment;
    确定所述合并字幕段的显示时间;determining the display time of the merged subtitle segment;
    确定所述合并字幕段的显示位置;determining the display position of the merged subtitle segment;
    根据所述合并字幕段的显示时间以及显示位置,确定所述合并字幕段的显示结果。The display result of the combined subtitle segment is determined according to the display time and display position of the combined subtitle segment.
  11. 根据权利要求10所述的字幕信息编辑方法,其中,所述确定所述合并字幕段的显示时间,包括:The subtitle information editing method according to claim 10, wherein said determining the display time of said merged subtitle segment comprises:
    基于所述两个相邻的目标字幕段中,显示时间靠前的目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。Based on the display time corresponding to the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments, the display time of the merged subtitle segment is determined.
  12. 根据权利要求10所述的字幕信息编辑方法,其中,所述确定所述合并字幕段的显示时间,包括:The subtitle information editing method according to claim 10, wherein said determining the display time of said merged subtitle segment comprises:
    基于所述两个相邻的目标字幕段中,显示时间靠后的目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。Based on the display time corresponding to the target subtitle segment whose display time is later among the two adjacent target subtitle segments, the display time of the merged subtitle segment is determined.
  13. 根据权利要求10所述的字幕信息编辑方法,其中,所述确定所述合并字幕段的显示时间,包括:The subtitle information editing method according to claim 10, wherein said determining the display time of said merged subtitle segment comprises:
    响应于所述用户对所述两个相邻的目标字幕段中任一目标字幕段的触发指令,确定所述触发指令对应的第一候选目标字幕段;Responding to the user's trigger instruction for any target subtitle segment in the two adjacent target subtitle segments, determine the first candidate target subtitle segment corresponding to the trigger instruction;
    基于所述第一候选目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。Based on the display time corresponding to the first candidate target subtitle segment, the display time of the merged subtitle segment is determined.
  14. 根据权利要求10所述的字幕信息编辑方法,其中,所述确定所述合并字幕段的显示位置,包括:The subtitle information editing method according to claim 10, wherein said determining the display position of said merged subtitle segment comprises:
    基于所述两个相邻的目标字幕段中,显示时间靠前的目标字幕段的显示位置,确定所述合并字幕段的显示位置。Based on the display position of the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments, the display position of the merged subtitle segment is determined.
  15. 根据权利要求10所述的字幕信息编辑方法,其中,所述确定所述合并字幕段的显示位置,包括:The subtitle information editing method according to claim 10, wherein said determining the display position of said merged subtitle segment comprises:
    基于所述两个相邻的目标字幕段中,显示时间靠后的目标字幕段的显示位置,确定所述合并字幕段的显示位置。Based on the display position of the target subtitle segment whose display time is later among the two adjacent target subtitle segments, the display position of the merged subtitle segment is determined.
  16. 根据权利要求10所述的字幕信息编辑方法,其中,所述确定所述合并字幕段的显示位置,包括:The subtitle information editing method according to claim 10, wherein said determining the display position of said merged subtitle segment comprises:
    响应于所述用户对所述两个相邻的目标字幕段中任一目标字幕段的触发指令,确定所述触发指令对应的第二候选目标字幕段;Responding to a trigger instruction from the user for any target subtitle segment in the two adjacent target subtitle segments, determining a second candidate target subtitle segment corresponding to the trigger instruction;
    基于所述第二候选目标字幕段对应的显示位置,确定所述合并字幕段的显示位置。Based on the display position corresponding to the second candidate target subtitle segment, the display position of the merged subtitle segment is determined.
  17. 根据权利要求1至9任一项所述的字幕信息编辑方法,其中,所述基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息,包括:The subtitle information editing method according to any one of claims 1 to 9, wherein said editing subtitle track based on the adjusted target, updating the target subtitle information displayed in the target video frame includes:
    基于调整后的目标编辑字幕轨道,预览播放显示有字幕信息的视频;Edit the subtitle track based on the adjusted target, preview and play the video with subtitle information displayed;
    响应于针对所述调整后的目标编辑字幕轨道的编辑指令,显示所述目标字幕段的编辑页面;In response to an editing instruction for the adjusted target editing subtitle track, display an editing page of the target subtitle segment;
    响应于所述用户在所述目标字幕段的编辑页面的编辑操作,对所述目标字幕段进行修改;Modifying the target subtitle segment in response to the user's editing operation on the editing page of the target subtitle segment;
    基于修改后的目标字幕段,更新所述目标视频帧中展示的目标字幕信息。Based on the modified target subtitle segment, update the target subtitle information displayed in the target video frame.
  18. 根据权利要求1至9任一项所述的字幕信息编辑方法,还包括:The subtitle information editing method according to any one of claims 1 to 9, further comprising:
    获取预设视频对应的字幕信息;所述预设视频包括目标视频帧,所述预设视频对应的字幕信息包括至少一个字幕段;Obtain subtitle information corresponding to a preset video; the preset video includes a target video frame, and the subtitle information corresponding to the preset video includes at least one subtitle segment;
    确定所述预设视频对应的字幕信息在所述预设视频中的时间起点与时间终点;Determining the time start point and time end point of the subtitle information corresponding to the preset video in the preset video;
    基于所述时间起点与所述时间终点,确定起点视频帧与终点视频帧;Based on the time start point and the time end point, determine a start point video frame and an end point video frame;
    构建所述起点视频帧与所述终点视频帧之间的字幕轨道;Constructing the subtitle track between the starting point video frame and the ending point video frame;
    根据所述字幕轨道的对应时间与所述预设视频对应的字幕信息的对应时间,构建字幕段与字幕轨道的对应关系;According to the corresponding time of the subtitle track and the corresponding time of the subtitle information corresponding to the preset video, construct the corresponding relationship between the subtitle segment and the subtitle track;
    基于所述字幕段与字幕轨道的对应关系,生成所述预设视频对应的目标编辑字幕轨道。Based on the correspondence between the subtitle segment and the subtitle track, a target editing subtitle track corresponding to the preset video is generated.
  19. 根据权利要求1至9任一项所述的字幕信息编辑方法,其中,所述字幕编辑页面还显示有撤回操作信息,所述方法还包括:The subtitle information editing method according to any one of claims 1 to 9, wherein the subtitle editing page is also displayed with withdrawal operation information, and the method further includes:
    响应于所述用户基于所述撤回操作信息触发的撤回操作指令,对所述撤回操作指令对应的更新目标编辑字幕轨道进行撤回更新操作。In response to the undo operation instruction triggered by the user based on the undo operation information, the undo update operation is performed on the update target edited subtitle track corresponding to the undo operation instruction.
  20. 根据权利要求1至9任一项所述的字幕信息编辑方法,其中,所述响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,包括:The subtitle information editing method according to any one of claims 1 to 9, wherein said displaying a subtitle editing page in response to an editing operation for a target subtitle track includes:
    响应于针对目标字幕轨道的编辑操作,在所述字幕编辑页面中播放所述视频;Playing the video on the subtitle editing page in response to an editing operation on the target subtitle track;
    在所述视频的播放过程中,滚动展示每个视频帧对应的目标编辑字幕轨道。During the playing process of the video, the target edited subtitle track corresponding to each video frame is scrolled and displayed.
  21. 根据权利要求1至9任一项所述的字幕信息编辑方法,还包括:The subtitle information editing method according to any one of claims 1 to 9, further comprising:
    在原始页面播放所述视频;所述原始页面显示有字幕修改操作信息;Play the video on the original page; the original page displays subtitle modification operation information;
    在所述视频的播放过程中,滚动展示每个视频帧对应的目标编辑字幕轨道;During the playback of the video, the target editing subtitle track corresponding to each video frame is scrolled;
    所述响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,包括:The displaying a subtitle editing page in response to an editing operation on a target subtitle track includes:
    在所述原始页面响应于基于所述字幕修改操作信息触发的字幕修改指令,显示所述字幕编辑页面。The subtitle editing page is displayed on the original page in response to a subtitle modification instruction triggered based on the subtitle modification operation information.
  22. 根据权利要求21所述的字幕信息编辑方法,其中,所述原始页面显示有字幕切换操作信息,所述方法还包括:The method for editing subtitle information according to claim 21, wherein the original page displays subtitle switching operation information, and the method further comprises:
    在所述原始页面响应于基于所述字幕切换操作信息触发的字幕切换指令,获取所述字幕切换指令对应的待切换字幕;Responding to the subtitle switching instruction triggered based on the subtitle switching operation information on the original page, acquiring the subtitle to be switched corresponding to the subtitle switching instruction;
    获取所述待切换字幕的目标编辑字幕轨道;Obtain the target editing subtitle track of the subtitle to be switched;
    在所述原始页面显示所述待切换字幕的目标编辑字幕轨道。The target editing subtitle track of the subtitle to be switched is displayed on the original page.
  23. 一种字幕信息编辑装置,包括:A subtitle information editing device, comprising:
    字幕编辑页面显示模块,被配置为响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,所述字幕编辑页面包括视频预览区域和字幕编辑区域,所述视频预览区域显示有目标视频帧和与所述目标视频帧的显示时间对应的目标字幕信息;所述字幕编辑区域显示有基于所述目标字幕轨道生成的目标编辑字幕轨道,所述目标编辑字幕轨道包括沿着显示时间轴排列的字幕段;The subtitle editing page display module is configured to display a subtitle editing page in response to an editing operation for the target subtitle track, and the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays the target video frame and the Target subtitle information corresponding to the display time of the target video frame; the subtitle editing area displays a target editing subtitle track based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis ;
    字幕段调整模块,被配置为响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整;The subtitle segment adjustment module is configured to adjust the target subtitle segment corresponding to the subtitle adjustment instruction in response to the subtitle adjustment instruction triggered by the user based on the target subtitle segment in the target editing subtitle track;
    目标编辑字幕轨道显示模块,被配置为在所述字幕编辑区域显示调整后的目标编辑字幕轨道;The target editing subtitle track display module is configured to display the adjusted target editing subtitle track in the subtitle editing area;
    目标字幕信息更新模块,被配置为基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。The target subtitle information update module is configured to update the target subtitle information displayed in the target video frame based on the adjusted target edited subtitle track.
  24. 根据权利要求23所述的字幕信息编辑装置,其中,所述字幕编辑区域还显示有与所述目标字幕段对应的字幕文本信息,所述字幕调整指令包括字幕分割指令,所述字幕段调整模块包括:The subtitle information editing device according to claim 23, wherein the subtitle editing area also displays subtitle text information corresponding to the target subtitle segment, the subtitle adjustment instruction includes a subtitle segmentation instruction, and the subtitle segment adjustment module include:
    分割位置确定子模块,被配置为响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,确定所述字幕文本信息中的分割位置;The segmentation position determination submodule is configured to determine the segmentation position in the subtitle text information in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edited subtitle track;
    字幕段分割子模块,被配置为基于所述字幕文本信息中的分割位置,对所述目标字幕段进行分割,形成至少两个沿着显示时间轴排列的字幕段;The subtitle segment segmentation submodule is configured to segment the target subtitle segment based on the segmentation position in the subtitle text information to form at least two subtitle segments arranged along the display time axis;
    目标编辑字幕轨道更新子模块,被配置为基于分割后的字幕段,更新所述目标编辑字幕轨道;The target editing subtitle track update submodule is configured to update the target editing subtitle track based on the divided subtitle segments;
    所述目标字幕信息更新模块包括:The target subtitle information update module includes:
    第一更新子模块,被配置为基于分割更新后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。The first update submodule is configured to update the target subtitle information displayed in the target video frame based on the segmented and updated target edited subtitle track.
  25. 根据权利要求24所述的字幕信息编辑装置,其中,所述字幕编辑区域还显示有用于选中所述目标字幕段的光标,所述光标设置于所述字幕文本信息的字符间隙中;所述分割位置确定子模块包括:The subtitle information editing device according to claim 24, wherein the subtitle editing area further displays a cursor for selecting the target subtitle segment, and the cursor is set in the character gap of the subtitle text information; the segmentation The location determination submodule includes:
    分割位置确定单元,被配置为响应于所述用户基于所述目标编辑字幕轨道中的目标字幕段触发的所述字幕分割指令,基于所述光标在所述字幕文本信息中的位置,确定所述字幕文本信息中的分割位置。The segmentation position determination unit is configured to determine the subtitle segmentation instruction based on the position of the cursor in the subtitle text information in response to the subtitle segmentation instruction triggered by the user based on the target subtitle segment in the target edited subtitle track. The split position in the subtitle text information.
  26. 根据权利要求25所述的字幕信息编辑装置,其中,所述分割位置确定单元包括:The subtitle information editing device according to claim 25, wherein the division position determining unit comprises:
    光标位置确定子单元,被配置为响应于所述用户拖动所述字幕文本信息的操作,确定拖动后的所述光标的位置;The cursor position determination subunit is configured to determine the position of the dragged cursor in response to the user's operation of dragging the subtitle text information;
    分割位置确定子单元,被配置为基于所述拖动后的所述光标的位置,确定所述字幕文本信息中的分割位置。The division position determining subunit is configured to determine the division position in the subtitle text information based on the position of the dragged cursor.
  27. 根据权利要求23所述的字幕信息编辑装置,其中,所述字幕调整指令包括字幕合并指令,所述目标编辑字幕轨道为至少两个,所述字幕段调整模块包括:The subtitle information editing device according to claim 23, wherein the subtitle adjustment instruction includes a subtitle merging instruction, and the target editing subtitle track is at least two, and the subtitle segment adjustment module includes:
    合并结果确定子模块,被配置为响应于用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果;The merging result determination submodule is configured to respond to the subtitle merging instruction triggered by the user based on the target subtitle segment in any two adjacent target editing subtitle tracks, and combine the two adjacent targets corresponding to the subtitle merging instruction The subtitle segment is merged to obtain the merged result;
    字幕轨道更新子模块,被配置为根据所述合并结果,更新所述字幕合并指令对应的目标编辑字幕轨道;The subtitle track updating submodule is configured to update the target editing subtitle track corresponding to the subtitle merging instruction according to the merging result;
    所述目标字幕信息更新模块包括:The target subtitle information update module includes:
    第二更新子模块,被配置为基于合并更新后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。The second update submodule is configured to update the target subtitle information displayed in the target video frame based on the merged and updated target edited subtitle track.
  28. 根据权利要求27所述的字幕信息编辑装置,其中,所述字幕编辑区域还显示有至少一个字幕合并操作信息,所述字幕合并操作信息与所述任意两个相邻的目标编辑字幕轨道相对应,所述字幕合并操作信息用于合并对应的两个相邻目标编辑字幕轨道中沿着显示时间轴排列的字幕段;所述合并结果确定子模块包括:The subtitle information editing device according to claim 27, wherein the subtitle editing area further displays at least one subtitle merging operation information, and the subtitle merging operation information corresponds to any two adjacent target edited subtitle tracks , the subtitle merging operation information is used to merge the subtitle segments arranged along the display time axis in the corresponding two adjacent target editing subtitle tracks; the merging result determination submodule includes:
    第一合并结果确定单元,被配置为响应于所述用户基于目标字幕合并操作信息,对所述任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的字幕合并指令,将所述字幕合并指令对应的两个相邻的目标字幕段合并,得到合并结果。The first merging result determination unit is configured to respond to the subtitle merging instruction triggered by the user for the target subtitle segment in any two adjacent target edited subtitle tracks based on the target subtitle merging operation information, and combine the subtitle The two adjacent target subtitle segments corresponding to the merging instruction are merged to obtain a merging result.
  29. 根据权利要求27所述的字幕信息编辑装置,其中,所述合并结果确定子模块包括:The subtitle information editing device according to claim 27, wherein the submodule for determining the merging result comprises:
    位置移动结果确定单元,被配置为响应于所述用户基于任意两个相邻的目标编辑字幕轨道触发的位置移动操作指令,得到所述任意两个相邻的目标编辑字幕轨道的位置移动结果;The position movement result determination unit is configured to obtain the position movement results of any two adjacent target edited subtitle tracks in response to the position movement operation instruction triggered by the user based on any two adjacent target edited subtitle tracks;
    第二合并结果确定单元,被配置为根据所述任意两个相邻的目标编辑字幕轨道的位置移动结果,将所述位置移动操作指令对应的两个相邻的目标字幕段合并,得到合并结果。The second merge result determining unit is configured to merge two adjacent target subtitle segments corresponding to the position shift operation instruction according to the position shift results of any two adjacent target edited subtitle tracks to obtain a merge result .
  30. 根据权利要求29所述的字幕信息编辑装置,其中,所述第二合并结果确定单元包括:The subtitle information editing device according to claim 29, wherein the second merging result determining unit comprises:
    一次合并子单元,被配置为根据所述任意两个相邻的目标编辑字幕轨道的位置移动结果,将所述位置移动操作指令对应的两个相邻的目标字幕段沿着显示时间轴进行一次合并,得到一次合并的目标编辑字幕轨道;所述一次合并的目标编辑字幕轨道中显示时间靠前的目标字幕段的时间终点与显示时间靠后的目标字幕段的时间起点重合;The one-time merging subunit is configured to, according to the position movement results of the any two adjacent target edited subtitle tracks, carry out the two adjacent target subtitle segments corresponding to the position movement operation instruction along the display time axis once Merge to obtain a merged target edited subtitle track; the time end point of the target subtitle segment that shows the time ahead in the target edited subtitle track of the merged one time coincides with the time start point of the target subtitle segment that is displayed behind the time;
    合并结果确定子单元,被配置为基于所述一次合并的目标编辑字幕轨道,确定合并结果。The merging result determining subunit is configured to determine a merging result based on the target edited subtitle track of the first merging.
  31. 根据权利要求30所述的字幕信息编辑装置,其中,所述合并结果确定子单元包括:The subtitle information editing device according to claim 30, wherein the subunit for determining the merging result comprises:
    重叠信息确定子单元,被配置为响应于所述用户基于所述一次合并后所述两个相邻的目标字幕段触发的位置移动指令,对一次合并的两个相邻的目标字幕段沿着显示时间轴进行二次合并,得到所述两个相邻的目标字幕段对应的目标字幕轨道之间的重叠信息;The overlapping information determination subunit is configured to respond to the position movement instruction triggered by the user based on the two adjacent target subtitle segments after the first combination, and to combine the two adjacent target subtitle segments along the Displaying the time axis for secondary merging to obtain overlapping information between target subtitle tracks corresponding to the two adjacent target subtitle segments;
    目标时长确定子单元,被配置为基于一次合并结果以及所述两个相邻的目标字幕段对应的目标字幕轨道之间的重叠信息,确定所述任意两个相邻的目标编辑字幕轨道中合并字幕段对应的目标时长;The target duration determination subunit is configured to, based on a merge result and the overlapping information between the target subtitle tracks corresponding to the two adjacent target subtitle segments, determine whether any two adjacent target edited subtitle tracks are merged The target duration corresponding to the subtitle segment;
    字幕段合并子单元,被配置为基于所述目标时长,将所述任意两个相邻的目标编辑字幕轨道中目标字幕段进行合并。The subtitle segment merging subunit is configured to merge target subtitle segments in any two adjacent target edited subtitle tracks based on the target duration.
  32. 根据权利要求27所述的字幕信息编辑装置,其中,所述字幕信息编辑装置还包括:The subtitle information editing device according to claim 27, wherein the subtitle information editing device further comprises:
    合并字幕段确定模块,被配置为响应于所述用户基于任意两个相邻的目标编辑字幕轨道中的目标字幕段触发的所述字幕合并指令,确定合并字幕段;Merged subtitle segment determination module, configured to determine the merged subtitle segment in response to the subtitle merge instruction triggered by the user based on the target subtitle segment in any two adjacent target edited subtitle tracks;
    显示时间确定模块,被配置为确定所述合并字幕段的显示时间;a display time determination module configured to determine the display time of the merged subtitle segment;
    显示位置确定模块,被配置为确定所述合并字幕段的显示位置;a display position determination module configured to determine the display position of the merged subtitle segment;
    显示结果确定模块,被配置为根据所述合并字幕段的显示时间以及显示位置,确定所述合并字幕段的显示结果。The display result determining module is configured to determine the display result of the merged subtitle segment according to the display time and display position of the merged subtitle segment.
  33. 根据权利要求32所述的字幕信息编辑装置,其中,所述显示时间确定模块包括:The subtitle information editing device according to claim 32, wherein the display time determination module comprises:
    第一显示时间确定子模块,被配置为基于所述两个相邻的目标字幕段中,显示时间靠前的目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。The first display time determining submodule is configured to determine the display time of the merged subtitle segment based on the display time corresponding to the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments.
  34. 根据权利要求32所述的字幕信息编辑装置,其中,所述显示时间确定模块包括:The subtitle information editing device according to claim 32, wherein the display time determination module comprises:
    第二显示时间确定子模块,被配置为基于所述两个相邻的目标字幕段中,显示时间靠后的目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。The second display time determining submodule is configured to determine the display time of the merged subtitle segment based on the display time corresponding to the target subtitle segment whose display time is later among the two adjacent target subtitle segments.
  35. 根据权利要求32所述的字幕信息编辑装置,其中,所述显示时间确定模块包括:The subtitle information editing device according to claim 32, wherein the display time determination module comprises:
    第一候选目标字幕段确定子模块,被配置为响应于所述用户对所述两个相邻的目标字幕段中任一目标字幕段的触发指令,确定所述触发指令对应的第一候选目标字幕段;The first candidate target subtitle segment determination submodule is configured to determine the first candidate target corresponding to the trigger instruction in response to the user's trigger instruction for any target subtitle segment in the two adjacent target subtitle segments subtitle segment;
    第三显示时间确定子模块,被配置为基于所述第一候选目标字幕段对应的显示时间,确定所述合并字幕段的显示时间。The third display time determination submodule is configured to determine the display time of the merged subtitle segment based on the display time corresponding to the first candidate target subtitle segment.
  36. 根据权利要求32所述的字幕信息编辑装置,其中,所述显示位置确定模块包括:The subtitle information editing device according to claim 32, wherein the display position determining module comprises:
    第一显示位置确定子模块,被配置为基于所述两个相邻的目标字幕段中,显示时间靠前的目标字幕段的显示位置,确定所述合并字幕段的显示位置。The first display position determining submodule is configured to determine the display position of the merged subtitle segment based on the display position of the target subtitle segment whose display time is earlier among the two adjacent target subtitle segments.
  37. 根据权利要求32所述的字幕信息编辑装置,其中,所述显示位置确定模块包括:The subtitle information editing device according to claim 32, wherein the display position determining module comprises:
    第二显示位置确定子模块,被配置为基于所述两个相邻的目标字幕段中,显示时间靠后的目标字幕段的显示位置,确定所述合并字幕段的显示位置。The second display position determining submodule is configured to determine the display position of the combined subtitle segment based on the display position of the target subtitle segment whose display time is later among the two adjacent target subtitle segments.
  38. 根据权利要求32所述的字幕信息编辑装置,其中,所述显示位置确定模块包括:The subtitle information editing device according to claim 32, wherein the display position determining module comprises:
    第二候选目标字幕段确定子模块,被配置为响应于所述用户对所述两个相邻的目标字幕段中任一目标字幕段的触发指令,确定所述触发指令对应的第二候选目标字幕段;The second candidate target subtitle segment determination submodule is configured to determine the second candidate target corresponding to the trigger instruction in response to the user's trigger instruction for any target subtitle segment in the two adjacent target subtitle segments subtitle segment;
    第三显示位置确定子模块,被配置为基于所述第二候选目标字幕段对应的显示位置,确定所述合并字幕段的显示位置。The third display position determining submodule is configured to determine the display position of the merged subtitle segment based on the display position corresponding to the second candidate target subtitle segment.
  39. 根据权利要求23至31任一项所述的字幕信息编辑装置,其中,所述目标字幕信息更新模块包括:The subtitle information editing device according to any one of claims 23 to 31, wherein the target subtitle information update module includes:
    视频预览子模块,被配置为基于调整后的目标编辑字幕轨道,预览播放显示有字幕信息的视频;The video preview sub-module is configured to edit the subtitle track based on the adjusted target, and preview and play the video displaying the subtitle information;
    编辑页面显示子模块,被配置为响应于针对所述调整后的目标编辑字幕轨道的编辑指令,显示所述目标字幕段的编辑页面;The edit page display submodule is configured to display the edit page of the target subtitle segment in response to the edit instruction for the adjusted target edit subtitle track;
    字幕段修改子模块,被配置为响应于所述用户在所述目标字幕段的编辑页面的编辑操作,对所述目标字幕段进行修改;The subtitle segment modification submodule is configured to modify the target subtitle segment in response to the user's editing operation on the editing page of the target subtitle segment;
    信息更新子模块,被配置为基于修改后的目标字幕段,更新所述目标视频帧中展示的目标字幕信息。The information update submodule is configured to update the target subtitle information displayed in the target video frame based on the modified target subtitle segment.
  40. 根据权利要求23至31任一项所述的字幕信息编辑装置,其中,所述字幕信息编辑装置还包括:The subtitle information editing device according to any one of claims 23 to 31, wherein the subtitle information editing device further comprises:
    字幕信息获取模块,被配置为获取预设视频对应的字幕信息;所述预设视频包括目标视频帧,所述预设视频对应的字幕信息包括至少一个字幕段;A subtitle information acquisition module configured to acquire subtitle information corresponding to a preset video; the preset video includes a target video frame, and the subtitle information corresponding to the preset video includes at least one subtitle segment;
    时间信息确定模块,被配置为确定所述预设视频对应的字幕信息在所述预设视频中的时间起点与时间终点;A time information determination module, configured to determine the time start point and time end point of the subtitle information corresponding to the preset video in the preset video;
    视频帧确定模块,被配置为基于所述时间起点与所述时间终点,确定起点视频帧与终点视频帧;A video frame determination module configured to determine a start video frame and an end video frame based on the time start point and the time end point;
    字幕轨道构建模块,被配置为构建所述起点视频帧与所述终点视频帧之间的字幕轨道;A subtitle track construction module configured to construct a subtitle track between the start video frame and the end video frame;
    对应关系构建模块,被配置为根据所述字幕轨道的对应时间与所述预设视频对应的字幕信息的对应时间,构建字幕段与字幕轨道的对应关系;The corresponding relationship building module is configured to construct the corresponding relationship between the subtitle segment and the subtitle track according to the corresponding time of the subtitle track and the corresponding time of the subtitle information corresponding to the preset video;
    目标编辑字幕轨道生成模块,被配置为基于所述字幕段与字幕轨道的对应关系,生成所述预设视频对应的目标编辑字幕轨道。The target editing subtitle track generation module is configured to generate the target editing subtitle track corresponding to the preset video based on the correspondence between the subtitle segment and the subtitle track.
  41. 根据权利要求23至31任一项所述的字幕信息编辑装置,其中,所述字幕编辑页面还显示有撤回操作信息,所述字幕信息编辑装置还包括:The subtitle information editing device according to any one of claims 23 to 31, wherein the subtitle editing page is also displayed with withdrawal operation information, and the subtitle information editing device further includes:
    撤回操作模块,被配置为响应于所述用户基于所述撤回操作信息触发的撤回操作指令,对所述撤回操作指令对应的更新目标编辑字幕轨道进行撤回更新操作。The undo operation module is configured to, in response to the undo operation instruction triggered by the user based on the undo operation information, perform an undo update operation on the update target edited subtitle track corresponding to the undo operation instruction.
  42. 根据权利要求23至31任一项所述的字幕信息编辑装置,其中,所述字幕编辑页面显示模块包括:The subtitle information editing device according to any one of claims 23 to 31, wherein the subtitle editing page display module includes:
    视频播放子模块,被配置为响应于针对目标字幕轨道的编辑操作,在所述字幕编辑页面中播放所述视频;The video playing submodule is configured to play the video in the subtitle editing page in response to the editing operation for the target subtitle track;
    滚动展示子模块,被配置为在所述视频的播放过程中,滚动展示每个视频帧对应的目标编辑字幕轨道。The scrolling display submodule is configured to scroll and display the target editing subtitle track corresponding to each video frame during the playing process of the video.
  43. 根据权利要求23至31任一项所述的字幕信息编辑装置,其中,所述字幕信息编辑装置还包括:The subtitle information editing device according to any one of claims 23 to 31, wherein the subtitle information editing device further comprises:
    原始视频播放模块,被配置为在原始页面播放所述视频;所述原始页面显示有字幕修改操作信息;The original video playback module is configured to play the video on the original page; the original page displays subtitle modification operation information;
    字幕轨道滚动展示模块,被配置为在所述视频的播放过程中,滚动展示每个视频帧对应的目标编辑字幕轨道;The subtitle track rolling display module is configured to scroll and display the corresponding target editing subtitle track of each video frame during the playback of the video;
    所述字幕编辑页面显示模块包括:The subtitle editing page display module includes:
    字幕编辑页面显示子模块,被配置为在所述原始页面响应于基于所述字幕修改操作信息触发的字幕修改指令,显示所述字幕编辑页面。The subtitle editing page display submodule is configured to display the subtitle editing page on the original page in response to a subtitle modification instruction triggered based on the subtitle modification operation information.
  44. 根据权利要求23至31任一项所述的字幕信息编辑装置,其中,所述原始页面显示有字幕切换操作信息,所述字幕信息编辑装置还包括:The subtitle information editing device according to any one of claims 23 to 31, wherein the original page displays subtitle switching operation information, and the subtitle information editing device further includes:
    待切换字幕获取模块,被配置为在所述原始页面响应于基于所述字幕切换操作信息触发的字幕切换指令,获取所述字幕切换指令对应的待切换字幕;The subtitle to be switched acquisition module is configured to respond to the subtitle switching instruction triggered based on the subtitle switching operation information on the original page, and acquire the subtitle to be switched corresponding to the subtitle switching instruction;
    待切换字幕的目标编辑字幕轨道获取模块,被配置为获取所述待切换字幕的目标编辑字幕轨道;The target editing subtitle track acquisition module of the subtitle to be switched is configured to acquire the target editing subtitle track of the subtitle to be switched;
    待切换字幕的目标编辑字幕轨道显示模块,被配置为在所述原始页面显示所述待切换字幕的目标编辑字幕轨道。The target edited subtitle track display module of the subtitle to be switched is configured to display the target edited subtitle track of the to-be-switched subtitle on the original page.
  45. 一种电子设备,包括:An electronic device comprising:
    处理器;processor;
    用于存储所述处理器可执行指令的存储器;memory for storing said processor-executable instructions;
    其中,所述处理器被配置为执行所述指令,以实现以下步骤:Wherein, the processor is configured to execute the instructions to achieve the following steps:
    响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,所述字幕编辑页面包括视频预览区域和字幕编辑区域,所述视频预览区域显示有目标视频帧和与所述目标视频帧的显示时间对应的目标字幕信息;所述字幕编辑区域显示有基于所述目标字幕轨道生成的目标编辑字幕轨道,所述目标编辑字幕轨道包括沿着显示时间轴排列的字幕段;In response to the editing operation for the target subtitle track, a subtitle editing page is displayed, the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and a display time corresponding to the target video frame The target subtitle information; The subtitle editing area is displayed with a target editing subtitle track generated based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis;
    响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整;In response to a subtitle adjustment instruction triggered by the user based on the target subtitle segment in the target edited subtitle track, adjust the target subtitle segment corresponding to the subtitle adjustment instruction;
    在所述字幕编辑区域显示调整后的目标编辑字幕轨道;Displaying the adjusted target editing subtitle track in the subtitle editing area;
    基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。Based on the adjusted target edited subtitle track, the target subtitle information displayed in the target video frame is updated.
  46. 一种计算机可读存储介质,其中,当所述计算机可读存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:A computer-readable storage medium, wherein, when the instructions in the computer-readable storage medium are executed by a processor of the electronic device, the electronic device is enabled to perform the following steps:
    响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,所述字幕编辑页面包括视频预览区域和字幕编辑区域,所述视频预览区域显示有目标视频帧和与所述目标视频帧的显示时间对应的目标字幕信息;所述字幕编辑区域显示有基于所述目标字幕轨道生成的目标编辑字幕轨道,所述目标编辑字幕轨道包括沿着显示时间轴排列的字幕段;In response to the editing operation for the target subtitle track, a subtitle editing page is displayed, the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and a display time corresponding to the target video frame The target subtitle information; the subtitle editing area is displayed with a target edited subtitle track generated based on the target subtitle track, and the target edited subtitle track includes subtitle segments arranged along the display time axis;
    响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整;In response to a subtitle adjustment instruction triggered by the user based on the target subtitle segment in the target edited subtitle track, adjust the target subtitle segment corresponding to the subtitle adjustment instruction;
    在所述字幕编辑区域显示调整后的目标编辑字幕轨道;Displaying the adjusted target editing subtitle track in the subtitle editing area;
    基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。Based on the adjusted target edited subtitle track, the target subtitle information displayed in the target video frame is updated.
  47. 一种计算机程序产品,包括计算机程序,其中,所述计算机程序被处理器执行以下步骤:A computer program product comprising a computer program, wherein said computer program is executed by a processor in the following steps:
    响应于针对目标字幕轨道的编辑操作,显示字幕编辑页面,所述字幕编辑页面包括视频预览区域和字幕编辑区域,所述视频预览区域显示有目标视频帧和与所述目标视频帧的显示时间对应 的目标字幕信息;所述字幕编辑区域显示有基于所述目标字幕轨道生成的目标编辑字幕轨道,所述目标编辑字幕轨道包括沿着显示时间轴排列的字幕段;In response to the editing operation for the target subtitle track, a subtitle editing page is displayed, the subtitle editing page includes a video preview area and a subtitle editing area, and the video preview area displays a target video frame and a display time corresponding to the target video frame The target subtitle information; The subtitle editing area is displayed with a target editing subtitle track generated based on the target subtitle track, and the target editing subtitle track includes subtitle segments arranged along the display time axis;
    响应于用户基于所述目标编辑字幕轨道中的目标字幕段触发的字幕调整指令,对所述字幕调整指令对应的目标字幕段进行调整;In response to a subtitle adjustment instruction triggered by the user based on the target subtitle segment in the target edited subtitle track, adjust the target subtitle segment corresponding to the subtitle adjustment instruction;
    在所述字幕编辑区域显示调整后的目标编辑字幕轨道;Displaying the adjusted target editing subtitle track in the subtitle editing area;
    基于调整后的目标编辑字幕轨道,更新所述目标视频帧中展示的目标字幕信息。Based on the adjusted target edited subtitle track, the target subtitle information displayed in the target video frame is updated.
PCT/CN2021/143883 2021-05-10 2021-12-31 Subtitle information editing method and apparatus WO2022237202A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110507607.9A CN113422996B (en) 2021-05-10 2021-05-10 Subtitle information editing method, device and storage medium
CN202110507607.9 2021-05-10

Publications (1)

Publication Number Publication Date
WO2022237202A1 true WO2022237202A1 (en) 2022-11-17

Family

ID=77712199

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/143883 WO2022237202A1 (en) 2021-05-10 2021-12-31 Subtitle information editing method and apparatus

Country Status (2)

Country Link
CN (1) CN113422996B (en)
WO (1) WO2022237202A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113422996B (en) * 2021-05-10 2023-01-20 北京达佳互联信息技术有限公司 Subtitle information editing method, device and storage medium
CN114143591A (en) * 2021-11-26 2022-03-04 网易(杭州)网络有限公司 Subtitle display method, device, terminal and machine-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104990A (en) * 2014-07-29 2014-10-15 小米科技有限责任公司 Method and device for adjusting subtitles in video
KR20160106302A (en) * 2015-03-02 2016-09-12 한국방송공사 Apparatus and method for generating caption file of edited video
CN109379631A (en) * 2018-12-13 2019-02-22 广州艾美网络科技有限公司 A method of passing through mobile terminal editor's video caption
CN111970577A (en) * 2020-08-25 2020-11-20 北京字节跳动网络技术有限公司 Subtitle editing method and device and electronic equipment
CN113422996A (en) * 2021-05-10 2021-09-21 北京达佳互联信息技术有限公司 Subtitle information editing method, device and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8923684B2 (en) * 2011-05-23 2014-12-30 Cctubes, Llc Computer-implemented video captioning method and player
CN109413478B (en) * 2018-09-26 2020-04-24 北京达佳互联信息技术有限公司 Video editing method and device, electronic equipment and storage medium
CN110740275B (en) * 2019-10-30 2022-07-19 中央电视台 Nonlinear editing system
CN110781649B (en) * 2019-10-30 2023-09-15 中央电视台 Subtitle editing method and device, computer storage medium and electronic equipment
CN111709342B (en) * 2020-06-09 2023-05-16 北京字节跳动网络技术有限公司 Subtitle segmentation method, device, equipment and storage medium
CN111565330A (en) * 2020-07-13 2020-08-21 北京美摄网络科技有限公司 Synchronous subtitle adding method and device, electronic equipment and storage medium
CN111901538B (en) * 2020-07-23 2023-02-17 北京字节跳动网络技术有限公司 Subtitle generating method, device and equipment and storage medium
CN112422831A (en) * 2020-11-20 2021-02-26 广州太平洋电脑信息咨询有限公司 Video generation method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104990A (en) * 2014-07-29 2014-10-15 小米科技有限责任公司 Method and device for adjusting subtitles in video
KR20160106302A (en) * 2015-03-02 2016-09-12 한국방송공사 Apparatus and method for generating caption file of edited video
CN109379631A (en) * 2018-12-13 2019-02-22 广州艾美网络科技有限公司 A method of passing through mobile terminal editor's video caption
CN111970577A (en) * 2020-08-25 2020-11-20 北京字节跳动网络技术有限公司 Subtitle editing method and device and electronic equipment
CN113422996A (en) * 2021-05-10 2021-09-21 北京达佳互联信息技术有限公司 Subtitle information editing method, device and storage medium

Also Published As

Publication number Publication date
CN113422996A (en) 2021-09-21
CN113422996B (en) 2023-01-20

Similar Documents

Publication Publication Date Title
WO2022237202A1 (en) Subtitle information editing method and apparatus
US10782844B2 (en) Smart whiteboard interactions
KR102161230B1 (en) Method and apparatus for user interface for multimedia content search
US9639147B2 (en) Heads-up-display for use in a media manipulation operation
US20180213289A1 (en) Method of authorizing video scene and metadata
WO2022205798A1 (en) Multimedia information editing method and apparatus therefor
US20120284622A1 (en) Context-sensitive mobile controller for media editing systems
CN111263186A (en) Video generation, playing, searching and processing method, device and storage medium
WO2023155885A1 (en) Icon arrangement method and apparatus, and electronic device
WO2023061414A1 (en) File generation method and apparatus, and electronic device
WO2023056977A1 (en) Application program start method and apparatus, and electronic device
WO2023030306A1 (en) Method and apparatus for video editing, and electronic device
CN112987999A (en) Video editing method and device, computer readable storage medium and electronic equipment
US20170004859A1 (en) User created textbook
WO2024037557A1 (en) Special effect prop processing method and apparatus, electronic device, and storage medium
WO2023103949A1 (en) Video processing method and apparatus, electronic device and medium
US11875029B2 (en) Video display method and apparatus, computer-readable medium, and electronic device
KR102210091B1 (en) Enhanced information collection environments
EP4343579A1 (en) Information replay method and apparatus, electronic device, computer storage medium, and product
EP4099711A1 (en) Method and apparatus and storage medium for processing video and timing of subtitles
CN115576463A (en) Background application management method and device, electronic equipment and medium
WO2022110844A1 (en) Method for automatically loading subtitle and electronic device
CN117316194A (en) Multimedia information processing method, device, electronic equipment and storage medium
US20160292140A1 (en) Associative input method and terminal
WO2023232066A1 (en) Method and apparatus for adjusting speed of multimedia clip, device and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21941763

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE