WO2008000179A1 - A method and a device for displaying captions - Google Patents

A method and a device for displaying captions Download PDF

Info

Publication number
WO2008000179A1
WO2008000179A1 PCT/CN2007/070136 CN2007070136W WO2008000179A1 WO 2008000179 A1 WO2008000179 A1 WO 2008000179A1 CN 2007070136 W CN2007070136 W CN 2007070136W WO 2008000179 A1 WO2008000179 A1 WO 2008000179A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
subtitles
video
subtitle
superimposed
Prior art date
Application number
PCT/CN2007/070136
Other languages
French (fr)
Chinese (zh)
Inventor
Jianbo Peng
Original Assignee
Tencent Technology (Shenzhen) Company Limited
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 Tencent Technology (Shenzhen) Company Limited filed Critical Tencent Technology (Shenzhen) Company Limited
Publication of WO2008000179A1 publication Critical patent/WO2008000179A1/en

Links

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/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/4143Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a Personal Computer [PC]
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4316Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • 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
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4431OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB characterized by the use of Application Program Interface [API] libraries
    • 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/47End-user applications

Definitions

  • the present invention relates to subtitle processing techniques, and more particularly to a method and apparatus for displaying subtitles. Background of the invention
  • Subtitles are a technology widely used in audio and video broadcasting such as television and movies.
  • the appearance of subtitles makes it easier for viewers to understand the audio and video content being played.
  • spoken content in the program, or any other additional information related to the content of the program is displayed by text.
  • a general TV series will simultaneously display the words that the characters in the TV series are saying in the form of subtitles, and the music programs usually display the lyrics in the form of subtitles.
  • the predetermined font data is compressed into the video stream by means of codec, and when the end user is reached, the subtitles can be displayed synchronously when the video stream is played.
  • P2P peer-to-peer
  • various audio and video signals such as television signals, movie signals, and radio broadcast signals can be converted into real-time data streams, and then transmitted to a personal computer (PC, Personal Computer) through p2p technology, and finally directly by the user on the PC.
  • Watch live video content such as TV, movies, or listen to live audio content such as radio broadcasts.
  • FIG. 1 is a schematic diagram showing display of caption data in the prior art.
  • the caption data and the video stream are first compressed and mixed at the transmitting end to form a data stream, and then the data stream is sent to the PC through a media such as the Internet, and finally the data stream is parsed by the PC, and the video stream is played and Display caption data.
  • the subtitles in the prior art are mixed and transmitted in the video stream. Therefore, when the subtitle data is displayed on the PC, the user can only passively watch the subtitles on the video, and cannot interact with the subtitles.
  • PC users have a strong desire to perform interactions. They are used to performing various interactions through computer peripherals such as mice and keyboards. Therefore, users may wish to use the mouse while watching or listening to programs on the PC.
  • Computer peripherals such as keyboards are used to achieve the purpose of interacting with subtitles. For example, when playing a program on a PC, the user may be very interested in a certain protagonist in the program, and would like to know the basic information of the protagonist.
  • the user can only passively watch the subtitles on the video.
  • the main purpose of embodiments of the present invention is to provide a method for displaying subtitles so that a user can interact with subtitles.
  • Another object of embodiments of the present invention is to provide an apparatus for displaying subtitles to enable a user to interact with subtitles.
  • a method for displaying a subtitle comprising:
  • An apparatus for displaying subtitles comprising a window generating unit and a subtitle display unit, wherein:
  • a window generating unit configured to add a window on the video display interface, and superimpose the window Go to the video display interface
  • a subtitle display unit for displaying subtitles in the superimposed window.
  • the present invention first, a window is added to the video display interface, and the window is superimposed on the video display interface; and then the subtitle is displayed in the superimposed window. It can be seen that, after applying the present invention, since the subtitle is no longer displayed by parsing the video stream, but the window is newly added and the subtitle is displayed in the window, the subtitle of the present invention is independent of the video data, and the user is no longer simply Passively receiving subtitles, but being able to interact with subtitles to trigger various operations. BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 is a schematic diagram showing display of subtitles in the prior art.
  • FIG. 2 is a flow chart of an exemplary method of displaying subtitles according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of displaying subtitles according to an exemplary embodiment of the present invention.
  • FIG. 4 is a schematic diagram of displaying subtitles according to another exemplary embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus for displaying subtitles according to an embodiment of the present invention. Mode for carrying out the invention
  • a window is added to the video display interface, and the window is superimposed on the video display interface; and the subtitle is displayed in the superimposed window. Therefore, the present invention displays the subtitles in the window instead of parsing the video stream, so that the subtitles of the present invention are independent of the video data, and the user no longer passively receives the subtitles, but can interact with the subtitles. Trigger various operations. Moreover, since the window has a lot of mature operation commands, the present invention is also very convenient to perform interaction. 2 is a flow chart of an exemplary method of displaying subtitles according to an embodiment of the present invention. As shown in Figure 2, the method includes:
  • Step 201 Add a window on the video display interface, and superimpose the window on the video display interface;
  • Step 202 Display the subtitles in the superimposed window.
  • the predetermined superimposed position may be located at the bottom, top, or bottom right corner of the video display interface.
  • the position of the window on the video display interface is determined by four values: Left, Top, Width, and Height.
  • an arithmetic expression can be used to represent the position of the window.
  • the expression allows scr_width to represent the video width and scrjieight to represent the video height. In this way, the subtitle can be displayed at any position on the video display interface.
  • the video may be either a video based on a real-time data stream or a normal video file stored locally.
  • the client of the video display interface receives the control flow from the remote end, and the control flow includes an overlay window instruction and a subtitle; and then the client further uses the overlay window instruction according to the overlay window instruction.
  • a new window is displayed on the video display interface, and the window is superimposed on the video display interface, so that the superimposed window is used to display the subtitles included in the control stream.
  • the overlay window instruction may specifically include a CreateWindow command and information indicating a position where the window is superimposed.
  • the CreateWindow command is a standard command to open a new window.
  • the information indicating the superimposed position of the window is used to indicate the superimposed position of the window on the video display interface.
  • the control flow including the overlay window command and the subtitle can be transmitted to the client simultaneously with the real-time video data stream, or can be transmitted to the client at different times.
  • the subtitle content is directly related to the video content, for example, when the subtitle is a translation of the video content, the video content and the subtitle need to be synchronized during playback.
  • a timer can be set to control the synchronization of the video playback time and the subtitle display time.
  • the subtitle content is not directly related to the video content, such as when the advertisement information, the lead introduction information, or the instant major news information is played in the subtitle, the subtitle may be out of sync with the video content.
  • an overlay window instruction can be created locally on the video player side, and the overlay window instruction is associated with the video file.
  • the overlay window instruction also preferably includes a CreateWindow command and information indicating the position of the window overlay, wherein the CreateWindow command is a standard command to open a new window, and information indicating the position of the window overlay is used to indicate the superimposed position of the window on the video display interface.
  • the associated overlay window command is executed at the same time, a new window pops up, and the window is overlaid onto the video display interface to enable display of the caption in the window.
  • the subtitle may be a subtitle transmitted from a remote end by the server, or may be a subtitle saved locally.
  • the present invention can utilize the window to realize the Various interactions of subtitles. For example, you can open a new window, open a new browser interface, open a new application, close a running application, close an existing browser interface, close an existing window, etc. after the user clicks on the subtitle. Thereby the user can interact richly with the subtitles.
  • the subtitles can be displayed in the superimposed window in various ways in the present invention.
  • the text can be first drawn by the GDI in the superimposed window, and then the subtitle scrolling effect of the drawn text can be achieved by changing the display position of the drawn text in the window.
  • FIG. 3 is a schematic diagram of displaying subtitles according to an exemplary embodiment of the present invention, in which subtitles are displayed in the superimposed window using the DrawText API.
  • DrawText API When using the DrawText API, first draw the text at the coordinate (x, y) position on the window through the DrawText API, and set a timer through SetTimer. When the timer is triggered, x is reduced accordingly, and then the window is redrawn. The effect of subtitle scrolling to the left can be achieved. Similarly, if X is increased correspondingly, the window is redrawn, so that the effect of subtitle scrolling to the right can be achieved. Obviously, to achieve subtitle scrolling in other directions, you can increase or decrease the X or y value accordingly.
  • the message loop of this window in response to the WM_LBUTTONUP message, if the message can be obtained, it means that the user clicks on the subtitle by mouse, and then the related action can be performed through the demand.
  • a typesetting interaction engine control may also be created in the superimposed window, and then the typeface interaction engine control is used to display the subtitle.
  • HtmlView control uses the HtmlView control as an example to explain how to use the typesetting interaction engine control to display subtitles.
  • HtmlView control uses the HtmlView control as an example to explain how to use the typesetting interaction engine control to display subtitles.
  • the HtmlView control is a free control provided by Microsoft that makes it easy to browse a web page and execute html code. Different from drawing text with various GDI, using typesetting The way to interact with the engine control does not directly implement the subtitles. Instead, first create an HtmlView control on the superimposed window, and preferably set the size of the HtmlView's control to the same as the superimposed window.
  • FIG. 4 is a schematic diagram showing display of subtitles according to another exemplary embodiment of the present invention, in which subtitles are displayed in the superimposed window using the HtmlView control.
  • the Html code supported by the HtmlView control can display subtitles and perform various interactive operations.
  • HtmlView control makes it easy to implement rich expressions such as RichText, images, and more.
  • the superimposed window may be a transparent color.
  • the superimposed window can be black, red, etc., which can strongly attract the visual emphasis.
  • the user clicks on the displayed subtitles with the computer peripheral device to trigger an interaction with the subtitles.
  • These actions include opening a new window, opening a new browser interface, opening a new application, closing a running application, closing an existing browser interface, closing an existing window, and so on.
  • the present invention is also very convenient to perform interaction.
  • an apparatus for displaying a subtitle is also disclosed.
  • FIG. 5 is a schematic structural diagram of an apparatus for displaying subtitles according to an embodiment of the present invention.
  • the apparatus 500 includes a window generating unit 501 and a caption display unit 502. among them:
  • a window generating unit 501 configured to add a window to the video display interface, and superimpose the window on the video display interface
  • the subtitle display unit 502 is configured to display subtitles in the superimposed window.
  • the apparatus may further comprise a caption interaction unit 503.
  • a subtitle interactive unit for selecting a displayed subtitle by using a computer peripheral device to trigger an interaction with the subtitle.
  • the video can be either a video based on a live stream or a normal video file stored locally.
  • the window generating unit 501 is configured to receive a control flow from the remote end including the overlay window command and the subtitle, and add a window on the video display interface according to the overlay window instruction.
  • the window is superimposed on the video display interface; the subtitle display unit 502 is configured to display the subtitle in the control stream in the superimposed window.
  • the overlay window instruction preferably includes a CreateWindow command and information indicating the position of the window overlay, wherein the CreateWindow command is a standard command to open a new window, and the information indicating the position of the window overlay is used to indicate the superimposed position of the window on the video display interface.
  • the window generating unit 501 executes the associated overlay window instruction, and a new window pops up, and the window is superimposed on the video display interface to enable The subtitles are displayed in this window.
  • the subtitle may be a subtitle transmitted from a remote end by the server, or may be a subtitle saved locally.
  • subtitles can be displayed in the superimposed window in various ways in the present invention.
  • the text can be first drawn in the superimposed window by GDI, and then the subtitle scrolling effect of the drawn text can be realized by changing the display position of the drawn text in the window.
  • the caption display unit 502 can be configured to draw a text in the superimposed window by using GDI, and change a display position of the drawn text in the window to implement a caption scrolling effect of the drawn text.
  • the caption display unit 502 is further configured to create a typesetting interaction engine control in the superimposed window, and display the subtitles by using the typesetting interaction engine control.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • General Engineering & Computer Science (AREA)
  • Library & Information Science (AREA)
  • Software Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Studio Circuits (AREA)

