This is an old revision of the document!


DVD Structure / Metadata

DVD Specifications

lsdvd

If looking at a DVD in a hierarchy viewset from the output of lsdvd XML, here is the structure it would follow, using lsdvd output (mostly) as a schema template:

  • DVD
    • VMG ID (“DVDVIDEO-VMG”)
    • Provider ID (“NEW_LINE”, “WARNER_BROS”, etc.)
    • Disc ID - see libdvdread
      • Index (integer; starting at 1)
      • Length (float; value in seconds)
      • VTS ID (string; “DVDVIDEO-VTS”)
      • VTS (integer)
      • TTN (integer)
      • FPS (float; “29.97” for NTFS, “25” for PAL)
      • Format (string; “NTSC” or “PAL”)
      • Aspect Ratio (string; “4/3” or “16/9”)
      • Video Width (integer; “720” for NTSC, “704” for PAL)
      • Height (integer; “480” for NTSC, “576” for PAL)
      • DF (string, “Letterbox”, “Pan&Scan”)
      • Palettes
        • Colors (string)
      • Angles (integer; usually just “1”)
        • Index (integer; starting at “1”)
        • Langcode (string; “en”, “es”, “de”, etc.)
        • Language (string; “English”, “Espanol”, “Deutsch”, etc.)
        • Format (string; “ac3” for Dolby Digital, “dts” for DTS, “lpcm” for PCM)
        • Frequency (integer; “48000”)
        • Quantization (string; “drc”, “16bit”)
        • Channels (integer; number of audio channels, “1” for mono, “2” for stereo, “6” for surround sound, etc.)
        • AP Mode (integer; “0”, “1”, “2”)
        • Content (string)
        • Stream ID (string, starting at “0x80”)
        • Index (integer; starting at “1”)
        • Length (float; number of seconds)
        • Starting Cell (integer)
      • Cells
        • Index (integer; starting at “1”)
        • Length (float; number of seconds)
        • Index (integer; starting at “1”)
        • Language Code (string, “en”)
        • Language (string, “English”)
        • Content (string)
        • Stream ID (string, starting at “0x20”)

Navigation