Display device and subtitle display method

By calculating and adjusting the display position and size of image subtitles, the problem of wrong display position of image subtitles when editing and playing between different devices is solved, and the accuracy and consistency of subtitles are achieved.

CN119906870AActive Publication Date: 2025-04-29HISENSE VISUAL TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510122063.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-04-29
Estimated Expiration
2045-01-24

AI Technical Summary

Technical Problem

When image subtitles are edited and played between different devices, the display position is incorrect and the pre-edited subtitles cannot be accurately displayed.

Method used

By analyzing the target media data, calculating the size ratio of the video size and image subtitle data, adjusting the display position and size of the subtitle text data to match the video size of the target media data and the screen size of the display device.

Benefits of technology

Improves the accuracy of displaying subtitle text data in image subtitle data, ensuring that subtitles can be displayed correctly under different devices and sizes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119906870A_ABST
    Figure CN119906870A_ABST
Patent Text Reader

Abstract

The invention provides a display device and a subtitle display method, and the method comprises the steps: in response to a subtitle display instruction, calculating a second size according to a first size of subtitle text data according to a first size ratio calculated according to an image size and a video size of image subtitle data, and calculating a target size according to a second size ratio calculated according to a screen size and a video size of the display device and a second size of the subtitle text data, thereby displaying the subtitle text data at a target position according to the target size in a process of displaying the image subtitle data. According to the method, the subtitle text data in the image subtitle data are converted according to the display size and position in the video and the display size and position in the screen through conversion of the ratio twice, so that the display accuracy of the subtitle text data in the image subtitle data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of display devices, and in particular to a display device and a subtitle display method. Background Art

[0002] A display device is a terminal device used to display images and an application installed in the display device. The display device can output different display images. Users can directly watch the output display images, or input operation instructions according to the guidance of the output display images to interact with the display device. In order to meet the diverse and personalized needs of users, the display device can install a variety of applications with different functions.

[0003] When users watch media videos through display devices, they can understand the meaning of the words of the characters in the corresponding video through the subtitles displayed in the media videos. The subtitles in the media videos can include two types, namely text subtitles and image subtitles. Text subtitles are subtitles displayed in the media screen in text form, and image subtitles are subtitles overlaid on the media screen in image format. Among them, the image subtitles are transparent in other areas outside the subtitle area, so that users can view the media screen outside the subtitle area through the image subtitles.

[0004] When editing, image subtitles need to be edited according to the size of the editing device, and when playing, they need to be displayed according to the size of the playback device. When the size of the editing device is different from the size of the playback device, when the playback device plays the media video, the text data in the image subtitles will not be displayed according to the pre-edited subtitle position, resulting in the wrong display position of the image subtitles. Summary of the invention

[0005] The present application provides a display device and a subtitle display method to solve the problem of incorrect display position of image subtitles.

[0006] In a first aspect, some embodiments of the present application provide a display device, including a display and a controller, configured to display a user interface, wherein the display is configured to display the user interface, and the controller is configured to:

[0007] In response to the subtitle display instruction, the target media data is parsed to obtain image subtitle data of the target media data and the video size of the target media data, wherein the image subtitle data includes image data set to be transparent and subtitle text data embedded in the image data;

[0008] Acquire the initial position of the subtitle text data in the image data and the first size of the subtitle text data, wherein the first size is used to indicate the set size of the subtitle text data in an editing state;

[0009] Calculating a first size ratio of the video size and the image size of the image subtitle data;

[0010] Calculating a second size of the subtitle text data when displayed in the target media asset data according to the first size ratio and the first size, and determining a first position of the subtitle text data when displayed in the target media asset data according to the initial position, so as to obtain updated image subtitle data;

[0011] Calculating a second size ratio between a screen size of the display device and a size of the video;

[0012] calculating a target size of the subtitle text data when displayed on the user interface according to the second size ratio and the second size, and determining a target position of the subtitle text data when displayed on the user interface according to the first position;

[0013] The subtitle text data is displayed at the target position according to the target size.

[0014] The above technical solution has the following advantages or beneficial effects: by obtaining the video size of the target media asset data and the first size of the subtitle text data in the image subtitle data in the editing state, the first size ratio is calculated, thereby converting the subtitle size in the editing state into the subtitle size in the media asset data. Then, according to the second size ratio between the video size and the screen size, the subtitle size in the media asset data is converted into the subtitle size during playback and display, so that the subtitle text data in the image subtitle data is displayed in the target size at the corresponding position of the user interface, thereby improving the accuracy of the displayed subtitle position and subtitle size.

[0015] In some embodiments, before the controller performs the step of displaying the subtitle text data at the target position according to the target size, the controller is further configured to:

[0016] Acquire target language information of the subtitle text data;

[0017] If there is other image subtitle data with different language information from the target language information, detecting the intersection area between the subtitle position of the other image subtitle data and the target position;

[0018] If the intersection area is not 0, the subtitle text data is moved in a longitudinal direction in a direction away from the subtitle position of the other image subtitle data.

[0019] The above technical solution has the following advantages or beneficial effects: when there are multiple image subtitle data in different languages, the intersection area of ​​the subtitle position of other image subtitle data and the target position of the subtitle text data can be determined. When the intersection area is not 0, it means that there is subtitle stacking between the subtitle text data in different languages. For this reason, the position of the subtitle text data can be adjusted in the vertical direction to avoid mutual occlusion of image subtitle data in different languages.

[0020] In some embodiments, the controller performs the step of calculating a first size ratio of the video size and the image size of the image subtitle data, and is specifically configured as follows:

[0021] Calculate a first horizontal ratio of a video horizontal dimension of the video size to an image horizontal dimension of the image size;

[0022] Calculate a first longitudinal ratio of a video longitudinal dimension of the video size to an image longitudinal dimension of the image size;

[0023] The first size ratio is generated according to the first horizontal ratio and the first vertical ratio.

[0024] The above technical solution has the following advantages or beneficial effects: the first horizontal ratio in the horizontal direction is calculated by the video horizontal dimension of the video size and the image horizontal dimension of the image size, and the first vertical ratio in the vertical direction is calculated by the video vertical dimension of the video size and the image vertical dimension of the image size, so as to generate a first size ratio according to the first horizontal ratio and the first vertical ratio.

