Re: Closed caption fun



Evan Kirshenbaum wrote:

DVD subtitles are, I believe, kept in separate files and merged into
the video stream by the player.

They are actually merged (interleaved, multiplexed) into a packetized video/audio stream (properly called a "program stream") when the DVD is being authored.

When playing back the disc, the DVD player filters the relevant audio/video/subtitle packets (or the substreams they represent) from that main program stream, according to the language choices the viewer made, and redirects these extracted substreams to the appropriate decoders.

DVD players typically have at least two separate framebuffers in their video output hardware: one for the decoded MPEG-2 video, and another one - the so-called "OSD layer" - on top of it, for the superimposed subtitles and menu (subpicture/highlight) graphics. The latter of the framebuffers can use partially or fully transparent (indexed) colors, or - depending on the chip in question - it may even have full alpha channel support for defining partially or fully transparent areas. The video hardware handles the mixing and overlaying of these two framebuffers automatically; the programmer only needs to fill them with pretty pictures.

The idea is basically the same for the European digital tv broadcasts (adhering to the "DVB" family of standards) and the subtitling employed there, although the subtitling data is not in the same format.

Interesting bit of trivia is that both the DVD subtitles and the DVB subtitles are actually bitmap pictures with a low color depth, indexed colors and a palette definition. In other words, the subtitles are not textual data at all, in these standards, and they do not rely on a font built-in to the decoder. This means that the author of the disc (in case of DVDs) or the broadcaster (in case of DVB broadcasts) can use any font and script they wish. You could create DVD or DVB subtitles even in Klingon, or with IPA markup, if you wanted to.

--
znark

.



Relevant Pages

  • Re: convert PAL video to NTSC video
    ... How would you suggest analyzing a DVD? ... The best way to do it is to recode the video with MENCODER. ... In a number of the utilities i have tried for clipping, re-encoding and other video tasks I have found only handbrake provides options for the selection of subtitles. ...
    (comp.sys.mac.apps)
  • Re: Why cant pro subbers sub as well as good fansubbers?
    ... standard. ... There are two ways to do subtitles with a DVD: ... but they can be used for other video effects. ...
    (rec.arts.anime.misc)
  • Re: Why cant pro subbers sub as well as good fansubbers?
    ... There are two ways to do subtitles with a DVD: Closed Captioning and VOB ... Video specifications that is related: ...
    (rec.arts.anime.misc)
  • Re: How to re-subtitle a DVD?
    ... a version with my own subtitles, and put the end result on another DVD. ... It would be nice if I could keep the video quality of the original, but otherwise I don't need anything fancy. ... You could overlay your own subtitles with filter. ...
    (rec.video.desktop)
  • Re: Smallest file size but with good quality for web download?
    ... >>look really good and the subtitles readable. ... >subs when playing back such a small video in the Windows Media Player. ...
    (rec.video.production)