CN117119261A - Subtitle display method and system based on subtitle merging - Google Patents

Subtitle display method and system based on subtitle merging Download PDF

Info

Publication number
CN117119261A
CN117119261A CN202311001577.XA CN202311001577A CN117119261A CN 117119261 A CN117119261 A CN 117119261A CN 202311001577 A CN202311001577 A CN 202311001577A CN 117119261 A CN117119261 A CN 117119261A
Authority
CN
China
Prior art keywords
caption
subtitle
current
component
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311001577.XA
Other languages
Chinese (zh)
Inventor
符泽雨
赵定金
张常华
明德
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Baolun Electronics Co ltd
Original Assignee
Guangdong Baolun Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Baolun Electronics Co ltd filed Critical Guangdong Baolun Electronics Co ltd
Priority to CN202311001577.XA priority Critical patent/CN117119261A/en
Publication of CN117119261A publication Critical patent/CN117119261A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Abstract

The application discloses a subtitle display method and a system based on subtitle merging, wherein the method comprises responding to subtitle merging operation of a user, obtaining a plurality of subtitle components according to subtitle configuration data, and obtaining a subtitle interval adjustment value according to a user-defined interval condition; the method comprises the steps of obtaining dot matrix information of each caption component by carrying out data dot matrix conversion on each caption component, and judging whether each adjacent caption component meets the caption space condition according to the dot matrix information of each caption component and the caption space adjustment value; if yes, inserting the transparent frame with the frame selection information into the middle of the current adjacent caption assembly, and sending caption data to display equipment for display; if the information is not satisfied, cutting a current frame of the first caption component according to the lattice information of the current adjacent caption component, and sending caption data to display equipment for display. The embodiment realizes the rapid combination of the subtitles, reduces the response time of subtitle display and optimizes the subtitle display effect.

Description