[0025] In some embodiments, the first size includes a first horizontal size and a first vertical size, and the controller performs the step of calculating a second size of the subtitle text data when displayed in the target media asset data according to the first size ratio and the first size, and is configured as follows:

[0026] updating the first horizontal dimension to a second horizontal dimension according to the first horizontal ratio;

[0027] updating the first longitudinal dimension to a second longitudinal dimension according to the first longitudinal ratio;

[0028] A second size is generated based on the second transverse size and the second longitudinal size.

[0029] The above technical solution has the following advantages or beneficial effects: in both horizontal and vertical directions, the first horizontal size is adjusted to the second horizontal size according to the first horizontal ratio, and the first vertical size is adjusted to the second vertical size according to the first vertical ratio, so as to achieve proportional adjustment of subtitle size and position.

[0030] In some embodiments, the controller performs the step of determining the first position of the subtitle text data when it is displayed in the target media asset data according to the initial position, and is specifically configured as follows:

[0031] adjusting the horizontal position of the initial position according to the first horizontal ratio to obtain an adjusted subtitle position;

[0032] The vertical position of the adjusted subtitle position is adjusted according to the first vertical ratio to obtain a first position.

[0033] The above technical solution has the following advantages or beneficial effects: the horizontal position of the initial position is adjusted horizontally according to the first horizontal ratio, and the vertical position of the subtitle position is adjusted according to the first vertical ratio to obtain the first position, thereby improving the accuracy of adjusting the subtitle position.

[0034] In some embodiments, if the first size ratio is a non-integer ratio, the controller is further configured to:

[0035] Scaling the target media asset data according to the image size of the image subtitle data;

[0036] In the target media asset data, the initial position is updated to the first position.

[0037] The above technical solution has the following advantages or beneficial effects: when the first size ratio is a non-integer ratio, it means that the size ratio of the image size and the video size is different. Therefore, the target media data can be scaled according to the image size, and the initial position can be updated to the first position.

[0038] In some embodiments, after the controller executes the step of displaying the subtitle text data at the target position, the controller is further configured to:

[0039] Obtaining a display threshold of the image subtitle data;

[0040] Recording the display duration of the image subtitle data;

[0041] When the display duration is equal to the display threshold, receiving an image subtitle end instruction sent by the application layer;

[0042] In response to the image subtitle end instruction, the subtitle text data in the image subtitle data is cleared.

[0043] The above technical solution has the following advantages or beneficial effects: by setting a display threshold, when the display duration is equal to the display threshold, the subtitle text data is cleared to facilitate displaying the subtitle text data of the next line.

[0044] In some embodiments, after the controller executes the step of clearing the subtitle text data in the image subtitle data, the controller is further configured to:

[0045] Acquire the next subtitle text data of the subtitle text data and the display time point of the next subtitle text data;

[0046] After clearing the subtitle text data, when the playback progress of the target media asset data reaches the display time point, the display is controlled to display the next subtitle text data at the target position of the image subtitle data.

[0047] The above technical solution has the following advantages or beneficial effects: after clearing the subtitle text data, when the display time point of the next subtitle text data is reached, the next subtitle text data is displayed at the target position of the image subtitle data with the target size.

[0048] In some embodiments, the controller performs the step of displaying the subtitle text data at the target position, and is specifically configured as follows:

[0049] Obtaining the playback type of the target media asset data, wherein the playback type includes an application playback type and a player playback type;

[0050] When the playback type is an application playback type, the subtitle text data is displayed at the target position according to the subtitle display mode preset by the application;

[0051] When the play type is a player play type, the image subtitle data is converted into a player format, and the subtitle text data corresponding to the player format is displayed at the target position.

[0052] The above technical solution has the following advantages or beneficial effects: according to different playback types, subtitle text data is displayed in different display modes, thereby improving the adaptability of displaying image subtitle data.

[0053] In a second aspect, the present application provides a subtitle display method, which is applied to the display device provided in the first aspect, and the method includes:

[0054] In response to the subtitle display instruction, the target media data is parsed to obtain image subtitle data of the target media data and the video size of the target media data, wherein the image subtitle data includes image data set to be transparent and subtitle text data embedded in the image data;

[0055] Acquire the initial position of the subtitle text data in the image data and the first size of the subtitle text data, wherein the first size is used to indicate the set size of the subtitle text data in an editing state;

[0056] Calculating a first size ratio of the video size and the image size of the image subtitle data;

[0057] Calculating a second size of the subtitle text data when displayed in the target media asset data according to the first size ratio and the first size, and determining a first position of the subtitle text data when displayed in the target media asset data according to the initial position, so as to obtain updated image subtitle data;

[0058] Calculating a second size ratio between a screen size of the display device and a size of the video;

[0059] calculating a target size of the subtitle text data when displayed on the user interface according to the second size ratio and the second size, and determining a target position of the subtitle text data when displayed on the user interface according to the first position;

[0060] The subtitle text data is displayed at the target position according to the target size.

[0061] It can be seen from the above technical solutions that the present application provides a display device and a subtitle display method, wherein the method calculates a second size according to the first size of the subtitle text data in response to a subtitle display instruction, according to a first size ratio calculated according to the image size of the image subtitle data and the video size, and calculates a target size according to the second size of the subtitle text data according to a second size ratio calculated according to the screen size of the display device and the video size, thereby displaying the subtitle text data at a target position according to the target size during display of the image subtitle data. The present application converts the subtitle text data in the image subtitle data according to the display size and position in the video, and the display size and position in the screen, respectively, through two ratio conversions, thereby improving the accuracy of displaying the subtitle text data in the image subtitle data. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0063] Figure 1 A schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application;

[0064] Figure 2 A schematic diagram of the hardware configuration of a display device provided in some embodiments of the present application;

[0065] Figure 3 A schematic diagram of software configuration of a display device provided in some embodiments of the present application;

[0066] Figure 4 A flowchart of a display device performing subtitle display according to some embodiments of the present application;

