Display device, subtitle data processing method and storage medium

By caching subtitle data in the display device and only caching new data when switching, the problem of subtitle data loss is solved, ensuring smooth subtitle switching and improving user experience.

CN114466219BActive Publication Date: 2024-10-18HISENSE VISUAL TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111394757.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-23
Publication Date
2024-10-18
Estimated Expiration
2041-11-23

AI Technical Summary

Technical Problem

During multi-subtitle video playback, when users frequently switch subtitle types, the existing technology causes subtitle data to be lost, making it impossible to switch back to the previous subtitle type within the subtitle display time.

Method used

By caching the selected subtitle data in the controller of the display device, only caching new data when switching to other subtitle data, and rendering directly from the cache when switching back to the original subtitle data, avoiding repeated caching and data loss.

Benefits of technology

It avoids data loss during subtitle switching, ensures that users can see the required subtitle type during video playback, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114466219B_ABST
    Figure CN114466219B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a display device, a subtitle data processing method and a storage medium, which are applied to the field of display technology to solve the problem of data loss caused by the lack of backup in the subtitle switching process in the prior art. The display device includes: a user input interface, which is configured to: receive user input; a controller, which is configured to: cache first subtitle data of a first type and render the first subtitle data; when receiving the first subtitle switching input, in response to the first subtitle switching input, cache second subtitle data and render the second subtitle data; when receiving the second subtitle switching input, in response to the second subtitle switching input, if the cached first subtitle data is detected, render and display the first subtitle data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of display technology, and in particular to a display device, a subtitle data processing method, and a storage medium. Background Art

[0002] In the multi-subtitle video playback technology, the subtitle display and subtitle type switching are controlled by a subtitle selector. Usually, each subtitle must be input into the subtitle selector and kept synchronized, but only one subtitle will be sent to the display module in the end to complete the synchronous display with the audio and video. In the prior art, the user switches the subtitle type through a switching instruction, and the selected subtitle will be sent to the display module for display; however, the prior art directly sends the selected subtitle to the display module, resulting in no subtitle data being sent to the display module after the user switches back to the previous subtitle type, resulting in no subtitle display for the audio and video during the subtitle display time. Summary of the invention

[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a display device, a subtitle data processing method and a storage medium, which can avoid the loss of subtitle data when the user frequently switches the subtitle type, so as to display the subtitles after the user switches the subtitle type within the subtitle display time, thereby meeting the user's subtitle switching needs.

[0004] In a first aspect, the present disclosure provides a display device, the display device comprising:

[0005] The user input interface is configured to: receive user input;

[0006] A controller is configured to: cache first subtitle data of a first type, and render the first subtitle data;

[0007] When a first subtitle switching input is received, in response to the first subtitle switching input, the second subtitle data is cached and the second subtitle data is rendered; the first subtitle switching input is used to indicate switching to display the second subtitle data of the second type;

[0008] When a second subtitle switching input is received, in response to the second subtitle switching input, if the cached first subtitle data is detected, the first subtitle data is rendered and displayed, and the second subtitle switching input is used to indicate switching to display the first subtitle data of the first type.

[0009] In some embodiments of the present disclosure, the controller is further configured to: delete the first subtitle data after the display of the first subtitle data ends.

[0010] In some embodiments of the present disclosure, the display device further includes:

[0011] The modem is configured to: decompress the original subtitle data and obtain multiple types of subtitle data in the original data;

[0012] The controller is specifically configured to: when receiving a subtitle selection input, cache the first subtitle data in response to the subtitle selection input, where the subtitle selection input is used to indicate that first subtitle data of a first type is selected from multiple types of subtitle data obtained from the modem.

[0013] In some embodiments of the present disclosure, the controller is specifically configured as follows:

[0014] Before the display end time of the first subtitle data, in response to a second subtitle switching input received by the user input interface, if the cached first subtitle data is detected, the first subtitle data is rendered and displayed.

[0015] In some embodiments of the present disclosure, the controller is specifically configured as follows:

[0016] After the display end time of the first subtitle data, in response to the second subtitle switching input, acquiring the next subtitle data after the first subtitle data from the first subtitle data of the first type;

[0017] Cache the next subtitle data, render and display the next subtitle data.

[0018] In some embodiments of the present disclosure, the controller is further configured to:

[0019] Obtain the first duration of the user's historical use of the first subtitle data;

[0020] The controller is specifically configured to: if the first duration is greater than a preset duration, cache the first subtitle data, and render the first subtitle data.

[0021] In some embodiments of the present disclosure, the controller is further configured to:

[0022] Acquire the first number of times the user uses the first subtitle data, and the total number of times the user uses all types of subtitle data;

[0023] The controller is specifically configured to: calculate a first ratio of the first number according to the first number and the total number;

[0024] If the first ratio is greater than the preset ratio, the first subtitle data is cached and rendered.

[0025] In a second aspect, the present disclosure provides a subtitle data processing method, comprising:

[0026] Receive user input;

[0027] caching first subtitle data of a first type, and rendering the first subtitle data;

[0028] When a first subtitle switching input is received, in response to the first subtitle switching input, the second subtitle data is cached and the second subtitle data is rendered, wherein the first subtitle switching input is used to indicate switching to display the second subtitle data of the second type;

[0029] When a second subtitle switching input is received, in response to the second subtitle switching input, if the cached first subtitle data is detected, the first subtitle data is rendered and displayed, and the second subtitle switching input is used to indicate switching to display the first subtitle data of the first type.

[0030] In some embodiments of the present disclosure, the method further includes:

[0031] After the display end time of the first subtitle data, the first subtitle data is deleted.

[0032] In some embodiments of the present disclosure, before caching the first subtitle data of the first type and rendering the first subtitle data of the first type, the method further includes:

[0033] Decompressing original subtitle data to obtain multiple types of subtitle data in the original data;

[0034] Cache first subtitle data of a first type, and render the first subtitle data, including:

[0035] When a subtitle selection input is received, first subtitle data is buffered in response to the subtitle selection input, the subtitle selection input being used to indicate selection of first subtitle data of a first type from among a plurality of types of subtitle data acquired by the modem.

[0036] In some embodiments of the present disclosure, when a second subtitle switching input is received, in response to the second subtitle switching input, if cached first subtitle data is detected, rendering and displaying the first subtitle data includes:

[0037] Before the display end time of the first subtitle data, in response to a second subtitle switching input received by the user input interface, if the cached first subtitle data is detected, the first subtitle data is rendered and displayed.

[0038] In some embodiments of the present disclosure, when a second subtitle switching input is received, in response to the second subtitle switching input, if cached first subtitle data is detected, rendering and displaying the first subtitle data includes:

[0039] After the display end time of the first subtitle data, in response to the second subtitle switching input, acquiring the next subtitle data after the first subtitle data from the first subtitle data of the first type;

[0040] Cache the next subtitle data, render and display the next subtitle data.

[0041] In some embodiments of the present disclosure, when a subtitle selection input is received, in response to the subtitle selection input, first subtitle data is cached, including:

[0042] Obtain the first duration of the user's historical use of the first subtitle data;

[0043] If the first duration is greater than the preset duration, the first subtitle data is cached and rendered.

[0044] In some embodiments of the present disclosure, when a subtitle selection input is received, in response to the subtitle selection input, first subtitle data is cached, including:

[0045] Acquire the first number of times the user uses the first subtitle data, and the total number of times the user uses all types of subtitle data;

[0046] According to the first number and the total number, calculate the first ratio of the first number;

[0047] If the first ratio is greater than the preset ratio, the first subtitle data is cached and rendered.

[0048] In a third aspect, the present disclosure provides a computer-readable storage medium, including: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the subtitle data processing method shown in the second aspect is implemented.

[0049] In a fourth aspect, the present disclosure provides a computer program product, characterized in that it includes: when the computer program product runs on a computer, it enables the computer to implement the subtitle data processing method shown in the second aspect.

[0050] The technical solution provided by the embodiment of the present disclosure has the following advantages over the prior art: the present disclosure first caches the selected first subtitle data and renders the first subtitle data, and then, when receiving an input for switching the first subtitle data to the second subtitle data, since the first subtitle data has been cached before the switching, it is not necessary to cache the first subtitle data again in this process, and only the second subtitle data is cached; when switching back to the first subtitle data, it can be displayed according to the cached first subtitle data, avoiding the loss of the first subtitle data and avoiding repeated caching of the first subtitle data. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0052] In order to more clearly illustrate the embodiments of the present invention 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0053] Figure 1 A schematic diagram of an operation scenario between a display device and a control apparatus according to one or more embodiments of the present disclosure;