Abstract

A method for displaying captions is provided in this invention embodiment, which includes: step A, adding a new window on video display interface and overlapping it in the video display interface; step B, displaying captions in the overlapped window. By applying this invention embodiment, user can activate many kinds of interactive operations with the captions instead of only receiving the captions. A device for displaying captions is also provided in this invention embodiment. Besides, it is very convenient to perform interactive operations by the invention embodiment, because there are many mature operation commands for the window.

Description

一种显示字幕的方法和装置  Method and device for displaying subtitles
技术领域 Technical field
本发明涉及字幕处理技术, 更具体地说, 本发明涉及一种显示字幕 的方法和装置。 发明背景  The present invention relates to subtitle processing techniques, and more particularly to a method and apparatus for displaying subtitles. Background of the invention
字幕是一种在电视、 电影等音视频播放领域广泛运用的技术。 字幕 的出现, 使得观众更容易地理解所播放的音视频内容。 在音视频节目播 放中, 通过文字对节目中的口语内容, 或其他任何与节目内容相关的附 加信息进行显示。 例如, 一般的电视剧都会以字幕的方式同步显示电视 剧中人物正在说的话, 而音乐节目中通常都会以字幕的方式显示歌词。  Subtitles are a technology widely used in audio and video broadcasting such as television and movies. The appearance of subtitles makes it easier for viewers to understand the audio and video content being played. In audio and video program playback, spoken content in the program, or any other additional information related to the content of the program, is displayed by text. For example, a general TV series will simultaneously display the words that the characters in the TV series are saying in the form of subtitles, and the music programs usually display the lyrics in the form of subtitles.
通常情况下, 在发布源的数据流中, 通过编解码的方式将预定的字 幕数据压缩到视频流中, 等到到达最终用户时, 对视频流进行播放时就 可以同步显示字幕。  Usually, in the data stream of the distribution source, the predetermined font data is compressed into the video stream by means of codec, and when the end user is reached, the subtitles can be displayed synchronously when the video stream is played.
随着互联网的出现及点对点(p2p, Peer to Peer )技术的发展, 已经 不仅仅只能在电视机上观看电视信号或在电影院里观看电影。 目前, 已 经可以将电视信号、 电影信号、 电台广播信号等各种音视频信号转换为 实时数据流, 然后再通过 p2p 技术传到个人计算机 ( PC , Personal Computer )上, 最后由用户在 PC上直接观看电视、 电影等实时视频内 容或收听电台广播等实时音频内容。  With the advent of the Internet and the development of peer-to-peer (P2P, Peer to Peer) technology, it is not only possible to watch TV signals on TV or watch movies in cinemas. At present, various audio and video signals such as television signals, movie signals, and radio broadcast signals can be converted into real-time data streams, and then transmitted to a personal computer (PC, Personal Computer) through p2p technology, and finally directly by the user on the PC. Watch live video content such as TV, movies, or listen to live audio content such as radio broadcasts.
图 1所示为现有技术中显示字幕数据的示意图。 由图 1可见, 首先 在发送端将字幕数据和视频流进行压缩混合以形成数据流 , 然后通过互 联网等传播媒介将数据流发送到 PC, 最后由 PC对数据流进行解析, 并 播放视频流和显示字幕数据。 由此可见, 现有技术中字幕是被混合在视频流中进行传送的, 因此 在 PC上显示字幕数据时, 用户只能被动地观看视频上的字幕, 而无法 实现和字幕的交互。 FIG. 1 is a schematic diagram showing display of caption data in the prior art. As can be seen from FIG. 1, the caption data and the video stream are first compressed and mixed at the transmitting end to form a data stream, and then the data stream is sent to the PC through a media such as the Internet, and finally the data stream is parsed by the PC, and the video stream is played and Display caption data. It can be seen that the subtitles in the prior art are mixed and transmitted in the video stream. Therefore, when the subtitle data is displayed on the PC, the user can only passively watch the subtitles on the video, and cannot interact with the subtitles.
通常情况下, PC用户执行交互的愿望会比较强烈,他们已经习惯了 通过鼠标、 键盘等计算机外设来进行各种交互操作, 因此用户在 PC上 观看或收听节目的同时也可能希望通过鼠标、 键盘等计算机外设来达到 与字幕交互的目的。 比如, 当在 PC上播放某个节目时, 用户也许会对 节目中的某位主角非常感兴趣, 很想了解这位主角的基本信息, 然而现 在技术中用户只能被动地观看视频上的字幕, 却无法利用字幕来实现用 户交互功能, 也就无法利用字幕来直接获取关于该主角的相关信息。 因 此, 现有技术的这种字幕显示方法给用户带来了极大的不便。 发明内容  Usually, PC users have a strong desire to perform interactions. They are used to performing various interactions through computer peripherals such as mice and keyboards. Therefore, users may wish to use the mouse while watching or listening to programs on the PC. Computer peripherals such as keyboards are used to achieve the purpose of interacting with subtitles. For example, when playing a program on a PC, the user may be very interested in a certain protagonist in the program, and would like to know the basic information of the protagonist. However, in the technology, the user can only passively watch the subtitles on the video. However, it is impossible to use subtitles to implement user interaction functions, and it is impossible to use subtitles to directly obtain related information about the protagonist. Therefore, the subtitle display method of the prior art brings great inconvenience to the user. Summary of the invention
有鉴于此, 本发明实施例的主要目的是提出一种显示字幕的方法, 以使得用户能够与字幕实现交互。  In view of this, the main purpose of embodiments of the present invention is to provide a method for displaying subtitles so that a user can interact with subtitles.
本发明实施例的另一目的是提出一种显示字幕的装置, 以使得用户 能够与字幕实现交互。  Another object of embodiments of the present invention is to provide an apparatus for displaying subtitles to enable a user to interact with subtitles.
为达到上述目的, 本发明实施例的技术方案是这样实现的: 一种显示字幕的方法, 该方法包括:  To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows: A method for displaying a subtitle, the method comprising:
A、 在视频显示界面上新增窗口, 并将该窗口叠加到所述视频显示 界面上;  A. Add a window on the video display interface, and superimpose the window on the video display interface;
B、 在所叠加的窗口中显示字幕。  B. Display subtitles in the superimposed window.
一种显示字幕的装置, 其特征在于, 该装置包括窗口生成单元和字 幕显示单元, 其中:  An apparatus for displaying subtitles, the apparatus comprising a window generating unit and a subtitle display unit, wherein:
窗口生成单元, 用于在视频显示界面上新增窗口, 并将该窗口叠加 到所述视频显示界面上; a window generating unit, configured to add a window on the video display interface, and superimpose the window Go to the video display interface;
字幕显示单元, 用于在所叠加的窗口中显示字幕。  a subtitle display unit for displaying subtitles in the superimposed window.
从上述技术方案中可以看出, 在本发明中, 首先, 在视频显示界面 上新增窗口, 并将该窗口叠加到所述视频显示界面上; 然后再在所叠加 的窗口中显示字幕。 由此可见, 应用本发明以后, 由于不再是通过解析 视频流来显示字幕, 而是新增窗口并在窗口中显示字幕, 所以本发明的 字幕与视频数据相独立, 用户不再是单纯地被动接收字幕, 而是能够与 字幕进行交互以触发各种操作。 附图简要说明  As can be seen from the above technical solution, in the present invention, first, a window is added to the video display interface, and the window is superimposed on the video display interface; and then the subtitle is displayed in the superimposed window. It can be seen that, after applying the present invention, since the subtitle is no longer displayed by parsing the video stream, but the window is newly added and the subtitle is displayed in the window, the subtitle of the present invention is independent of the video data, and the user is no longer simply Passively receiving subtitles, but being able to interact with subtitles to trigger various operations. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为现有技术中显示字幕的示意图。  FIG. 1 is a schematic diagram showing display of subtitles in the prior art.
图 2为本发明实施例显示字幕的示范性方法流程图。  2 is a flow chart of an exemplary method of displaying subtitles according to an embodiment of the present invention.
图 3为^^据本发明一示范性实施例的显示字幕的示意图。  FIG. 3 is a schematic diagram of displaying subtitles according to an exemplary embodiment of the present invention.
图 4为^ ^据本发明另一示范性实施例的显示字幕的示意图。  4 is a schematic diagram of displaying subtitles according to another exemplary embodiment of the present invention.
图 5为才 据本发明实施例显示字幕的装置结构示意图。 实施本发明的方式  FIG. 5 is a schematic structural diagram of an apparatus for displaying subtitles according to an embodiment of the present invention. Mode for carrying out the invention
为使本发明的目的、 技术方案和优点表达得更加清楚明白, 下面结 合附图及具体实施例对本发明再作进一步详细的说明。  The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
在本发明实施例中, 在视频显示界面上新增窗口, 并将该窗口叠加 到所述视频显示界面上; 再在所叠加的窗口中显示字幕。 因此, 本发明 通过在窗口中显示字幕, 而不是通过解析视频流来显示字幕, 所以本发 明的字幕与视频数据相独立, 用户不再是单纯地被动接收字幕, 而是能 够与字幕进行交互以触发各种操作。 而且, 由于对窗口有非常多的成熟 操作命令, 所以本发明执行交互起来也非常的方便。 图 2为本发明实施例显示字幕的示范性方法流程图。 如图 2所示, 该方法包括: In the embodiment of the present invention, a window is added to the video display interface, and the window is superimposed on the video display interface; and the subtitle is displayed in the superimposed window. Therefore, the present invention displays the subtitles in the window instead of parsing the video stream, so that the subtitles of the present invention are independent of the video data, and the user no longer passively receives the subtitles, but can interact with the subtitles. Trigger various operations. Moreover, since the window has a lot of mature operation commands, the present invention is also very convenient to perform interaction. 2 is a flow chart of an exemplary method of displaying subtitles according to an embodiment of the present invention. As shown in Figure 2, the method includes:
步骤 201 : 在视频显示界面上新增窗口, 并将该窗口叠加到所述视 频显示界面上;  Step 201: Add a window on the video display interface, and superimpose the window on the video display interface;
步骤 202: 在所叠加的窗口中显示字幕。  Step 202: Display the subtitles in the superimposed window.
在这里 , 优选预先确定所述窗口在该视频显示界面上的叠加位置, 然后再在视频显示界面上的该预定叠加位置处叠加所述窗口。 更加优选 地, 该预定叠加位置可以位于视频显示界面的底部、 顶部, 或右下角等 处。  Here, it is preferable to predetermine a superimposed position of the window on the video display interface, and then superimpose the window at the predetermined superimposed position on the video display interface. More preferably, the predetermined superimposed position may be located at the bottom, top, or bottom right corner of the video display interface.
一般地, 窗口在视频显示界面上的位置由四个值确定: 左边(Left )、 上边(Top )、 宽度(Width ) 以及高度( Height )。 同时, 可以使用算术 表达式来表示窗口的位置, 规定表达式中允许用 scr_width代表视频宽 度、 scrjieight代表视频高度, 这样的话, 就可以实现在视频显示界面 上的任意位置处显示字幕。  In general, the position of the window on the video display interface is determined by four values: Left, Top, Width, and Height. At the same time, an arithmetic expression can be used to represent the position of the window. The expression allows scr_width to represent the video width and scrjieight to represent the video height. In this way, the subtitle can be displayed at any position on the video display interface.
比如:假如希望在距离视频右边界限 200像素、显示宽度为 150, 距 离视频上边界限 10像素、高度为 120 处显示一字幕,可以通过设置左: scr_width-200上: 10 宽: 150 高: 120 来实现。  For example, if you want to display a subtitle of 200 pixels from the right side of the video and a display width of 150, and a distance of 10 pixels from the upper edge of the video and a height of 120, you can set the left: scr_width-200: 10 Width: 150 Height: 120 achieve.
在这里, 所述视频既可以是基于实时数据流的视频, 也可以是由本 地存储的普通视频文件。  Here, the video may be either a video based on a real-time data stream or a normal video file stored locally.
当视频为基于实时数据流的视频时, 视频显示界面的客户端接收来 自远端的控制流, 所述控制流中包含叠加窗口指令及字幕; 然后客户端 再根据所述叠加窗口指令, 在所述视频显示界面上新增窗口, 并将该窗 口叠加到视频显示界面上, 从而利用该叠加的窗口来显示包含于控制流 中的字幕。 其中, 叠加窗口指令可以具体包括 CreateWindow命令及指 示窗口叠加位置的信息。 CreateWindow命令是打开新窗口的标准命令, 指示窗口叠加位置的信息用于指示窗口在视频显示界面上的叠加位置。 该包含叠加窗口指令及字幕的控制流既可以和实时视频数据流同时 传送到客户端, 也可以不同时传送到客户端。 When the video is a video based on the real-time data stream, the client of the video display interface receives the control flow from the remote end, and the control flow includes an overlay window instruction and a subtitle; and then the client further uses the overlay window instruction according to the overlay window instruction. A new window is displayed on the video display interface, and the window is superimposed on the video display interface, so that the superimposed window is used to display the subtitles included in the control stream. The overlay window instruction may specifically include a CreateWindow command and information indicating a position where the window is superimposed. The CreateWindow command is a standard command to open a new window. The information indicating the superimposed position of the window is used to indicate the superimposed position of the window on the video display interface. The control flow including the overlay window command and the subtitle can be transmitted to the client simultaneously with the real-time video data stream, or can be transmitted to the client at different times.
当字幕内容与视频内容直接相关时 , 比如该字幕为视频内容的翻译 时, 在播放时需要实现视频内容与字幕的同步, 此时可以设置定时器以 控制视频播放时间和字幕显示时间的同步。  When the subtitle content is directly related to the video content, for example, when the subtitle is a translation of the video content, the video content and the subtitle need to be synchronized during playback. At this time, a timer can be set to control the synchronization of the video playback time and the subtitle display time.
当字幕内容与视频内容不直接相关时,比如当字幕中播放广告信息、 主角介绍信息、 或者即时重大新闻信息等时候, 字幕可以与视频内容不 同步。  When the subtitle content is not directly related to the video content, such as when the advertisement information, the lead introduction information, or the instant major news information is played in the subtitle, the subtitle may be out of sync with the video content.
当视频为存储在本地的视频文件时, 可以在视频播放端本地创建叠 加窗口指令, 并将叠加窗口指令和视频文件相关联。 叠加窗口指令同样 优选包括 CreateWindow 命令及指示窗口叠加位置的信息, 其中 CreateWindow命令是打开新窗口的标准命令,指示窗口叠加位置的信息 用于指示窗口在视频显示界面上的叠加位置。 当播放该视频文件时, 同 时执行相关联的叠加窗口指令, 此时弹出新的窗口, 并且该窗口叠加到 视频显示界面上, 以能够在该窗口中显示字幕。 此时, 该字幕既可以是 由服务器从远端传送过来的字幕, 也可以是本地所保存的字幕。  When the video is a video file stored locally, an overlay window instruction can be created locally on the video player side, and the overlay window instruction is associated with the video file. The overlay window instruction also preferably includes a CreateWindow command and information indicating the position of the window overlay, wherein the CreateWindow command is a standard command to open a new window, and information indicating the position of the window overlay is used to indicate the superimposed position of the window on the video display interface. When the video file is played, the associated overlay window command is executed at the same time, a new window pops up, and the window is overlaid onto the video display interface to enable display of the caption in the window. At this time, the subtitle may be a subtitle transmitted from a remote end by the server, or may be a subtitle saved locally.
无论是基于实时数据流的视频, 还是本地的视频文件, 由于在叠加 的窗口中显示字幕, 而不是现有技术中被动地从数据流中解析出字幕数 据, 因此本发明能够利用窗口, 实现基于字幕的各种交互操作。 比如, 可以在用户点击字幕后打开新的窗口、 打开新的浏览器界面、 打开新的 应用程序、 关闭已运行的应用程序、 关闭已存在的浏览器界面; 关闭已 存在的窗口, 等等, 从而用户能够同字幕进行丰富地交互。  Whether it is a video based on a real-time data stream or a local video file, since the subtitles are displayed in the superimposed window instead of passively parsing the subtitle data from the data stream in the prior art, the present invention can utilize the window to realize the Various interactions of subtitles. For example, you can open a new window, open a new browser interface, open a new application, close a running application, close an existing browser interface, close an existing window, etc. after the user clicks on the subtitle. Thereby the user can interact richly with the subtitles.
以上过程中, 无论是基于实时数据流的视频, 还是本地的普通视频 文件,本发明中可以通过各种方式来在所叠加的窗口中显示字幕。比如, 可以首先通过 GDI在所述叠加的窗口中绘制文字,然后通过改变所绘制 文字在窗口中的显示位置来实现所绘制文字的字幕滚动效果。 In the above process, whether it is a video based on a real-time data stream or a local normal video file, the subtitles can be displayed in the superimposed window in various ways in the present invention. such as, The text can be first drawn by the GDI in the superimposed window, and then the subtitle scrolling effect of the drawn text can be achieved by changing the display position of the drawn text in the window.
在这里, 可以利用各种 GDI来绘制文字, 比如采用 DrawText API、 或 TextOutAPI等。  Here, you can use a variety of GDI to draw text, such as the DrawText API, or TextOutAPI.
下面以采用 DrawText API为例对如何利用 GDI来绘制文字进行详 细说明。 本领域技术人员可以意识到, 这仅是示范性的, 而并不用于对 利用 GDI来绘制文字的方式进行任何限定。  The following uses the DrawText API as an example to explain how to use GDI to draw text. Those skilled in the art will appreciate that this is merely exemplary and is not intended to be any limitation on the manner in which text can be drawn using GDI.
图 3 为^^据本发明一示范性实施例的显示字幕的示意图, 其中用 DrawText API在所叠加的窗口中显示字幕。 当采用 DrawText API时, 首 先通过 DrawText API在窗口上坐标(x, y )位置处绘制文字, 并通过 SetTimer设置一个定时器, 当定时器触发时, x就相应减小, 再重绘窗 口, 从而就能实现字幕向左滚动的效果。 同理, 如果 X相应增加, 再重 绘窗口, 从而就能实现字幕向右滚动的效果。 显然, 要想实现其他方向 的字幕滚动, 只要相应地增减 X或 y值就可以。 在这个窗口的消息循环 里面, 响应 WM_LBUTTONUP消息, 如果此消息能够获取到, 就表示 用户通过鼠标点击了字幕, 然后就可以通过需求, 执行相关的动作。  FIG. 3 is a schematic diagram of displaying subtitles according to an exemplary embodiment of the present invention, in which subtitles are displayed in the superimposed window using the DrawText API. When using the DrawText API, first draw the text at the coordinate (x, y) position on the window through the DrawText API, and set a timer through SetTimer. When the timer is triggered, x is reduced accordingly, and then the window is redrawn. The effect of subtitle scrolling to the left can be achieved. Similarly, if X is increased correspondingly, the window is redrawn, so that the effect of subtitle scrolling to the right can be achieved. Obviously, to achieve subtitle scrolling in other directions, you can increase or decrease the X or y value accordingly. In the message loop of this window, in response to the WM_LBUTTONUP message, if the message can be obtained, it means that the user clicks on the subtitle by mouse, and then the related action can be performed through the demand.
采用 GDI绘制文字来显示字幕的方式非常简洁,并且占用***资源 小, 不过实现字幕图文混排比较困难。 优选地, 还可以在所述叠加的窗 口中创建排版交互引擎控件, 然后再利用所述排版交互引擎控件显示字 幕。  The way to display texts using GDI is very simple, and it takes up less system resources, but it is more difficult to achieve subtitles. Preferably, a typesetting interaction engine control may also be created in the superimposed window, and then the typeface interaction engine control is used to display the subtitle.
下面以采用 HtmlView控件为例对如何利用排版交互引擎控件来显 示字幕进行详细说明。 本领域技术人员可以意识到, 这仅是示范性的, 而并不用于对利用排版交互引擎控件来显示字幕的方式进行任何限定。  The following uses the HtmlView control as an example to explain how to use the typesetting interaction engine control to display subtitles. Those skilled in the art will appreciate that this is merely exemplary and is not intended to be any limitation on the manner in which the typesetting interaction engine controls are used to display the subtitles.
HtmlView控件是由微软提供的免费控件 ,它可以很简单的浏览一个 网页及执行 html代码。 与利用各种 GDI来绘制文字不相同, 利用排版 交互引擎控件的方式并不直接实现字幕, 而是首先在叠加的窗口上创建 一个 HtmlView控件,并且优选将该 HtmlView的控件的大小和叠加的窗 口设置成一样。 The HtmlView control is a free control provided by Microsoft that makes it easy to browse a web page and execute html code. Different from drawing text with various GDI, using typesetting The way to interact with the engine control does not directly implement the subtitles. Instead, first create an HtmlView control on the superimposed window, and preferably set the size of the HtmlView's control to the same as the superimposed window.
图 4为^ ^据本发明另一示范性实施例的显示字幕的示意图, 其中利 用 HtmlView控件在所叠加的窗口中显示字幕。 首先在新增的窗口中创 建 HtmlView控件 , 创建完 HtmlView控件后 , 通过 HtmlView控件所支 持的 Html代码, 就能够实现显示字幕, 并执行各种交互操作。  4 is a schematic diagram showing display of subtitles according to another exemplary embodiment of the present invention, in which subtitles are displayed in the superimposed window using the HtmlView control. First, create the HtmlView control in the newly added window. After the HtmlView control is created, the Html code supported by the HtmlView control can display subtitles and perform various interactive operations.
比如, 当需要显示字幕 "你好! 请点击!", 并且当用户点击字幕后 链接到 http://xx .xxx.com时, 只需将  For example, when you need to display the subtitle "Hello! Please click!", and when the user clicks on the subtitle and links to http://xx.xxx.com, just
<marquee>  <marquee>
<a href="http://xx.xxx.com">  <a href="http://xx.xxx.com">
你好! 请点击!  Hello there! Please click!
</ ax/ marqueo  </ ax/ marqueo
这段简单的 html代码让 htmlView控件去解析, 就可以实现对 "你 好! 请点击! " 的字幕滚动, 并且点击字幕后就能够链接到 http:〃xx.xxx.com。  This simple html code allows the htmlView control to parse, and you can scroll through the subtitles "Hello! Please click!" and click on the subtitles to link to http:〃xx.xxx.com.
另外, 利用 HtmlView控件可以非常简单地实现各种丰富的表现, 比如 RichText、 图片等。  In addition, the HtmlView control makes it easy to implement rich expressions such as RichText, images, and more.
为了在显示字幕时不影响用户观看视频的效果, 所叠加的窗口可以 为透明色。 当需要让用户对字幕进行重点关注时, 所叠加的窗口可以为 黑色、 红色等能强烈吸引视觉的加重色。  In order to display the subtitles without affecting the effect of the user watching the video, the superimposed window may be a transparent color. When the user needs to focus on the subtitles, the superimposed window can be black, red, etc., which can strongly attract the visual emphasis.
优选地, 在显示完字幕以后, 用户利用计算机***设备点击所显示 的字幕, 以触发与字幕的交互操作。 这些操作包括打开新的窗口、 打开 新的浏览器界面、 打开新的应用程序、 关闭已运行的应用程序、 关闭已 存在的浏览器界面; 关闭已存在的窗口等。 另外, 由于对窗口有非常多的成熟操作命令, 所以本发明执行交互 起来也非常的方便。 Preferably, after displaying the subtitles, the user clicks on the displayed subtitles with the computer peripheral device to trigger an interaction with the subtitles. These actions include opening a new window, opening a new browser interface, opening a new application, closing a running application, closing an existing browser interface, closing an existing window, and so on. In addition, since the window has a lot of mature operation commands, the present invention is also very convenient to perform interaction.
在本发明实施例中, 还公开了一种显示字幕的装置。  In the embodiment of the present invention, an apparatus for displaying a subtitle is also disclosed.
图 5为才 据本发明实施例显示字幕的装置结构示意图。如图 5所示, 该装置 500包括窗口生成单元 501和字幕显示单元 502。 其中:  FIG. 5 is a schematic structural diagram of an apparatus for displaying subtitles according to an embodiment of the present invention. As shown in FIG. 5, the apparatus 500 includes a window generating unit 501 and a caption display unit 502. among them:
窗口生成单元 501 , 用于在视频显示界面上新增窗口, 并将该窗口 叠加到所述视频显示界面上;  a window generating unit 501, configured to add a window to the video display interface, and superimpose the window on the video display interface;
字幕显示单元 502, 用于在所叠加的窗口中显示字幕。  The subtitle display unit 502 is configured to display subtitles in the superimposed window.
优选地, 该装置还可以进一步包括字幕交互单元 503。 字幕交互单 元, 用于利用计算机***设备选中所显示的字幕, 触发与字幕的交互操 作。  Preferably, the apparatus may further comprise a caption interaction unit 503. A subtitle interactive unit for selecting a displayed subtitle by using a computer peripheral device to trigger an interaction with the subtitle.
视频既可以是基于实时数据流的视频 , 也可以是由本地存储的普通 视频文件。  The video can be either a video based on a live stream or a normal video file stored locally.
当视频为基于实时数据流的视频时, 窗口生成单元 501 , 用于接收 来自远端包含叠加窗口指令及字幕的控制流, 并根据所述叠加窗口指令 在所述视频显示界面上新增窗口, 将该窗口叠加到所述视频显示界面 上; 字幕显示单元 502, 用于在所叠加的窗口中显示控制流中的所述字 幕。  When the video is a video based on the real-time data stream, the window generating unit 501 is configured to receive a control flow from the remote end including the overlay window command and the subtitle, and add a window on the video display interface according to the overlay window instruction. The window is superimposed on the video display interface; the subtitle display unit 502 is configured to display the subtitle in the control stream in the superimposed window.
当视频为存储在本地的视频文件时, 用户可以在视频播放端本地创 建叠加窗口指令, 并将叠加窗口指令和视频文件相关联。 叠加窗口指令 优选包括 CreateWindow 命令及指示窗口叠加位置的信息, 其中 CreateWindow命令是打开新窗口的标准命令,指示窗口叠加位置的信息 用于指示窗口在视频显示界面上的叠加位置。  When the video is a local video file, the user can create an overlay window instruction locally on the video player and associate the overlay window instruction with the video file. The overlay window instruction preferably includes a CreateWindow command and information indicating the position of the window overlay, wherein the CreateWindow command is a standard command to open a new window, and the information indicating the position of the window overlay is used to indicate the superimposed position of the window on the video display interface.
当播放该视频文件时, 窗口生成单元 501执行相关联的叠加窗口指 令, 此时弹出新的窗口, 并且该窗口叠加到视频显示界面上, 以能够在 该窗口中显示字幕。 此时, 该字幕既可以是由服务器从远端传送过来的 字幕, 也可以是本地所保存的字幕。 When the video file is played, the window generating unit 501 executes the associated overlay window instruction, and a new window pops up, and the window is superimposed on the video display interface to enable The subtitles are displayed in this window. At this time, the subtitle may be a subtitle transmitted from a remote end by the server, or may be a subtitle saved locally.
类似地,无论是基于实时数据流的视频,还是本地的普通视频文件, 本发明中可以通过各种方式来在所叠加的窗口中显示字幕。 比如, 可以 首先通过 GDI在所述叠加的窗口中绘制文字,然后通过改变所绘制文字 在窗口中的显示位置来实现所绘制文字的字幕滚动效果。  Similarly, whether it is a video based on a real-time data stream or a local normal video file, subtitles can be displayed in the superimposed window in various ways in the present invention. For example, the text can be first drawn in the superimposed window by GDI, and then the subtitle scrolling effect of the drawn text can be realized by changing the display position of the drawn text in the window.
具体地, 字幕显示单元 502, 可以用于通过 GDI在所述叠加的窗口 中绘制文字, 并改变所绘制文字在所述窗口中的显示位置, 以实现所绘 制文字的字幕滚动效果。  Specifically, the caption display unit 502 can be configured to draw a text in the superimposed window by using GDI, and change a display position of the drawn text in the window to implement a caption scrolling effect of the drawn text.
字幕显示单元 502, 还可以用于在所述叠加的窗口中创建排版交互 引擎控件, 并利用所述排版交互引擎控件显示字幕。  The caption display unit 502 is further configured to create a typesetting interaction engine control in the superimposed window, and display the subtitles by using the typesetting interaction engine control.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的 保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、等同替换、 改进等, 均应包含在本发明的保护范围之内。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权利要求书 Claim
1、 一种显示字幕的方法, 其特征在于, 该方法包括:  A method for displaying subtitles, the method comprising:
A、 在视频显示界面上新增窗口, 并将该窗口叠加到所述视频显示 界面上;  A. Add a window on the video display interface, and superimpose the window on the video display interface;
B、 在所叠加的窗口中显示字幕。  B. Display subtitles in the superimposed window.
2、 根据权利要求 1所述的方法, 其特征在于, 在步骤 B后, 该方 法进一步包括:  2. The method according to claim 1, wherein after the step B, the method further comprises:
C、 利用计算机***设备选中所显示的字幕, 并触发与字幕的交互 操作。  C. Use the computer peripheral device to select the displayed subtitles and trigger the interaction with the subtitles.
3、 根据权利要求 1所述的方法, 其特征在于, 步骤 A所述视频为 基于实时数据流的视频,  3. The method according to claim 1, wherein the video in step A is a video based on a real-time data stream.
步骤 A所述在视频显示界面上叠加窗口包括:  The overlay window on the video display interface described in step A includes:
Al、 接收来自远端的控制流, 所述控制流中包含叠加窗口指令及字 幕;  Al, receiving a control flow from a remote end, where the control flow includes an overlay window instruction and a subtitle;
A2、 根据所述叠加窗口指令, 在所述视频显示界面上新增窗口并将 该窗口叠加到所述视频显示界面上;  A2, according to the overlay window instruction, adding a window on the video display interface and superimposing the window on the video display interface;
步骤 B所述显示字幕为: 在所叠加的窗口中显示控制流中的所述字 幕。  The subtitles displayed in step B are: The subtitles in the control stream are displayed in the superimposed window.
4、 根据权利要求 1-3中任一项所述的方法, 其特征在于, 在步骤 A 之前, 该方法进一步包括: 预先确定所述窗口在该视频显示界面上的叠 力口位置;  The method according to any one of claims 1 to 3, wherein before the step A, the method further comprises: predetermining a position of the overlapping position of the window on the video display interface;
步骤 A所述在视频显示界面上叠加窗口为: 在所述视频显示界面上 的预定叠加位置处, 叠加所述窗口。  The step of superimposing the window on the video display interface as described in step A is: superimposing the window at a predetermined superimposed position on the video display interface.
5、 根据权利要求 1所述的方法, 其特征在于, 步骤 B所述在所叠 加的窗口中显示字幕包括: 5. The method according to claim 1, wherein the step B is stacked The displayed subtitles in the added window include:
Bll、 通过图像设备接口 GDI在所述叠加的窗口中绘制文字; B21、 改变所绘制文字在所述窗口中的显示位置, 以实现所绘制文 字的字幕滚动效果。  B11, drawing a text in the superimposed window through the image device interface GDI; B21, changing a display position of the drawn text in the window, to implement a subtitle scrolling effect of the drawn text.
6、 根据权利要求 5 所述的方法, 其特征在于, 所述 GDI 包括: DrawText应用编程接口 API、 或 TextOut APL  6. The method according to claim 5, wherein the GDI comprises: a DrawText application programming interface API, or a TextOut APL
7、 根据权利要求 1所述的方法, 其特征在于, 步骤 B所述在所叠 加的窗口中显示字幕包括:  7. The method according to claim 1, wherein the displaying the subtitles in the superimposed window in step B comprises:
B21、 在所述叠加的窗口中创建排版交互引擎控件;  B21: Create a typesetting interaction engine control in the superimposed window;
B22、 利用所述排版交互引擎控件显示字幕。  B22. Display the subtitles by using the typesetting interaction engine control.
8、根据权利要求 7所述的方法, 其特征在于, 所述排版交互引擎控 件为 Html View控件。  The method according to claim 7, wherein the typesetting interaction engine control is an Html View control.
9、 根据权利要求 1-3中任一项、 5、 6、 7、 或 8所述的方法, 其特 征在于, 所述窗口为透明色或加重色。  The method according to any one of claims 1 to 3, 5, 6, 7, or 8, wherein the window is a transparent color or a heavy color.
10、 根据权利要求 2所述的方法, 其特征在于, 所述与字幕的交互 操作包括以下操作中的任一种或其中多于一种的任意组合:  10. The method according to claim 2, wherein the interaction with the subtitles comprises any one of the following operations or any combination of more than one of:
打开新的窗口;  Open a new window;
打开新的浏览器界面;  Open a new browser interface;
打开新的应用程序;  Open a new app;
关闭已运行的应用程序;  Close the running application;
关闭已存在的浏览器界面;  Close the existing browser interface;
关闭已存在的窗口。  Close an existing window.
11、 一种显示字幕的装置, 其特征在于, 该装置包括窗口生成单元 和字幕显示单元, 其中:  11. A device for displaying captions, the device comprising a window generating unit and a caption display unit, wherein:
窗口生成单元, 用于在视频显示界面上新增窗口, 并将该窗口叠加 到所述视频显示界面上; a window generating unit, configured to add a window on the video display interface, and superimpose the window Go to the video display interface;
字幕显示单元, 用于在所叠加的窗口中显示字幕。  a subtitle display unit for displaying subtitles in the superimposed window.
12、根据权利要求 11所述的显示字幕的装置, 其特征在于, 该装置 进一步包括字幕交互单元,  The apparatus for displaying subtitles according to claim 11, wherein the apparatus further comprises a subtitle interaction unit,
字幕交互单元, 用于利用计算机***设备选中所显示的字幕, 触发 与字幕的交互操作。  The subtitle interaction unit is configured to select the displayed subtitles by using a computer peripheral device, and trigger an interaction operation with the subtitles.
13、根据权利要求 11所述的显示字幕的装置, 其特征在于, 所述视 频为基于实时数据流的视频 ,  The apparatus for displaying subtitles according to claim 11, wherein the video is a video based on a real-time data stream,
窗口生成单元, 用于接收来自远端包含叠加窗口指令及字幕的控制 流, 并根据所述叠加窗口指令在所述视频显示界面上新增窗口, 将该窗 口叠加到所述视频显示界面上;  a window generating unit, configured to receive a control flow from the remote end including the overlay window instruction and the subtitle, and add a window on the video display interface according to the overlay window instruction, and superimpose the window on the video display interface;
字幕显示单元, 用于在所叠加的窗口中显示控制流中的所述字幕。 a caption display unit, configured to display the caption in the control stream in the superimposed window.
14、 根据权利要求 11所述的显示字幕的装置, 其特征在于, 字幕显示单元, 用于通过 GDI在所述叠加的窗口中绘制文字, 并改 变所绘制文字在所述窗口中的显示位置, 以实现所绘制文字的字幕滚动 效果。 The apparatus for displaying subtitles according to claim 11, wherein the subtitle display unit is configured to draw a text in the superimposed window by GDI, and change a display position of the drawn text in the window. To achieve the subtitle scrolling effect of the drawn text.
15、 根据权利要求 11所述的显示字幕的装置, 其特征在于, 字幕显示单元, 用于在所述叠加的窗口中创建排版交互引擎控件, 并利用所述排版交互引擎控件显示字幕。  The apparatus for displaying subtitles according to claim 11, wherein the subtitle display unit is configured to create a typesetting interaction engine control in the superimposed window, and display the subtitles by using the typesetting interaction engine control.
PCT/CN2007/070136 2006-06-23 2007-06-20 A method and a device for displaying captions WO2008000179A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200610090407.3 2006-06-23
CNA2006100904073A CN101076089A (en) 2006-06-23 2006-06-23 Method for displaying captions

