WO2017080202A1 - 码流字幕的自动测试方法及装置 - Google Patents

码流字幕的自动测试方法及装置 Download PDF

Info

Publication number
WO2017080202A1
WO2017080202A1 PCT/CN2016/084840 CN2016084840W WO2017080202A1 WO 2017080202 A1 WO2017080202 A1 WO 2017080202A1 CN 2016084840 W CN2016084840 W CN 2016084840W WO 2017080202 A1 WO2017080202 A1 WO 2017080202A1
Authority
WO
WIPO (PCT)
Prior art keywords
subtitle
text
program
collating
font
Prior art date
Application number
PCT/CN2016/084840
Other languages
English (en)
French (fr)
Inventor
申杰
曹芝勇
曾庆忠
Original Assignee
深圳Tcl数字技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2017080202A1 publication Critical patent/WO2017080202A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4345Extraction or processing of SI, e.g. extracting service information from an MPEG stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4348Demultiplexing of additional data and video streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • H04N21/4351Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream involving reassembling additional data, e.g. rebuilding an executable program from recovered modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • H04N21/4355Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream involving reformatting operations of additional data, e.g. HTML pages on a television screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Definitions

  • the present invention relates to the field of digital television technologies, and in particular, to an automatic test method and apparatus for code stream subtitles.
  • Subtitles are textual versions of television, film, and computer graphics, and are commonly used in video, such as closed caption in North American television, and graphic subtitles in European television.
  • the goal of developing subtitles is generally for the hearing impaired, but it is also used in special circumstances, such as in a noisy environment like an airport, or in a quiet place like a hospital, you can read subtitles to understand the current The content of the TV.
  • the subtitle test is very important.
  • the same code stream is usually played, and then the test sample is compared, and the same test content is played, and the comparison test is performed by the human eye. Because the human eye judges the speed more slowly than the subtitle display speed, and at the same time, when the human judgment, the tester's distraction, visual fatigue and other factors affect, resulting in low efficiency of the code stream subtitle test, the test error is large, which requires frequent Repeated testing, which greatly reduced the speed of the program and consumed more development test resources.
  • the main object of the present invention is to provide an automatic test method and device for code stream subtitles, which aims to solve the technical problem of how to improve the test efficiency and test speed of code stream subtitles and reduce the test error of code stream subtitles.
  • the present invention provides an automatic test method for a code stream subtitle, and the automatic test method for the code stream subtitle includes:
  • the subtitle content comparison test is performed according to the timestamp of the subtitle text of the program and the timestamp of the collated subtitle text. And output the comparison test results.
  • the decoding the current program code stream to obtain the subtitle information and generating the subtitle information in the preset format of the program subtitle text comprises:
  • the performing subtitle content comparison test and outputting the comparison test result includes:
  • the subtitle encoding format of the subtitle text of the program is different from the subtitle encoding format of the collating subtitle text
  • the subtitle encoding format of the subtitle text of the program is converted into a subtitle encoding format of the collating subtitle text
  • the corresponding subtitle test prompt is output.
  • the performing subtitle content comparison test and outputting the comparison test result includes:
  • the subtitle encoding format of the subtitle text of the program is different from the subtitle encoding format of the collating subtitle text
  • the subtitle encoding format of the subtitle text of the program is converted into a subtitle encoding format of the collating subtitle text
  • the corresponding subtitle test prompt is output.
  • the present invention also provides an automatic test method for a code stream subtitle, and the automatic test method for the code stream subtitle includes:
  • the subtitle content comparison test is performed according to the timestamp of the subtitle text of the program and the timestamp of the collated subtitle text. And output the comparison test results.
  • the decoding the current program code stream to obtain the subtitle information and generating the subtitle information in the preset format of the program subtitle text comprises:
  • the reading the font type of the subtitle in the collating subtitle text corresponding to the program subtitle text, determining whether the font type of the subtitle in the subtitle text of the program is consistent with the font type of the subtitle in the collating subtitle text also includes:
  • the character library of the corresponding font type is obtained from the code stream data of the font data packet to update the font library of the program subtitle text according to the font type of the subtitle in the subtitle text:
  • the obtained font of the corresponding font type is written into a storage location of the program caption text and a caption refresh command is triggered to update a font library of the program caption text.
  • the performing subtitle content comparison test and outputting the comparison test result include:
  • the subtitle encoding format of the subtitle text of the program is different from the subtitle encoding format of the collating subtitle text
  • the subtitle encoding format of the subtitle text of the program is converted into a subtitle encoding format of the collating subtitle text
  • the corresponding subtitle test prompt is output.
  • the present invention further provides an automatic testing device for a code stream subtitle, wherein the automatic test device for the code stream subtitle includes:
  • a subtitle text generating module configured to decode a current program code stream to obtain subtitle information, and generate the subtitle information into a preset subtitle text of the program
  • a font type judging module configured to read a font type of the subtitle in the collating subtitle text corresponding to the subtitle text of the program, and determine whether the font type of the subtitle in the subtitle text of the program and the font type of the subtitle in the collating subtitle text Consistent
  • a subtitle content testing module configured to: when a font type of the subtitle in the subtitle text of the program is consistent with a font type of the subtitle in the collating subtitle text, according to a timestamp of the subtitle text of the program and a timestamp of the collating subtitle text , perform subtitle content comparison test and output comparison test results.
  • the invention adopts an automated code stream subtitle test method, and generates subtitle text of a preset format by generating subtitle information obtained by decoding, thereby realizing comparison test of subtitles with preset collation subtitle text, specifically including font type of subtitles. Comparison and comparison of subtitle content.
  • the corresponding font library may be obtained from the current program code stream to update the font library of the subtitle text of the program.
  • the invention can automatically perform the test of the code stream subtitle, thereby improving the test efficiency and the test speed of the code stream subtitle, and also avoiding the error caused by the human test, and improving the accuracy of the code stream subtitle test.
  • FIG. 1 is a schematic flow chart of a first embodiment of an automatic test method for code stream subtitles according to the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of an automatic test method for code stream subtitles according to the present invention
  • FIG. 3 is a schematic flow chart of an embodiment of code stream production in the present invention.
  • FIG. 4 is a schematic flow chart of a third embodiment of an automatic test method for code stream subtitles according to the present invention.
  • FIG. 5 is a schematic diagram of the refinement process of step S40 in FIG. 4;
  • FIG. 6 is a schematic diagram of a refinement process of step S30 in FIG. 1;
  • FIG. 7 is a schematic diagram of functional modules of a first embodiment of an automatic test apparatus for code stream subtitles
  • FIG. 8 is a schematic diagram of functional modules of a second embodiment of an automatic test apparatus for code stream subtitles
  • FIG. 9 is a schematic diagram of functional modules of a third embodiment of an automatic test apparatus for code stream subtitles.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of an automatic test method for code stream subtitles according to the present invention.
  • the automatic test method for the code stream subtitle includes:
  • Step S10 decoding a current program code stream to obtain subtitle information, and generating the subtitle information in a preset format of the program subtitle text;
  • the decoded subtitle information is generated into a preset format of the program subtitle text, so as to
  • the comparison subtitle text is set for comparison test, and the preset format of the subtitle text is not limited, and is specifically set according to actual needs.
  • the caption text can be edited in an XML format, such as the format of the collated caption text as shown below.
  • encoding indicates the encoding format supported by the device for subtitle testing, such as ISO-8859-1 encoding format, ASCII encoding format, UNICODE encoding format, etc.; font indicates the type of font matching the subtitle, such as font format; The channel name corresponding to the subtitle; content indicates the character content of the subtitle, and time indicates the time stamp of the subtitle, that is, the subtitle display time.
  • Step S20 reading a font type of the subtitle in the collating subtitle text corresponding to the subtitle text of the program, and determining a font type of the subtitle in the subtitle text of the program and a subtitle in the collating subtitle text. Whether the font type is consistent;
  • the preset collation text can be preset in the device that performs the subtitle test, such as preset in the television, or preset in the set top box.
  • the preset corresponding collation text is automatically read for the comparison test. For example, if the program subtitle obtained by the current decoding corresponds to the program subtitle of the CCTV4 channel, the corresponding program subtitle text of the CCTV4 channel is obtained to start the test of the code stream subtitle.
  • the display of the subtitle includes the font type of the subtitle (such as the font), the display position of the subtitle, the time of the subtitle display, and the corresponding subtitle content. Therefore, in this embodiment, it is preferred to perform the font type of the subtitle in the generated subtitle text. Judging to determine whether it matches the font type of the subtitle in the corresponding collating text. For example, the font type of the subtitle in the subtitle text of the program is Song, and the font type of the subtitle in the subtitle text is black, and the font type of the subtitle is inconsistent. If the font type is inconsistent, the font type of the subtitle is tested incorrectly. The font type of the subtitle is tested correctly.
  • Step S30 when the font type of the subtitle in the subtitle text of the program is consistent with the font type of the subtitle in the collating subtitle text, the subtitle content is performed according to the timestamp of the subtitle text of the program and the timestamp of the collating subtitle text. Compare the tests and output the comparison test results.
  • the comparison test of the subtitle content is continued, and the subtitle content is performed according to the timestamp of the subtitle text of the program and the timestamp of the collated subtitle text. Compare the tests and output the comparison test results.
  • the manner in which the subtitle content is compared is not limited, and is specifically set according to actual conditions.
  • the subtitle content of the program subtitle text is "hello, world!” at 10:10:00 to 10:10:20, and the subtitle content of the subtitle text at 10:10:00 to 10:10:20 is "hello".
  • china! after the corresponding comparison test, the character "world” in the subtitle content in the subtitle text of the program is different from the character "china” in the subtitle content in the collating subtitle text, therefore, the subtitle content comparison test An error has occurred, so the result of the comparison test of the corresponding output may be, for example, output "there is a wrong subtitle world in the caption text of the program".
  • the implementation adopts an automated code stream subtitle test method, and generates subtitle text of a preset format by subtitle information obtained by decoding, thereby implementing a comparison test of subtitles with a preset collation subtitle text, and automatically performing code stream subtitles.
  • the test further improves the test efficiency and test speed of the code stream subtitles, and also avoids the error caused by the human test, and improves the accuracy of the code stream subtitle test.
  • the setting of the display position of the subtitle is relatively fixed, and the words of the subtitle corresponding to different programs and the same program at the same time are fixed.
  • the library type and the content may not be the same. Therefore, in this embodiment, it is preferable to test the font type and the subtitle content of the subtitle, but it is not limited to testing only the font type and the subtitle content.
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of an automatic test method for code stream subtitles according to the present invention. Based on the above embodiment, in this embodiment, before step S10, the method includes:
  • Step S01 receiving a transmission code stream and parsing to obtain a program code stream
  • Step S02 determining whether the parsed code stream carries the code stream data of the preset font data packet
  • step S03 when the code stream of the preset font stream is carried in the parsed program stream, the automatic test of the stream subtitle is determined.
  • Linkage_Descriptor in the NIT table of the code stream, a link descriptor, Linkage_Descriptor, is defined, and its structure is defined as Table 1.
  • the service_id is specifically directed to the program number program_number of the custom data in the PAT table of the code stream.
  • the value of the Service_id is preferably set to be the same as the value of the program number program_number.
  • the preset font data packet and the NIT with the link descriptor, the homophonic video data and other programs are displayed.
  • the specific information is packaged together to form a transport stream for broadcast to the network, and then subjected to decoding processing by the receiving end (e.g., television, set top box) to form a program stream.
  • the receiving end e.g., television, set top box
  • the program corresponding to the program stream of the code stream data carrying the font data packet is required as needed.
  • the program of the stream stream subtitle test wherein one type of font data packet corresponds to one font type, for example, a Song body data package, a black body data package, etc., the number of font data packets, the font type, and the like are not limited, and are specifically set according to actual needs. .
  • the PID value of the program for performing the subtitle test needs to be defined in advance at the editing end of the program, and the preset value is preset.
  • the PID value of the program can be determined as the program that needs to be tested for the subtitle, that is, the code stream data corresponding to the PID value of the preset program is correspondingly determined to carry the code stream data of the preset font data packet, and then the program is parsed again.
  • Program data streams such as video data, audio data, subtitle data, etc., for automatic testing of stream subtitles.
  • the decoding process of the transmission stream at the receiving end is roughly as follows:
  • the link description sub-linkage_Descriptor in the NIT table is parsed, and the Service_id value is obtained, and then the program number program_number of the program that needs to be subtitle tested is obtained according to the Service_id;
  • the PAT table is searched according to the program number program_number, the PID value of the program code stream of the corresponding program in the PMT table is obtained, and it is determined whether the PID value of the program code stream is equal to the PID value of the program for performing the caption test in advance; , indicating that the parsing is correct, the code stream subtitle test can be performed, otherwise the prompt error occurs;
  • the program code stream of the program such as video data, audio data, subtitle data, etc.
  • the PID value of the program stream obtained by the parsing is parsed according to the PID value of the program stream obtained by the parsing, so as to perform automatic test of the stream subtitle.
  • the font data packet is packaged into the transport code stream, so as to determine whether the program stream contains the code stream data of the preset font data packet as part of the program that needs to perform the code stream subtitle test. Whether the program corresponding to the current program stream needs to be tested for the stream subtitle.
  • the method for determining whether the program stream has the code stream data of the preset font data packet is not limited, for example, the PID value of the program code stream carrying the code stream data of the set font data packet is preset, and the NIT is successively searched.
  • the table, the PAT table, and the PMT table further determine whether the PID value of the currently parsed program code stream is equal to the preset PID value of the program for performing the caption test. If they are equal, it is determined that the program code stream carries the preset font data.
  • the code stream data of the packet requires testing of the stream subtitles.
  • FIG. 4 is a schematic flowchart diagram of a third embodiment of an automatic test method for code stream subtitles according to the present invention. Based on the above embodiment, in the embodiment, after the step S20, the method further includes:
  • Step S40 when the font type of the subtitle in the subtitle text of the program is inconsistent with the font type of the subtitle in the collating subtitle text, according to the font type of the subtitle in the collating subtitle text,
  • the font stream of the corresponding font type is obtained from the code stream data of the font database to update the font of the program caption text.
  • the font type of the subtitle in the subtitle is used as a reference standard.
  • the font data packet is selected according to the font type of the subtitle in the collating subtitle.
  • the code stream data is obtained from the font library of the same font type as the subtitle in the control subtitle, thereby updating the font library of the program subtitle text.
  • the font type of the subtitle in the subtitle text of the program is Song
  • the font type of the subtitle in the subtitle text is black
  • the font type of the subtitle is different between the two, so it is necessary to obtain the black font from the stream data of the font data packet.
  • the acquired font library is used to update the font of the subtitle text of the program.
  • the font data packet is packaged into the transport code stream, so that the code stream data of the font data packet can be quickly obtained.
  • the font library of the corresponding font type is directly obtained to update the font library of the program subtitle text, so as to further implement the automatic modification processing of the test error of the type, so that the subtitle test of the present invention has a certain error correction function.
  • step S40 includes:
  • Step S401 parsing code stream data of the font data packet according to the font type of the subtitle in the subtitle text to obtain a font library of the corresponding font type;
  • Step S402 writing the acquired font of the corresponding font type to the storage location of the subtitle text of the program and triggering a subtitle refresh command to update the font of the subtitle text of the program.
  • the font data packet in the code stream is parsed from the code stream data of the font data packet, and obtained from the parsing.
  • a font library of the same type as the font of the subtitle in the collating subtitle text is obtained in the font data package.
  • the decoded subtitle information needs to be stored on the terminal device (for example, a set top box or a television) together with the audio and video data for display on the terminal device, it is necessary to write the font library obtained from the font data packet to the terminal device.
  • the storage location of the subtitle text of the program is triggered to perform the font type update processing on the subtitles in the program subtitle text, and each module on the terminal device is notified to perform a related refresh operation to update the font library of the program subtitle text, thereby finally subtitles in the subtitle text of the program.
  • the font type is updated to the same font type as the subtitle in the subtitle text.
  • the corresponding font is obtained to further implement the test error of the font type.
  • the line automatically modifies the processing so that the subtitle test of the present invention has a certain error correction function.
  • FIG. 6 is a schematic diagram of the refinement process of step S30 in FIG.
  • the foregoing step S30 includes:
  • Step S301 determining whether the subtitle encoding format of the subtitle text of the program is the same as the subtitle encoding format of the collating subtitle text;
  • Step S302 when the subtitle encoding format of the subtitle text of the program is different from the subtitle encoding format of the collating subtitle text, converting the subtitle encoding format of the subtitle text of the program into a subtitle encoding format of the collating subtitle text;
  • Step S303 when the subtitle encoding format of the subtitle text of the program is the same as the subtitle encoding format of the collating subtitle text, respectively, whether the subtitle encoding value of the subtitle text of the program is compared with whether the subtitle encoding value of the collating subtitle text is equal.
  • Step S304 outputting a corresponding subtitle test prompt according to the comparison result of the subtitle encoded values.
  • devices that perform code stream subtitle testing may have unsupported character encoding formats, such as a device that performs stream subtitle testing, which supports ASCII encoding but does not support UNICODE encoding format, preset collating subtitles.
  • the subtitle encoding format of the text cannot use the UNICODE encoding format, for example, ASCII encoding, and if the subtitle encoding format of the subtitle text of the program adopts the UNICODE encoding format, the corresponding encoding values may be inconsistent due to inconsistent encoding formats corresponding to the same character, and finally Accurate comparison of characters is not possible.
  • the comparison of the subtitles it is necessary to determine whether the subtitle encoding format of the subtitle text of the program is the same as the subtitle encoding format of the collating subtitle text; if not, convert the subtitle encoding format of the subtitle text of the program into the subtitle of the collating subtitle text.
  • the encoding format is unified, so that the subtitle encoding formats of the two are unified; if the same, the comparison test of the subtitles is directly performed, and according to the comparison result of the subtitle encoding values, the corresponding subtitle test prompts are output, for example, all the comparisons are correct, Then, the prompt for successful subtitle test is output, and if any comparison error occurs, the corresponding wrong character is output and an error reminder is issued.
  • the method for performing subtitle content comparison according to the encoded value of the subtitle character is preferably used, and the subtitle of the program subtitle text is tested.
  • the present invention is not limited to the test method of the subtitle content, for example, directly recognizing the subtitle character. Align the test.
  • the automatic comparison test is performed on the subtitle content, thereby eliminating the need for manual visual comparison, thereby improving the speed and efficiency of the subtitle test, and also improving the accuracy of the test and reducing the manual comparison. Error from It further speeds up the launch of the program and reduces the development and testing resources.
  • FIG. 7 is a schematic diagram of functional modules of a first embodiment of an automatic test apparatus for code stream subtitles.
  • the automatic test device for the code stream subtitle includes:
  • a subtitle text generating module 10 configured to decode a current program code stream to obtain subtitle information, and generate the subtitle information into a preset subtitle text of the program
  • the subtitle text generation module 10 in order to facilitate the automatic test of the code stream subtitle, when the current program code stream is decoded to obtain the subtitle information corresponding to the current program, the subtitle text generation module 10 generates the subtitle information decoded to generate the subtitle information in the preset format.
  • the text is compared with the preset collation text, and the preset format of the subtitle text is not limited, and is set according to actual needs.
  • the font type judging module 20 is configured to read a font type of the subtitle in the collating subtitle text corresponding to the subtitle text of the program, and determine a font type of the subtitle in the subtitle text of the program and a font type of the subtitle in the collating subtitle text. Consistent;
  • the preset collation text can be preset in the device that performs the subtitle test, such as preset in the television, or preset in the set top box.
  • the preset corresponding collation text is automatically read for the comparison test. For example, if the program subtitle obtained by the current decoding corresponds to the program subtitle of the CCTV4 channel, the corresponding program subtitle text of the CCTV4 channel is obtained to start the test of the code stream subtitle.
  • the display of the subtitle includes the font type of the subtitle (such as the font), the display position of the subtitle, the time of the subtitle display, and the corresponding subtitle content. Therefore, in this embodiment, the font type judging module 20 subtitles the subtitle text of the generated program. The font type is judged to determine whether it matches the font type of the subtitle in the corresponding collating text. For example, the font type of the subtitle in the subtitle text of the program is Song, and the font type of the subtitle in the subtitle text is black, and the font type of the subtitle is inconsistent. If the font type is inconsistent, the font type of the subtitle is tested incorrectly. The font type of the subtitle is tested correctly.
  • a subtitle content testing module 30 configured to: when a font type of the subtitle in the subtitle text of the program is consistent with a font type of the subtitle in the collating subtitle text, according to a timestamp of the subtitle text of the program and a time of the collating subtitle text Stamp, perform subtitle content comparison test and output comparison test results.
  • the subtitle content testing module 30 continues the comparison test of the subtitle content, according to the time stamp of the subtitle text of the program and the time of collating the subtitle text. Stamp, perform subtitle content comparison test and output comparison test results.
  • the manner in which the subtitle content is compared is not limited, and the actual The situation is set.
  • the subtitle content of the program subtitle text is "hello, world!” at 10:10:00 to 10:10:20, and the subtitle content of the subtitle text at 10:10:00 to 10:10:20 is "hello".
  • china! after the corresponding comparison test, the character "world” in the subtitle content in the subtitle text of the program is different from the character "china” in the subtitle content in the collating subtitle text, therefore, the subtitle content comparison test An error has occurred, so the result of the comparison test of the corresponding output may be, for example, output "there is a wrong subtitle world in the caption text of the program".
  • the implementation adopts an automated code stream subtitle test method, and generates subtitle text of a preset format by subtitle information obtained by decoding, thereby implementing a comparison test of subtitles with a preset collation subtitle text, and automatically performing code stream subtitles.
  • the test further improves the test efficiency and test speed of the code stream subtitles, and also avoids the error caused by the human test, and improves the accuracy of the code stream subtitle test.
  • the font type and content of the subtitle corresponding to different programs of the same channel and the same program may not be the same, therefore, it is preferable to test the font type of the subtitle and the subtitle content, but it is not limited to testing only the font type and the subtitle content.
  • FIG. 8 is a schematic diagram of functional modules of a second embodiment of an automatic test apparatus for code stream subtitles.
  • the automatic test device for the code stream subtitle further includes:
  • the transmission code stream parsing module 40 is configured to receive and parse the transmission code stream to obtain a program code stream;
  • the font data packet determining module 50 is configured to determine whether the code stream of the preset font data packet is carried in the program code stream obtained by the parsing;
  • the subtitle test determining module 60 is configured to determine an automatic test of the stream subtitle when the parsed program stream carries the code stream data of the preset font data packet.
  • the font data packet is packed into the transport code stream, so as part of the program that needs to perform the code stream subtitle test, the transport stream parsing module 40 parses the received transport stream to obtain the program stream, and then The font data packet determining module 50 determines whether the program stream contains the code stream data of the preset font data packet, and further determines whether the program corresponding to the current program code stream needs to perform the test of the stream subtitle by the subtitle test determining module 60.
  • the method for determining whether the program stream has the code stream data of the preset font data packet is not limited, for example, the PID value of the program code stream carrying the code stream data of the set font data packet is preset, and the NIT is successively searched.
  • the table, the PAT table, and the PMT table further determine whether the PID value of the currently parsed program code stream is equal to the preset PID value of the program for performing the caption test. If they are equal, it is determined that the program code stream carries the preset font data.
  • the code stream data of the packet requires testing of the stream subtitles.
  • FIG. 9 is a schematic diagram of functional modules of a third embodiment of an automatic test apparatus for code stream subtitles.
  • the automatic test device for the code stream subtitle further includes:
  • a font type updating module 70 configured to: when the font type of the subtitle in the subtitle text of the program is inconsistent with the font type of the subtitle in the collating subtitle text, according to the font type of the subtitle in the collating subtitle text, the font data from the font A font library of the corresponding font type is obtained from the code stream data of the packet to update the font library of the program caption text.
  • the font type of the subtitle in the subtitle is used as a reference standard.
  • the font type updating module 70 will according to the font type of the subtitle in the collating subtitle. And acquiring a font library of the same font type as the subtitle in the subtitle in the code stream data of the font data packet, so as to update the font library of the program subtitle text.
  • the font type of the subtitle in the subtitle text of the program is Song
  • the font type of the subtitle in the subtitle text is black
  • the font type of the subtitle is different between the two, so it is necessary to obtain the black font from the stream data of the font data packet.
  • the acquired font library is used to update the font of the subtitle text of the program.
  • the font data packet is packaged into the transport code stream, so that the code stream data of the font data packet can be quickly obtained.
  • the font library of the corresponding font type is directly obtained to update the font library of the program subtitle text, so as to further implement the automatic modification processing of the test error of the type, so that the subtitle test of the present invention has a certain error correction function.