[0067] Figure 5 A timing diagram of a display device performing subtitle display according to some embodiments of the present application;

[0068] Figure 6 A schematic diagram of displaying image subtitle data on a display device provided in some embodiments of the present application;

[0069] Figure 7 A flow chart of calculating a first size ratio for a display device provided in some embodiments of the present application;

[0070] Figure 8 A schematic diagram of a display device according to some embodiments of the present application determining a first position according to a first size ratio;

[0071] Fig. 9 A flow chart of calculating a second size ratio for a display device provided in some embodiments of the present application;

[0072] Fig.10 A schematic diagram of a screen in which a display device provided in some embodiments of the present application displays subtitles in different languages;

[0073] Fig.11 A flowchart of adjusting stacked subtitles on a display device provided in some embodiments of the present application;

[0074] Fig.12 A flowchart of clearing image subtitle data for a display device provided in some embodiments of the present application;

[0075] Fig.13 A flowchart of a display device displaying subtitle data at a display time point provided in some embodiments of the present application;

[0076] Fig.14 A flowchart of a display device displaying subtitle text data according to the playback type provided in some embodiments of the present application. DETAILED DESCRIPTION

[0077] The following embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following embodiments do not represent all implementations consistent with the present application. They are only examples of systems and methods consistent with some aspects of the present application as detailed in the claims.

[0078] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0079] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.

[0080] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0081] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0082] In the embodiment of the present application, the display device 200 generally refers to a device with image display and data processing capabilities. For example, the display device 200 includes but is not limited to a smart TV, a mobile terminal, a computer, a monitor, an advertising screen, a wearable device, a virtual reality device, an augmented reality device, etc.

[0083] Figure 1 This is a schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application. Figure 1 As shown in FIG. 1 , a user can operate the display device 200 through touch operation, the mobile terminal 300 and the control device 100. The control device 100 is used to receive operation instructions input by the user and convert the operation instructions into control instructions that can be recognized and responded to by the display device 200. For example, the control device 100 can be a remote controller, a stylus pen, a handle, etc.

[0084] The mobile terminal 300 can be used as a control device for performing human-computer interaction between the user and the display device 200. The mobile terminal 300 can also be used as a communication device for establishing a communication connection with the display device 200 and performing data interaction. In some embodiments, the mobile terminal 300 can install software applications with the display device 200, and achieve connection and communication through a network communication protocol to achieve the purpose of one-to-one control operation and data communication. The audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 to achieve a synchronous display function.

[0085] In some embodiments, the mobile terminal 300 or other electronic devices may also simulate the functions of the control device 100 by running an application program for controlling the display device 200 .

[0086] like Figure 1 As also shown in FIG. 4 , the display device 200 also communicates data with the server 400 through various communication methods. The display device 200 may be allowed to communicate and connect through a local area network (LAN), a wireless local area network (WLAN), and other networks.

[0087] The display device 200 may provide a broadcast receiving television function, and may also additionally provide an intelligent network television function with a computer support function, including but not limited to network television, smart television, Internet Protocol television (IPTV), and the like.

[0088] Figure 2 Some embodiments of the present application provide Figure 1 2 is a block diagram of the hardware configuration of the display device 200.

[0089] In some embodiments, the display device 200 may include at least one of a tuner 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface.

[0090] In some embodiments, the detector 230 is used to collect signals of the external environment or external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.

[0091] In some embodiments, the display 260 includes a display function component for presenting a picture, and a driving component for driving an image display. The display 260 is used to receive an image signal output from the controller 250 for display. For example, the display 260 can be used to display video content, image content, and components of a menu control interface and a user control UI interface.

[0092] In some embodiments, the communication device 220 is a component for communicating with an external device or server 400 according to various communication protocol types. The display device 200 may be provided with a plurality of communication devices 220 according to different supported communication modes. For example, when the display device 200 supports wireless network communication, the display device 200 may be provided with a communication device 220 including a WiFi function. When the display device 200 supports Bluetooth connection communication, the display device 200 needs to be provided with a communication device 220 including a Bluetooth function.

[0093] The communication device 220 can enable the display device 200 to communicate with the external device or server 400 by wireless or wired connection. Among them, the wired connection can connect the display device 200 with the external device through components such as data cables and interfaces. The wireless connection can connect the display device 200 with the external device through wireless signals or wireless networks. The display device 200 can establish a connection relationship with the external device directly, or indirectly establish a connection relationship through a gateway, a router, a connection device, etc.

[0094] In some embodiments, the controller 250 may include at least one of a central processing unit, a video processor, an audio processor, a graphics processor, and a power processor, and a first interface to an nth interface for input / output. The controller 250 controls the operation of the display device and responds to the user's operation through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200.

[0095] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.

[0096] In some embodiments, the user may input a user command through a graphical user interface (GUI) displayed on the display 260 , and the user input interface receives the user input command through the graphical user interface (GUI).

[0097] In some embodiments, the audio output device 270 may be a local speaker of the display device 200, or may be an external audio output device of the display device 200. In particular, for the external audio output device of the display device 200, the display device 200 may also be provided with an external audio output terminal, and the audio output device may be connected to the display device 200 through the external audio output terminal to output the sound of the display device 200.

[0098] In some embodiments, the user input interface 280 may be used to receive instructions from a user.

[0099] In order to perform user interaction, in some embodiments, the display device 200 may run an operating system. The operating system is a computer program for managing and controlling hardware resources and software resources in the display device 200. The operating system can control the display device to provide a user interface, for example, the operating system can directly control the display device to provide a user interface, or can provide a user interface by running an application program. The operating system also allows the user to interact with the display device 200.

[0100] It should be noted that the operating system may be a native operating system based on a specific operating platform, or a third-party operating system deeply customized based on a specific operating platform, or an independent operating system specially developed for the display device.

[0101] The operating system can be divided into different modules or layers according to the functions implemented, for example Figure 3 As shown, in some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the system library layer and the kernel layer.

[0102] In some embodiments, the application layer is used to provide services and interfaces for applications so that the display device 200 can run applications and interact with users based on the applications. At least one application can be run in the application layer, and these applications can be window programs, system settings programs, clock programs, etc. that come with the operating system; they can also be applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.