[0054] Figure 2 is a hardware configuration block diagram of a display device 200 according to one or more embodiments of the present disclosure;

[0055] Figure 3 is a hardware configuration block diagram of a control device 100 according to one or more embodiments of the present disclosure;

[0056] Figure 4 A schematic diagram of software configuration in a display device 200 according to one or more embodiments of the present disclosure;

[0057] Figure 5 A schematic diagram showing an icon control interface of an application in a display device 200 according to one or more embodiments of the present disclosure;

[0058] Fig. 6A A system framework diagram for processing subtitle data according to one or more embodiments of the present disclosure;

[0059] Figure 6B An architectural diagram for processing subtitle data according to one or more embodiments of the present disclosure;

[0060] Figure 6C A flowchart of subtitle data processing according to one or more embodiments of the present disclosure;

[0061] Figure 7 A flowchart of a method for processing subtitle data according to one or more embodiments of the present disclosure;

[0062] Figure 8 A schematic diagram of a scenario of a method for processing subtitle data according to one or more embodiments of the present disclosure;

[0063] Fig. 9 A schematic diagram of an interface for performing a method for processing subtitle data according to one or more embodiments of the present disclosure;

[0064] Fig.10 A schematic diagram of a cache queue for performing a subtitle data processing method according to one or more embodiments of the present disclosure. DETAILED DESCRIPTION

[0065] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0066] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0067] A multi-subtitle video means that one video corresponds to multiple subtitle data. For example, a video has subtitle data in multiple languages ​​such as Chinese, English, and Japanese. The subtitle data contains the subtitle content of the video. The multiple subtitle data are independent of each other. When the terminal plays the multi-subtitle video, it can display the subtitle content contained in one or more of these subtitle data.

[0068] When processing a multi-caption video, the prior art directly sends the subtitle data A to be displayed to the display module without caching the subtitle data A. When the user switches the subtitles, the switched subtitle data B is sent to the display module, and the subtitles can be displayed normally. However, when the user needs to switch back to the previously displayed subtitle data A, since the subtitle data A and the subtitle data B are not cached, the display module discards the subtitle data B being displayed, but does not receive the subtitle data A to be switched. Therefore, no subtitles are displayed during the time when the subtitles should be displayed, and the subtitle data is lost, resulting in a failure in the subtitle switching.

[0069] To solve the above problem, the present disclosure first caches subtitle data A, and after receiving an instruction to switch subtitle data, determines to switch subtitle data A to subtitle data B, and caches subtitle data B to avoid not displaying subtitles due to loss of subtitle data when switching back to subtitle data A; when switching back to subtitle data A, since subtitle data A has been cached, it is only necessary to detect subtitle data A, and then render and process it for display. Subtitle data is cached during the subtitle switching process to avoid loss of subtitle data, so that subtitles of the subtitle type required by the user are displayed according to the progress of video playback during the video playback process, meeting user needs and improving the user's video viewing experience.

[0070] Figure 1 For example, the following are some examples of scenarios: Figure 1 .like Figure 1As shown, the user can operate the display device 200 through the smart device 300 or the control device 100 to play a multi-subtitle video file on the display device 200. The multi-subtitle video file contains multiple types of subtitle data. For example, the multi-subtitle data file contains subtitle data A and subtitle data B. The user selects the subtitle type of the video display as subtitle data A according to the needs, and the display device 200 caches the subtitle data A, renders the subtitle data A and displays it; when the subtitle data A of the current subtitle type has not reached the end time of display, the user needs to switch the subtitle type from subtitle data A to subtitle data B, and the display device caches the subtitle data B.

[0071] In the scenarios of some embodiments, when a user watches a bilingual Chinese-English movie on a TV, he first chooses to display Chinese subtitles. The TV caches the Chinese subtitle data of the movie. A Chinese subtitle of the movie has not reached the end of display, and the user switches to English subtitles. The TV caches the English subtitles. When the user switches back to Chinese subtitles, the Chinese subtitles of the current movie lines can be displayed due to the presence of cached Chinese subtitle data. By backing up the subtitle data, the loss of subtitle data can be avoided when the user frequently switches subtitle types, thereby improving the user's viewing experience.

[0072] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication, Bluetooth protocol communication, wireless or other wired methods to control the display device 200. The user may input user commands by pressing buttons on the remote controller, voice input, control panel input, etc. to control the display device 200. In some embodiments, a mobile terminal, a tablet computer, a computer, a laptop computer, and other smart devices may also be used to control the display device 200.

[0073] In some embodiments, the mobile terminal 300 can install software applications with the display device 200, and realize connection communication through the 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 realize the synchronous display function. The display device 200 also communicates data with the server 400 through various communication methods. The display device 200 can be allowed to communicate and connect through a local area network (LAN), a wireless local area network (WLAN) and other networks. The server 400 can provide various content and interactions to the display device 200. The display device 200 can be a liquid crystal display, an OLED display, or a projection display device. In addition to providing a broadcast receiving television function, the display device 200 can also provide an intelligent network TV function that provides a computer support function.

[0074] Figure 2 Schematically shows a block diagram of a configuration of the control device 100 according to an exemplary embodiment. Figure 2 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive the user's input operation instructions, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, and play the role of an interactive intermediary between the user and the display device 200. The communication interface 130 is used to communicate with the outside, and includes at least one of a WIFI chip, a Bluetooth module, NFC or an alternative module. The user input / output interface 140 includes at least one of a microphone, a touchpad, a sensor, a button or an alternative module.