Subtitle display method and system based on subtitle merging
Technical Field
The application relates to the field of subtitle merging, in particular to a subtitle display method and system based on subtitle merging.
Background
With the popularity of the internet, video has become one of the main ways modern people acquire information and entertainment. Many video producers add subtitles to the video for better information delivery. However, some video platforms do not support automatic subtitle loading, and video producers need to merge subtitles with video in order to facilitate viewing of subtitles by viewers.
When the existing subtitle is combined, the two subtitle components are directly spliced, the distance between words of the subtitle components is manually adjusted, or the information of the two components is combined by internal processing and then displayed together. However, in the process of merging the two subtitles, manual intervention adjustment is required, and corresponding lattices are required to be reconfigured for the two subtitle components, so that not only is the workload of an editor increased, but also the subtitle display time is increased, and meanwhile, the display effect cannot be ensured.
Disclosure of Invention
The application provides a subtitle display method and a subtitle display system based on subtitle merging, which realize the rapid merging of subtitles, reduce the response time of subtitle display and optimize the subtitle display effect.
In order to solve the above technical problems, an embodiment of the present application provides a subtitle display method based on subtitle merging, including:
responding to the subtitle merging operation of a user, acquiring subtitle configuration data, acquiring a plurality of subtitle components according to the subtitle configuration data, and acquiring a subtitle interval adjustment value according to the user-defined interval condition;
judging whether each adjacent caption assembly meets the caption space condition according to the dot matrix information of each caption assembly and the caption space adjustment value; the dot matrix information of each subtitle component is obtained by carrying out data dot matrix conversion on each subtitle component;
if the current adjacent caption assembly meets the caption spacing condition, setting frame selection information of a transparent frame according to frame selection information and caption spacing adjustment values of the current adjacent caption assembly, inserting the transparent frame with the frame selection information into the middle of the current adjacent caption assembly, obtaining first caption data according to caption data of the current adjacent caption assembly after inserting the transparent frame selection, and sending the first caption data to display equipment so that the display equipment performs caption display according to the first caption data; the frame selection information comprises width and height; the current adjacent caption assembly comprises a current first caption assembly and a current second caption assembly;
if the current adjacent caption assembly does not meet the caption spacing condition, calculating a current assembly distance value according to lattice information of the current adjacent caption assembly, obtaining a current clipping value according to the current assembly distance value and the caption spacing adjustment value, clipping a frame of the current first caption assembly according to the current clipping value, obtaining second caption data according to the clipped caption data of the current adjacent caption assembly, and sending the second caption data to display equipment, so that the display equipment performs caption display according to the second caption data.
According to the embodiment of the application, the subtitle configuration data is obtained in response to the subtitle merging operation of a user, a plurality of subtitle components are obtained according to the subtitle configuration data, and a subtitle interval adjustment value is obtained according to the user-defined interval condition; judging whether each adjacent caption assembly meets the caption space condition according to the dot matrix information of each caption assembly and the caption space adjustment value; the dot matrix information of each subtitle component is obtained by carrying out data dot matrix conversion on each subtitle component; if the current adjacent caption assembly meets the caption spacing condition, setting frame selection information of a transparent frame according to frame selection information and caption spacing adjustment values of the current adjacent caption assembly, inserting the transparent frame with the frame selection information into the middle of the current adjacent caption assembly, obtaining first caption data according to caption data of the current adjacent caption assembly after inserting the transparent frame selection, and sending the first caption data to display equipment so that the display equipment performs caption display according to the first caption data; the frame selection information comprises width and height; the current adjacent caption assembly comprises a current first caption assembly and a current second caption assembly; if the current adjacent caption assembly does not meet the caption spacing condition, calculating a current assembly distance value according to lattice information of the current adjacent caption assembly, obtaining a current clipping value according to the current assembly distance value and the caption spacing adjustment value, clipping a frame of the current first caption assembly according to the current clipping value, obtaining second caption data according to the clipped caption data of the current adjacent caption assembly, and sending the second caption data to display equipment, so that the display equipment performs caption display according to the second caption data. The size of the interval can be controlled by the subtitle merging, and the subtitle display effect is optimized, so that the display effect is better and better. The method can be used for transmitting the quick caption data to the MCU without reconfiguring the dot matrix, so that system resources are saved, the response time of caption display is reduced, quick combination of the captions is realized, and the user experience is improved.
As a preferred solution, subtitle configuration data is acquired, specifically:
acquiring a multi-caption selecting frame of a user's requirement drawing, and determining caption information and caption content; the subtitle information comprises the position, the width and the height of the subtitle subarea; the subtitle content comprises text content, fonts, font sizes and colors;
and obtaining caption configuration data according to the caption information and the caption content.
As a preferred scheme, according to dot matrix information and a caption space adjustment value of each caption component, judging whether each adjacent caption component meets a caption space condition, specifically:
according to the dot matrix information of each subtitle component, the dot matrix positioning of each subtitle component is obtained;
according to the lattice positioning of the current adjacent caption assembly, calculating the distance between the lattice positioning of the last word of the current first caption assembly and the lattice positioning of the first word of the current second caption assembly, and obtaining the current assembly distance value;
judging whether the current component distance value is lower than a subtitle space adjusting value or not;
if the subtitle space is lower than the subtitle space, the subtitle space condition is satisfied;
if not, the subtitle space condition is not satisfied.
As a preferred scheme, according to the self-defined interval condition, the subtitle interval adjustment value is obtained, specifically:
judging whether a user-defined distance value exists according to the user-defined distance condition;
if yes, setting the subtitle interval adjustment value as a user-defined interval value;
if not, the caption space adjustment value is the word space of the caption assembly at the first position; the word distance is calculated and obtained according to the dot matrix information of the caption component at the first position.
As a preferred scheme, the dot matrix information of each caption component is obtained by performing data dot matrix conversion on each caption component, specifically:
screenshot is carried out on each subtitle component, and a plurality of corresponding component pictures are generated;
converting each component picture into a plurality of corresponding dot matrix data;
and converting the data of each dot matrix into data with preset bit values, and obtaining dot matrix information of each subtitle component according to the converted data of each dot matrix.
As a preferred scheme, according to the current frame selection information and subtitle space adjustment value of adjacent subtitle components, setting frame selection information of transparent frames, specifically:
obtaining the height of the transparent selection frame according to the current height of the first subtitle component;
and subtracting the current component distance value from the subtitle interval adjustment value to obtain the width of the transparent selection frame.
In order to solve the same technical problem, the embodiment of the application also provides a subtitle display system based on subtitle merging, which comprises: the system comprises a response module, a distance judging module, a transparent frame selecting and inserting module and a subtitle component cutting module;
the response module is used for responding to the subtitle merging operation of a user, acquiring subtitle configuration data, acquiring a plurality of subtitle components according to the subtitle configuration data, and acquiring a subtitle interval adjustment value according to the user-defined interval condition;
the interval judging module is used for judging whether each adjacent caption assembly meets the caption interval condition according to the dot matrix information of each caption assembly and the caption interval adjustment value; the dot matrix information of each subtitle component is obtained by carrying out data dot matrix conversion on each subtitle component;
the transparent frame selection inserting module is used for setting frame selection information of a transparent frame according to the frame selection information and the caption interval adjustment value of the current adjacent caption assembly if the current adjacent caption assembly meets the caption interval condition, inserting the transparent frame after the frame selection information is set in the middle of the current adjacent caption assembly, obtaining first caption data according to the caption data of the current adjacent caption assembly after the transparent frame selection is inserted, and sending the first caption data to the display equipment so that the display equipment performs caption display according to the first caption data; the frame selection information comprises width and height; the current adjacent caption assembly comprises a current first caption assembly and a current second caption assembly;
the caption component clipping module is used for calculating a current component distance value according to lattice information of the current adjacent caption component if the current adjacent caption component does not meet the caption spacing condition, obtaining a current clipping value according to the current component distance value and the caption spacing adjustment value, clipping a frame of the current first caption component according to the current clipping value, obtaining second caption data according to the clipped caption data of the current adjacent caption component, and sending the second caption data to the display device, so that the display device performs caption display according to the second caption data.
Preferably, the response module includes: a caption configuration data acquisition unit;
the subtitle configuration data acquisition unit is used for acquiring a user's requirement drawing multi-subtitle selection frame and determining subtitle information and subtitle content; the subtitle information comprises the position, the width and the height of the subtitle subarea; the subtitle content comprises text content, fonts, font sizes and colors; and obtaining caption configuration data according to the caption information and the caption content.
In order to solve the same technical problems, the embodiment of the application also provides a computer device, which comprises a processor and a memory, wherein the memory is used for storing a computer program, and the computer program realizes a subtitle display method based on subtitle merging when being executed by the processor.
To solve the same technical problem, embodiments of the present application also provide a computer-readable storage medium storing a computer program that when executed by a processor implements a subtitle display method based on subtitle merging.
Drawings
Fig. 1: the application provides a flow diagram of an embodiment of a subtitle display method based on subtitle merging;
fig. 2: the application provides a subtitle assembly merging flow chart of an embodiment of a subtitle display method based on subtitle merging;
fig. 3: the application provides a caption display system based on caption combination.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Example 1
Referring to fig. 1, a flow chart of a subtitle display method based on subtitle merging according to an embodiment of the present application is shown. When the user operates to merge the subtitles, the embodiment automatically performs corresponding frame selection cutting of inserting transparent frames or subtitle assemblies according to the condition that the adjacent subtitle assemblies meet the subtitle interval condition, the subtitles are quickly merged, the response time of subtitle display is reduced, and the subtitle display effect is optimized. The subtitle display method comprises steps 101 to 104, wherein the steps are as follows:
step 101: and responding to the subtitle merging operation of the user, acquiring subtitle configuration data, acquiring a plurality of subtitle components according to the subtitle configuration data, and acquiring a subtitle interval adjustment value according to the user-defined interval condition.
In this embodiment, the editing user drags the second caption component to approach the first caption component to merge, and automatically recognizes that edges overlap in response to the caption merging operation of the user, and adjusts the interval between caption components.
Optionally, subtitle configuration data is acquired, specifically: acquiring a multi-caption selecting frame of a user's requirement drawing, and determining caption information and caption content; the subtitle information comprises the position, the width and the height of the subtitle subarea; the subtitle content comprises text content, fonts, font sizes and colors; and obtaining caption configuration data according to the caption information and the caption content.
In this embodiment, the user draws a multi-subtitle frame according to the requirement, determines subtitle information such as the position, length (width), height, etc. of each subtitle subregion, inputs subtitle content, and can set the text content, font size, and color of the subtitle content.
Optionally, according to the self-defined interval condition, a caption interval adjustment value is obtained, specifically:
judging whether a user-defined distance value exists according to the user-defined distance condition;
if yes, setting the subtitle interval adjustment value as a user-defined interval value;
if not, the caption space adjustment value is the word space of the caption assembly at the first position; the word distance is calculated and obtained according to the dot matrix information of the caption component at the first position.
In this embodiment, a user (editor) performs a merging operation on two subtitles, and can customize a distance between two subtitle groups (user-defined distance value), if the distance value is not customized, the distance is default to 0, and when a default value of 0 is received, the distance adjustment of the first subtitle component at the first position is default, that is, the word distance of the subtitle component at the first position is default subtitle distance adjustment value. After the user sets the interval value, the interval value is adjusted by using the value set by the user, namely, the caption interval adjustment value is set as the user-defined interval value.
Step 102: judging whether each adjacent caption assembly meets the caption space condition according to the dot matrix information of each caption assembly and the caption space adjustment value; the dot matrix information of each subtitle component is obtained by carrying out data dot matrix conversion on each subtitle component.
In this embodiment, as shown in fig. 2, the word spacing in fig. 2 is a subtitle spacing adjustment value, the subtitle spacing adjustment value may be defined by a user or determined according to a default value (the word spacing of the subtitle component), when the component distance value of the subtitle component is smaller than the word spacing, a transparent frame is added, and when the component distance value of the subtitle component is not smaller than the word spacing, the frame of the subtitle component is cut.
Optionally, the dot matrix information of each caption component is obtained by performing data dot matrix conversion on each caption component, which specifically includes:
screenshot is carried out on each subtitle component, and a plurality of corresponding component pictures are generated;
converting each component picture into a plurality of corresponding dot matrix data;
and converting the data of each dot matrix into data with preset bit values, and obtaining dot matrix information of each subtitle component according to the converted data of each dot matrix.
In this embodiment, the upper computer captures a caption (caption component) to generate a picture, and then converts the picture into dot matrix data. And then converting the lattice data into data with preset bit values, such as: and 8 bits of data are transmitted to the MCU of the control card, and the MCU receives the data and stores the data into the flash of each output card.
Optionally, according to the dot matrix information and the caption space adjustment value of each caption component, judging whether each adjacent caption component meets the caption space condition, specifically:
according to the dot matrix information of each subtitle component, the dot matrix positioning of each subtitle component is obtained;
according to the lattice positioning of the current adjacent caption assembly, calculating the distance between the lattice positioning of the last word of the current first caption assembly and the lattice positioning of the first word of the current second caption assembly, and obtaining the current assembly distance value;
judging whether the current component distance value is lower than a subtitle space adjusting value or not;
if the subtitle space is lower than the subtitle space, the subtitle space condition is satisfied;
if not, the subtitle space condition is not satisfied.
In this embodiment, according to the dot matrix positioning information of the last word of the first subtitle component and the dot matrix positioning information of the first word of the second subtitle component, it is determined whether the space between the subtitle components is lower than the subtitle space adjustment value (the first subtitle component word space/the user-defined space value), that is, whether the current component distance value is lower than the subtitle space adjustment value.
Step 103: if the current adjacent caption assembly meets the caption spacing condition, setting frame selection information of a transparent frame according to frame selection information and caption spacing adjustment values of the current adjacent caption assembly, inserting the transparent frame with the frame selection information into the middle of the current adjacent caption assembly, obtaining first caption data according to caption data of the current adjacent caption assembly after inserting the transparent frame selection, and sending the first caption data to display equipment so that the display equipment performs caption display according to the first caption data; the frame selection information comprises width and height; the current adjacent caption component includes a current first caption component and a current second caption component.
In this embodiment, if the current component distance value is lower than the subtitle space adjustment value, that is, the subtitle space condition is satisfied, a transparent frame is added and inserted therein, and the transparent frame height and length (width) are determined according to the frame information of the adjacent subtitle components and the subtitle space adjustment value.
Optionally, according to the current frame selection information and the subtitle interval adjustment value of the adjacent subtitle components, setting frame selection information of the transparent frame selection, specifically:
obtaining the height of the transparent selection frame according to the current height of the first subtitle component;
and subtracting the current component distance value from the subtitle interval adjustment value to obtain the width of the transparent selection frame.
In this embodiment, when the current component distance value x2 is smaller than the subtitle space adjustment value x1 and is lower than the subtitle space adjustment value, the transparent frame selection height is based on the height of the first subtitle component drawn by the user at the beginning, the transparent frame selection length (width) is the distance between words calculated by the upper computer when the first subtitle is converted into dot matrix data, the word space of the first subtitle component is obtained, the distance between the last word of the first subtitle component and the first word of the second subtitle component is the current component distance value x2, when the subtitle space adjustment value x1 is the word space of the first subtitle component, the length (width) of the transparent frame selection is the length (width) of x1-x2, and when the subtitle space adjustment value x1 is the user-defined space value, the length (width) of the transparent frame selection is the length (width) of x1-x 2. When the user has a self-defined distance, the frame selection length is issued for the length set by the user, so that only the middle transparent frame selection is modified, the time for reconstructing the caption text information dot matrix is reduced, and a satisfactory display effect is achieved.
Step 104: if the current adjacent caption assembly does not meet the caption spacing condition, calculating a current assembly distance value according to lattice information of the current adjacent caption assembly, obtaining a current clipping value according to the current assembly distance value and the caption spacing adjustment value, clipping a frame of the current first caption assembly according to the current clipping value, obtaining second caption data according to the clipped caption data of the current adjacent caption assembly, and sending the second caption data to display equipment, so that the display equipment performs caption display according to the second caption data.
In this embodiment, the current component distance value x2 is not smaller than the subtitle space adjustment value x1, if the current component distance value is higher than the word space, the phase difference distance is directly calculated, and clipping is performed according to the region. Therefore, the combined construction dot matrix data is not required to be recalculated, the caption data can be directly sent to the MCU, and the FPGA reads the caption data in the flash and sends the caption data to the screen for display.
According to the embodiment of the application, the subtitle configuration data is obtained in response to the subtitle merging operation of a user, a plurality of subtitle components are obtained according to the subtitle configuration data, and a subtitle interval adjustment value is obtained according to the user-defined interval condition; judging whether each adjacent caption assembly meets the caption space condition according to the dot matrix information of each caption assembly and the caption space adjustment value; the dot matrix information of each subtitle component is obtained by carrying out data dot matrix conversion on each subtitle component; if the current adjacent caption assembly meets the caption spacing condition, setting frame selection information of a transparent frame according to frame selection information and caption spacing adjustment values of the current adjacent caption assembly, inserting the transparent frame with the frame selection information into the middle of the current adjacent caption assembly, obtaining first caption data according to caption data of the current adjacent caption assembly after inserting the transparent frame selection, and sending the first caption data to display equipment so that the display equipment performs caption display according to the first caption data; the frame selection information comprises width and height; the current adjacent caption assembly comprises a current first caption assembly and a current second caption assembly; if the current adjacent caption assembly does not meet the caption spacing condition, calculating a current assembly distance value according to lattice information of the current adjacent caption assembly, obtaining a current clipping value according to the current assembly distance value and the caption spacing adjustment value, clipping a frame of the current first caption assembly according to the current clipping value, obtaining second caption data according to the clipped caption data of the current adjacent caption assembly, and sending the second caption data to display equipment, so that the display equipment performs caption display according to the second caption data. The size of the interval can be controlled by the subtitle merging, and the subtitle display effect is optimized, so that the display effect is better and better. The method can be used for transmitting the quick caption data to the MCU without reconfiguring the dot matrix, so that system resources are saved, the response time of caption display is reduced, quick combination of the captions is realized, and the user experience is improved.
Example two
Accordingly, referring to fig. 3, fig. 3 is a schematic structural diagram of a second embodiment of a subtitle display system based on subtitle merging according to the present application. As shown in fig. 3, the subtitle display system based on subtitle merging includes a response module 301, a space judgment module 302, a transparent frame selection insertion module 303, and a subtitle component clipping module 304;
the response module 301 is configured to respond to a subtitle merging operation of a user, obtain subtitle configuration data, obtain a plurality of subtitle components according to the subtitle configuration data, and obtain a subtitle interval adjustment value according to a user-defined interval condition;
the response module 301 includes: a subtitle configuration data acquiring unit 3011;
the caption configuration data acquisition unit 3011 is used for acquiring a user's requirement drawing multi-caption selection frame and determining caption information and caption content; the subtitle information comprises the position, the width and the height of the subtitle subarea; the subtitle content comprises text content, fonts, font sizes and colors; and obtaining caption configuration data according to the caption information and the caption content.
The interval judging module 302 is configured to judge whether each adjacent caption component meets a caption interval condition according to the dot matrix information and the caption interval adjustment value of each caption component; the dot matrix information of each subtitle component is obtained by carrying out data dot matrix conversion on each subtitle component;
the transparent frame selection inserting module 303 is configured to set frame selection information of a transparent frame according to frame selection information and a caption space adjustment value of a current adjacent caption component if the current adjacent caption component meets a caption space condition, insert the transparent frame after the frame selection information is set in the middle of the current adjacent caption component, obtain first caption data according to caption data of the current adjacent caption component after the transparent frame selection is inserted, and send the first caption data to a display device, so that the display device performs caption display according to the first caption data; the frame selection information comprises width and height; the current adjacent caption assembly comprises a current first caption assembly and a current second caption assembly;
the caption component clipping module 304 is configured to calculate a current component distance value according to lattice information of a current adjacent caption component if the current adjacent caption component does not meet the caption space condition, obtain a current clipping value according to the current component distance value and the caption space adjustment value, clip a frame of a current first caption component according to the current clipping value, obtain second caption data according to the clipped caption data of the current adjacent caption component, and send the second caption data to the display device, so that the display device performs caption display according to the second caption data.
When the embodiment of the application is implemented, when editors merge the subtitles, the automatic control interval can be achieved, the display can be automatically adjusted according to the reference interval of the first subtitle component, manual configuration of editors is not needed, the text of the subtitle information is not needed to be merged again, and the redundant transmission time of the subtitle information is increased. The subtitle merging can control the space size, the display effect is better, meanwhile, the lattice is not required to be reconfigured, the subtitle can be issued to the MCU, the response time of subtitle display is shortened, the system resources are saved, and the user experience is improved.
In addition, the embodiment of the application also provides a computer device, which comprises a processor and a memory, wherein the memory is used for storing a computer program, and the computer program is executed by the processor to realize the steps in any of the method embodiments.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps in any of the method embodiments when being executed by a processor.
Embodiments of the present application provide a computer program product which, when run on a computer device, causes the computer device to perform the steps of the method embodiments described above.
The above-mentioned subtitle display system based on subtitle combination can implement a subtitle display method based on subtitle combination in the above-mentioned method embodiment. The options in the method embodiments described above are also applicable to this embodiment and will not be described in detail here. The rest of the embodiments of the present application may refer to the content of the above method embodiments, and in this embodiment, no further description is given.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present application, and are not to be construed as limiting the scope of the application. It should be noted that any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art without departing from the spirit and principles of the present application are intended to be included in the scope of the present application.

