Skip to content

Commit c273c04

Browse files
committed
break down the ST12-1 timecode example interpretation
And fix the resulting value.
1 parent a84571b commit c273c04

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

cellar-codec/block_additional_mappings/smpte-st12-1-timecode.md

+38-1
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,46 @@ For convenience, here are the time address bit assignments as described in [@?RF
2121
| 56--57 | Tens of hours |
2222
Table: SMPTE ST 12-1 Time Address Bit Positions{#ST12Bits}
2323

24-
For example, a timecode value of "07:32:54;18" can be expressed as a 64-bit SMPTE 12M value as:
24+
For example, a timecode value of "07:12:26;18" can be expressed as a 64-bit SMPTE 12M value as:
2525

2626
```
2727
10000000 01100000 01100000 01010000
2828
00100000 00110000 01110000 00000000
2929
```
30+
31+
Or with the irrelevant bits marked with an "x" which gives 26 usable bits:
32+
33+
```
34+
1000xxxx 01xxxxxx 0110xxxx 010xxxxx
35+
0010xxxx 001xxxxx 0111xxxx 00xxxxxx
36+
```
37+
38+
This is interpreted in hexadecimal:
39+
40+
- 0x8 units of frames
41+
- 0x1 tens of frames
42+
- 0x6 units of seconds
43+
- 0x2 tens of seconds
44+
- 0x2 units of minutes
45+
- 0x1 tens of minutes
46+
- 0x7 units of hours
47+
- 0x0 tens of hours
48+
49+
Given no value is above 9, the BCD coding correspond to the actual values:
50+
51+
- 8 units of frames
52+
- 1 tens of frames
53+
- 6 units of seconds
54+
- 2 tens of seconds
55+
- 2 units of minutes
56+
- 1 tens of minutes
57+
- 7 units of hours
58+
- 0 tens of hours
59+
60+
Or:
61+
62+
- 18 frames
63+
- 26 seconds
64+
- 12 minutes
65+
- 07 hours
66+

0 commit comments

Comments
 (0)