[0075] Figure 3 FIG. 2 shows a hardware configuration block diagram of a display device 200 according to an exemplary embodiment. Figure 3 The display device 200 shown includes at least one of a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface 280. The controller includes a central processing unit, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output. The display 260 can be at least one of a liquid crystal display, an OLED display, a touch display, and a projection display, and can also be a projection device and a projection screen. The tuner 210 receives broadcast television signals by wired or wireless reception, and demodulates audio and video signals from multiple wireless or wired broadcast television signals, such as and EPG data signals. The detector 230 is used to collect signals of the external environment or interact with the outside. The controller 250 and the tuner 210 can be located in different split devices, that is, the tuner 210 can also be in an external device of the main device where the controller 250 is located, such as an external set-top box.

[0076] In some embodiments, 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. The user can 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). Alternatively, the user can input a user command by inputting a specific sound or gesture, and the user input interface recognizes the sound or gesture through a sensor to receive the user input command.

[0077] In some embodiments, "user interface" is a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. A common form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be an interface element such as an icon, window, or control displayed on a display screen of an electronic device, wherein a control may include at least one of icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other visual interface elements.

[0078] Figure 4 FIG. 1 is a schematic diagram of software configuration in a display device 200 according to one or more embodiments of the present disclosure. Figure 4 As shown in FIG. 1 , the system is divided into four layers, from top to bottom, namely, the application layer (Applications layer), the application framework layer (Application Framework layer), the Android runtime and system library layer (System runtime library layer), and the kernel layer. The kernel layer includes 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.

[0079] Figure 5 FIG. 1 is a schematic diagram showing an icon control interface of an application in a display device 200 according to one or more embodiments of the present disclosure. Figure 5 As shown in , the application layer includes at least one application that can display corresponding icon controls in the display, such as: live TV application icon control, video on demand application icon control, media center application icon control, application center icon control, game application icon control, etc. Live TV application can provide live TV through different signal sources. Video on demand application can provide videos from different storage sources. Unlike live TV application, video on demand provides video display from certain storage sources. Media center application can provide applications for playing various multimedia content. Application center can provide storage for various applications.

[0080] In some embodiments, the display device is a terminal device with a display function, such as a television, a mobile phone, a computer, a learning machine, etc. In the display device:

[0081] An output interface (display 260 and / or audio output interface 270), configured to output user interaction information;

[0082] The communicator 220 is used to communicate with the server 400;

[0083] The controller 250 is configured to: cache first subtitle data of a first type and render the first subtitle data;

[0084] The user input interface 280 is configured to: receive user input;

[0085] The controller 250 is configured to: cache first subtitle data of a first type and render the first subtitle data;

[0086] When a first subtitle switching input is received, in response to the first subtitle switching input, the second subtitle data is cached and the second subtitle data is rendered; the first subtitle switching input is used to indicate switching to display the second subtitle data of the second type;

[0087] When a second subtitle switching input is received, in response to the second subtitle switching input, if the cached first subtitle data is detected, the first subtitle data is rendered and displayed, and the second subtitle switching input is used to indicate switching to display the first subtitle data of the first type.

[0088] In some embodiments, the controller 250 is further configured to: delete the first subtitle data after the display of the first subtitle data ends.

[0089] In some embodiments, the display device further comprises:

[0090] The modem 210 is configured to: decompress the original subtitle data and obtain multiple types of subtitle data in the original data;

[0091] The controller 250 is specifically configured to: when receiving a subtitle selection input, in response to the subtitle selection input, cache the first subtitle data, where the subtitle selection input is used to indicate selecting the first subtitle data of the first type from the multiple types of subtitle data obtained from the modem.

[0092] In some embodiments, the controller 250 is specifically configured to:

[0093] Before the display end time of the first subtitle data, in response to a second subtitle switching input received by the user input interface, if the cached first subtitle data is detected, the first subtitle data is rendered and displayed.

[0094] In some embodiments, the controller 250 is specifically configured to:

[0095] After the display end time of the first subtitle data, in response to the second subtitle switching input, acquiring the next subtitle data after the first subtitle data from the first subtitle data of the first type;

[0096] Cache the next subtitle data, render and display the next subtitle data.

[0097] In some embodiments, the controller 250 is further configured to:

[0098] Obtain the first duration of the user's historical use of the first subtitle data;

[0099] The controller 250 is specifically configured to: if the first duration is greater than a preset duration, cache the first subtitle data, and render the first subtitle data.

[0100] In some embodiments, the controller 250 is further configured to:

[0101] Acquire the first number of times the user uses the first subtitle data, and the total number of times the user uses all types of subtitle data;

[0102] The controller 250 is specifically configured to: calculate a first ratio of the first number according to the first number and the total number;

[0103] If the first ratio is greater than the preset ratio, the first subtitle data is cached and rendered.

[0104] In some embodiments, the display device may be a display device having an operating system, and the operating system of the display device may be an Android operating system, an iOS operating system, etc. The Android operating system is taken as an example for description below.

[0105] In summary, the present disclosure firstly caches the selected first subtitle data through the controller of the display device and renders the first subtitle data. Then, when the user input interface of the display device receives a signal to switch the first subtitle data to the second subtitle data, the controller of the display device caches the second subtitle data. In this process, the first subtitle data does not need to be cached again. Switching back to the first subtitle data can be displayed according to the cached first subtitle data, thereby avoiding the loss of the first subtitle data and avoiding repeated caching of the first subtitle data.

[0106] Fig. 6A A system framework diagram for processing subtitle data according to one or more embodiments of the present disclosure is shown in FIG. Fig. 6AAs shown, the system may include a modem 601, a buffer queue 602, an audio decoder 603, a video decoder 604, a subtitle selector 605, and a rendering module 606. The system receives a multi-subtitle video file sent by a server, and after the multi-subtitle video file is demultiplexed by the modulation decoder 602, it is first added to the buffer queue 602, and the audio file, video file and subtitle file are further processed respectively, and the audio file and video file are sent to the corresponding audio decoder 603 and video decoder 604, and then sent to the rendering module 606 for audio rendering and video rendering respectively; for the subtitle file in the buffer queue 602, since multiple types of subtitle data will be obtained after the subtitle file is demultiplexed, the multiple types of subtitle data are divided into several separate data channels, which are respectively connected to the input port of the subtitle selector, and then the subtitle data of the selected type is sent to the rendering module 606 according to the user's choice, and displayed after rendering.

[0107] Based on the above system framework, the implementation of the present disclosure in the Android system is as follows: Figure 6B As shown, the Android system mainly includes an application layer, a middleware player and a core layer. The implementation logic is mainly reflected in the middleware player, which includes a modem module, a buffer queue, an audio decoding module, a video decoding module, a subtitle selection module, a rendering module, an audio output module, a video output module and a subtitle output module.

[0108] like Figure 6C As shown, the subtitle processing method provided in the embodiment of the present disclosure is combined with Fig. 6A The modem 601, buffer queue 602, subtitle selector 605 and rendering module in the embodiment of the present disclosure are implemented. The subtitle processing method provided in the embodiment of the present disclosure first obtains multiple types of subtitle data after multiple subtitle video files are demultiplexed by the modem, and the multiple types of subtitle data are placed in the buffer queue. When receiving the subtitle selection input of the user, the subtitle data selected from the multiple types of subtitle data is sent to the rendering module for rendering, and displayed after the rendering is completed.

