This important document, used to standardise the handling of programme content in UK digital TV broadcasts where the transmitted aspect ratio differs from that of the user's TV, contains significant errors, which amazingly have gone uncorrected in the four years since it was published.
The author first encountered the document shortly after its publication, and immediately noticed a number of idiosyncrasies and apparent editorial errors. Having spotted them so quickly, I naturally assumed that a corrected revision would soon appear; unfortunately this has not been forthcoming, and worryingly it now appears that some manufacturers of digital set-top boxes are blindly following the DTG guidelines, errors and all. As such, I feel it is important to lobby the DTG to make the necessary corrections before any more harm is done.
It is all the sadder because the DTG document is largely superfluous. I won't go into a full explanation of AFDs (Active Format Descriptors - for the uninitiated, these are metadata describing the shape and makeup of the transmitted signal) on which the DTG document focuses, because there are already good explanations on the web, not least the original DVB specification that defines them. Granted, the DVB spec has the limitation that it only describes the transmitted data, and doesn't attempt to standardise the way that set-top boxes should offer to reformat it for the user for given TV shapes; but all that should have been necessary to specify is an algorithmic interpretation of named user preferences. To spell out each individual case, as the DTG document does, produces unnecessary duplication of information, and leaves the opportunity for errors and inconsistencies to be introduced.
For example, before the DTG guidelines were published, I added AFD support to a set-top box I was working on, based purely on the DVB spec and the application of common sense. In the terminology of the DTG document, there was a "centre cut-out" mode for 4:3 TVs, where the picture was upscaled just enough that no black bars were visible (whether the black bars were in the encoded video or due to an aspect ratio misfit), and a "letterbox" mode for 4:3 TVs and a mode for 16:9 TVs, in both of which the picture was upscaled as much as possible without any of the "shoot-and-protect" region being clipped. The result of these simple rules can be compared against the DTG recommendation in table 1 below.
But first, a quick comment on the notation used. The DTG document (unhelpfully, in my opinion) uses a superfically similar, but significantly different set of symbols from the DVB document: for example the central circle is constrained by the shoot-and-protect region in the DVB document, but by the active video region in the DTG document. I have based my tables on DVB notation, as I think they are clearer than the DTG equivalent:
The smallest rectangle enclosing the three circles is the shoot-and-protect region | |
The region containing active pixels | |
Parts of the encoded video signal where all the pixels are black | |
The limits, after scaling, of the video visible on a 4:3 TV are denoted by the blue line. Any of the black visible in the table will have been generated in the STB | |
The limits, after scaling, of the video visible on a 16:9 TV are denoted by the blue line, but because some of the scaling is often done in the TV, a red line may also be present, indicating the limits of the video in the signal between the STB and the TV. Areas outside the red line but inside inside the blue line are forced to black by the TV, but any other areas depicted in black will have been generated in the STB | |
For the sake of simplifying the table, I have assumed that the set-top box is capable of arbitrary scaling factors, and that the 16:9 TV fully supports all the scaling modes illustrated in the key above.
Table 1:
AFD | Layout when coded frame is | Appearance on a 4:3 TV | Appearance on a 16:9 TV | |||||
---|---|---|---|---|---|---|---|---|
4:3 | 16:9 | centre cut-out mode | letterbox mode | |||||
0 as the coded frame |
||||||||
1 | ||||||||
1 4:3 (centre) |
||||||||
2 16:9 (centre) |
2 | 2 | 3 | |||||
3 14:9 (centre) |
4 | |||||||
5 4:3 (with shoot and protect 14:9 centre) |
5 | 5 | ||||||
6 16:9 (with shoot and protect 14:9 centre) |
4 | 3 | ||||||
7 16:9 (with shoot and protect 4:3 centre) |
6 | 3 |
Note how the position and size of visible black bars and the shoot-and-protect areas are independent of the coded frame aspect ratio, but only in the algorithmic version of the table - this is the first hint that the DTG guidelines are in error. Specific issues raised are as follows:
By correcting the errors I have identified, whilst retaining the "hard letterbox" interpretation of AFD 2, reevaluating AFD 0 and adding the third user option for 4:3 TVs, we get the following table.
Table 2: The best of both worlds
AFD | Layout when coded frame is | Appearance on a 4:3 TV | Appearance on a 16:9 TV | |||||||
---|---|---|---|---|---|---|---|---|---|---|
4:3 | 16:9 | centre cut-out mode | standard mode | letterbox mode | ||||||
0 as the coded frame |
note | |||||||||
1 4:3 (centre) |
||||||||||
2 16:9 (centre; centre cut-out disabled) |
||||||||||
3 14:9 (centre) |
||||||||||
5 4:3 (with shoot and protect 14:9 centre) |
||||||||||
6 16:9 (with shoot and protect 14:9 centre) |
||||||||||
7 16:9 (with shoot and protect 4:3 centre) |
My treatment of AFD 0 is worthy of further explanation: in recognition that this AFD (or lack of AFD) is used for material of a variety of shapes, I have applied different rules. I have also illustrated AFD 0 without specifying shoot-and-protect areas, to reinforce the ambiguity.
I leave the variations required for 4:3 TVs with widescreen signalling, 16:9 TVs without widescreen signalling, and STBs with restricted scaling factors as an exercise for the reader. Another interesting exercise is to design "centre cut-out" and "pillarbox" modes for 16:9 TVs to complement the existing single mode, which is akin to the "standard" mode for 4:3 TVs; however, this is largely an academic exercise because the same effect can nearly always be achieved using the TV remote control.