Publications (1)

Publication Number Publication Date
WO2008000179A1 true WO2008000179A1 (en) 2008-01-03

Family

ID=38845132

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/070136 WO2008000179A1 (en) 2006-06-23 2007-06-20 A method and a device for displaying captions

Country Status (2)

Country Link
CN (1) CN101076089A (en)
WO (1) WO2008000179A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10769731B2 (en) * 2016-01-26 2020-09-08 Facebook, Inc. Adding paid links to media captions in a social networking system

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101500125B (en) * 2008-02-03 2011-03-09 突触计算机***(上海)有限公司 Method and apparatus for providing user interaction during displaying video on customer terminal
GB2470333B (en) 2008-03-05 2012-05-16 Hewlett Packard Development Co Synchronizing and windowing external content in digital display systems
CN102612692B (en) * 2009-12-29 2015-07-01 夏普株式会社 Display processing device and control method
CN102118581B (en) * 2009-12-30 2015-04-29 新奥特(北京)视频技术有限公司 Software pre-monitoring method of subtitle broadcasting system
CN101937557B (en) * 2010-07-16 2013-06-12 广东威创视讯科技股份有限公司 Marking method of dynamic playing window and system thereof
GB2486744A (en) * 2010-12-24 2012-06-27 Starbucks Hk Ltd Multimedia system with separately transmitted supplementary data overlaid onto broadcast video stream based on user input
CN102739983B (en) * 2011-04-11 2016-04-13 腾讯科技(深圳)有限公司 A kind of method and system realizing translucent effect
CN102347045A (en) * 2011-05-20 2012-02-08 合一网络技术(北京)有限公司 Synchronous display control system used for embedded media player and device thereof
WO2013013284A1 (en) * 2011-07-28 2013-01-31 Research In Motion Limited A system and method for broadcasting captions
CN102510539A (en) * 2011-12-02 2012-06-20 深圳市万兴软件有限公司 Method and system for displaying content on playing video
CN104735549B (en) * 2012-06-29 2018-07-24 北京奇虎科技有限公司 A kind of display methods and device of text subtitle information in webpage
CN104090820B (en) 2013-11-26 2017-08-04 腾讯科技(深圳)有限公司 A kind of player method and device of Web-page Multi-media file
CN106034254B (en) * 2014-11-26 2019-09-27 中科创达软件股份有限公司 It is a kind of to realize the method and system that operation is interacted with text in video
CN106295628A (en) * 2015-05-20 2017-01-04 地利控股(西咸新区)网络农业有限公司 A kind of word making to occur in video is prone to mutual method
CN105979169A (en) * 2015-12-15 2016-09-28 乐视网信息技术(北京)股份有限公司 Video subtitle adding method, device and terminal
CN106060634A (en) * 2016-05-31 2016-10-26 乐视控股(北京)有限公司 Method and device for displaying rolling subtitles
CN107038734A (en) * 2016-11-23 2017-08-11 浙江工业大学 A kind of method of imaging importing text for Windows systems
CN110119515B (en) * 2019-04-18 2020-11-20 珠海格力电器股份有限公司 Translation method, translation device, terminal and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07231406A (en) * 1994-02-18 1995-08-29 Victor Co Of Japan Ltd Slave screen display circuit with caption moving function
US6011552A (en) * 1996-06-24 2000-01-04 Intel Corporation Relocatable menu icon for accessing an application in a graphical user interface
US6563547B1 (en) * 1999-09-07 2003-05-13 Spotware Technologies, Inc. System and method for displaying a television picture within another displayed image
CN1516443A (en) * 1996-09-17 2004-07-28 TV programme making-up system and method
US20050188404A1 (en) * 2004-02-19 2005-08-25 Sony Corporation System and method for providing content list in response to selected content provider-defined word
US20060059525A1 (en) * 1999-12-13 2006-03-16 Jerding Dean F Media services window configuration system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07231406A (en) * 1994-02-18 1995-08-29 Victor Co Of Japan Ltd Slave screen display circuit with caption moving function
US6011552A (en) * 1996-06-24 2000-01-04 Intel Corporation Relocatable menu icon for accessing an application in a graphical user interface
CN1516443A (en) * 1996-09-17 2004-07-28 TV programme making-up system and method
US6563547B1 (en) * 1999-09-07 2003-05-13 Spotware Technologies, Inc. System and method for displaying a television picture within another displayed image
US20060059525A1 (en) * 1999-12-13 2006-03-16 Jerding Dean F Media services window configuration system
US20050188404A1 (en) * 2004-02-19 2005-08-25 Sony Corporation System and method for providing content list in response to selected content provider-defined word

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10769731B2 (en) * 2016-01-26 2020-09-08 Facebook, Inc. Adding paid links to media captions in a social networking system