[0109] The subtitle processing method provided in the embodiment of the present disclosure can cache a certain type of subtitle data when it is determined to use the subtitle data of that type, and render the subtitle data of that type, so that after switching to other types of subtitle data, when switching back to the subtitle data of that type for display, it can directly render and display according to the cached subtitle data of that type, without re-caching the subtitle data of that type. Figure 7 To explain, it is understandable that Figure 7The steps involved in the actual implementation may include more steps, or fewer steps, and the order of these steps may also be different, so long as the subtitle processing method provided in the embodiment of the present disclosure can be implemented. The embodiment of the present disclosure does not limit this.

[0110] like Figure 7 As shown, Figure 7 The following is a flow chart of a method for processing subtitle data according to one or more embodiments of the present disclosure. The subtitle data processing method:

[0111] S710, receiving user input;

[0112] In some embodiments, the user's input includes but is not limited to a subtitle selection input, a first subtitle switching input, and a second subtitle switching input.

[0113] The subtitle selection input is used to indicate the selection of first subtitle data of a first type from a plurality of types of subtitle data acquired by the modem.

[0114] Exemplarily, after decompressing the original subtitle data of a multi-subtitle video, Chinese subtitle data, English subtitle data, and Japanese subtitle data are obtained; when a user needs to display English subtitles, he sends an instruction to a display device, and the display device selects English subtitle data from the decompressed multiple subtitle data.

[0115] The first subtitle switching input is used to indicate switching to the second type of display subtitle data. The second subtitle data of the second type is other subtitle data in the original subtitle data that is different from the first subtitle data of the first type.

[0116] Exemplarily, the current display device displays Chinese subtitles, and the first subtitle switching input indicates switching from Chinese subtitles to English subtitles, wherein the first subtitle data of the first type is Chinese subtitles, and the corresponding second subtitle data of the second type is English subtitles.

[0117] The second subtitle switching input is used to indicate switching to the first type of display subtitle data. For example, the subtitles are switched from Chinese subtitles to English subtitles, and the user needs to switch back to Chinese subtitles. The current display device displays English subtitles, and the second subtitle switching input indicates switching from English subtitles back to Chinese subtitles.

[0118] In some embodiments, the display device receives user input through a user input interface, wherein the user input may be voice input, touch input, or gesture input, which is not limited in the present disclosure. For example, the user may input a voice message "display Chinese subtitles".

[0119] In order to facilitate the description of the embodiments of the present disclosure, the user input method will be introduced below by taking the first subtitle switching input as an example.

[0120] In some embodiments, the first subtitle switching input is voice input, and the display device responds to the user's voice information to identify and obtain input information corresponding to the voice input, wherein the input information includes user voiceprint information corresponding to the voice input, and content information corresponding to the voice input, etc.

[0121] In some embodiments, the user's identity information is determined based on the above-identified user's voiceprint information to identify the target user. The user's identity information includes age, gender, identity label (student, child, elderly), etc. The user's identity information is pre-set by the user and has a corresponding relationship with the user's voiceprint information; the target user is a user who is prone to misoperation of subtitle switching, such as a child or an elderly person.

[0122] In other embodiments, the first subtitle switching input is a touch input, and the display device responds to the user's touch operation and further performs biometric recognition through a biometric recognition device of the display device to obtain the user's biometric information, wherein the biometric recognition device includes a camera, a fingerprint recognition device, etc. Correspondingly, the user's biometric information includes facial information, iris information, fingerprint information, etc.

[0123] In some embodiments, the user's identity information is determined based on the user's biometric information obtained as described above to identify the target user. Optionally, when the user performs a touch operation, the user's image is obtained based on the camera of the display device, and the obtained image is matched with a pre-stored user image in the display device to match the facial information and / or iris information contained in the image. If the match is successful, the user's identity information corresponding to the pre-stored image is determined to identify the target user. It should be noted that the pre-stored image is stored corresponding to the user's facial information and / or iris information. The implementation method after determining the user's identity information based on the user's first subtitle switching input is the same or similar to the implementation method in which the first subtitle switching input is a voice input, and the present disclosure will not be repeated here.

[0124] S720: Cache first subtitle data of the first type, and render the first subtitle data.

[0125] The multi-subtitle video file received by the display device in the present disclosure contains original subtitle data, and the original subtitle data includes multiple types of subtitle data such as first subtitle data of a first type, second subtitle data of a second type, etc.

[0126] In some embodiments, the original subtitle data may be subtitle data sent from a server to a display device, or may be subtitle data stored locally on the display device. The original subtitle data includes multiple types of subtitle data, and the subtitle types may be classified by language, font, color, etc. The following will introduce the subtitle types in the original data from the three classification methods of language, font, and color:

[0127] (1) Language

[0128] The subtitle data in the original subtitle data is classified according to language and can be divided into subtitle data in multiple languages. For example, the original subtitle data includes Chinese subtitle data, English subtitle data, Japanese subtitle data, etc. The first type can be Chinese, and accordingly, the first subtitle data is Chinese subtitle data.

[0129] (2) Font

[0130] The subtitle data in the original subtitle data is classified according to fonts, and can be divided into subtitle data of multiple fonts. For example, the original subtitle data includes bold subtitle data, Song subtitle data, Kai subtitle data, etc. The first type can be bold, and the corresponding first subtitle data is bold subtitle data.

[0131] (3) Color

[0132] The subtitle data in the original subtitle data is classified according to color and can be divided into subtitle data of multiple colors. For example, the original subtitle data includes black subtitle data, red subtitle data, blue subtitle data, etc. The first type can be black, and the corresponding first subtitle data is black subtitle data.

[0133] In the present disclosure, the subtitle data is classified according to the above three classification methods, and two or more of the above three classification methods can be used in combination. For example, the subtitle data in the original subtitle data can be classified according to language, font, and color, and can be divided into black Song-style Chinese subtitles, red Song-style English subtitles, black regular English subtitles, blue bold Japanese subtitles, etc. The first type is black Song-style English, and the first subtitle data is black Song-style Chinese subtitles.

[0134] The above three division methods are only shown for example, and the present disclosure does not specifically limit the division methods and the combination of division methods.

[0135] In some embodiments, before caching the first subtitle data of the first type, since the original subtitle data is multiplexed data, the display device demultiplexes or decompresses the original subtitle data through a modem to obtain multiple types of subtitle data in the original subtitle data.

[0136] In some embodiments, after the display device decompresses the original subtitle data, the display device receives a user's subtitle selection input through a user input interface, and selects first subtitle data of a first type from multiple types of subtitle data in response to the subtitle selection input, wherein the user's subtitle selection input indicates selection of first subtitle data of a first type, and the first subtitle data is any one type of subtitle data among multiple types; then, in response to the subtitle selection input, the first subtitle data of the first type is cached, and further, the first subtitle data of the first type is rendered and displayed.

