Method and device for displaying caption
A display method and technology of a display device, applied in the field of video processing, can solve the problems of chaotic display of subtitles, affecting the quality of viewing, unable to play audio and video synchronously, etc., to achieve the effect of perfect coordination and improved service experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] Embodiment 1, a subtitle display method, the flow chart is as follows figure 1 shown, including:
[0025] A1, obtain the subtitle segment data block;
[0026] A2, acquiring the broadcast time stamp (Presentation Time Stamp, PTS) value of the subtitle segment data block;
[0027] In the embodiment of the present invention, for each subtitle segment data, the PTS value of the subtitle segment data block can be obtained by parsing the subtitle segment header.
[0028] It can be understood that, the manner of obtaining the PTS value of the subtitle segment data block can also adopt various existing conventional implementation manners, and the specific manner does not constitute a limitation to the present invention.
[0029] A3, judging whether the difference between the PTS value of the subtitle segment data block and the PTS value of the current system is less than a preset threshold; if so, then perform step A4; if not, then continue to step A5;
[0030] In the embodi...
Embodiment 2
[0034] Embodiment 2, a subtitle display method, the flow chart is as follows figure 2 shown, including:
[0035] B1, dividing the subtitle file into multiple data blocks assembled into subtitle fragments;
[0036] B2, analyzing each subtitle segment header to obtain the PTS value of the subtitle segment data block;
[0037] B3, according to the existing order of the time corresponding to the PTS value, save the divided subtitle fragment data blocks in the buffer in the form of a queue;
[0038] It can be understood that, in this embodiment of the present invention, the PTS value corresponding to the subtitle fragment data block in the queue in the buffer may also be saved. The PTS value can be directly used in the subsequent step B6, avoiding the subsequent process of parsing the header of the subtitle segment data again to obtain the PTS value.
[0039] B4. Acquiring a subtitle segment data block; the obtained subtitle segment data block is the first subtitle segment data...
Embodiment 3
[0065] Embodiment 3, a subtitle display device 400, the structure schematic diagram is as follows Figure 4 As shown, it includes: a subtitle segment acquisition unit 410, a PTS value acquisition unit 420, a judging unit 430 and a subtitle display unit 440;
[0066] A subtitle segment acquisition unit 410, configured to acquire subtitle segment data blocks;
[0067] The PTS value obtaining unit 420 is used to obtain the broadcast time identifier PTS value of the subtitle segment data block;
[0068] The judging unit 430 is used to judge whether the difference between the PTS value of the subtitle fragment data block and the PTS value of the current system is less than a preset threshold; The subtitle segment data block is parsed to obtain subtitles and displayed.
[0069] The subtitle display unit 440 is configured to analyze the subtitle segment data blocks acquired by the subtitle segment acquisition unit 410 to obtain subtitles and display them.
[0070] The device descr...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com