[0103] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Through the API interface, applications can access system resources and obtain system services during execution.

[0104] like Figure 3As shown, in the embodiment of the present application, the application framework layer includes a view system, managers, content providers, etc., wherein the view system can design and implement the interface and interaction of the application, and the view system includes lists, grids, text boxes, buttons, etc. The manager includes at least one of the following modules: an activity manager for interacting with all activities running in the system; a location manager for providing system services or applications with access to system location services; a package manager for retrieving various information related to the application package currently installed on the device; a notification manager for controlling the display and clearing of notification messages; and a window manager for managing icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.

[0105] In some embodiments, the activity manager is used to manage the life cycle of each application and the usual navigation back function, such as controlling the exit, opening, and back of the application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling the display window changes, for example, reducing the display window, shaking the display, distorting the display, etc.

[0106] In some embodiments, the system runtime layer can provide support for the framework layer. When the framework layer is used, the operating system will run the instruction library contained in the system runtime layer, such as the C / C++ instruction library, to implement the functions to be implemented by the framework layer.

[0107] In some embodiments, the kernel layer is a functional layer between the hardware and software of the display device 200. The kernel layer can implement functions such as hardware abstraction, multitasking, and memory management. Figure 3 As shown, the kernel layer may be configured with hardware drivers, and the drivers included in the kernel layer may be at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.

[0108] It should be noted that the above example is only a simple division of the operating system functions and does not constitute a limitation on the specific operating system form of the display device 200 in the embodiment of the present application. Depending on factors such as the function of the display device and the type of operating system, the number of levels and specific level types contained in the operating system may be expressed in other forms.

[0109] The display device 200 can perform different application functions based on the installed multiple application programs, such as browsing web pages, listening to songs, playing videos, etc. For the video playing function, the display device 200 can display a media interface after running the video playing program, wherein the media interface can include control icons corresponding to multiple media data, so that the user can generate a selection instruction according to the control icon. The display device 200 can play the corresponding media data in response to the selection instruction input by the user to display the media screen corresponding to the media data.

[0110] The display device 200 may include a communication device 220, which may acquire target media asset data in response to the selection instruction, establish a communication connection with the server 400 through the communication device 220, and send a resource request for the target media asset data to the server 400. The server 400 may send the target media asset data to the display device 200 in response to the resource request, so that the display device 200 plays the target media asset data, thereby completing the interactive process of video playback.

[0111] When the video content corresponding to the target media data includes content of a person speaking, in order to facilitate the user to understand the meaning of the person's speech, the display device 200 can parse the subtitle data in the target media data, and the subtitle data includes text data corresponding to the content of the person speaking. The display device 200 can display the media picture corresponding to the target media data and synchronously display the subtitle data in the media picture, so that the user can understand the content of the person's speech in the target media data through the displayed subtitle data while watching the media picture.

[0112] Subtitle data may include two types, namely text subtitle data and image subtitle data, wherein text subtitle data is subtitle data displayed in the form of text on the upper layer of the target media data corresponding screen, and image subtitle data is subtitle data displayed in the form of image on the upper layer of the target media data corresponding screen, including transparent image data and subtitle text data embedded in the image data. In the process of displaying image subtitle data, the image subtitle data is covered on the upper layer of the media screen, and the user can view the media screen through the transparent area outside the subtitle text data, so as to achieve the effect of viewing the media screen and subtitle data at the same time.

[0113] When editing the image subtitle data, it needs to be edited according to the size of the editing device, and when playing, it needs to be displayed according to the size of the playback device. When the size of the editing device is different from the size of the playback device, when the playback device plays the media video, the text data in the image subtitle data will not be displayed according to the pre-edited subtitle position, resulting in an error in the display position of the image subtitle data.

[0114] In order to solve the problem of display position cropping of image subtitle data, the present application provides a display device 200, including a display 260 and a controller 250, wherein the display 260 is configured to display a user interface, and the controller 250 is configured to execute a subtitle display method. Figure 4 A flowchart of a display device performing subtitle display according to an embodiment of the present application. Figure 5 The timing diagram of the display device according to the embodiment of the present application performing subtitle display. Figure 5 The subtitle display is performed with the timing relationship shown. Figure 4 and Figure 5 , the method comprises the following contents:

[0115] S100: In response to a subtitle display instruction, parse target media data to obtain image subtitle data of the target media data and a video size of the target media data.

[0116] During the process of the display device 200 playing the target media data, the user may input a subtitle display instruction to the display device 200. The display device 200 may parse the target media data in response to the subtitle display instruction to obtain the image subtitle data in the target media data. Figure 6 As shown, the image subtitle data includes image data set to be transparent and subtitle text data embedded in the image data. There are many ways to embed the subtitle text data into the image data, for example, overlaying the subtitle text data at a specified position of the image data to splice the upper and lower layers of data.

[0117] S200: Acquire the initial position of the subtitle text data in the image data and the first size of the subtitle text data.

[0118] The image subtitle data needs to be edited in advance on an editing device, which may be another device other than the display device 200. After the editing is completed, the editing device can integrate the edited image subtitle data into the target media data, so that when the display device 200 plays the target media data, it can parse the target media data to obtain the image subtitle data and display the subtitles.

[0119] In the editing state, the editing device can set the initial position and first size of the subtitle text data in the image subtitle data, and the first size is used to indicate the set size of the subtitle text data in the editing state, wherein the first size can be indicated by the font size, for example, size 3, size 4, size 4, size 5, etc., or can be indicated by a preset size state, for example, small font, medium font, large font, etc., and the embodiment of the present application does not impose specific restrictions on the setting of the text size. The initial position is used to indicate the subtitle position of the subtitle text data in the image subtitle data in the editing state.