Abstract

本发明公开了一种码流字幕的自动测试方法,包括:解码当前节目码流以得到字幕信息,并将所述字幕信息生成预设格式的节目字幕文本;读取与所述节目字幕文本相对应的对照字幕文本中字幕的字库类型,判断所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型是否一致;若一致,则据所述节目字幕文本的时间戳与所述对照字幕文本的时间戳,进行字幕内容比对测试并输出比对测试结果。本发明还公开了一种码流字幕的自动测试装置。本发明能够自动测试码流字幕,进而提高了码流字幕的测试效率及测试速度,同时也避免了人为测试所带来的误差,提高了码流字幕测试的准确率。

Description

码流字幕的自动测试方法及装置 技术领域
本发明涉及数字电视技术领域,尤其涉及码流字幕的自动测试方法及装置。
背景技术
字幕是电视、电影和计算机图像解说的文本版本,是视频中的常用辅助功能,例如北美电视中的CC字幕(closed caption),欧洲电视中的图文字幕等。开发字幕的目标一般是为了给听力有障碍的人士使用,但也在特殊环境下使用,如在像机场等声音嘈杂的环境中,或者在像医院一样需要安静的地方就可以读字幕来理解当前电视的内容。
由于字幕是对视频中语音的同步文字说明,因此要求不能解析出乱码,错误码,或者是丢字符,或者是画面人物的口型与文字不一致等,因此字幕测试非常重要。而现在做法通常都是通过播放同样的码流,然后比对测试样机,在播放相同测试内容时,通过人眼进行比对测试。由于人眼判断速度要比字幕的显示速度更慢,同时在人为判断时,测试人员的分心、视觉疲劳等因素影响,从而导致对于码流字幕测试的效率低下,测试误差大,从而需要经常反复测试,这大大降低了节目的推出速度以及消耗了更多的开发测试资源。
发明内容
本发明的主要目的在于提供一种码流字幕的自动测试方法及装置,旨在解决如何提高码流字幕的测试效率及测试速度,同时降低码流字幕的测试误差的技术问题。
为实现上述目的,本发明提供一种码流字幕的自动测试方法,所述码流字幕的自动测试方法包括:
解码当前节目码流以得到字幕信息,并将所述字幕信息生成预设格式的节目字幕文本;
读取与所述节目字幕文本相对应的对照字幕文本中字幕的字库类型,判断所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型是否一致;
当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型不一致时,根据所述对照字幕文本中字幕的字库类型,解析所述字库数据包的码流数据以获取相应字库类型的字库;将获取的所述相应字库类型的字库写入所述节目字幕文本的存储位置并触发字幕刷新命令,以更新所述节目字幕文本的字库;
当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型一致时,根据所述节目字幕文本的时间戳与所述对照字幕文本的时间戳,进行字幕内容比对测试并输出比对测试结果。
优选地,所述解码当前节目码流以得到字幕信息,并将所述字幕信息生成预设格式的节目字幕文本之前包括:
接收传输码流并解析,得到节目码流;
判断解析得到的节目码流中是否携带有预设字库数据包的码流数据;
当解析得到的节目码流中携带有预设字库数据包的码流数据时,确定进行码流字幕的自动测试。
优选地,所述进行字幕内容比对测试并输出比对测试结果包括:
判断所述节目字幕文本的字幕编码格式是否与所述对照字幕文本的字幕编码格式相同;
当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式不相同时,将所述节目字幕文本的字幕编码格式转换为所述对照字幕文本的字幕编码格式;
当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式相同时,分别对应比较所述节目字幕文本的字幕编码值与所述对照字幕文本的字幕编码值是否相等;
根据字幕编码值的比对结果,输出相应的字幕测试提示。
优选地,所述进行字幕内容比对测试并输出比对测试结果包括:
判断所述节目字幕文本的字幕编码格式是否与所述对照字幕文本的字幕编码格式相同;
当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式不相同时,将所述节目字幕文本的字幕编码格式转换为所述对照字幕文本的字幕编码格式;
当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式相同时,分别对应比较所述节目字幕文本的字幕编码值与所述对照字幕文本的字幕编码值是否相等;
根据字幕编码值的比对结果,输出相应的字幕测试提示。
为实现上述目的,本发明还提供一种码流字幕的自动测试方法,所述码流字幕的自动测试方法包括:
解码当前节目码流以得到字幕信息,并将所述字幕信息生成预设格式的节目字幕文本;
读取与所述节目字幕文本相对应的对照字幕文本中字幕的字库类型,判断所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型是否一致;
当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型一致时,根据所述节目字幕文本的时间戳与所述对照字幕文本的时间戳,进行字幕内容比对测试并输出比对测试结果。
优选地,所述解码当前节目码流以得到字幕信息,并将所述字幕信息生成预设格式的节目字幕文本之前包括:
接收传输码流并解析,得到节目码流;
判断解析得到的节目码流中是否携带有预设字库数据包的码流数据;
当解析得到的节目码流中携带有预设字库数据包的码流数据时,确定进行码流字幕的自动测试。
优选地,所述读取与所述节目字幕文本相对应的对照字幕文本中字幕的字库类型,判断所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型是否一致之后还包括:
当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型不一致时,根据所述对照字幕文本中字幕的字库类型,从所述字库数据包的码流数据中获取相应字库类型的字库以更新所述节目字幕文本的字库。
优选地,所述根据所述对照字幕文本中字幕的字库类型,从所述字库数据包的码流数据中获取相应字库类型的字库以更新所述节目字幕文本的字库包括:
根据所述对照字幕文本中字幕的字库类型,解析所述字库数据包的码流数据以获取相应字库类型的字库;
将获取的所述相应字库类型的字库写入所述节目字幕文本的存储位置并触发字幕刷新命令,以更新所述节目字幕文本的字库。
优选地,其特征在于,所述进行字幕内容比对测试并输出比对测试结果 包括:
判断所述节目字幕文本的字幕编码格式是否与所述对照字幕文本的字幕编码格式相同;
当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式不相同时,将所述节目字幕文本的字幕编码格式转换为所述对照字幕文本的字幕编码格式;
当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式相同时,分别对应比较所述节目字幕文本的字幕编码值与所述对照字幕文本的字幕编码值是否相等;
根据字幕编码值的比对结果,输出相应的字幕测试提示。
进一步地,为实现上述目的,本发明还提供一种码流字幕的自动测试装置,所述码流字幕的自动测试装置包括:
字幕文本生成模块,用于解码当前节目码流以得到字幕信息,并将所述字幕信息生成预设格式的节目字幕文本;
字库类型判断模块,用于读取与所述节目字幕文本相对应的对照字幕文本中字幕的字库类型,判断所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型是否一致;
字幕内容测试模块,用于当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型一致时,根据所述节目字幕文本的时间戳与所述对照字幕文本的时间戳,进行字幕内容比对测试并输出比对测试结果。
本发明采用自动化的码流字幕测试方式,通过将解码获得的字幕信息生成预设格式的节目字幕文本,进而实现与预设的对照字幕文本进行字幕的比对测试,具体包括字幕的字库类型的比对以及字幕内容的比对。另外,当节目字幕文本中字幕的字库类型与对照字幕文本中的字库类型不一致时,可以从当前节目码流中获取相应的字库以更新所述节目字幕文本的字库。本发明能够自动进行码流字幕的测试,进而提高了码流字幕的测试效率及测试速度,同时也避免了人为测试所带来的误差,提高了码流字幕测试的准确率。
附图说明
图1为本发明码流字幕的自动测试方法第一实施例的流程示意图;
图2为本发明码流字幕的自动测试方法第二实施例的流程示意图;
图3为本发明中码流制作一实施例的流程示意图;
图4为本发明码流字幕的自动测试方法第三实施例的流程示意图;
图5为图4中步骤S40细化流程示意图;
图6为图1中步骤S30的细化流程示意图;
图7为码流字幕的自动测试装置第一实施例的功能模块示意图;
图8为码流字幕的自动测试装置第二实施例的功能模块示意图;
图9为码流字幕的自动测试装置第三实施例的功能模块示意图。
具体实施方式
应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。
参照图1,图1为本发明码流字幕的自动测试方法第一实施例的流程示意图。本实施例中,所述码流字幕的自动测试方法包括:
步骤S10,解码当前节目码流以得到字幕信息,并将所述字幕信息生成预设格式的节目字幕文本;
本实施例中,为便于进行码流字幕的自动测试,在解码当前节目码流以得到当前节目所对应的字幕信息时,将解码得到的字幕信息生成预设格式的节目字幕文本,以便与预设的对照字幕文本进行比对测试,字幕文本的预设格式不限,具体根据实际需要进行设置。例如,字幕文本可以采用XML格式进行编辑,比如如下所示的对照字幕文本的设置格式。
<xml version="1.0"encoding="ISO-8859-1">
<subtitle>
<font>Calibri</font>
<program>CCTV4</program>
<content time=“10:10:00”>Hello world!</content>
</subtitle>
其中,encoding表示进行字幕测试的设备所支持的编码格式,比如ISO-8859-1编码格式、ASCII码编码格式、UNICODE码编码格式等;font表示对照字幕的字库类型,比如字体格式;program表示对照字幕所对应的频道名;content表示字幕的字符内容,time表示字幕的时间戳,也即字幕显示时间。
步骤S20,读取与所述节目字幕文本相对应的对照字幕文本中字幕的字库类型,判断所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕 的字库类型是否一致;
本实施例中,需要进一步说明的是,预设的对照字幕文本可预先设置于执行字幕测试的设备内,比如预置于电视机内,或者预置于机顶盒内等。当在执行字幕测试的设备上开始进行码流字幕的自动测试时,自动读取预置的相应对照字幕文本以进行比对测试。比如,当前解码后得到的节目字幕对应为CCTV4频道的节目字幕,则相应获取program为CCTV4频道的对照字幕文本开始进行码流字幕的测试。
字幕的显示具体包括字幕的字库类型(比如字体)、字幕的显示位置、字幕显示的时间及相应字幕内容等,因此,本实施例中,优选先对生成的节目字幕文本中字幕的字库类型进行判断,以判断其是否与相对应的对照字幕文本中字幕的字库类型相一致。比如,节目字幕文本中字幕的字库类型为宋体,而对照字幕文本中字幕的字库类型为黑体,则二者间的字库类型不一致,若不一致,则字幕的字体类型测试错误,而若一致,则字幕的字体类型测试正确。
步骤S30,当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型一致时,根据所述节目字幕文本的时间戳与所述对照字幕文本的时间戳,进行字幕内容比对测试并输出比对测试结果。
当节目字幕文本中字幕的字库类型与对照字幕文本中字幕的字库类型一致时,则继续进行字幕内容的比对测试,具体根据节目字幕文本的时间戳与对照字幕文本的时间戳,进行字幕内容比对测试并输出比对测试结果。本实施例中,对于字幕内容比对的方式不限,具体根据实际情况进行设置。
例如,节目字幕文本在10:10:00~10:10:20的字幕内容为“hello,world!”,而对照字幕文本在10:10:00~10:10:20的字幕内容为“hello,china!”,则分别对应进行比对测试后,由于节目字幕文本中字幕内容中的字符“world”与对照字幕文本中字幕内容中的字符“china”不相同,因此,字幕内容比对测试发生错误,因此相应输出的比对测试结果可以是,比如,输出“节目字幕文本中存在错误字幕world”。
本实施采用自动化的码流字幕测试方式,通过将解码获得的字幕信息生成预设格式的节目字幕文本,进而实现与预设的对照字幕文本进行字幕的比对测试,通过进行码流字幕的自动测试,进而提高了码流字幕的测试效率及测试速度,同时也避免了人为测试所带来的误差,提高了码流字幕测试的准确率。此外,需要说明的是,在字幕的显示内容中,由于字幕的显示位置的设置相对固定,而同一频道不同节目、同一节目不同时间所对应的字幕的字 库类型以及内容可能并不相同,因此,本实施例中优选对字幕的字库类型以及字幕内容进行测试,但并不限定于只对字库类型以及字幕内容进行测试。
参照图2,图2为本发明码流字幕的自动测试方法第二实施例的流程示意图。基于上述实施例,本实施例中,步骤S10之前包括:
步骤S01,接收传输码流并解析,得到节目码流;
步骤S02,判断解析得到的节目码流中是否携带有预设字库数据包的码流数据;
步骤S03,当解析得到的节目码流中携带有预设字库数据包的码流数据时,确定进行码流字幕的自动测试。
本实施例中,为便于快速查找到需要进行字幕测试的节目,因此在码流的NIT表中,定义一个链接描述子Linkage_Descriptor,其结构定义如表1。
表1
Figure PCTCN2016084840-appb-000001
其中,Service_id具体指向码流的PAT表中的自定义数据的节目号program_number,为便于快速定位需要进行字幕测试的节目,优选将Service_id的值设为与节目号program_number的值相同。
如图3所示,本实施例中,在节目的编辑端(比如运营商端的音视频数据编辑设备),将预设的字库数据包以及带有链接描述符的NIT,同音视频数据及其他节目特定信息一起进行打包形成传输码流以广播到网络上,然后再经过接收端(例如电视机、机顶盒)的解码处理而形成节目码流。本实施例中,将携带有字库数据包的码流数据的节目码流所对应的节目作为需要进行 码流字幕测试的节目,其中,一种字库数据包对应一种字体类型,比如,宋体数据包、黑体数据包等,字库数据包的设置数量、字体类型等不限,具体根据实际需要进行设置。
另外,需要进一步说明的是,由于节目的PID(Packet Identifier,包标识符)值在码流中唯一存在,因此在节目的编辑端还需要预先定义进行字幕测试的节目的PID值,通过预设的节目的PID值即可确定为需要进行字幕测试的节目,也即相应确定与预设的节目的PID值对应的数据包中携带有预设字库数据包的码流数据,进而再解析出节目的视频数据、音频数据、字幕数据等节目码流,以进行码流字幕的自动测试。接收端的对传输码流的解码过程大致如下:
首先,解析NIT表中的链接描述子Linkage_Descriptor,得到Service_id值,进而根据Service_id获得需要进行字幕测试的节目的节目号program_number;
其次,根据节目号program_number查找PAT表,获得PMT表中对应节目的节目码流的PID值,并判断该节目码流的PID值与预先设置的进行字幕测试的节目的PID值是否相等;若相等,则说明解析正确,可以进行码流字幕的测试,否则提示出错;
最后,根据解析获得的节目码流的PID值解析出节目的视频数据、音频数据、字幕数据等节目码流,以进行码流字幕的自动测试。
本实施例中,将字库数据包打包进传输码流中,从而作为需要进行码流字幕测试的节目的一部分,通过判断节目码流中是否携带有预设字库数据包的码流数据进而以确定当前节目码流对应的节目是否需要进行码流字幕的测试。另外,对于判断节目码流中是否携带有预设字库数据包的码流数据的方式不限,例如预先设置携带有设字库数据包的码流数据的节目码流的PID值,通过相继查找NIT表、PAT表以及PMT表,进而确定当前解析得到的节目码流的PID值与预先设置的进行字幕测试的节目的PID值是否相等,若相等,则确定节目码流中携带有预设字库数据包的码流数据,因而需要进行码流字幕的测试。
参照图4,图4为本发明码流字幕的自动测试方法第三实施例的流程示意图。基于上述实施例,在本实施例中,上述步骤S20之后还包括:
步骤S40,当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型不一致时,根据所述对照字幕文本中字幕的字库类型,从所 述字库数据包的码流数据中获取相应字库类型的字库以更新所述节目字幕文本的字库。
本实施例以对照字幕中字幕的字库类型为参照标准,当节目字幕文本中字幕的字库类型与对照字幕文本中字幕的字库类型不一致时,将根据对照字幕中字幕的字库类型,从字库数据包的码流数据中获取与对照字幕中字幕的字库类型相同的字库,从而用以更新节目字幕文本的字库。
例如,节目字幕文本中字幕的字库类型为宋体,而对照字幕文本中字幕的字库类型为黑体,二者之间字幕的字库类型不同,因而需要从字库数据包的码流数据中获取黑体字库,并将获取的黑体字库用以更新节目字幕文本的宋体字库。
本实施例中,当测试码流中字幕的字库类型与预先设置的对照字幕的字库类型不一致时,通过将字库数据包打包到传输码流中,从而可以快速从字库数据包的码流数据中直接获取相应字库类型的字库以更新节目字幕文本的字库,以进一步实现对该类测试错误的自动修改处理,从而使本发明的字幕测试具备一定的纠错功能。
参照图5,图5为图4中步骤S40细化流程示意图。基于上述实施例,本实施例中,步骤S40包括:
步骤S401,根据所述对照字幕文本中字幕的字库类型,解析所述字库数据包的码流数据以获取相应字库类型的字库;
步骤S402,将获取的所述相应字库类型的字库写入所述节目字幕文本的存储位置并触发字幕刷新命令,以更新所述节目字幕文本的字库。
本实施例中,当节目字幕文本中字幕的字库类型与对照字幕文本中字幕的字库类型不一致时,从字库数据包的码流数据中解析获取码流中的字库数据包,并从解析获得的字库数据包中获取与对照字幕文本中字幕的字库类型相同的字库。
此外,由于解码后的字幕信息需要同音视频数据一起保存在终端设备(例如机顶盒、电视机)上以便于在终端设备上显示,因此需要将从字库数据包中获取的字库也写入终端设备上的节目字幕文本的存储位置。同时,触发字库刷新命令以对节目字幕文本中的字幕进行字库类型的更新处理,并通知终端设备上的各模块进行相关刷新操作以更新节目字幕文本的字库,从而最终将节目字幕文本中所有字幕的字库类型更新为与照字幕文本中字幕相同的字库类型。本实施例通过获取相应字库以进一步实现对字库类型的测试错误进 行自动修改处理,从而使本发明的字幕测试具备一定的纠错功能。
参照图6,图6为图1中步骤S30的细化流程示意图。本实施例中,上述步骤S30包括:
步骤S301,判断所述节目字幕文本的字幕编码格式是否与所述对照字幕文本的字幕编码格式相同;
步骤S302,当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式不相同时,将所述节目字幕文本的字幕编码格式转换为所述对照字幕文本的字幕编码格式;
步骤S303,当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式相同时,分别对应比较所述节目字幕文本的字幕编码值与所述对照字幕文本的字幕编码值是否相等;
步骤S304,根据字幕编码值的比对结果,输出相应的字幕测试提示。
本实施例中,优选采用根据字幕字符的编码值进行字幕内容比对的方法,对节目字幕文本的字幕进行测试。考虑到进行码流字幕测试的设备(比如机顶盒、电视)可能存在所不支持的字符编码格式,比如某款进行码流字幕测试的设备支持ASCII编码但不支持UNICODE编码格式,预置的对照字幕文本的字幕编码格式不能采用UNICODE编码格式,例如采用ASCII编码,而若节目字幕文本的字幕编码格式采用UNICODE编码格式,因而由于同一字符所对应的编码格式不一致进而导致对应的编码值可能不一致,最终不能进行字符的准确比对。
因此,在进行字幕的比对时,需要判断节目字幕文本的字幕编码格式是否与对照字幕文本的字幕编码格式相同;若不相同,则将节目字幕文本的字幕编码格式转换为对照字幕文本的字幕编码格式,进而使二者的字幕编码格式统一;而若相同,则直接进行字幕的比对测试,并根据字幕编码值的比对结果,输出相应的字幕测试提示,例如,全部比对正确,则输出字幕测试成功的提示,而若出现任何的比对错误,则输出相应的比对错误的字符以及进行错误提醒。
本实施例中,优选采用根据字幕字符的编码值进行字幕内容比对的方法,对节目字幕文本的字幕进行测试,但本发明并不限定于上述字幕内容的测试方式,比如直接识别字幕字符进行比对测试。本实施例中,通过对字幕内容进行自动比对测试,进而无需通过人工视觉比对,从而提高了字幕测试的速度与效率,同时也提高了测试的准确率,减少了采用人工比对时的误差,从 而进一步加快了节目的推出速度以及减少了更多的开发测试资源。
参照图7,图7为码流字幕的自动测试装置第一实施例的功能模块示意图。本实施例中,码流字幕的自动测试装置包括:
字幕文本生成模块10,用于解码当前节目码流以得到字幕信息,并将所述字幕信息生成预设格式的节目字幕文本;
本实施例中,为便于进行码流字幕的自动测试,在解码当前节目码流以得到当前节目所对应的字幕信息时,字幕文本生成模块10将解码得到的字幕信息生成预设格式的节目字幕文本,以便与预设的对照字幕文本进行比对测试,字幕文本的预设格式不限,具体根据实际需要进行设置。
字库类型判断模块20,用于读取与所述节目字幕文本相对应的对照字幕文本中字幕的字库类型,判断所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型是否一致;
本实施例中,需要进一步说明的是,预设的对照字幕文本可预先设置于执行字幕测试的设备内,比如预置于电视机内,或者预置于机顶盒内等。当在执行字幕测试的设备上开始进行码流字幕的自动测试时,自动读取预置的相应对照字幕文本以进行比对测试。比如,当前解码后得到的节目字幕对应为CCTV4频道的节目字幕,则相应获取program为CCTV4频道的对照字幕文本开始进行码流字幕的测试。
字幕的显示具体包括字幕的字库类型(比如字体)、字幕的显示位置、字幕显示的时间及相应字幕内容等,因此,本实施例中,字库类型判断模块20对生成的节目字幕文本中字幕的字库类型进行判断,以判断其是否与相对应的对照字幕文本中字幕的字库类型相一致。比如,节目字幕文本中字幕的字库类型为宋体,而对照字幕文本中字幕的字库类型为黑体,则二者间的字库类型不一致,若不一致,则字幕的字体类型测试错误,而若一致,则字幕的字体类型测试正确。
字幕内容测试模块30,用于当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型一致时,根据所述节目字幕文本的时间戳与所述对照字幕文本的时间戳,进行字幕内容比对测试并输出比对测试结果。
当节目字幕文本中字幕的字库类型与对照字幕文本中字幕的字库类型一致时,则字幕内容测试模块30继续进行字幕内容的比对测试,具体根据节目字幕文本的时间戳与对照字幕文本的时间戳,进行字幕内容比对测试并输出比对测试结果。本实施例中,对于字幕内容比对的方式不限,具体根据实际 情况进行设置。
例如,节目字幕文本在10:10:00~10:10:20的字幕内容为“hello,world!”,而对照字幕文本在10:10:00~10:10:20的字幕内容为“hello,china!”,则分别对应进行比对测试后,由于节目字幕文本中字幕内容中的字符“world”与对照字幕文本中字幕内容中的字符“china”不相同,因此,字幕内容比对测试发生错误,因此相应输出的比对测试结果可以是,比如,输出“节目字幕文本中存在错误字幕world”。
本实施采用自动化的码流字幕测试方式,通过将解码获得的字幕信息生成预设格式的节目字幕文本,进而实现与预设的对照字幕文本进行字幕的比对测试,通过进行码流字幕的自动测试,进而提高了码流字幕的测试效率及测试速度,同时也避免了人为测试所带来的误差,提高了码流字幕测试的准确率。此外,需要说明的是,在字幕的显示内容中,由于字幕的显示位置的设置相对固定,而同一频道不同节目、同一节目不同时间所对应的字幕的字库类型以及内容可能并不相同,因此,本实施例中优选对字幕的字库类型以及字幕内容进行测试,但并不限定于只对字库类型以及字幕内容进行测试。
参照图8,图8为码流字幕的自动测试装置第二实施例的功能模块示意图。本实施例中,码流字幕的自动测试装置还包括:
传输码流解析模块40,用于接收传输码流并解析,得到节目码流;
字库数据包判断模块50,用于判判断解析得到的节目码流中是否携带有预设字库数据包的码流数据;
字幕测试确定模块60,用于当解析得到的节目码流中携带有预设字库数据包的码流数据时,确定进行码流字幕的自动测试。
本实施例中,将字库数据包打包进传输码流中,从而作为需要进行码流字幕测试的节目的一部分,传输码流解析模块40将接收到的传输码流解析,得到节目码流,然后通过字库数据包判断模块50判断节目码流中是否携带有预设字库数据包的码流数据,进而通过字幕测试确定模块60确定当前节目码流对应的节目是否需要进行码流字幕的测试。另外,对于判断节目码流中是否携带有预设字库数据包的码流数据的方式不限,例如预先设置携带有设字库数据包的码流数据的节目码流的PID值,通过相继查找NIT表、PAT表以及PMT表,进而确定当前解析得到的节目码流的PID值与预先设置的进行字幕测试的节目的PID值是否相等,若相等,则确定节目码流中携带有预设字库数据包的码流数据,因而需要进行码流字幕的测试。
参照图9,图9为码流字幕的自动测试装置第三实施例的功能模块示意图。本实施例中,码流字幕的自动测试装置还包括:
字库类型更新模块70,用于当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型不一致时,根据所述对照字幕文本中字幕的字库类型,从所述字库数据包的码流数据中获取相应字库类型的字库以更新所述节目字幕文本的字库。
本实施例以对照字幕中字幕的字库类型为参照标准,当节目字幕文本中字幕的字库类型与对照字幕文本中字幕的字库类型不一致时,字库类型更新模块70将根据对照字幕中字幕的字库类型,从字库数据包的码流数据中获取与对照字幕中字幕的字库类型相同的字库,从而用以更新节目字幕文本的字库。
例如,节目字幕文本中字幕的字库类型为宋体,而对照字幕文本中字幕的字库类型为黑体,二者之间字幕的字库类型不同,因而需要从字库数据包的码流数据中获取黑体字库,并将获取的黑体字库用以更新节目字幕文本的宋体字库。
本实施例中,当测试码流中字幕的字库类型与预先设置的对照字幕的字库类型不一致时,通过将字库数据包打包到传输码流中,从而可以快速从字库数据包的码流数据中直接获取相应字库类型的字库以更新节目字幕文本的字库,以进一步实现对该类测试错误的自动修改处理,从而使本发明的字幕测试具备一定的纠错功能。

