Professional Documents
Culture Documents
Configuring DolbyE 4
Configuring DolbyE 4
Configuring DolbyE 4
TANDBERG Television
+44 2380 484000
www.tandbergtv.com
Confidentiality Notice
The information contained in this document is proprietary, confidential, and protected by
copyright. Any dissemination, distribution, or reproduction of such information is strictly
prohibited.
Page 1 of 20
Acknowledgements
General
All best endeavours have been made to acknowledge registered trademarks and
trademarks used throughout this document. Any notified omissions will be rectified
in the next issue.
Some trademarks may be registered in some jurisdictions but not in others. In
general, the situation in the UK will prevail throughout TANDBERG Television Ltd
documents.
Registered trademarks and trademarks used are acknowledged below and
marked with their respective symbols. However, they are not marked within the
text of this manual.
Trademarks
EN5780™ is a trademark of TANDBERG Television Ltd.
Registered Trademarks
Dolby E is a registered trademark of Dolby Laboratories
Document Revision
Issue Date Comments
1 2007 Initial issue
2 May 2008 Changes regarding 16 bit Dolby E and “video alignment” explanation
Page 2 of 20
Page 3 of 20
Before proceeding to the sections of this document that specifically help you to
configure your equipment, please read the following sections to understand what it
is necessary to achieve. This will make it clear why the settings need to be made
and what they are doing within the system.
It is this greater understanding that will help if you do encounter a problem, and will
put you in a much better position to locate and resolve it quickly and easily.
Overview of Dolby E
Dolby® E is a professional digital audio coding system intended for the distribution
of up to 8 channels of audio and metadata in professional audio/video environments.
Dolby E is a data signal but is designed to be carried using standard digital
interfaces such as AES3 or SDI. Carrying data within these interfaces places a few
additional requirements onto products that use such interfaces. (for further
information see SMPTE 337M, 338M, 272M, 259M, 299M, 292M, 302M)
The Dolby E frames are embedded into the AES3 interface by mapping the Dolby E
data into the audio sample word bits of the AES frames. Both channels within the
signal are utilised. The data can be packed to utilise 16, 20, or 24 bits in each AES3
subframe (currently only 20 bit Dolby E is available in Dolby E mode in the
TANDBERG encoder, 16 bit Dolby E can be passed in Linear PCM mode this
document applies only to the Dolby E mode). Dolby E data is designed to be
synchronous with an accompanying video signal and encoders are designed to
produce Dolby E bitstreams that are synchronous in this way. Each Dolby E frame
includes the audio that accompanies one video frame, i.e. 40 ms of audio in 25 Hz
territories and 33 ms of audio in 29.97 Hz territories. Every time Dolby E is encoded
or decoded there is a latency equivalent to one video frame.
Dolby E has a feature known as the “guard band”. This is an area within the 48 kHz
AES3 formatted signal where no data is actually stored. This is located around the
video switching line and is designed to allow Dolby E to be switched and routed
without any corruption to the data. To ensure that this corruption does not occur,
this guard band has to remain around the video switching line. Achieving correct
alignment between video and Dolby E requires a central clock source to be used so
that the production of Dolby E stream is done in perfect synchronization to the
video. The upper section of Figure 2 shows how these Guard Bands are placed within
the Dolby E stream.
As Dolby E is a data stream, any process that alters the data stream will result in a
corrupted Dolby E stream. Sample rate conversion, gain adjustment, EQ or bit-depth
Page 4 of 20
Dolby E can be carried within (HD)SDI. When carrying Dolby E in (HD)SDI there are
a couple of issues to consider. The first thing to consider is the embedding/de-
embedding delay. The Dolby E guard band can still be effective if there is a delay in
the audio w.r.t. video, within defined limits.
Page 5 of 20
The best way of locking the TANDBERG E57xx encoder to the source material is to
lock the E57xx to the incoming video (HD)SDI. This is the method recommended by
TANDBERG for all Dolby E configurations. An alternative method of locking is
available and that is to use a black and burst reference in the same way as used to
lock the other equipment. This however requires a separate cable to carry the clock
reference to the encoder and is less practicable, especially if the encoder is not co-
sited with the production suite.
Locking to the incoming video clock simply makes it very difficult for the encoder
clock to be wrong.
Associating the correct Dolby E frame with the correct video frame.
Making sure the start of the Dolby E frame occurs in the correct position with
respect to the start of the video frame.
Associating the correct Dolby E frame with the correct video frame is the more
traditional concept of lip sync, which will give an audible lip sync error when the
Dolby E frame is decoded back to uncompressed audio.
Making the Dolby E frame begin at the correct point with respect to the video frame
is one of the benefits of Dolby E so this alignment needs to be preserved. It is this
property that allows it to be edited without causing audio glitches.
As long as the encoder is clocked to the same reference as the Dolby E encoder and
the video source, the encoder will automatically align the start of a video frame with
the start of the related Dolby E frame as shown in Figure 2. This means that in the
MPEG transport stream the Dolby E frame will have the same timestamp as the
video frame that the audio is associated with.
Page 6 of 20
The alignment of Dolby E (and hence guard band) with the video signal is critically
important. When passing the signal through a frame resynchroniser (as is often the
case post IRD), it is essential to maintain correct alignment otherwise excessive
Dolby E frame loss will occur. This can be avoided by ensuring the Dolby E encoder
(or source) is locked to the same reference as the video source, that are being input
to the E 57XX encoder. For example, if a frame resynchroniser needs to drop an
occasional video frame, then if the Dolby E frames are correctly aligned, only one
Dolby E frame will be dropped also. However, if the alignment is not correct, then 2
Dolby E frames will be affected, causing an occasional audio disturbance. This result
would also be the case for routing switchers. Figure 3 shows how both aligned and
misaligned Dolby E are affected by frame synchronizers.
Page 7 of 20
Some users may remember that on the TANDBERG encoder there was a setting in
the audio menu called “video alignment” which was by default set to ON. This
setting should be on for all applications and so in latter software it has been
removed and set to ON by default. The “video alignment” will ensure that the
transport steam that is produced will contain PES packets that contain a single Dolby
E frame and it will be aligned to a video frame. This means the PES packet which
starts at the same time as a video frame will start with some guard band data to
protect the video switching period. See Figure 4.
Page 8 of 20
Video frame
PTS = t
With the video alignment mode both streams in Figure 3 could be presented to the
TANDBERG E57xx encoder and providing the misalignment was small (~ less than ¼
frame early to ½ frame late) then the E57xx will correct this and the stream will be
realigned. This means that the alignment in the transport stream will always be the
same. If the misalignment at the input to the encoder is too great then the Dolby E
frame will be associated with the next or previous video frame depending on the
direction of the misalignment. This will cause 1 frame of lip sync error, the phase
alignment between Dolby E frames and the video frames will however be correct and
frame dropping or repeating by a downstream frame resynchroniser should still
work.
In Dolby E mode all PES packets from the TANDBERG Encoder will always be aligned
this way it cannot place the Dolby E frame in a different position within the Dolby E
packet.
As long as the Dolby E encoder, Video source, and E 57XX encoder is clocked
correctly, it will ensure;
That the video and Dolby E frames are aligned. The alignment to video
will always be the same within the MPEG transport stream.
That the 1 frame of encoding delay caused by the Dolby E encoder is
compensated for automatically by retarding video by exactly 1 frame
as shown in the diagram above.
Please note that the encoder clock source is set within the MUX menu of the set-up
screen. The use of INTERNAL clock is prohibited with Dolby E and can never be
correct. EXTERNAL can be used as long as you present the encoder with a valid
Page 9 of 20
It is necessary to pay particular attention to the system design and ensure that the
components within the system are synchronized correctly in terms of clock source.
Clocking the receiver is as important as clocking the encoder for exactly the same
reasons.
It is therefore important that the same clock used to clock the encoder is also used
to clock the receiver.
The first question concerning this is therefore one of practicality, since the encoder
and receiver may be separated my many hundreds or thousands of miles.
In general terms, there are three ways in which a receiver can obtain its clock
reference, so which can and cannot be used?
Of these three methods, the first (using the internal oscillator) is obviously incorrect,
since it would allow the receiver to “free run” and cannot be used.
This leaves methods 2 and 3 as possibilities.
Using an external clock source is usually not feasible because of the geographical
distance between the encoder and the receiver. However, using the PCR from the
transport stream should always work and be very easy to implement.
This deals with the clocking of the receiver, but how about the Dolby E decoder. This
also needs to be clocked correctly.
In very simple systems, it is possible to use the receiver as the clock source for the
Dolby E decoder. This means that everything in the system is locked to the same
clock reference used at the transmission end. However, there are some important
considerations to be taken into account. The most fundamental concerns how the
black and burst reference needed to clock the Dolby E decoder is obtained. Some HD
receivers do not have down-conversion to SD, and hence have no SD output.
Page 10 of 20
Although this simple approach is usually fine for test systems, most broadcast
applications will require the output to be re-synchronized to the local station clock.
For this reason, an alternative approach is needed to clock the Dolby E decoder.
The operation of this second method, which is very commonly used, depends upon
something that was explained earlier. It was stated that if the receiver was locked
correctly (using PCR to recover the original encoder’s clock) then the output would
contain Dolby E frames that are aligned with the video. It was also stated that this
would allow a frame re-synchronizer to work without causing corruption to the Dolby
E signal, since with aligned frames, if a video frame is dropped during re-
synchronization then only one Dolby E frame will be dropped with it. Since this is the
case, the output of the receiver can be passed through a frame re-synchronizer
(which drop entire frames worth of Dolby E at the point of dropping a video frame),
which is locked to the local station clock reference. The output can be fed to the
Dolby E decoder which is also locked to the local station clock reference.
This is the practice used in the majority of studio systems.
Identifying problems
The following guide is designed to help you if you encounter problems.
Please work through the guide in logical order. If using an audio option card in the
TANDBERG encoder it is advisable to use the motherboard audio channels for the
Dolby E. All channels will pass Dolby E in the same way however the following
diagnostic menu options only work on the motherboard audio and will not work on
an audio option card.
Step 1: In the audio menu, please find the two counters that are provided for
diagnostics. These are the “Frame Count” and “sync Pos.error” counters.
Please reset the counters by changing the audio format from Dolby E Passthrough to
any other source, and then back to Dolby E Passthrough again. Then, examine the
counters.
Page 11 of 20
If there is no Dolby E source, then the Sync pos Error counter will rapidly advance
and the Frame Count will remain static.
If the counter is not showing correct operation (i.e. Sync Pos error increments whilst
Frame Count stays exactly the same) then please check;
Step 2: If the counters are as expected (Frame count is advancing but sync pos err
is completely static) then the problem could be down-stream of the encoder. This
could be a problem with the encoder, decoder, or Dolby E decoder. To verify this,
please place the Dolby E DM100 test set at the output of the receiver to see whether
the problem exists before or after the Dolby E decoder.
The Dolby DM 100 can also be used to check the video / Dolby E alignment. For
information, the 25fps Dolby E data is normally inserted around VBI line 11.
In all cases, please work through the equipment settings provided on the
subsequent pages of this guide and verify that these are correct.
It is also strongly recommended that you work with the latest versions of software in
all devices. This can be provided by TANDBERG customer services.
There may be occasions where some customers need extra help resolving system
issues with Dolby E.
Page 12 of 20
1. Please draw the Dolby E system quickly on a piece of A4 paper, so that it can
be faxed to us quickly if required. The drawing should capture the equipment
being used and how it is connected at both the encode and decode end.
Additionally, it should include the software versions of the equipment.
2. Please connect to the encoder and decoder via the web interface and
download the configuration files (XML file). Please be ready to e-mail this to
the TANDBERG engineer assigned to help you, since this will allow your
precise configuration to be reproduced in our lab.
3. Please record any other information that is relevant and will help the
investigation, such as the nature of the problem (What does the disturbance
sound like? How long does it last? How often does it occur?)
4. Please let us know if you have a Dolby DM100 test set, and if so, have you
been able to localize the region of the problem yourself?
Page 13 of 20
1. Set the encoder clock source. The encoder needs to be set to use the
video input as the clock source. On the front panel from the Setup->Mux
menu select the Clock option and choose Video.
3. Select the correct input format. From the same video input menu
select the correct input format i.e. 1080i/25. If the wrong format is selected
then the encoder will pass video but the output will not be correct and Dolby
E will not work.
Page 14 of 20
table 1.
Embedded audio
The four embedded audio channels available at the encoder depend on the SDI input
having the correct audio groups and channel defined in it. ‘SDI Embedded 1’ will be
the first stereo pair of the group defined by Embedded 1-2 DID. ‘SDI Embedded 2’
will be the second stereo pair of the group defined by Embedded 1-2 DID and similarly
for ‘SDI Embedded 3’ and ‘SDI Embedded 4’
Channel 3 L Channel 3 L
Embedded 2 Embedded 4
Channel 4 R Channel 4 R
table 2.
e.g.
Menu option
Embedded 1-2 DID = 1E5 This is the default DID for Group 3 in HDSDI
Embedded 3-4 DID = 1E6 This is the default DID for Group 2 in HDSDI
Audio A Source = SDI Embedded 1 This is picking out the first stereo pair from
Group 3 and would correspond to channel 9
and 10 from table 1. ‘SDI Embedded 2’
would then correspond to the second stereo
pair from Group 3 – channel 11 and 12
Audio B Source = SDI Embedded 4 This is using the second stereo pair from
Group 2 and would correspond to channel 7
and 8 from table 1.
Page 15 of 20
The TANDBERG encoder is set up to expect the situation where you have lip synced
video and audio and then the audio is passed through a Dolby E encoder, the video
and Dolby E audio (now 1 frame delayed) are the inputs to the TANDBERG encoder.
The default lip sync frame delays through the TANDBERG encoder are configured as
follows.
In SD the encoder with it’s default lip sync offset will compensate for a 1 frame
encoding delay on the input to the encoder and it will also compensate for a 1 frame
decoding delay at the receive end. In the transport stream the Dolby E frame leads
the corresponding video frame by 1 frame.
In HD the encoder compensates for the 1 frame Dolby E encoding delay. It does not
compensate for the decoding delay, in HD the receiver is expected to cope with this
delay adjustment. In the transport stream the Dolby E frame is aligned to the
corresponding video frame.
In the encoder 1 or 2 frame adjustments can be made to this line up, there is no
way to set a specific delay for audio. The specification states that the audio PES
packet must be stamped with a timestamp from a video packet so this can only be
adjusted relative to the video and only with video frame amounts of adjustment.
Page 16 of 20
Sync pos. error This will increment at the start when the encoder
locks onto the incoming Dolby E, once locked this
value should not increment and would possibly
indicate an issue with the source.
During normal operation when a Dolby E feed is present, the top “frame count”
indicator should constantly increment with each Dolby E frame successfully
transmitted. The bottom “sync pos. error” indicator should NOT increment at all,
since it will only increment if there was an error.
If this does increment then it strongly suggests that the problem is at or before the
encoder (i.e. The clocking of the video source, Dolby E encoder or encoder is wrong
or there is another problem with one of these devices).
If there is no Dolby E source, then the Sync pos Error counter will rapidly advance
and the Frame Count will remain static.
The best way of checking the validity of a Dolby E embedded source is to check it
with a Dolby 100 hand-held Dolby E analyzer.
If the counters on the encoder do not increment as expected, then they may have
reached their maximum values. In this case, they can be reset by placing the
encoder in normal stereo encoding mode, and then switching back to Dolby E
Passthrough again. This action will reset the counters.
Page 17 of 20
1. Adjust the audio delay. Configure the audio channel on the TT1280 that
is to be used for Dolby E to have a lip sync adjustment. When the audio is
played out of the TT1280 the Dolby E frame should match the video frame
played at the same time, if this is then passed through a Dolby E decoder this
will add 1 frame of delay to the audio channel in relation to the video. This
delay can be compensated for in the TT1280 by setting lip sync adjustments
of -40 ms for 25 fps and 50 fps formats or to -33.5 ms for 29.97 fps and
59.94 fps formats. This option is available under the service->audio menu of
the required audio channel.
To put the Dolby Frame in the optimal position with respect to the start of the
video frame an additional lip sync adjustment must be made. Make an
adjustment by bringing the audio forward by 0.5 ms.
e.g.
If the audio adjustment was already at -40ms for the above reason then
change this delay to -40.5ms. If the value was 0 ms then make it -0.5ms.
2. Set the output format to ‘AC3 – Compressed’. From the audio menu
for the desired channel set the digital output format to compressed. This
must be done after making any audio delay adjustments.
Known issues:
The Dolby E line position will move forward over time (the line number will
decrease) the rate of this movement is approximately 1 HD video line every 6 hours.
If the receiver output is being put into a frame resynchroniser then this could cause
a problem after about 3 days as the Dolby E frame could have crossed the frame
switching line. One method of resolving this problem is by using a frame
synchronizer post IRD that includes Dolby E re-alignment.
Page 18 of 20
1. Adjust the audio delay. If necessary configure the audio channel on the
Rx1290 that is to be used for Dolby E to have a lip sync adjustment. When
the audio is played out of the Rx1290 the Dolby E frame should match the
video frame played at the same time. When using SD video from the
TANDBERG encoder it is set up by default to compensate for the 1 frame
decoding delay in the Dolby E decoder and the Dolby E frame is played out 1
frame ahead of the corresponding video frame.
When HD encoding is used the Dolby E frame should be played out aligned to
the corresponding video frame, When this is then passed through a Dolby E
decoder this will add 1 frame of delay to the audio channel in relation to the
video. This delay can be compensated for in the Rx1290 by setting lip sync
adjustments of -40 ms for 25 fps and 50 fps formats or to -33.5 ms for 29.97
fps and 59.94 fps formats. This option is available under the service->audio
menu of the required audio channel.
2. Set the output format to ‘AC3 – Compressed’. From the audio menu
for the desired channel set the digital output format to compressed. This
must be done after making any audio delay adjustments.
Page 19 of 20
DIDs
Audio Group Hex Decimal
Group 1 SD 2FF 0767
HD 2E7 0743
Group 2 SD 1FD 0509
HD 1E6 0486
Group 3 SD 1FB 0507
HD 1E5 0485
Group 4 SD 2F9 0761
HD 2E4 0740
By setting Embedded 1-2 DID to 1024 will make it use the default Group 1
DIDs and be setting Embedded 3-4 DID to 1024 will make it use the default
Group 2 DIDs.
Page 20 of 20