[0120] The size of the image subtitle data is the same as the device size of the editing device that edits the image subtitle data. When the device size of the editing device is different from the video size of the target media data, during the process of the display device 200 playing the target media data, the display position and display size of the subtitle text data in the image subtitle data will have a display deviation based on the video size, causing the display position of the subtitle text data in the image subtitle data to deviate from the initial position, and causing the display size of the subtitle text data in the image subtitle data to deviate from the first size. For example, when the resolution corresponding to the video size is 1080P, and the corresponding resolution of the editing device is 480P, when the display device 200 displays the target media data, the image subtitle data will be displayed according to the video size, that is, the resolution is 1080P. Since the display resolution is different from the resolution of the editing device, when the target media data is played, when the subtitle text data is displayed at a resolution of 1080P, a display deviation will occur.

[0121] To this end, the display device 200 needs to obtain the initial position of the subtitle text data in the image data and the first size of the subtitle text data, so as to adjust the initial position and the first size later to improve the accuracy of the subtitle text data display. It should be understood that the image subtitle data is a subtitle data in the form of an image, and for this reason, the subtitle text data should always be displayed in the image area corresponding to the image data.

[0122] It should be noted that, in the editing state, the editing device can also add other data besides the subtitle text data to the image subtitle data, such as icon data, non-subtitle text data or bullet screen data, etc. The embedding method of these data can be the same as that of the subtitle text data, or other embedding methods can be adopted. This embodiment does not specifically limit the data content that can be added during the editing process.

[0123] S300: Calculate a first size ratio between the video size and the image size of the image subtitle data.

[0124] In order to adjust the display position and display size of the subtitle text data, the display device 200 can calculate a first size ratio of the video size to the image size of the image subtitle data, and then perform a first adjustment on the initial position and first size of the subtitle text data in the image subtitle data according to the first size ratio.

[0125] In some embodiments, the video size includes the horizontal size of the video and the vertical size of the video, and the image size includes the horizontal size of the image and the vertical size of the image. Therefore, when calculating the first size ratio, the display device 200 may calculate it in the horizontal and vertical directions respectively. Figure 7 As shown, the display device 200 can calculate a first horizontal ratio of a video horizontal dimension of the video size to an image horizontal dimension of the image size, thereby adjusting the display position and display size of the subtitle text data in the horizontal direction according to the first horizontal ratio. The display device 200 can also calculate a first vertical ratio of a video vertical dimension of the video size to an image vertical dimension of the image size, thereby adjusting the display position and display size of the subtitle text data in the vertical direction according to the first vertical ratio.

[0126] It should be understood that the display device 200 provided in the present application does not consider the order of calculation when calculating the first horizontal ratio and the first vertical ratio, that is, the first horizontal ratio can be calculated first and then the first vertical ratio, or the first vertical ratio can be calculated first and then the first horizontal ratio, or the first horizontal ratio and the first vertical ratio can be calculated at the same time.

[0127] After calculating the first horizontal ratio and the first vertical ratio, the display device 200 can generate a first size ratio according to the first horizontal ratio and the first vertical ratio, so as to adjust the position and size of the subtitle text data when the size of the editing device is different from the size of the playback device.

[0128] S400: Calculate a second size of the subtitle text data when displayed in the target media asset data according to the first size ratio and the first size, and determine a first position of the subtitle text data when displayed in the target media asset data according to the initial position to obtain updated image subtitle data.

[0129] After the display device 200 calculates the first size ratio, it can adjust the display position and display size of the subtitle text data in the image subtitle data according to the first size ratio. To this end, the display device 200 can calculate the second size of the subtitle text data when it is displayed in the target media asset data according to the first size ratio and the first size. It should be understood that in the above calculation process, the subtitle text data should be kept within the area displayed by the image subtitle data.

[0130] When the first size ratio is less than 1, it means that the video size is relatively smaller than the image size, therefore, it is necessary to adaptively reduce the size of the subtitle text data in the image subtitle data, that is, the second size is larger than the first size. When the first size ratio is greater than 1, it means that the video size is relatively larger than the image size, therefore, it is necessary to adaptively increase the size of the subtitle text data in the image subtitle data, that is, the second size is smaller than the first size.

[0131] After adjusting the size of the subtitle text data, the display position of the subtitle text data also needs to be adjusted, that is, the display position of the subtitle text data after adjustment is determined according to the first size ratio. In order to distinguish it from the initial position of the subtitle text data, the display position of the subtitle text data in the target media asset data is referred to as the first position in this embodiment.

[0132] In some embodiments, when the display device 200 adjusts the display size of the subtitle text data in the image subtitle data according to the first size ratio, it can be adjusted horizontally and vertically respectively. The first size is used to represent the size of the display area corresponding to the subtitle text data. The display area corresponding to the subtitle text data can be a circumscribed rectangular area. For this purpose, the first size can include length and width, that is, a first longitudinal size and a first transverse size, the first longitudinal size corresponds to the width size, and the first transverse size corresponds to the length size.

[0133] The display device 200 can update the first horizontal dimension to the second horizontal dimension according to the first horizontal ratio. The second horizontal dimension can be the product of the first horizontal line dimension and the first horizontal ratio. If the first horizontal ratio is less than 1, the second horizontal dimension is less than the first horizontal line dimension, that is, the subtitle text data is reduced in the horizontal direction. If the second horizontal ratio is greater than 1, the second horizontal dimension is greater than the first horizontal dimension, that is, the subtitle text data is enlarged in the horizontal direction. The display device 200 can also update the first vertical dimension to the second vertical dimension according to the first vertical ratio. The second vertical dimension can be the product of the first horizontal line dimension and the first vertical ratio. If the first vertical ratio is less than 1, the second vertical dimension is less than the first horizontal line dimension, that is, the subtitle text data is reduced in the vertical direction. If the second vertical ratio is greater than 1, the second vertical dimension is greater than the first vertical dimension, that is, the subtitle text data is enlarged in the vertical direction. The display device 200 can generate a second size according to the second horizontal dimension and the second vertical dimension.

[0134] It should be understood that the present embodiment does not show the order of adjusting the first horizontal dimension and the first vertical dimension, and the first horizontal dimension and the first vertical dimension can be adjusted in sequence, that is, the first horizontal dimension is adjusted first, and then the first vertical dimension is adjusted, or the first vertical dimension is adjusted first, and then the first horizontal dimension is adjusted. The display device 200 can also adjust the first horizontal dimension and the first vertical dimension at the same time.