[0137] Exemplarily, after the display device decompresses the original subtitle data, the display device receives a subtitle selection instruction from the user, where the subtitle selection instruction indicates that the subtitles should be displayed in English. The display device then selects English subtitle data from subtitle data corresponding to multiple types, caches the English subtitle data, and further renders the English subtitle data to display the English subtitles on the display device.

[0138] In some embodiments, the first duration of the user's historical use of the first subtitle data is obtained, and it is determined whether the first duration is greater than or equal to the first preset duration. If it is determined that the first duration is greater than or equal to the first preset duration, it indicates that the first type of first subtitle data is the user's historical usage habit or historical preference. The user may switch back to the first type of first subtitle data for display during the subtitle switching process. Therefore, when the first duration is greater than or equal to the preset duration, in response to the first subtitle selection input, the first type of first subtitle data is first cached, and the first type of first subtitle data is rendered, and displayed after the rendering is completed. If the first duration is less than the preset duration, it means that displaying subtitle data in the first type is not the user's historical habit or historical preference, and this disclosure does not deal with this.

[0139] For example, assuming that the first preset duration of using Chinese subtitles is 4 hours, and the first duration of the user's historical use of Chinese subtitles is 5 hours, it is determined that the user's use of Chinese subtitles is a historical habit of the user. In response to the subtitle selection input, the Chinese subtitles are switched to English subtitles. Since the user's use of Chinese subtitles is a historical habit of the user, the user will switch back to Chinese subtitles in the subsequent subtitle switching process. It is necessary to cache the Chinese subtitle data to avoid loss of the Chinese subtitle data, so as to facilitate the subsequent switch back to Chinese subtitles.

[0140] In some embodiments, the first duration of the first subtitle data of the first type used by the user in history and the total duration of the subtitle data of all subtitle types used by the user in history are obtained, and a first ratio of the first duration to the total duration is calculated. If the first ratio is greater than or equal to a first preset ratio, it indicates that the user needs to switch to the subtitle type that is used to being used, and it can be determined that the user will switch back to the first subtitle data of the first type. Then, in response to the subtitle selection input, the first subtitle data can be cached and rendered, and then the subtitle data can be displayed on the display device in the second type. If the first ratio is less than the preset ratio, it indicates that displaying subtitle data in the first type is not the user's historical habit or historical preference, and the present disclosure does not deal with this.

[0141] Exemplarily, the subtitle types include Chinese and English, and it is assumed that the first preset ratio is 0.6. In response to the user's subtitle selection input, the subtitle selection input indicates that Chinese subtitles are displayed, and the first duration of the user's historical use of Chinese subtitles is obtained as 4 hours, and the total duration of the user's historical use of Chinese subtitles and English subtitles is 5 hours. The ratio of the first duration to the total duration is calculated to be 0.8. This ratio is greater than the first preset ratio of 0.6, indicating that Chinese subtitles are the user's historical habit, and the user will switch back to Chinese subtitles in the subsequent subtitle switching process, so the Chinese letter data is cached and rendered, and displayed after rendering is completed.

[0142] In some embodiments, the number of times the user has historically used the first subtitle data of the first type is obtained, and the number of times the first subtitle data is used to determine whether the first type that the user needs to display is the user's usage habit or historical preference; if the number of times the first subtitle data is greater than the first preset number, it means that displaying the subtitle data in the first type is the user's usage habit or historical preference, and then it can be determined that the user will switch back to the first subtitle data of the first type, and in response to the subtitle selection input, the first subtitle data is cached and rendered, and then the subtitle data is displayed on the display device in the first type.

[0143] Exemplarily, assuming that the above-mentioned first preset number of times is 10 times, in response to the user's subtitle selection input, the subtitle selection input indicates the display of Chinese subtitles, and the first number of times the user has used Chinese subtitles in history is obtained as 12, then it is determined that Chinese subtitles are the user's usage habit, and it can be determined that in the subsequent subtitle switching process, the user will switch back to Chinese subtitles, so the Chinese subtitle data is cached and rendered, and displayed after rendering. In some embodiments, the number of times the user has used the first subtitle data of the first type in history, and the total number of times the user has selected to use multiple types of subtitle data in history, are obtained, and then based on the number of first subtitle data of the first type and the total number of times, the second ratio of the first subtitle data of the first type in the multiple types of subtitle data is calculated. If the second ratio is greater than the second preset ratio, it means that displaying subtitle data in the first type is the user's usage habit or historical preference, and then it can be determined that the user will switch back to the first subtitle data of the first type, and in response to the user's subtitle selection input, the first subtitle data of the first type is cached and rendered.

[0144] Exemplarily, assuming that the above-mentioned second preset ratio is 0.6, in response to the user's subtitle selection input, the subtitle selection input indicates the display of Chinese subtitles, the first number of times the user has used Chinese subtitles in history is 8 and the total number of times the user has used Chinese subtitles and English subtitles in history is 10, so the second ratio of the user's historical use of Chinese subtitles is 0.8, then the second ratio is greater than the second preset ratio of 0.6, and it is determined that Chinese subtitles are the user's usage habit. It can be determined that in the subsequent subtitle switching process, the user will switch back to Chinese subtitles, so the Chinese subtitle data is cached and rendered, and then displayed after rendering is completed.

[0145] In some embodiments, first subtitle data of a first type is cached in the presence of a default setting, the first subtitle data of the first type is a default setting of the display device for subtitle display, the first type is used as the default subtitle display type set by the user, and when a multi-subtitle video is played on the display device and the display device does not receive a subtitle selection input from the user, it is determined to display the subtitle data in the first type. First, according to the default subtitle display type set by the user, the first subtitle data of the first type is obtained from the decompressed original subtitle data, and then the first subtitle data of the first type is rendered.

[0146] For example, when a movie is played on a TV, Chinese subtitles are displayed by default without the need for user settings. When playing a movie, the Chinese subtitle data of the movie is cached according to the default Chinese subtitle type of the TV to ensure that the Chinese subtitle data is not lost, making it convenient for the user to switch subtitle types while watching a movie.

[0147] It should be noted that the priority of the user's subtitle selection input is higher than the default setting. If the default setting is the first subtitle data of the first type, when the user's subtitle selection input indicates that the subtitles are displayed in the second type, the second subtitle data of the second type is cached first, and then the first subtitle data of the first type is cached.

[0148] In some embodiments, when first subtitle data of the first type is displayed under the user's subtitle selection input indication, the first subtitle data of the first type is cached in a cache queue, and the first subtitle data of the first type is stored in the cache queue corresponding to the subtitle type identifier, so as to facilitate subsequent search in the cache queue according to the subtitle type identifier when switching back to the first type.

[0149] In the above embodiment, by obtaining and caching subtitle data corresponding to the subtitle type according to the subtitle type indicated by the user's subtitle selection input or the subtitle type corresponding to the default setting, the subtitle data is prevented from being lost in the subsequent subtitle switching process.

[0150] S730: When a first subtitle switching input is received, in response to the first subtitle switching input, second subtitle data is cached and the second subtitle data is rendered.

