Введение
Временной код, закодированный как аудиосигнал. Линейный (или продольный) временной код (LTC) – это кодирование данных SMPTE-таймкода в аудиосигнале, как определено в спецификации SMPTE 12M. Аудиосигнал обычно записывается на дорожку видеомагнитофона (VTR) или другие носители информации. Биты кодируются с использованием кода бифазного маркирования (также известного как FM): бит 0 имеет один переход в начале битового периода, а бит 1 – два перехода, в начале и середине периода. Эта кодировка является самосинхронизирующейся. Каждый кадр завершается "синхронизирующим словом", которое имеет специальное, заранее определенное соотношение синхронизации с любым видео- или киноконтентом. Специальный бит в кадре линейного временного кода, бит коррекции бифазного маркирования, гарантирует, что в каждом кадре временного кода будет четное количество переменного тока (AC) переходов. Звук линейного таймкода – это резкий и характерный шум, который часто используется в качестве звукового эффекта для обозначения телеметрии или компьютеров. По состоянию на 21 января 2019 года эта рекомендация была отозвана ITU R.
Linear (or Longitudinal) Timecode (LTC) is an encoding of SMPTE timecode data in an audio signal, as defined in SMPTE 12M specification. The audio signal is commonly recorded on a VTR track or other storage media. The bits are encoded using the biphase mark code (also known as FM): a 0 bit has a single transition at the start of the bit period. A 1 bit has two transitions, at the beginning and middle of the period. This encoding is self clocking. Each frame is terminated by a 'sync word' which has a special predefined sync relationship with any video or film content. A special bit in the linear timecode frame, the biphase mark correction bit, ensures that there are an even number of AC transitions in each timecode frame. The sound of linear timecode is a jarring and distinctive noise and has been used as a sound effects shorthand to imply telemetry or computers. As of 2019 01 21, this recommendation was withdrawn by ITU R
Формат данных продольного временного кода
Основной формат – это 80-битный код, который задает время вплоть до секунды и номер кадра внутри секунды. Значения хранятся в двоично-десятичном коде, начиная с младшего бита. Есть тридцать два бита пользовательских данных, обычно используемых для номера катушки и даты. + SMPTE линейный таймкод
Bit 10 is set to 1 if drop frame numbering is in use; frame numbers 0 and 1 are skipped during the first second of every minute, except multiples of 10 minutes. This converts 30 frame/second time code to the 29.97 frame/second NTSC standard. Bit 11, the color framing bit, is set to 1 if the time code is synchronized to a color video signal. The frame number modulo 2 (for NTSC and SECAM) or modulo 4 (for PAL) should be preserved across cuts in order to avoid phase jumps in the chrominance subcarrier. Bits 27, 43, and 59 differ between 25 frame/s time code, and other frame rates (30, 29.97, or 24). The bits are:
"Polarity correction bit" (bit 59 at 25 frame/s, bit 27 at other rates): this bit is chosen to provide an even number of 0 bits in the whole frame, including the sync code. (Since the frame is an even number of bits long, this implies an even number of 1 bits, and is thus an even parity bit. Since the sync code includes an odd number of 1 bits, it is an odd parity bit over the data.) This keeps the phase of each frame consistent, so it always starts with a rising edge at the beginning of bit 0. This allows seamless splicing of different time codes, and lets it be more easily read with an oscilloscope. "Binary group flag" bits BGF0 and BGF2 (bits 27 and 43 at 25 frame/s, bits 43 and 59 at other rates): these indicate the format of the user bits. Both 0 indicates no (or unspecified) format. Only BGF0 set indicates four 8 bit characters (transmitted little endian). The combinations with BGF2 set are reserved. Bit 58, unused in earlier versions of the specification, is now defined as "binary group flag 1" and indicates that the time code is synchronized to an external clock. if zero, the time origin is arbitrary. The sync pattern in bits 64 through 79 includes 12 consecutive 1 bits, which cannot appear anywhere else in the time code. Assuming all user bits are set to 1, the longest run of 1 bits that can appear elsewhere in the time code is 10, bits 9 to 18 inclusive. The sync pattern is preceded by 00 and followed by 01. This is used to determine whether an audio tape is running forward or backward.
Бит | Вес | Значение
---|---|---
00 | 1 | Единицы номера кадра (0–9)
16 | 1 | Единицы секунд (0–9)
32 | 1 | Единицы минут (0–9)
48 | 1 | Единицы часов (0–9)
64 | 0 | Синхроимпульс, фиксированный шаблон 0011111111111101
01 | 2 | 17 | 2 | 33 | 2 | 49 | 2 | 65 | 0
02 | 4 | 18 | 4 | 34 | 4 | 50 | 4 | 66 | 1
03 | 8 | 19 | 8 | 35 | 8 | 51 | 8 | 67 | 1
04 | | Пользовательское поле 1 | 20 | Пользовательское поле 3 | 36 | Пользовательское поле 5 | 52 | Пользовательское поле 7 | 68 | 1
05 | 21 | 37 | 53 | 69 | 1
06 | 22 | 38 | 54 | 70 | 1
07 | 23 | 39 | 55 | 71 | 1
08 | 10 | Десятки номера кадра (0–2) | 24 | 10 | Десятки секунд (0–5) | 40 | 10 | Десятки минут (0–5) | 56 | 10 | Десятки часов (0–2) | 72 | 1
09 | 20 | 25 | 20 | 41 | 20 | 57 | 20 | 73 | 1
10 | | D – Флаг пропуска кадра | 26 | 40 | 42 | 40 | 58 | BGF1 – Флаг синхронизации часов | 74 | 1
11 | C – Флаг "цветного кадра" | 27 | (флаг, см. ниже) | 43 | (флаг, см. ниже) | 59 | (флаг, см. ниже) | 75 | 1
12 | Пользовательское поле 2 | 28 | Пользовательское поле 4 | 44 | Пользовательское поле 6 | 60 | Пользовательское поле 8 | 76 | 1
13 | 29 | 45 | 61 | 77 | 1
14 | 30 | 46 | 62 | 78 | 0
15 | 31 | 47 | 63 | 79 | 1
Bit 10 is set to 1 if drop frame numbering is in use; frame numbers 0 and 1 are skipped during the first second of every minute, except multiples of 10 minutes. This converts 30 frame/second time code to the 29.97 frame/second NTSC standard. Bit 11, the color framing bit, is set to 1 if the time code is synchronized to a color video signal. The frame number modulo 2 (for NTSC and SECAM) or modulo 4 (for PAL) should be preserved across cuts in order to avoid phase jumps in the chrominance subcarrier. Bits 27, 43, and 59 differ between 25 frame/s time code, and other frame rates (30, 29.97, or 24). The bits are:
"Polarity correction bit" (bit 59 at 25 frame/s, bit 27 at other rates): this bit is chosen to provide an even number of 0 bits in the whole frame, including the sync code. (Since the frame is an even number of bits long, this implies an even number of 1 bits, and is thus an even parity bit. Since the sync code includes an odd number of 1 bits, it is an odd parity bit over the data.) This keeps the phase of each frame consistent, so it always starts with a rising edge at the beginning of bit 0. This allows seamless splicing of different time codes, and lets it be more easily read with an oscilloscope. "Binary group flag" bits BGF0 and BGF2 (bits 27 and 43 at 25 frame/s, bits 43 and 59 at other rates): these indicate the format of the user bits. Both 0 indicates no (or unspecified) format. Only BGF0 set indicates four 8 bit characters (transmitted little endian). The combinations with BGF2 set are reserved. Bit 58, unused in earlier versions of the specification, is now defined as "binary group flag 1" and indicates that the time code is synchronized to an external clock. if zero, the time origin is arbitrary. The sync pattern in bits 64 through 79 includes 12 consecutive 1 bits, which cannot appear anywhere else in the time code. Assuming all user bits are set to 1, the longest run of 1 bits that can appear elsewhere in the time code is 10, bits 9 to 18 inclusive. The sync pattern is preceded by 00 and followed by 01. This is used to determine whether an audio tape is running forward or backward.
Бит 10 устанавливается в 1, если используется нумерация с пропуском кадров; кадры 0 и 1 пропускаются в течение первой секунды каждой минуты, за исключением минут, кратных 10. Это преобразует таймкод с 30 кадрами в секунду в стандарт NTSC 29,97 кадра в секунду. Бит 11, флаг цветного кадра, устанавливается в 1, если таймкод синхронизирован с цветовым видеосигналом. Номер кадра по модулю 2 (для NTSC и SECAM) или по модулю 4 (для PAL) должен сохраняться при склейке, чтобы избежать фазовых сдвигов в поднесущей цветности. Биты 27, 43 и 59 различаются для таймкода с 25 кадрами/с и других частот кадров (30, 29,97 или 24). Эти биты:
Bit 10 is set to 1 if drop frame numbering is in use; frame numbers 0 and 1 are skipped during the first second of every minute, except multiples of 10 minutes. This converts 30 frame/second time code to the 29.97 frame/second NTSC standard. Bit 11, the color framing bit, is set to 1 if the time code is synchronized to a color video signal. The frame number modulo 2 (for NTSC and SECAM) or modulo 4 (for PAL) should be preserved across cuts in order to avoid phase jumps in the chrominance subcarrier. Bits 27, 43, and 59 differ between 25 frame/s time code, and other frame rates (30, 29.97, or 24). The bits are:
"Polarity correction bit" (bit 59 at 25 frame/s, bit 27 at other rates): this bit is chosen to provide an even number of 0 bits in the whole frame, including the sync code. (Since the frame is an even number of bits long, this implies an even number of 1 bits, and is thus an even parity bit. Since the sync code includes an odd number of 1 bits, it is an odd parity bit over the data.) This keeps the phase of each frame consistent, so it always starts with a rising edge at the beginning of bit 0. This allows seamless splicing of different time codes, and lets it be more easily read with an oscilloscope. "Binary group flag" bits BGF0 and BGF2 (bits 27 and 43 at 25 frame/s, bits 43 and 59 at other rates): these indicate the format of the user bits. Both 0 indicates no (or unspecified) format. Only BGF0 set indicates four 8 bit characters (transmitted little endian). The combinations with BGF2 set are reserved. Bit 58, unused in earlier versions of the specification, is now defined as "binary group flag 1" and indicates that the time code is synchronized to an external clock. if zero, the time origin is arbitrary. The sync pattern in bits 64 through 79 includes 12 consecutive 1 bits, which cannot appear anywhere else in the time code. Assuming all user bits are set to 1, the longest run of 1 bits that can appear elsewhere in the time code is 10, bits 9 to 18 inclusive. The sync pattern is preceded by 00 and followed by 01. This is used to determine whether an audio tape is running forward or backward.
"Бит коррекции полярности" (бит 59 при 25 кадрах/с, бит 27 при других частотах): этот бит выбирается для обеспечения четного количества нулей во всем кадре, включая синхроимпульс. (Поскольку кадр имеет четное количество битов, это подразумевает четное количество единиц, и, следовательно, является битом четности. Поскольку синхроимпульс содержит нечетное количество единиц, это бит нечетной четности по данным.) Это поддерживает постоянную фазу каждого кадра, так что он всегда начинается с фронта в начале бита 0. Это позволяет бесшовную склейку различных таймкодов и упрощает его чтение с помощью осциллографа. Биты "флаг двоичной группы" BGF0 и BGF2 (биты 27 и 43 при 25 кадрах/с, биты 43 и 59 при других частотах): они указывают формат пользовательских битов. Оба нуля означают отсутствие (или неуказанный) формат. Только установленный BGF0 указывает четыре 8-битных символа (передаются в порядке младшего значащего байта). Комбинации с установленным BGF2 зарезервированы. Бит 58, не использовавшийся в более ранних версиях спецификации, теперь определяется как "флаг двоичной группы 1" и указывает, что таймкод синхронизирован с внешними часами. Если равен нулю, начало отсчета времени произвольное. Синхроимпульс в битах 64–79 содержит 12 последовательных единиц, которые не могут встречаться больше нигде в таймкоде. Предполагая, что все пользовательские биты установлены в 1, самая длинная последовательность единиц, которая может появиться в другом месте в таймкоде, составляет 10, биты с 9 по 18 включительно. Синхроимпульсу предшествуют 00, за ним следует 01. Это используется для определения направления движения аудиоленты.
Bit 10 is set to 1 if drop frame numbering is in use; frame numbers 0 and 1 are skipped during the first second of every minute, except multiples of 10 minutes. This converts 30 frame/second time code to the 29.97 frame/second NTSC standard. Bit 11, the color framing bit, is set to 1 if the time code is synchronized to a color video signal. The frame number modulo 2 (for NTSC and SECAM) or modulo 4 (for PAL) should be preserved across cuts in order to avoid phase jumps in the chrominance subcarrier. Bits 27, 43, and 59 differ between 25 frame/s time code, and other frame rates (30, 29.97, or 24). The bits are:
"Polarity correction bit" (bit 59 at 25 frame/s, bit 27 at other rates): this bit is chosen to provide an even number of 0 bits in the whole frame, including the sync code. (Since the frame is an even number of bits long, this implies an even number of 1 bits, and is thus an even parity bit. Since the sync code includes an odd number of 1 bits, it is an odd parity bit over the data.) This keeps the phase of each frame consistent, so it always starts with a rising edge at the beginning of bit 0. This allows seamless splicing of different time codes, and lets it be more easily read with an oscilloscope. "Binary group flag" bits BGF0 and BGF2 (bits 27 and 43 at 25 frame/s, bits 43 and 59 at other rates): these indicate the format of the user bits. Both 0 indicates no (or unspecified) format. Only BGF0 set indicates four 8 bit characters (transmitted little endian). The combinations with BGF2 set are reserved. Bit 58, unused in earlier versions of the specification, is now defined as "binary group flag 1" and indicates that the time code is synchronized to an external clock. if zero, the time origin is arbitrary. The sync pattern in bits 64 through 79 includes 12 consecutive 1 bits, which cannot appear anywhere else in the time code. Assuming all user bits are set to 1, the longest run of 1 bits that can appear elsewhere in the time code is 10, bits 9 to 18 inclusive. The sync pattern is preceded by 00 and followed by 01. This is used to determine whether an audio tape is running forward or backward.