Player and character code detection method and device for subtitle file
A character encoding and detection method technology, applied in the field of character encoding detection of players and subtitle files, to achieve accurate display and good playback experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] figure 1 The implementation flow of the character encoding detection method for subtitle files provided by the first embodiment of the present invention is shown, and the details are as follows:
[0036] In step S101, a character code including all code values in the subtitle file is selected from the character code set to be selected.
[0037] In the embodiment of the present invention, in order to enable the player to accurately output subtitle files using different character codes, a character code set is generally set in the player in advance, and the character code set includes one or more character codes. When the character encoding of the subtitle file to be played in the player needs to be detected, the character encoding set set in the player is used as the character encoding set to be selected, and the character encoding containing all encoding values in the subtitle file is selected from the character encoding set to be selected . Examples are as follow...
Embodiment 2
[0066] figure 2 It shows the implementation flow of the character encoding detection method for subtitle files provided by the second embodiment of the present invention, figure 2 Steps S202, S203 and S204 in the character code detection method shown are respectively the same as figure 1 The steps S101, S102 and S103 of the character encoding detection method shown are the same, and the only difference is that it also includes the following steps:
[0067] In step S201, a large amount of data in different languages is collected, the probability of occurrence of each character in different languages is counted, and the distribution probability of the code value of each character code is calculated according to the probability of appearance of each character in different languages, and the code value of each character code is obtained. Distribution probability table. Examples are as follows:
[0068] By collecting a large number of language data such as webpages and boo...
Embodiment 3
[0070] image 3 It shows the implementation flow of the character encoding detection method for subtitle files provided by the third embodiment of the present invention, image 3 Steps S301 and S302 in the character encoding detection method shown are respectively the same as figure 1 The steps S101 and S102 of the character encoding detection method shown are the same, and the only difference is that it also includes the following steps:
[0071] In step S303, it is judged whether the possibility probability of the character code corresponding to the largest subtitle file is greater than a preset threshold, if yes, execute step S304, otherwise, execute step S305.
[0072] In the embodiment of the present invention, in order to make the detection result more accurate, after obtaining the probability probability of each selected character code corresponding to the subtitle file, it is judged whether the probability probability of the character code corresponding to the largest...
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