[0135] In some embodiments, when the display device 200 determines the first position of the subtitle text data when it is displayed in the target media asset data according to the initial position of the subtitle text data, the position can also be adjusted by the first size ratio, such as Figure 8 As shown, the horizontal position of the initial position can be adjusted according to the first horizontal ratio to obtain the adjusted subtitle position, and then the vertical position of the adjusted subtitle position can be adjusted according to the first vertical ratio to obtain the first position. Figure 8 The display difference between the initial position and the first position is only used to illustrate the process of position change. In actual applications, the display device 200 can make a small position adjustment based on other factors such as the content length of the subtitle text data.

[0136] S500: Calculate a second size ratio between the screen size of the display device and the size of the video.

[0137] The display device 200 needs to display the target media data through the display 260. For this purpose, the display device 200 also needs to perform a conversion from the video size to the screen size of the display device 200 on the image subtitle data. For this purpose, Fig. 9 As shown, the display device 200 can obtain the screen size of the display device 200, and calculate the second size ratio of the screen size and the video size. The method for calculating the second size ratio can refer to the method for calculating the first size ratio. The screen size can include a horizontal screen size and a vertical screen size, so the display device 200 can calculate the second horizontal ratio in the horizontal direction through the horizontal screen size and the horizontal video size. In the vertical direction, the second vertical ratio can be calculated through the vertical screen size and the vertical video size, so as to generate a second size ratio according to the second horizontal ratio and the second vertical ratio.

[0138] S600: Calculating a target size of the subtitle text data when displayed on the user interface according to the second size ratio and the second size, and determining a target position of the subtitle text data when displayed on the user interface according to the first position.

[0139] The subtitle text data displayed in the user interface needs to be based on the screen size of the display device 200. Therefore, in order to obtain the size of the subtitle text data when it is displayed in the user interface, the display device 200 can calculate the target size of the subtitle text data in the user interface based on the second size ratio and the second size.

[0140] After acquiring the target size, display device 200 may calculate the target position of the subtitle text data when it is finally displayed in the user interface of display device 200 based on the second size ratio and the first position of the subtitle text data in the target media asset data.

[0141] In some embodiments, the display device 200 may adjust the position of the second position in the horizontal direction according to the second horizontal ratio to obtain the adjusted first position, and then perform a vertical adjustment on the adjusted second position according to the second vertical ratio to obtain the second position.

[0142] S700: Displaying the subtitle text data at the target position according to the target size.

[0143] After determining the target size and the target position, the display device 200 can display the subtitle text data at the target position of the image subtitle data according to the target size during the display of the image subtitle data, thereby improving the accuracy of subtitle display.

[0144] When obtaining subtitles, the image subtitle data needs to be parsed in sequence. For target media data with subtitles in multiple languages, the display device 200 can parse and obtain image subtitle data in different languages. When the user has a display requirement for subtitles in multiple languages, the display device 200 will display multiple image subtitle data in different languages ​​at the same time.

[0145] Different image subtitle data can be displayed simultaneously by overlapping and superimposing them. For example, Chinese image subtitle data and English image subtitle data can be superimposed and overlaid on the upper layer of the media asset screen, so that English subtitles and Chinese subtitles can be displayed simultaneously during the display process. However, since different image subtitle data are produced in different ways, the same parsing method may cause errors in the display position of image subtitles, resulting in the stacking of image subtitle data in different languages ​​when displayed. Fig.10 As shown, the upper layer of the display screen includes a layer of image subtitle data in English and a layer of image subtitle data in Chinese. The positions of the subtitle text data in the two image subtitle data are the same. When the two image subtitle data are simultaneously overlaid on the media asset screen, the English subtitle data and the Chinese subtitle data will be stacked, affecting the user's viewing of subtitles.

[0146] Based on this, the display device 200 can obtain the target language information of the subtitle text data before displaying the subtitle text data at the target position. In the process of parsing the target media asset data, if there is other image subtitle data with different language information from the target, the intersection area of ​​the subtitle position of the other image subtitle data and the target position is detected. Fig.11 As shown, when the target language information is Chinese, and the display device 200 simultaneously detects languages ​​other than Chinese, such as English subtitle data, the display device 200 can determine the subtitle position of the subtitle text data in the image subtitle data corresponding to the English language, thereby detecting the intersection area of ​​the subtitle position of the English subtitle data and the target position to be displayed of the Chinese subtitle data.

[0147] If the intersection area is not 0, it means that the subtitle position of the English subtitle data intersects with the target position of the Chinese subtitle data, and there is mutual occlusion between the subtitles. For this reason, it is necessary to move the Chinese subtitle data or the English subtitle data. Taking the movement of Chinese subtitle data as an example, since the content volume of the subtitle text data is not fixed, for subtitle text data with longer text, it will occupy a larger display area in the horizontal display direction. In order to avoid occlusion of long text in the horizontal direction, the display device 200 can move the Chinese subtitle data in the longitudinal direction, in the direction of the subtitle position away from the English subtitle data, thereby gradually reducing the intersection area between the Chinese subtitle data and the English subtitle data, thereby avoiding and reducing the mutual occlusion between subtitles in different languages.

[0148] In some embodiments, when the image size and the video size are in a non-integral ratio, the calculated first size ratio is also in a non-integral ratio, that is, the video size and the image size are not in equal ratio, for example, when the video size is 16:9 and the image size is 4:3, the ratio between the two is in a non-integral ratio. Therefore, when the first size ratio is in a non-integral ratio, it is necessary to perform scaling processing on the image size or the video size to determine the first position.

[0149] In the first case, the display device 200 can scale the target media data according to the image size of the image subtitle data so that the video size of the target media data is the same as the image size. During the scaling of the target media data, the size and position of the subtitle text data in the image subtitle data remain unchanged. At this time, the initial position of the subtitle text data is the first position, and the display device 200 can update the initial position to the first position.

