dolby 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #------------------------------------------------------------------------------
  2. # $File: dolby,v 1.9 2019/04/19 00:42:27 christos Exp $
  3. # ATSC A/53 aka AC-3 aka Dolby Digital <ashitaka@gmx.at>
  4. # from https://www.atsc.org/standards/a_52a.pdf
  5. # corrections, additions, etc. are always welcome!
  6. #
  7. # syncword
  8. 0 beshort 0x0b77 ATSC A/52 aka AC-3 aka Dolby Digital stream,
  9. # Proposed audio/ac3 RFC/4184
  10. !:mime audio/vnd.dolby.dd-raw
  11. # fscod
  12. >4 byte&0xc0 = 0x00 48 kHz,
  13. >4 byte&0xc0 = 0x40 44.1 kHz,
  14. >4 byte&0xc0 = 0x80 32 kHz,
  15. # is this one used for 96 kHz?
  16. >4 byte&0xc0 = 0xc0 reserved frequency,
  17. #
  18. >5 byte&0x07 = 0x00 \b, complete main (CM)
  19. >5 byte&0x07 = 0x01 \b, music and effects (ME)
  20. >5 byte&0x07 = 0x02 \b, visually impaired (VI)
  21. >5 byte&0x07 = 0x03 \b, hearing impaired (HI)
  22. >5 byte&0x07 = 0x04 \b, dialogue (D)
  23. >5 byte&0x07 = 0x05 \b, commentary (C)
  24. >5 byte&0x07 = 0x06 \b, emergency (E)
  25. >5 beshort&0x07e0 0x0720 \b, voiceover (VO)
  26. >5 beshort&0x07e0 >0x0720 \b, karaoke
  27. # acmod
  28. >6 byte&0xe0 = 0x00 1+1 front,
  29. >>6 byte&0x10 = 0x10 LFE on,
  30. >6 byte&0xe0 = 0x20 1 front/0 rear,
  31. >>6 byte&0x10 = 0x10 LFE on,
  32. >6 byte&0xe0 = 0x40 2 front/0 rear,
  33. # dsurmod (for stereo only)
  34. >>6 byte&0x18 = 0x00 Dolby Surround not indicated
  35. >>6 byte&0x18 = 0x08 not Dolby Surround encoded
  36. >>6 byte&0x18 = 0x10 Dolby Surround encoded
  37. >>6 byte&0x18 = 0x18 reserved Dolby Surround mode
  38. >>6 byte&0x04 = 0x04 LFE on,
  39. >6 byte&0xe0 = 0x60 3 front/0 rear,
  40. >>6 byte&0x04 = 0x04 LFE on,
  41. >6 byte&0xe0 = 0x80 2 front/1 rear,
  42. >>6 byte&0x04 = 0x04 LFE on,
  43. >6 byte&0xe0 = 0xa0 3 front/1 rear,
  44. >>6 byte&0x01 = 0x01 LFE on,
  45. >6 byte&0xe0 = 0xc0 2 front/2 rear,
  46. >>6 byte&0x04 = 0x04 LFE on,
  47. >6 byte&0xe0 = 0xe0 3 front/2 rear,
  48. >>6 byte&0x01 = 0x01 LFE on,
  49. #
  50. >4 byte&0x3e = 0x00 \b, 32 kbit/s
  51. >4 byte&0x3e = 0x02 \b, 40 kbit/s
  52. >4 byte&0x3e = 0x04 \b, 48 kbit/s
  53. >4 byte&0x3e = 0x06 \b, 56 kbit/s
  54. >4 byte&0x3e = 0x08 \b, 64 kbit/s
  55. >4 byte&0x3e = 0x0a \b, 80 kbit/s
  56. >4 byte&0x3e = 0x0c \b, 96 kbit/s
  57. >4 byte&0x3e = 0x0e \b, 112 kbit/s
  58. >4 byte&0x3e = 0x10 \b, 128 kbit/s
  59. >4 byte&0x3e = 0x12 \b, 160 kbit/s
  60. >4 byte&0x3e = 0x14 \b, 192 kbit/s
  61. >4 byte&0x3e = 0x16 \b, 224 kbit/s
  62. >4 byte&0x3e = 0x18 \b, 256 kbit/s
  63. >4 byte&0x3e = 0x1a \b, 320 kbit/s
  64. >4 byte&0x3e = 0x1c \b, 384 kbit/s
  65. >4 byte&0x3e = 0x1e \b, 448 kbit/s
  66. >4 byte&0x3e = 0x20 \b, 512 kbit/s
  67. >4 byte&0x3e = 0x22 \b, 576 kbit/s
  68. >4 byte&0x3e = 0x24 \b, 640 kbit/s