Claims (20)

  1. 一种码流字幕的自动测试方法,其特征在于,所述码流字幕的自动测试方法包括:
    解码当前节目码流以得到字幕信息,并将所述字幕信息生成预设格式的节目字幕文本;
    读取与所述节目字幕文本相对应的对照字幕文本中字幕的字库类型,判断所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型是否一致;
    当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型不一致时,根据所述对照字幕文本中字幕的字库类型,解析所述字库数据包的码流数据以获取相应字库类型的字库;将获取的所述相应字库类型的字库写入所述节目字幕文本的存储位置并触发字幕刷新命令,以更新所述节目字幕文本的字库;
    当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型一致时,根据所述节目字幕文本的时间戳与所述对照字幕文本的时间戳,进行字幕内容比对测试并输出比对测试结果。
  2. 如权利要求1所述的码流字幕的自动测试方法,其特征在于,所述解码当前节目码流以得到字幕信息,并将所述字幕信息生成预设格式的节目字幕文本之前包括:
    接收传输码流并解析,得到节目码流;
    判断解析得到的节目码流中是否携带有预设字库数据包的码流数据;
    当解析得到的节目码流中携带有预设字库数据包的码流数据时,确定进行码流字幕的自动测试。
  3. 如权利要求1所述的码流字幕的自动测试方法,其特征在于,所述进行字幕内容比对测试并输出比对测试结果包括:
    判断所述节目字幕文本的字幕编码格式是否与所述对照字幕文本的字幕编码格式相同;
    当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式不相同时,将所述节目字幕文本的字幕编码格式转换为所述对照字幕文本的字幕编码格式;
    当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式相同时,分别对应比较所述节目字幕文本的字幕编码值与所述对照字幕文本的字幕编码值是否相等;
    根据字幕编码值的比对结果,输出相应的字幕测试提示。
  4. 如权利要求2所述的码流字幕的自动测试方法,其特征在于,所述进行字幕内容比对测试并输出比对测试结果包括:
    判断所述节目字幕文本的字幕编码格式是否与所述对照字幕文本的字幕编码格式相同;
    当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式不相同时,将所述节目字幕文本的字幕编码格式转换为所述对照字幕文本的字幕编码格式;
    当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式相同时,分别对应比较所述节目字幕文本的字幕编码值与所述对照字幕文本的字幕编码值是否相等;
    根据字幕编码值的比对结果,输出相应的字幕测试提示。
  5. 一种码流字幕的自动测试方法,其特征在于,所述码流字幕的自动测试方法包括:
    解码当前节目码流以得到字幕信息,并将所述字幕信息生成预设格式的节目字幕文本;
    读取与所述节目字幕文本相对应的对照字幕文本中字幕的字库类型,判断所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型是否一致;
    当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型一致时,根据所述节目字幕文本的时间戳与所述对照字幕文本的时间戳,进行字幕内容比对测试并输出比对测试结果。
  6. 如权利要求5所述的码流字幕的自动测试方法,其特征在于,所述解码当前节目码流以得到字幕信息,并将所述字幕信息生成预设格式的节目字幕文本之前包括:
    接收传输码流并解析,得到节目码流;
    判断解析得到的节目码流中是否携带有预设字库数据包的码流数据;
    当解析得到的节目码流中携带有预设字库数据包的码流数据时,确定进行码流字幕的自动测试。
  7. 如权利要求5所述的码流字幕的自动测试方法,其特征在于,所述读取与所述节目字幕文本相对应的对照字幕文本中字幕的字库类型,判断所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型是否一致之后还包括:
    当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型不一致时,根据所述对照字幕文本中字幕的字库类型,从所述字库数据包的码流数据中获取相应字库类型的字库以更新所述节目字幕文本的字库。
  8. 如权利要求6所述的码流字幕的自动测试方法,其特征在于,所述读取与所述节目字幕文本相对应的对照字幕文本中字幕的字库类型,判断所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型是否一致之后还包括:
    当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型不一致时,根据所述对照字幕文本中字幕的字库类型,从所述字库数据包的码流数据中获取相应字库类型的字库以更新所述节目字幕文本的字库。
  9. 如权利要求5所述的码流字幕的自动测试方法,其特征在于,所述进行字幕内容比对测试并输出比对测试结果包括:
    判断所述节目字幕文本的字幕编码格式是否与所述对照字幕文本的字幕 编码格式相同;
    当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式不相同时,将所述节目字幕文本的字幕编码格式转换为所述对照字幕文本的字幕编码格式;
    当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式相同时,分别对应比较所述节目字幕文本的字幕编码值与所述对照字幕文本的字幕编码值是否相等;
    根据字幕编码值的比对结果,输出相应的字幕测试提示。
  10. 如权利要求6所述的码流字幕的自动测试方法,其特征在于,所述进行字幕内容比对测试并输出比对测试结果包括:
    判断所述节目字幕文本的字幕编码格式是否与所述对照字幕文本的字幕编码格式相同;
    当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式不相同时,将所述节目字幕文本的字幕编码格式转换为所述对照字幕文本的字幕编码格式;
    当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式相同时,分别对应比较所述节目字幕文本的字幕编码值与所述对照字幕文本的字幕编码值是否相等;
    根据字幕编码值的比对结果,输出相应的字幕测试提示。
  11. 如权利要求7所述的码流字幕的自动测试方法,其特征在于,所述进行字幕内容比对测试并输出比对测试结果包括:
    判断所述节目字幕文本的字幕编码格式是否与所述对照字幕文本的字幕编码格式相同;
    当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式不相同时,将所述节目字幕文本的字幕编码格式转换为所述对照字幕文本的字幕编码格式;
    当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式相同时,分别对应比较所述节目字幕文本的字幕编码值与所述对照字幕文 本的字幕编码值是否相等;
    根据字幕编码值的比对结果,输出相应的字幕测试提示。
  12. 一种码流字幕的自动测试装置,其特征在于,所述码流字幕的自动测试装置包括:
    字幕文本生成模块,用于解码当前节目码流以得到字幕信息,并将所述字幕信息生成预设格式的节目字幕文本;
    字库类型判断模块,用于读取与所述节目字幕文本相对应的对照字幕文本中字幕的字库类型,判断所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型是否一致;
    字幕内容测试模块,用于当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型一致时,根据所述节目字幕文本的时间戳与所述对照字幕文本的时间戳,进行字幕内容比对测试并输出比对测试结果。
  13. 如权利要求12所述的码流字幕的自动测试装置,其特征在于,所述码流字幕的自动测试装置还包括:
    传输码流解析模块,用于接收传输码流并解析,得到节目码流;
    字库数据包判断模块,用于判判断解析得到的节目码流中是否携带有预设字库数据包的码流数据;
    节目码流解析模块,用于当解析得到的节目码流中携带有预设字库数据包的码流数据时,确定进行码流字幕的自动测试。
  14. 如权利要求12所述的码流字幕的自动测试装置,其特征在于,所述码流字幕的自动测试装置还包括:
    字库类型更新模块,用于当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型不一致时,根据所述对照字幕文本中字幕的字库类型,从所述字库数据包的码流数据中获取相应字库类型的字库以更新所述节目字幕文本的字库。
  15. 如权利要求13所述的码流字幕的自动测试装置,其特征在于,所述 码流字幕的自动测试装置还包括:
    字库类型更新模块,用于当所述节目字幕文本中字幕的字库类型与所述对照字幕文本中字幕的字库类型不一致时,根据所述对照字幕文本中字幕的字库类型,从所述字库数据包的码流数据中获取相应字库类型的字库以更新所述节目字幕文本的字库。
  16. 如权利要求14所述的码流字幕的自动测试装置,其特征在于,所述字库类型更新模块包括:
    字库获取单元,用于根据所述对照字幕文本中字幕的字库类型,解析所述字库数据包的码流数据以获取相应字库类型的字库;
    字库更新单元,用于将获取的所述相应字库类型的字库写入所述节目字幕文本的存储位置并触发字幕刷新命令,以更新所述节目字幕文本的字库。
  17. 如权利要求15所述的码流字幕的自动测试装置,其特征在于,所述字库类型更新模块包括:
    字库获取单元,用于根据所述对照字幕文本中字幕的字库类型,解析所述字库数据包的码流数据以获取相应字库类型的字库;
    字库更新单元,用于将获取的所述相应字库类型的字库写入所述节目字幕文本的存储位置并触发字幕刷新命令,以更新所述节目字幕文本的字库。
  18. 如权利要求12所述的码流字幕的自动测试装置,其特征在于,所述字幕内容测试模块包括:
    编码格式判断单元,用于判断所述节目字幕文本的字幕编码格式是否与所述对照字幕文本的字幕编码格式相同;
    编码格式转换单元,用于当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式不相同时,将所述节目字幕文本的字幕编码格式转换为所述对照字幕文本的字幕编码格式;
    编码值比对单元,用于当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式相同时,分别对应比较所述节目字幕文本的字幕编码值与所述对照字幕文本的字幕编码值是否相等;
    测试提示输出单元,用于根据字幕编码值的比对结果,输出相应的字幕测试提示。
  19. 如权利要求13所述的码流字幕的自动测试装置,其特征在于,所述字幕内容测试模块包括:
    编码格式判断单元,用于判断所述节目字幕文本的字幕编码格式是否与所述对照字幕文本的字幕编码格式相同;
    编码格式转换单元,用于当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式不相同时,将所述节目字幕文本的字幕编码格式转换为所述对照字幕文本的字幕编码格式;
    编码值比对单元,用于当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式相同时,分别对应比较所述节目字幕文本的字幕编码值与所述对照字幕文本的字幕编码值是否相等;
    测试提示输出单元,用于根据字幕编码值的比对结果,输出相应的字幕测试提示。
  20. 如权利要求14所述的码流字幕的自动测试装置,其特征在于,所述字幕内容测试模块包括:
    编码格式判断单元,用于判断所述节目字幕文本的字幕编码格式是否与所述对照字幕文本的字幕编码格式相同;
    编码格式转换单元,用于当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式不相同时,将所述节目字幕文本的字幕编码格式转换为所述对照字幕文本的字幕编码格式;
    编码值比对单元,用于当所述节目字幕文本的字幕编码格式与所述对照字幕文本的字幕编码格式相同时,分别对应比较所述节目字幕文本的字幕编码值与所述对照字幕文本的字幕编码值是否相等;
    测试提示输出单元,用于根据字幕编码值的比对结果,输出相应的字幕测试提示。