[0150] In the second case, the display device 200 can keep the video size and the image size unchanged, and move the relatively smaller data to the inside of the other data, and display them in a centered manner. For example, when the video size is smaller than the image size, the display device 200 moves the media asset screen corresponding to the target media asset data to the inside of the screen corresponding to the image subtitle data, and displays it in the center, thereby determining the first position according to the position of the subtitle text data when it is displayed in the center. When the video size is larger than the image size, the display device 200 moves the screen corresponding to the image subtitle data to the inside of the media asset screen corresponding to the target media asset data, thereby determining the first position of the subtitle text data.

[0151] In some embodiments, for the same language, multiple frames of image subtitle data may be included, and the image subtitle data may be displayed according to the speaking time of the character in the target media asset data. For example, if the duration of a character in the target media asset data speaking a line is 5 seconds, the display device 200 will display the image subtitle data according to the display duration of 5 seconds. When the character speaks the next line, the display device 200 will switch the image subtitle data to display the image subtitle data corresponding to the next line.

[0152] However, when the interval between lines of the same character or different characters is long, the image subtitle data corresponding to the interval between lines will be treated as empty subtitle data, that is, no new subtitle data will be replaced or updated. Therefore, the display device 200 will continue to display the current image subtitle data until the character speaks new lines in the target media data.

[0153] In order to solve the problem that the characters in the target media data do not speak the lines, but the image subtitle data continues to display, such as Fig.12 As shown, the display device 200 can obtain the display threshold of the image subtitle data. The display threshold is the length of time that the image subtitle data should be displayed, and the display threshold can be set according to the length of time the character in the target media asset data speaks the lines. Lines of different lengths have different corresponding display thresholds. For example, for short lines, a relatively short display threshold can be set, such as the line "Hello", a display threshold of 1 second can be set. For long lines, a relatively long display threshold can be set, such as the line "The weather is nice today, let's go play basketball later", a display threshold of 3-5 seconds can be set.

[0154] It should be noted that the factors for setting the display threshold can also be combined with the speaking speed of the characters. For example, for long text lines, if the characters in the target media data speak at a fast speed, the duration of the long text lines may be shorter than the duration of other short text lines with normal or slow speaking speeds.

[0155] The display device 200 can record the display duration of the image subtitle data, and the display duration can be counted after the display device 200 switches to the image subtitle data. When the display duration is equal to the display threshold, the application layer can generate an image subtitle end instruction, and the display device 200 can receive the image subtitle end instruction sent by the application layer, and clear the subtitle text data in the image subtitle data in response to the image subtitle end instruction. In this way, when the character does not speak the lines in the target media asset data, the display device 200 can clear the image subtitle data, thereby improving the user's experience of watching subtitles.

[0156] In some embodiments, for the case where subtitle text data corresponding to multiple languages ​​are displayed simultaneously, subtitle text data corresponding to multiple languages ​​can be displayed simultaneously in the same image subtitle data. In this way, when switching subtitles between different lines, switching one set of image subtitle data can simultaneously update the subtitle text data in multiple languages, thereby improving the efficiency of subtitle updating and saving resources occupied by image subtitle data.

[0157] In some embodiments, when displaying the current image subtitle data, the display device 200 can also obtain the next subtitle text data and the display time point of the next subtitle text data based on the current subtitle text data, and the display time point corresponds to the time point when the character in the target media asset data speaks next time. Fig.13 As shown, after the current character finishes speaking, the display device 200 responds to the image subtitle end instruction, and after clearing the subtitle text data, detects the playback progress of the target media data. When the playback progress of the target media data reaches the display time point, the display 260 is controlled to display the next subtitle text data at the target position of the image subtitle data, thereby realizing the switching of different subtitle text data in the image subtitle data.

[0158] In some embodiments, the image subtitle data may also be displayed in different ways according to the playback type of the target media asset data. To this end, the display device 200 may obtain the playback type of the target media asset data, such as Fig.14 As shown, the play type includes an application play type and a player play type. The application play type is a type of play through a video playback application. After the display device 200 parses and obtains the image subtitle data, after calculating the target position and target size, it can send the image subtitle data, the target position and the target size to the application layer. The application layer will call the display program preset in the video playback application. The display program may include the subtitle display mode preset by the video playback application. The display device 200 can use the video playback application as the playback medium, according to the playback progress of the target media data and the subtitle display mode, display the image subtitle data according to the target position and target size, so as to intelligently display the subtitles and improve the display efficiency and accuracy of the subtitles. The player play type is to directly play the target media data according to the player program of the display device 200. However, the playback format of some target media data is different from the initial playback format of the player. The display device 200 needs to perform format conversion on the target media data. During the conversion process, the display device 200 can synchronously perform format conversion on the image subtitle data, so that when the subtitle format of the image subtitle data is different from the player format, the format of the image subtitle data is converted to the player format. After the format conversion is completed, the subtitle text data corresponding to the player format can be displayed at the target location.

[0159] The present application also provides a subtitle display method, which is applied to a display device 200. To facilitate the execution of the method, the display device 200 should at least include a display 260 and a controller 250. The method includes:

[0160] S100: In response to a subtitle display instruction, parsing target media data to obtain image subtitle data of the target media data and a video size of the target media data, wherein the image subtitle data includes image data set to be transparent and subtitle text data embedded in the image data;

[0161] S200: Acquire the initial position of the subtitle text data in the image data and the first size of the subtitle text data.

[0162] The first size is used to indicate the set size of the subtitle text data in an editing state.

[0163] S300: Calculate a first size ratio between the video size and the image size of the image subtitle data.

[0164] S400: Calculate a second size of the subtitle text data when displayed in the target media asset data according to the first size ratio and the first size, and determine a first position of the subtitle text data when displayed in the target media asset data according to the initial position to obtain updated image subtitle data.

[0165] S500: Calculate a second size ratio between the screen size of the display device and the size of the video.

[0166] S600: Calculating a target size of the subtitle text data when displayed on the user interface according to the second size ratio and the second size, and determining a target position of the subtitle text data when displayed on the user interface according to the first position.

[0167] S700: Displaying the subtitle text data at the target position according to the target size.