[0151] In some embodiments, it is determined that the user needs to switch the first type of the current subtitle to the second type according to the content information corresponding to the user's voice input, and the second duration of the second subtitle data of the second type used by the user in history is obtained. The second duration is used to determine whether the second type that the user needs to display is the user's usage habit or historical preference; if the second duration is greater than or equal to the second preset duration, it means that displaying the subtitle data in the second type is the user's usage habit or historical preference, and then it can be determined that the first subtitle switching input is not a user's misoperation, and then the second subtitle data is cached according to the first subtitle switching input, and the second subtitle data is rendered to meet the user's needs to display the second subtitle data of the second type, and realize the switching of the subtitle type. If the second duration is less than the second preset duration, it means that displaying the subtitle data in the second type is not the user's usage habit or historical preference, and then it can be determined that the second subtitle switching input is a user's misoperation. The present disclosure can switch reminders on the display device for user misoperations, or do not process them, and do not switch the subtitle type. The present disclosure does not limit this.

[0152] Exemplarily, based on the user's voice input, the user is identified as a student, and the student needs to switch Chinese subtitles to English subtitles to learn English. It is obtained that the student has used English subtitles for 4 hours in history, which is greater than the preset time of 3 hours. It is determined that the student needs to switch to English subtitles, and the switching operation is not a false operation. The subtitles are switched from Chinese subtitles to English subtitles based on the student's voice input.

[0153] In some embodiments, it is determined based on content information corresponding to the user's voice input that the user needs to switch from the first type to the second type, the duration of the second subtitle data of the second type used by the user in history, and the total duration of the subtitle data of all subtitle types used by the user in history are obtained, and a second ratio of the second subtitle data duration to the total duration is calculated. If the second ratio is greater than a second preset ratio, it indicates that the user needs to switch to the subtitle type that he or she is accustomed to using. It can be determined that the second subtitle switching input is not an error of the user, and then in response to the second subtitle switching input, the second subtitle data can be cached and rendered, and then the subtitle data can be displayed on the display device in the second type.

[0154] Exemplarily, based on the user's voice input, it is identified that the user is a child, and the child needs to switch Chinese subtitles to English subtitles. The total time the child has used English subtitles and Chinese subtitles is 2 hours, and the total time the child has used Chinese subtitles is 1.8 hours, and the total time the child has used English subtitles is 0.2 hours. The corresponding ratio for Chinese subtitles is calculated to be 0.9, and the corresponding ratio for English subtitles is 0.1. It is determined that the child's subtitle switching input is an erroneous operation, and the display device will not switch from Chinese subtitles to English subtitles.

[0155] In some embodiments, the number of times the user has historically used the second subtitle data of the second type is obtained, and the number of times the second subtitle data is used to determine whether the second type that the user needs to display is the user's usage habit or historical preference; if the number of times the second subtitle data is used is greater than a preset number, it indicates that displaying subtitle data in the second type is the user's usage habit or historical preference, and then it can be determined that the second subtitle switching input is not a misoperation of the user, and then the second subtitle data is cached according to the second subtitle switching input, and the second subtitle data is rendered to display the second subtitle data of the second type to meet the user's needs, thereby achieving switching of subtitle types.

[0156] In some embodiments, the number of times the user has used the second subtitle data of the second type in history and the total number of times the user has selected to use multiple types of subtitle data in history are obtained, and then based on the number of times the second subtitle data of the second type and the total number of times, a second ratio of the second subtitle data of the second type in the multiple types of subtitle data is calculated, and if the second ratio is greater than a second preset ratio, the second subtitle data of the second type is cached and rendered to switch the currently displayed first subtitle data of the first type to the second subtitle data of the second type.

[0157] The embodiments involved in the embodiments of the present disclosure can be used in combination if there is no logical conflict.

[0158] In some embodiments, the second duration of the user's historical use of the second type of second subtitle data and the total duration of the user's historical selection to use all types of subtitle data are obtained, it is determined whether the second duration is greater than or equal to a second preset duration, and a third ratio of the second duration to the total duration is calculated and it is determined that the third ratio is greater than or equal to a third preset ratio; if the second duration is greater than or equal to the second preset duration, and the third ratio is greater than or equal to the third preset ratio, it is determined that the user's first subtitle switching input is not an erroneous operation, and then the second type of second subtitle data is cached and rendered to switch the currently displayed first type of first subtitle data to the second type of second subtitle data.

[0159] For example, assuming that the second preset duration of using English subtitles is 0.8 hours, the third preset ratio is 0.1, the second duration of the user's historical use of Chinese subtitles is 1 hour, and the total duration of the user's historical selection of using all types of subtitle data is 5 hours, the third ratio of the second duration of 1 hour in the total duration is calculated to be 0.2. The second duration is greater than the second preset duration of 0.8 hours, and the third ratio of 0.2 is greater than the third preset ratio of 0.1, so it is determined that the user's first subtitle switching input is not an erroneous operation, and then the second subtitle data of the second type is cached and rendered to switch the currently displayed first subtitle data of the first type to the second subtitle data of the second type.

[0160] In some embodiments, a second number of times the user has used the second subtitle data of the second type in history, as well as a total number of times the user has chosen to use all types of subtitle data in history, are obtained, a determination is made as to whether the second number is greater than or equal to a second preset number, and a fourth ratio of the second number to the total number is calculated and a determination is made as to whether the fourth ratio is greater than or equal to a fourth preset ratio; if the second number is greater than or equal to the second preset number, and the fourth ratio is greater than or equal to the fourth preset ratio, it is determined that the user's first subtitle switching input is not an erroneous operation, and then the second subtitle data of the second type is cached and rendered to switch the currently displayed first subtitle data of the first type to the second subtitle data of the second type.

[0161] Exemplarily, assuming that the second preset number is 2, and the fourth preset ratio is 0.1, the second number of times the user uses English subtitles in history is 2, and the total number of times the user chooses to use Chinese subtitles and English subtitles in history is 20, the fourth ratio of the second number in the total number is calculated to be 0.1, and it is determined that the second number 2 is equal to the second preset number 2, and the fourth ratio is 0.1, which is equal to the fourth preset ratio 0.1. Therefore, it is determined that the user needs to switch the Chinese subtitles to English subtitles and it is not an error operation, and then the English subtitle data is cached and rendered, and the English subtitles are displayed after rendering.

[0162] In some embodiments, the first duration of the user's historical use of the second subtitle data of the second type and the first number of times the user has historically used the second subtitle data of the second type are obtained, and it is determined whether the first duration is greater than or equal to a preset duration and whether the first number is greater than or equal to a preset number. If the first duration is greater than or equal to the preset duration, and the first number is greater than or equal to the preset number, it is determined that the user's first subtitle switching input is not an erroneous operation, and then the second subtitle data of the second type is cached and rendered to switch the currently displayed first subtitle data of the first type to the second subtitle data of the second type.

[0163] In some embodiments, the second duration and the second number of times the user has used the second type of second subtitle data in history, as well as the total duration and the total number of times the user has selected to use all types of subtitle data in history, are obtained, a third ratio of the first duration to the total duration and a fourth ratio of the second number to the total number of times are calculated, and then the third ratio is compared with the fourth ratio, and the ratio with the larger value is determined as a basis for determining whether the second subtitle switching input is an erroneous operation by the user.