PCT/CN2016/084840 2015-11-13 2016-06-03 码流字幕的自动测试方法及装置 WO2017080202A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510776708.0A CN105430481B (zh) 2015-11-13 2015-11-13 码流字幕的自动测试方法及装置
CN201510776708.0 2015-11-13

Publications (1)

Publication Number Publication Date
WO2017080202A1 true WO2017080202A1 (zh) 2017-05-18

Family

ID=55508364

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084840 WO2017080202A1 (zh) 2015-11-13 2016-06-03 码流字幕的自动测试方法及装置

Country Status (2)

Country Link
CN (1) CN105430481B (zh)
WO (1) WO2017080202A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430481B (zh) * 2015-11-13 2019-03-12 深圳Tcl数字技术有限公司 码流字幕的自动测试方法及装置
CN106529529B (zh) * 2016-10-31 2018-01-30 腾讯科技(深圳)有限公司 一种视频字幕识别方法及系统
CN107197237B (zh) * 2017-07-05 2019-01-04 广州视源电子科技股份有限公司 一种图文灵敏度的检测方法、装置、设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002087260A1 (en) * 2001-04-18 2002-10-31 Sarnoff Corporation Video streams for closed caption testing and the like
CN101771846A (zh) * 2009-01-04 2010-07-07 联想(北京)有限公司 一种字幕校准的方法和电子设备
CN102164248A (zh) * 2011-02-15 2011-08-24 Tcl集团股份有限公司 一种自动化字幕测试方法及系统
US20120143606A1 (en) * 2010-12-01 2012-06-07 At&T Intellectual Property I, L.P. Method and system for testing closed caption content of video assets
US8345159B2 (en) * 2007-04-16 2013-01-01 Caption Colorado L.L.C. Captioning evaluation system
CN105430481A (zh) * 2015-11-13 2016-03-23 深圳Tcl数字技术有限公司 码流字幕的自动测试方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175167A (zh) * 2006-10-31 2008-05-07 株式会社日立制作所 检测电视节目转换的设备及方法
CN101404730A (zh) * 2008-09-23 2009-04-08 腾讯科技(深圳)有限公司 在视频流中加载字幕的方法及播放器
CN103686352A (zh) * 2013-11-15 2014-03-26 乐视致新电子科技(天津)有限公司 智能电视媒体播放器及其字幕处理方法、智能电视
CN104661079B (zh) * 2015-02-03 2018-10-09 深圳创维数字技术有限公司 一种多媒体格式测试方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002087260A1 (en) * 2001-04-18 2002-10-31 Sarnoff Corporation Video streams for closed caption testing and the like
US8345159B2 (en) * 2007-04-16 2013-01-01 Caption Colorado L.L.C. Captioning evaluation system
CN101771846A (zh) * 2009-01-04 2010-07-07 联想(北京)有限公司 一种字幕校准的方法和电子设备
US20120143606A1 (en) * 2010-12-01 2012-06-07 At&T Intellectual Property I, L.P. Method and system for testing closed caption content of video assets
CN102164248A (zh) * 2011-02-15 2011-08-24 Tcl集团股份有限公司 一种自动化字幕测试方法及系统
CN105430481A (zh) * 2015-11-13 2016-03-23 深圳Tcl数字技术有限公司 码流字幕的自动测试方法及装置