Claims (10)

1. The title display method based on title merging is characterized by comprising the following steps:
responding to the subtitle merging operation of a user, acquiring subtitle configuration data, acquiring a plurality of subtitle components according to the subtitle configuration data, and acquiring a subtitle interval adjustment value according to the user-defined interval condition;
judging whether each adjacent caption assembly meets the caption space condition according to the dot matrix information of each caption assembly and the caption space adjustment value; the dot matrix information of each subtitle component is obtained by carrying out data dot matrix conversion on each subtitle component;
if the current adjacent caption assembly meets the caption spacing condition, setting frame selection information of a transparent frame according to the frame selection information of the current adjacent caption assembly and the caption spacing adjustment value, inserting the transparent frame with the frame selection information into the middle of the current adjacent caption assembly, obtaining first caption data according to caption data of the current adjacent caption assembly inserted into the transparent frame selection, and sending the first caption data to display equipment so that the display equipment performs caption display according to the first caption data; wherein the frame selection information comprises width and height; the current adjacent caption assembly comprises a current first caption assembly and a current second caption assembly;
if the current adjacent caption components do not meet the caption space condition, calculating a current component distance value according to lattice information of the current adjacent caption components, obtaining a current clipping value according to the current component distance value and the caption space adjustment value, clipping a frame of the current first caption component according to the current clipping value, obtaining second caption data according to the clipped caption data of the current adjacent caption components, and sending the second caption data to display equipment, so that the display equipment performs caption display according to the second caption data.
2. The subtitle display method based on subtitle merging according to claim 1, wherein the acquiring subtitle configuration data specifically includes:
acquiring a multi-caption selecting frame of the user's requirement drawing, and determining caption information and caption content; the subtitle information comprises the position, the width and the height of the subtitle subarea; the caption content comprises text content, fonts, font sizes and colors;
and obtaining the caption configuration data according to the caption information and the caption content.
3. The subtitle display method based on subtitle merging of claim 1, wherein the determining whether each adjacent subtitle assembly satisfies a subtitle space condition according to the dot matrix information of each subtitle assembly and the subtitle space adjustment value includes:
according to the dot matrix information of each caption component, the dot matrix positioning of each caption component is obtained;
calculating the distance between the dot matrix positioning of the last word of the current first subtitle component and the dot matrix positioning of the first word of the current second subtitle component according to the dot matrix positioning of the current adjacent subtitle components, and obtaining the current component distance value;
judging whether the current component distance value is lower than the subtitle space adjusting value;
if the subtitle space is lower than the subtitle space, the subtitle space condition is met;
and if the subtitle distance is not lower than the subtitle distance, the subtitle distance condition is not satisfied.
4. The subtitle display method based on subtitle merging of claim 1, wherein the obtaining the subtitle space adjustment value according to the custom space condition specifically includes:
judging whether a user-defined distance value exists according to the user-defined distance condition;
if yes, setting the subtitle interval adjustment value as the user-defined interval value;
if not, the caption space adjustment value is the word space of the caption component at the first position; the word distance is calculated and obtained according to the dot matrix information of the caption component at the first position.
5. The subtitle display method based on subtitle merging according to claim 1, wherein the dot matrix information of each subtitle component is obtained by performing data dot matrix conversion on each subtitle component, specifically:
screenshot is carried out on each subtitle component, and a plurality of corresponding component pictures are generated;
converting each component picture into a plurality of corresponding dot matrix data;
and converting each dot matrix data into data with preset bit values, and obtaining dot matrix information of each subtitle component according to each dot matrix data after conversion.
6. The subtitle display method based on subtitle merging according to claim 1, wherein the setting of the frame selection information of the transparent frame according to the frame selection information of the current adjacent subtitle assembly and the subtitle space adjustment value is specifically:
obtaining the height of the transparent selection frame according to the height of the current first subtitle component;
and subtracting the current component distance value from the subtitle interval adjustment value to obtain the width of the transparent selection frame.
7. A subtitle display system based on subtitle merging, comprising: the system comprises a response module, a distance judging module, a transparent frame selecting and inserting module and a subtitle component cutting module;
the response module is used for responding to the subtitle merging operation of a user, acquiring subtitle configuration data, acquiring a plurality of subtitle components according to the subtitle configuration data, and acquiring a subtitle interval adjustment value according to the user-defined interval condition;
the interval judging module is used for judging whether each adjacent caption assembly meets the caption interval condition according to the dot matrix information of each caption assembly and the caption interval adjustment value; the dot matrix information of each subtitle component is obtained by carrying out data dot matrix conversion on each subtitle component;
the transparent frame selection inserting module is used for setting frame selection information of a transparent frame according to frame selection information of the current adjacent caption assembly and the caption interval adjustment value if the current adjacent caption assembly meets the caption interval condition, inserting the transparent frame after the frame selection information is set in the middle of the current adjacent caption assembly, obtaining first caption data according to caption data of the current adjacent caption assembly after the transparent frame selection is inserted, and sending the first caption data to display equipment, so that the display equipment performs caption display according to the first caption data; wherein the frame selection information comprises width and height; the current adjacent caption assembly comprises a current first caption assembly and a current second caption assembly;
and the caption component cutting module is used for calculating a current component distance value according to lattice information of the current adjacent caption component if the current adjacent caption component does not meet the caption spacing condition, obtaining a current cutting value according to the current component distance value and the caption spacing adjustment value, cutting a frame of the current first caption component according to the current cutting value, obtaining second caption data according to the cut caption data of the current adjacent caption component, and transmitting the second caption data to display equipment, so that the display equipment performs caption display according to the second caption data.
8. The subtitle-merging-based subtitle display system of claim 7, wherein the response module includes: a caption configuration data acquisition unit;
the caption configuration data acquisition unit is used for acquiring a multi-caption selecting frame of the user required drawing and determining caption information and caption content; the subtitle information comprises the position, the width and the height of the subtitle subarea; the caption content comprises text content, fonts, font sizes and colors; and obtaining the caption configuration data according to the caption information and the caption content.
9. A computer device comprising a processor and a memory for storing a computer program which, when executed by the processor, implements the subtitle display method based on subtitle merging as claimed in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the subtitle display method based on subtitle merging as claimed in any one of claims 1 to 6.
CN202311001577.XA 2023-08-09 2023-08-09 Subtitle display method and system based on subtitle merging Pending CN117119261A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311001577.XA CN117119261A (en) 2023-08-09 2023-08-09 Subtitle display method and system based on subtitle merging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311001577.XA CN117119261A (en) 2023-08-09 2023-08-09 Subtitle display method and system based on subtitle merging