Also Published As

Publication number Publication date
CN101076089A (en) 2007-11-21

Similar Documents

Publication Publication Date Title
WO2008000179A1 (en) A method and a device for displaying captions
WO2021212668A1 (en) Screen projection display method and display device
WO2021217435A1 (en) Streaming media synchronization method and display device
WO2016188276A1 (en) Video playing method, client and computer storage medium
WO2021232506A1 (en) Picture quality adjustment method and display device
WO2020098504A1 (en) Video switching control method and display device
US20140253802A1 (en) Electronic displays having paired canvases
US20210289263A1 (en) Data Transmission Method and Device
CN111601142B (en) Subtitle display method and display equipment
WO2021189712A1 (en) Method for switching webpage video from full-screen playing to small-window playing, and display device
CN111601144B (en) Streaming media file playing method and display equipment
CN111654743A (en) Audio playing method and display device
WO2021232914A1 (en) Display method and display device
CN111064982B (en) Display control method, storage medium and display device
CN115379277B (en) VR panoramic video playing method and system based on IPTV service
CN113490060B (en) Display equipment and method for determining common contact person
CN115119022B (en) Control method for skipping video advertisements and display equipment
CN111885415B (en) Audio data rapid output method and display device
CN111343498B (en) Mute control method and device and smart television
CN113014977A (en) Display device and volume display method
CN113542901A (en) Display device and fast switching display method of network channels
CN111654753A (en) Application program starting method and display device
CN113940049B (en) Voice playing method based on content and display equipment
TW200849997A (en) Method for displaying subtitles
WO2021218477A1 (en) Display method and display device

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: 07721756

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

NENP Non-entry into the national phase

Ref country code: RU

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), EPO FORM 1205A SENT ON 20/05/09

122 Ep: pct application non-entry in european phase

Ref document number: 07721756

Country of ref document: EP

Kind code of ref document: A1