Also Published As

Publication number Publication date
CN105430481A (zh) 2016-03-23
CN105430481B (zh) 2019-03-12

Similar Documents

Publication Publication Date Title
WO2018121001A1 (zh) 数字电视节目同声翻译输出方法、系统及智能终端
WO2017080202A1 (zh) 码流字幕的自动测试方法及装置
US11676587B2 (en) Method, apparatus and device for implementing voice application, computer readable storage medium
US8732783B2 (en) Apparatus and method for providing additional information using extension subtitles file
US8660850B2 (en) Method for the semi-automatic editing of timed and annotated data
CN112601101B (zh) 一种字幕显示方法、装置、电子设备及存储介质
CN112616062B (zh) 一种字幕显示方法、装置、电子设备及存储介质
CN112437337A (zh) 一种直播实时字幕的实现方法、系统及设备
CN112601102A (zh) 同声传译字幕的确定方法、装置、电子设备及存储介质
JP5409082B2 (ja) 映像処理装置およびその制御方法
CN109963092B (zh) 一种字幕的处理方法、装置及终端
CN112954434B (zh) 字幕处理方法、系统、电子设备和存储介质
CN207854084U (zh) 一种字幕显示系统
CN105979349A (zh) 一种音频数据处理的方法和装置
US20140176728A1 (en) Receiver and a transmitter
US20200053412A1 (en) Transmission device, transmission method, reception device, and reception method
KR101503082B1 (ko) 리치 미디어 스트림 관리
CN113591491B (zh) 语音翻译文本校正系统、方法、装置及设备
EP2555540A1 (en) Method for auto-detecting audio language name and television using the same
CN1328905C (zh) 电视机的字幕错误修正装置及其方法
US10681343B2 (en) Digital closed caption corruption reporting
CN100401750C (zh) 字幕编码装置
US20070087312A1 (en) Method for separating sentences in audio-video display system
WO2022100093A1 (zh) 一种视频字幕制作方法
CN101370090A (zh) 嵌入式产品中一种字幕叠加的方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16863382

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 24.08.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16863382

Country of ref document: EP

Kind code of ref document: A1