Publications (1)

Publication Number Publication Date
CN117119261A true CN117119261A (en) 2023-11-24

Family

ID=88795755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311001577.XA Pending CN117119261A (en) 2023-08-09 2023-08-09 Subtitle display method and system based on subtitle merging

Country Status (1)

Country Link
CN (1) CN117119261A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015070761A1 (en) * 2013-11-15 2015-05-21 乐视致新电子科技(天津)有限公司 Smart tv media player and caption processing method thereof, and smart tv
EP3407612A1 (en) * 2017-05-22 2018-11-28 Vestel Elektronik Sanayi ve Ticaret A.S. Apparatus for a subtitle positioning and a method thereof
CN113905192A (en) * 2021-08-27 2022-01-07 北京达佳互联信息技术有限公司 Subtitle editing method and device, electronic equipment and storage medium
CN113905267A (en) * 2021-08-27 2022-01-07 北京达佳互联信息技术有限公司 Subtitle editing method and device, electronic equipment and storage medium
CN115150660A (en) * 2022-06-09 2022-10-04 深圳市大头兄弟科技有限公司 Video editing method based on subtitles and related equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015070761A1 (en) * 2013-11-15 2015-05-21 乐视致新电子科技(天津)有限公司 Smart tv media player and caption processing method thereof, and smart tv
EP3407612A1 (en) * 2017-05-22 2018-11-28 Vestel Elektronik Sanayi ve Ticaret A.S. Apparatus for a subtitle positioning and a method thereof
CN113905192A (en) * 2021-08-27 2022-01-07 北京达佳互联信息技术有限公司 Subtitle editing method and device, electronic equipment and storage medium
CN113905267A (en) * 2021-08-27 2022-01-07 北京达佳互联信息技术有限公司 Subtitle editing method and device, electronic equipment and storage medium
CN115150660A (en) * 2022-06-09 2022-10-04 深圳市大头兄弟科技有限公司 Video editing method based on subtitles and related equipment