[0168] It can be seen from the above technical solutions that the present application provides a display device and a subtitle display method, wherein the method calculates a second size according to the first size of the subtitle text data in response to a subtitle display instruction, according to a first size ratio calculated according to the image size of the image subtitle data and the video size, and calculates a target size according to the second size of the subtitle text data according to a second size ratio calculated according to the screen size of the display device and the video size, thereby displaying the subtitle text data at a target position according to the target size during display of the image subtitle data. The present application converts the subtitle text data in the image subtitle data according to the display size and position in the video, and the display size and position in the screen, respectively, through two ratio conversions, thereby improving the accuracy of displaying the subtitle text data in the image subtitle data.

[0169] The same and similar parts between the various embodiments in this specification can be referenced to each other and will not be described again here.

[0170] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention or certain parts of the embodiments.

[0171] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0172] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

Claims

1. A display device, characterized in that: include: a display configured to display a user interface; The controller is configured as: In response to the subtitle display instruction, the target media data is parsed to obtain image subtitle data of the target media data and the video size of the target media data, wherein the image subtitle data includes image data set to be transparent and subtitle text data embedded in the image data; Acquire the initial position of the subtitle text data in the image data and the first size of the subtitle text data, wherein the first size is used to indicate the set size of the subtitle text data in an editing state; Calculating a first size ratio of the video size and the image size of the image subtitle data; Calculating a second size of the subtitle text data when displayed in the target media asset data according to the first size ratio and the first size, and determining a first position of the subtitle text data when displayed in the target media asset data according to the initial position, so as to obtain updated image subtitle data; Calculating a second size ratio between a screen size of the display device and a size of the video; calculating a target size of the subtitle text data when displayed on the user interface according to the second size ratio and the second size, and determining a target position of the subtitle text data when displayed on the user interface according to the first position; The subtitle text data is displayed at the target position according to the target size.

2. The display device according to claim 1, characterized in that Before the controller executes the step of displaying the subtitle text data at the target position according to the target size, the controller is further configured to: Acquire target language information of the subtitle text data; If there is other image subtitle data with different language information from the target language information, detecting the intersection area between the subtitle position of the other image subtitle data and the target position; If the intersection area is not 0, the subtitle text data is moved in a longitudinal direction in a direction away from the subtitle position of the other image subtitle data.

3. The display device according to claim 1, characterized in that The controller performs the step of calculating a first size ratio between the video size and the image size of the image subtitle data, and is specifically configured as follows: Calculate a first horizontal ratio of a video horizontal dimension of the video size to an image horizontal dimension of the image size; Calculate a first longitudinal ratio of a video longitudinal dimension of the video size to an image longitudinal dimension of the image size; The first size ratio is generated according to the first horizontal ratio and the first vertical ratio.

4. The display device according to claim 3, characterized in that The first size includes a first horizontal size and a first vertical size, and the controller performs a step of calculating a second size of the subtitle text data when displayed in the target media asset data according to the first size ratio and the first size, and is configured as follows: updating the first horizontal dimension to a second horizontal dimension according to the first horizontal ratio; updating the first longitudinal dimension to a second longitudinal dimension according to the first longitudinal ratio; A second size is generated based on the second transverse size and the second longitudinal size.

5. The display device according to claim 3, characterized in that The controller performs the step of determining the first position of the subtitle text data when it is displayed in the target media asset data according to the initial position, and is specifically configured as follows: adjusting the horizontal position of the initial position according to the first horizontal ratio to obtain an adjusted subtitle position; The vertical position of the adjusted subtitle position is adjusted according to the first vertical ratio to obtain a first position.

6. The display device according to claim 1, characterized in that If the first size ratio is a non-integer ratio, the controller is further configured to: Scaling the target media asset data according to the image size of the image subtitle data; In the target media asset data, the initial position is updated to the first position.

7. The display device according to claim 1, characterized in that After the controller executes the step of displaying the subtitle text data at the target position, the controller is further configured to: Obtaining a display threshold of the image subtitle data; Recording the display duration of the image subtitle data; When the display duration is equal to the display threshold, receiving an image subtitle end instruction sent by the application layer; In response to the image subtitle end instruction, the subtitle text data in the image subtitle data is cleared.

8. The display device according to claim 7, characterized in that After the controller executes the step of clearing the subtitle text data in the image subtitle data, the controller is further configured to: Acquire the next subtitle text data of the subtitle text data and the display time point of the next subtitle text data; After clearing the subtitle text data, when the playback progress of the target media asset data reaches the display time point, the display is controlled to display the next subtitle text data at the target position of the image subtitle data.

9. The display device according to claim 1, characterized in that: The controller performs the step of displaying the subtitle text data at the target position, and is specifically configured as follows: Obtaining the playback type of the target media asset data, wherein the playback type includes an application playback type and a player playback type; When the playback type is an application playback type, the subtitle text data is displayed at the target position according to the subtitle display mode preset by the application; When the play type is a player play type, the image subtitle data is converted into a player format, and the subtitle text data corresponding to the player format is displayed at the target position.

10. A subtitle display method, characterized in that: Applied to a display device, the display device includes a display and a controller, the display is configured to display a user interface, the method includes: In response to the subtitle display instruction, the target media data is parsed to obtain image subtitle data of the target media data and the video size of the target media data, wherein the image subtitle data includes image data set to be transparent and subtitle text data embedded in the image data; Acquire the initial position of the subtitle text data in the image data and the first size of the subtitle text data, wherein the first size is used to indicate the set size of the subtitle text data in an editing state; Calculating a first size ratio of the video size and the image size of the image subtitle data; Calculating a second size of the subtitle text data when displayed in the target media asset data according to the first size ratio and the first size, and determining a first position of the subtitle text data when displayed in the target media asset data according to the initial position, so as to obtain updated image subtitle data; Calculating a second size ratio between a screen size of the display device and a size of the video; calculating a target size of the subtitle text data when displayed on the user interface according to the second size ratio and the second size, and determining a target position of the subtitle text data when displayed on the user interface according to the first position; The subtitle text data is displayed at the target position according to the target size.

Citation Information

Patent Citations

  • Video caption map generation method and apparatus

    CN107995440A

  • Subtitle display method and display equipment

    CN114007145A

  • Television receiver and method of adjusting vertical position

    JP2006287774A

  • Display device

    WO2023071349A1