[0164] In addition, when multiple implementation methods are combined, the weight parameters of the implementation methods can be set. For example, the weight parameter of the frequency ratio is set to 0.6 and the weight parameter of the frequency ratio is set to 0.4. Judgment can be made based on the frequency ratio first to reduce data conflicts.

[0165] It should be noted that the various types of subtitle data of a multi-subtitle video are synchronized with the current playback progress of the video when the video is played. The progress of the subtitles is determined by the current playback time of the video and the start and end times of each subtitle data. During the synchronization process, the subtitle data after the end time of the subtitle data at the current time is deleted and discarded to save memory resources, thereby improving the efficiency of subtitle switching.

[0166] For example, when the TV is playing a movie, the Chinese subtitles and the English subtitles are synchronized according to the progress of the movie, so that when the Chinese and English subtitles are switched, the current position of the subtitles is located, and the subtitles are displayed accurately corresponding to the current progress of the video. After the first Chinese subtitle is displayed, the Chinese subtitle data corresponding to the first Chinese subtitle in the subtitle data expires and can be deleted, and the corresponding first English subtitle in the subtitle data is deleted at the same time.

[0167] In some embodiments, the second scene data of the second type is cached in a cache queue, and the second subtitle data of the second type is stored in the cache queue corresponding to the subtitle type identifier, so as to facilitate searching in the cache queue according to the subtitle type identifier when switching back to the second type later.

[0168] In the case that the currently displayed subtitle data has not reached the end time, the subtitle type is switched, the currently displayed subtitle data is first cached, and whether to display the subtitle data is determined according to the end time of the subtitle data corresponding to the subtitle type to be switched. If it is determined that the subtitle data has not expired according to the end time of the subtitle data corresponding to the subtitle type to be switched and the current time of video playback, the subtitle data is cached and the currently displayed subtitle data is switched to the subtitle data; if it is determined that the subtitle data has expired according to the end time of the subtitle data corresponding to the subtitle type to be switched and the current time of video playback, the currently displayed subtitle data is still displayed until the currently displayed subtitle data expires, and the next new subtitle data is displayed.

[0169] Exemplarily, when the currently displayed subtitle data A has not expired, it is necessary to switch to subtitle data B. First, the end time of subtitle data B and the current time of video playback are compared. If the current time of video playback is less than or the end time of subtitle data B, it is determined that subtitle data B has not expired and can be switched for display. Then the subtitle data currently displayed in the video is switched from subtitle data A to subtitle data B. If the current time of video playback is greater than the end time of subtitle data B, it is determined that subtitle data B is expired. Forcing subtitle switching will cause the video to not display subtitles, so subtitle data A will still be displayed without subtitle switching.

[0170] In order to realize subtitle switching, the present disclosure will be introduced below under the condition that the subtitle data corresponding to the subtitle type to be switched has not expired, that is, the second subtitle data of the second type has not expired.

[0171] A first subtitle switching input is received through a user input interface, wherein the first subtitle switching input indicates that the first subtitle data of the first type currently being displayed is switched to the second subtitle data of the second type, and then according to the first subtitle switching input, the second subtitle data of the second type is first cached, and then the second subtitle data of the second type is rendered, and then the rendered second subtitle data is sent to a display module, so that the display switches the subtitles to display in the second subtitle data type.

[0172] For example, Figure 8 As shown, when the user is watching a movie on the TV 801, the user needs to switch the Chinese subtitles to English subtitles, and sends a subtitle switching instruction to the TV 801 via the mobile phone 802 or the remote control 803; the TV 801 receives the subtitle switching instruction of the user, and the Chinese subtitles are currently displayed on the TV, and the Chinese subtitles have been cached. In response to the subtitle switching instruction, the English subtitle data is cached, and the English subtitles are displayed after rendering. The user can see the subtitles switch from Chinese to English on the TV 801.

[0173] S740: When a second subtitle switching input is received, in response to the second subtitle switching input, if cached first subtitle data is detected, render and display the first subtitle data.

[0174] In some embodiments, the second subtitle switching input is voice input, touch input, gesture input, etc. The input method of the second subtitle switching input is different, and the implementation methods provided by the present disclosure are different, but the implementation principles and processes are the same or similar to the implementation principles and processes of the first subtitle switching input. Both can determine the user identity information, identify whether the user is the target user, and further determine whether the second subtitle switching input is an erroneous operation. The present disclosure does not elaborate on this.

[0175] In some embodiments, the display device receives a second subtitle switching input through a user input interface, and then the display device responds to the second subtitle switching input through a controller to detect whether there is cached first subtitle data of the first type. If the first subtitle data of the first type is detected, the first subtitle data of the first type is rendered. It should be noted that the user needs to switch back to the first subtitle data of the first type and does not need to repeatedly save the second subtitle data of the second type, because in the process of switching from the first type to the second type of second subtitle data, the second type of second subtitle data has been cached, thereby avoiding repeated caching of the second type of second subtitle data, saving memory resources of the display device, and improving the efficiency of subtitle switching.

[0176] For example, Fig. 9 As shown, since the subtitle type selected by the student is "Chinese subtitles", the subtitles currently displayed on the TV are Chinese subtitles. The student first switches the subtitles of the movie from Chinese to English, and the subtitle type "English subtitles" is selected, and the subtitles of the movie are switched from Chinese subtitles to English subtitles; then it is necessary to switch back to Chinese subtitles, and the student inputs a subtitle switching instruction to the TV. The TV first detects the Chinese subtitle data. Since the previous subtitle switching process has cached the Chinese subtitle data and the English subtitle data, the TV does not need to cache the English subtitle data when switching back to Chinese subtitles. The detected Chinese subtitle data is rendered, and the Chinese subtitles are displayed synchronously with the movie to meet the need for switching subtitles.

[0177] In some embodiments, Fig.10As shown, in the case of switching back to the first subtitle data of the first type, the first subtitle data of the first type is already stored in the cache queue. It should be noted that the present disclosure sorts the subtitle data in the cache queue according to the time when the subtitle data is stored in the cache queue, and adopts a sliding pointer method to use two pointers to locate the first subtitle data in the queue and the subtitle data currently being processed, the first pointer locates the first subtitle data in the queue, and the second pointer locates the subtitle data currently being processed. In the case of switching back to the first subtitle data of the first type, the subtitle data currently being processed is the second subtitle data of the second type, and then it is determined that switching back to the first subtitle data of the first type requires pointing the second pointer to the first subtitle data of the first type. The above method ensures that the subtitle data in the cache queue are arranged in chronological order on the one hand, and on the other hand, in the case of frequent switching of subtitle types, the subtitle data in the cache queue will not be confused through pointer positioning.

[0178] In some embodiments, after the display end time of the first subtitle data of the first type, the first subtitle data of the first type expires because the current time of video playback is greater than the display end time of the first subtitle data of the first type. When the user needs to switch the subtitle type and inputs a second subtitle switching instruction to the display device, the display device first obtains the next new first subtitle data of the first type from the decompressed original subtitle data, and in response to the second subtitle switching instruction, caches the next new first subtitle data of the first type, and further renders it for display.

[0179] For example, the first Chinese subtitle of a movie is currently displayed, and the user needs to switch to English subtitles, but the first Chinese subtitle has exceeded the display end time, so it is necessary to obtain the second English subtitle in the decompressed original data, cache the second English subtitle, render and display it.

[0180] In some embodiments, to avoid losing subtitle data, the subtitle data is cached. For the cached subtitle data, it is determined whether the cached subtitle data is expired based on the current playback time of the video and the end time of the cached subtitle data, and the expired subtitle data is discarded.

[0181] In the process of switching from the first subtitle data of the first type to the second subtitle data of the second type and then switching back to the first subtitle data of the first type, firstly, according to the type identifier of the first subtitle data of the first type, it is detected whether the first subtitle data of the first type is cached in the cache queue; if the cached first subtitle data of the first type is detected, it is determined whether the end time of the first subtitle data of the first type is greater than the current time of the video; if the end time of the first subtitle data of the first type is greater than or equal to the current time of the video, it indicates that the first subtitle data of the first type is not expired, and it is possible to switch from the second subtitle data of the second type back to the first subtitle data of the first type; if the end time of the first subtitle data of the first type is less than the current time of the video, it indicates that the cached first subtitle data of the first type has expired, and the cached first subtitle data of the first type in the cache queue is deleted.

[0182] In some embodiments, if the cached first subtitle data of the first type is not detected, then when the currently displayed second subtitle data of the second type has not expired, the second subtitle data of the second type will continue to be displayed, and a reminder will be displayed on the display to remind the current user that the second subtitle data of the second type has expired, and the next first subtitle data of the first type in the original subtitle data will be determined and displayed; then after the second subtitle data of the second type expires, new subtitle data will be received and displayed in the first subtitle type.

[0183] In some embodiments, the expired subtitle data in the cache queue is cleared in real time, starting from the first subtitle data in the cache queue located by the first pointer, and detecting whether the display end time of the first subtitle data is greater than the current time of video playback. If the display end time of the first subtitle data is less than the current time of video playback, it means that the first subtitle data has expired and is deleted from the cache queue. The first pointer moves to the next subtitle data in the cache queue and performs detection until the first pointer points to the subtitle data whose display end time is greater than the current time of video playback. By using the pointer to move to the subtitle data in the cache queue to check the expired subtitle data, there is no need to repeatedly traverse and check.

[0184] In summary, the present disclosure executes the above-mentioned subtitle data processing method on a display device, firstly caches the selected first subtitle data through the controller of the display device, and renders the first subtitle data, and then caches the second subtitle data through the controller of the display device when the user input interface of the display device receives a signal that the first subtitle data is switched to the second subtitle data. In this process, the first subtitle data does not need to be cached again, and the switch back to the first subtitle data can be displayed according to the cached first subtitle data, thereby avoiding the loss of the first subtitle data and avoiding repeated caching of the first subtitle data.

[0185] The embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned subtitle data processing method are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0186] The computer readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0187] The present disclosure provides a computer program product, characterized in that it includes: when the computer program product is run on a computer, the computer is enabled to implement the above-mentioned subtitle data processing method.

[0188] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above discussion in some embodiments is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. According to 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: The user input interface is configured to: receive user input; The controller is configured to: cache first subtitle data of a first type to a cache queue, and render the first subtitle data; the cache queue includes a first pointer and a second pointer, the first pointer is used to locate the first subtitle data in the cache queue, and the second pointer is used to indicate the subtitle data currently being processed; When a first subtitle switching input is received, in response to the first subtitle switching input, second subtitle data is cached in the cache queue, the second pointer points to the second subtitle data of the second type, the first pointer points to the first subtitle data of the first type, and the second subtitle data is rendered, and the first subtitle switching input is used to indicate switching to display the second subtitle data of the second type; When a second subtitle switching input is received before the display end time of the first subtitle data, in response to the second subtitle switching input, if the first subtitle data pointed to by the first pointer in the cache queue is detected, the first subtitle data is rendered and displayed, and the second subtitle switching input is used to indicate switching to display the first subtitle data of the first type.

2. The display device according to claim 1, characterized in that The controller is further configured to delete the first subtitle data after the display of the first subtitle data ends.

3. The display device according to claim 1, characterized in that The display device further includes: A modem is configured to: decompress the original subtitle data, and obtain multiple types of subtitle data in the original subtitle data; The controller is specifically configured to: when receiving a subtitle selection input, cache the first subtitle data in response to the subtitle selection input, wherein the subtitle selection input is used to indicate selection of the first subtitle data of the first type from the multiple types of subtitle data obtained by the modem.

4. The display device according to claim 1, characterized in that The controller is specifically configured as follows: After the display end time of the first subtitle data, in response to the second subtitle switching input, acquiring the next subtitle data after the first subtitle data from the first subtitle data of the first type; The next piece of subtitle data is cached, and the next piece of subtitle data is rendered and displayed.

5. The display device according to claim 3, characterized in that The controller is further configured to: Obtaining a first duration of the user's historical use of the first subtitle data; The controller is specifically configured to: if the first duration is greater than or equal to a preset duration, cache the first subtitle data, and render the first subtitle data.

6. The display device according to claim 3, characterized in that The controller is further configured to: Acquire a first number of times the user uses the first subtitle data, and a total number of times the user uses all types of subtitle data; The controller is specifically configured to: calculate a first ratio of the first number of times according to the first number of times and the total number of times; If the first ratio is greater than or equal to a preset ratio, the first subtitle data is cached and rendered.

7. A subtitle data processing method, characterized in that: include: Receive user input; Cache first subtitle data of a first type into a cache queue, and render the first subtitle data; The cache queue includes a first pointer and a second pointer, the first pointer is used to locate the first subtitle data in the cache queue, and the second pointer is used to indicate the subtitle data currently being processed; When a first subtitle switching input is received, in response to the first subtitle switching input, second subtitle data is cached in the cache queue, the second pointer points to the second subtitle data of the second type, the first pointer points to the first subtitle data of the first type, and the second subtitle data is rendered, and the first subtitle switching input is used to indicate switching to display the second subtitle data of the second type; When a second subtitle switching input is received before the display end time of the first subtitle data, in response to the second subtitle switching input, if the first subtitle data pointed to by the first pointer in the cache queue is detected, the first subtitle data is rendered and displayed, and the second subtitle switching input is used to indicate switching to display the first subtitle data of the first type.

8. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the subtitle data processing method according to claim 7 is implemented.

9. A computer program product, characterized in that include: When the computer program product is executed on a computer, the computer is enabled to implement the subtitle data processing method according to claim 7.

Citation Information

Patent Citations

  • Video file play method and device

    CN104796766A

  • Playing method and apparatus for switching audio tracks and caption tracks

    CN107426600A

  • Subtitle switching method and device for multi-language subtitles obtained by decoding

    CN108040277A