Similar Documents

Publication Publication Date Title
US10348794B2 (en) Media production system with score-based display feature
CN1662952B (en) Video resolution control for a web browser and video display
CN106804003B (en) Video editing method and device based on ffmpeg
WO2017101487A1 (en) Method and device for submitting transcoding attribute information
US9008492B2 (en) Image processing apparatus method and computer program product
CN105430393B (en) Picture processing method, picture processing device, picture processing platform and storage medium
CN112712575A (en) Sticker template image generation method and device, anchor terminal equipment and storage medium
CN117119261A (en) Subtitle display method and system based on subtitle merging
US20210073479A1 (en) Information processing apparatus and non-transitory computer readable medium
CN100518253C (en) A manuscript writing system
CN105490914B (en) LED automation server and interaction method
CN116578795A (en) Webpage generation method and device, storage medium and electronic equipment
CN113986087B (en) Video rendering method based on subscription
CN113010075B (en) Multi-signal source window interaction method and system, readable storage medium and electronic device
US20150002515A1 (en) Method for displaying multi-gradation characters, device for displaying multi-gradation characters, television receiver provided with device for displaying multi-gradation characters, mobile equipment provided with device for displaying multi-gradation characters, and recording medium
JP2008288659A (en) Operation guide display device
CN115373550B (en) Method, system and chip for obtaining interaction information
CN112580446B (en) Video subtitle translation method, system, electronic device and readable storage medium
CN114970449B (en) Font processing method applied to on-screen communication
US7826664B2 (en) Systems and methods for efficient manual windowing operation
CN115988169B (en) Method and device for rapidly displaying real-time video on-screen text in cloud conference
US11930189B2 (en) Parallel metadata generation based on a window of overlapped frames
WO2003094143A1 (en) Common on screen display size for multiple display formats
KR100922438B1 (en) Method of providing movie message service
JP2005027021A (en) Image processing program, apparatus and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination