Rasterizador y Transport Stream Analizador

download Rasterizador y Transport Stream Analizador

of 81

description

Presentación del uso del Analizador Rasterizador

Transcript of Rasterizador y Transport Stream Analizador

  • Anlisis de la Seal Digitaltransmisin TDTSeptiembre 2014 Direccin Tcnica de Repetidoras

  • Operacin equipo monitoreoRasterizador WVR 8300Analizador DTV RFM 300 Transport StreamPSI/SI/PSIPPCRPESDataPTSAudioDTSVideoData

  • TRANSMISIN EN ESPEJO HD-SDAntena receptora Decodificador satelitalExcitador yTransmisor analgicoSatliteMODELO OPERATIVOSDI-HDSDI-HDDownconverterIdentificador de CanalSERVERSDI-HDVIDEOAUDIOEncoder yTransmisor digitalSDI-HDCUE-TONEAUDIO-COORDINACINDTMFSWITCHER

  • TemarioLa Interfase de Video DigitalNormas, Formatos y EstndaresSincrona y TemporizacinAncillary DataErrores en la seal de Video DigitalMediciones y Pruebas de la Seal DigitalEvaluacin de Gama (Mscaras Lightning, Diamond, Arrowhead)Herramientas de Medicin

  • Video DigitalQu es el Video Digital? Es un medio alternativo de transmitir una forma de onda de vdeo.Para representarlo digitalmente se utiliza PCMEl eje temporal est representado de manera discreta o escalonada.La forma de onda se transmite por una serie de medidas tomada a intervalos regulares.Este proceso se llama muestreo y la frecuencia con que se toman las muestra se llama Frecuencia de Muestreo.Cada muestra se representa mediante un nmero que se conoce como cuantificacin.

  • Procesamiento DigitalOnda Sinusoidal

    Procesamiento Digital

  • Muestreo DigitalRazn de MuestreoCuantizacin

  • Video DigitalLas seales enviadas tienen dos estados y conmutan en tiempos predeterminados.

  • Video DigitalExisten dos formas de poder utilizar las seales binarias con el objeto de transmitir muestras.

  • Video DigitalObjetivo en el ADC; eliminar el jitter de la seal de reloj, de manera que cada muestra sea tomada a espacios de tiempo exactamente regulares.Bsicamente, el video digital lleva la forma de onda original de forma numrica.La velocidad a la que se hacen las lecturas y la precisin del medidor son los nicos factores que determinan la calidad.El nmero entero que representa la longitud de la muestra se expresa en sistema binario.

  • Vdeo DigitalVentajas?

    Una de sus mayores ventajas es su bajo costo. La fabricacin de circuitera digital cuesta menos.Las grabaciones digitales son ms estables y confiables que las analgicas con una calidad igual o superiorLas redes de comunicaciones desarrolladas para manejar datos pueden llevar video acompaado de audio (embebido).

  • La Interfase de Video DigitalConversin Analgica a DigitalReloj de la seal de Definicin Estndar SD: 27MHzReloj de la seal de Alta Definicin HD:148.5 MHz 74.25MHz37.125MHz37.125MHz148.5MHz148.5 MHz HD27 MHz SD

  • Conversin A/D Seal AnalgicaConvertidor A/D1 0 0 0 0 01 1 1 0 0 0 0 1 0 1 0 00 1 0 0 1 01 0 0 1 0 00 0 0 0 1 11 1 1 1 1 00 0 0 1 1 01 1 1 1 1 10 0 0 0 1 1Frecuencia de MuestreoNo. de Bits Representan los valores posibles de Amplitud en el punto de Muestreo(resolucin 8 o 10 Bits)Sample 1Sample 2Sample 3Sample 4Sample 5Sample 6Sample 1Sample 2Sample 3Sample 4Sample 5Sample 6MSB

    LSB

  • Conversin A/D de Video Video por componentes (Y, R-Y, B-Y)74.25 MHz para Y (luminance), 37.125 MHz para cada R-Y y B-Y (chrominance)10 bit resolucin - 1024 niveles Serial por Componentes: 1485 Mb/sB-YR-YY10 Bits A/DsSerializerMUXComponentes digital paralelo 148.5Mwords/s (B-Y/Y/R-Y)Reloj a 148.5MHzComponentes digital serial 1485 MBits/s (B-Y/Y/R-Y)MatrixEncoderRGB

  • Multiplexaje del VideoLas muestras de Y, Cb, Cr son multiplexadas en la forma: Cb, Y, Cr, Y.Sumando un Ancho de Banda de 148.5MHz (78.25+37.125+37.125) MHz Seal Paralela de 10 bitEstructura de Muestreo 4:2:24 = Y @ 78.25 MHz 2 = Cb,Cr @ 37.125 MHz Transmisin a travs de un coaxial que permite longitudes de hasta 300 mts.Necesidad de reclocking para extender la longitud de transmisin de la seal y las impedancias.

  • Muestreo 6010123012301230123lnea nlnea n + 263lnea n + 1lnea n + 264Muestreo 4:2:2 Recomendacin ITU-R BT.601(Recomendacin 601 del CCIR)

    4 = 13,5 MHz 2 6,75 MHz CbYCrYCbYCrYBorrado verticalVideo activo

    720 pixeles x 483 lneas

  • FCC no obliga el contenido de la tabla inferiorLos estndares ATSC siguen la tabla inferiorLos decodificadores de los clientes soportarn cualquier formato de la tabla inferiorBroadcasters escogern el formato en el que transmitirnFormato de Imgenes DTV

  • TemarioLa Interfase de Video DigitalNormas, Formatos y EstndaresSincrona y TemporizacinAncillary DataErrores en la seal de Video DigitalMediciones y Pruebas de la Seal DigitalEvaluacin de Gama (Mscaras Lightning, Diamond, Arrowhead)Herramientas de Medicin

  • Sincrona y TemporizacinLa informacin de tiempo es transportada por los paquetes End of Active Video (EAV) y Start of Active Video (SAV).Los intervalos de borrado horizontal y vertical pueden ser utilizados para transportar audio u otros datos auxiliares.Los paquetes SAV y EAV son identificados por un encabezado con las palabras: 3FFh, 000h, 000h. La cuarta palabra XYZ contiene informacin referente a la seal.Los paquetes de datos auxiliares en el video digital por componentes estn identificadas por un encabezado con las palabras: 000h, 3FFh, 3FFh.

  • Sincrona y TemporizacinLa palabra xyz es una palabra de 10 bits. Los 2 bits menos significativos son 0. Dentro de la palabra XYZ, son funciones F, V y H que tienen los siguientes valores:Bit 8 (F-bit) 0 para el campo uno y 1 para el campo dosBit 7 (V-bit) 1 en el intervalo de borrado vertical; 0 durante lneas de video activoBit 6 (H-bit) 1 indica la secuencia EAV; 0 indica la secuencia SAV.CRC uno por campo en SD, uno por linea en HD

  • Intervalo de borrado horizontal

  • Elementos de lnea horizontal EAVSAVEAV4 palabras4 palabras4 palabras1716/1728 PALABRAS de la LNEA TOTAL para 525/625LNEA ANALGICALNEA ACTIVA DIGITAL (igual para 525/625)

    1440 PALABRAS (0-1439)276/288 PALABRAS para 525/625INTERVALO DE BORRADO

  • Elementos de lnea horizontal EAVSAVEAV4 palabras4 palabras4 palabras2200 PALABRAS de la LNEA TOTAL para HDLNEA ANALGICALNEA ACTIVA DIGITAL (para HD)

    1920 PALABRAS (0-1919)280 PALABRAS para HDINTERVALO DE BORRADO HD

  • First active picture sampleLast active picture sampleCOMPONENT: Active line digitized, EAV/SAV addedEAVSAV17123FF171300017140001715XYZ0Cb1Y2Cr3Y3FF000000XYZXYZ Word Conveys Start/End of Line (H), Vertical Blanking (V), and Field (F)Intervalo de borrado horizontal

  • Sincrona y Temporizacin Paquete de referencia de tiempoEAV 270 Mb/s - Vista de Datos Mux -

  • Sincrona y Temporizacin Paquete de referencia de tiempoHD 1.485 Mb/s - Vista de Datos Mux -

  • Datos de Usuario (ANC) SD14403FF144100014420001443XYZSAVDatos de Usuario ANC(276 digital words)ActivePictureEAVDataWordActivePicture17123FF171300017140001715XYZ0Cb1Y2Cr3Y4Cb

  • Distribucin de los datos ANC Datos auxiliares horizontales HANCSAV Inicio de video activoEAV Fin de video activoDatos auxiliares horizontales HANCDatos auxiliares verticales VANCCampo activo de videoZona de sincronismo verticalBorrado verticalV=1V=0H=1H=0

  • Audio Embedded No AudioAudioWFM8300

  • Gamut, Legal y Valida.Gamut: Referida al rango de colores reproducibles por un sistema de televisin cuando una escena es iluminada por una referencia de blanco. RGB

    Legal: son aquellas seales que no violan los lmites de un nivel de voltaje para un formato en particular.

    Vlida: Es una seal que contiene gama de color y permanece legal an cuando se traslada a otro formato. Una seal vlida siempre es legal pero una seal legal no necesariamente es vlida.

  • Luminancia por Componentes Cuantizacin a 10-bitsExcluded766.3 mV3FF11 1111 1111

    Peak700.0 mV3AC11 1010 1100

    Black0 mV04000 0100 0000

    Excluded-51.1mV00000 0000 0000VOLTAGE766.3 mV Excluded - ILLEGAL 763.9 mV (107 IRE)

    Not RecommendedWARNING

    Peak700.0 mV{

  • Diferencia de Color por Comptes. Cuantizacin a 10-bitsExcluded399.2 mV3FF11 1111 1111

    Max Positive350.0 mV3C011 1100 0000

    Black0.0 mV20010 0000 0000

    Max Negative-350.0 mV04000 0100 0000

    Excluded-400.0 mV00000 0000 0000

  • Monitoreo de Gamut La forma tradicional

  • Monitoreo de Gamut en VivoEn una seal al aire saben que tanto se puede agregar de Pr & Pb al canal?Cmo saben la cantidad de croma o de color que tienen?

  • Display de Diamante

  • RGB 100% color barsDisplay de Diamante

  • Monitoreo de Gamut Display de Diamante

  • Display de DiamanteSeal de PruebaLa seal est fuera de Gamut si cae fuera del diamante. La seal de Split Diamond permite observar las componentes que se encuentran debajo del negro. El usuario puede seleccionar umbrales o lmites.Se utiliza en seales de prueba y seal con imagenes en vivo

  • Presentacin Diamante Color no vlido

  • Display DiamanteSeal al aire

  • Balance de cmarasDisplay de DiamanteUna seal de escala de grises de luma se representa con una lnea verticalErrores de balance se muestran cuando se dobla el trazo

  • Display tradicional - VectorSeleccin de 75% & 100%Ofrece informacin de valores Pb y Pr. No contiene informacin de la seal de Luminancia

  • Vectorscopio

  • Display de Lightning

    Mtodo tridimensional Incluye Luma contra diferencia de Color (Componentes)Y vs Pb superior del displayY vs Pr inferior displayMuestra mediciones de amplitud y sincrona o Timing Transcisiones que muestran adelanto y retardo de la luma respecto a seales de diferencia de color o inversa

  • Display de LightningRequiere seal de prueba de barras de color.Muestra la Amplitud y Mediciones de tiempo.Seleccionable en gratcula de 75% y 100%

  • Mediciones de Tiempo Usando Display LightningLa direccion muestra el avance o retardoLa localizacion muestra el componente con fallaLineas Cruzadas CuantificanUna curvatura indica error en tiempo

  • Mapa de monitoreoCmarasMonitoresEquipo de EdicinRGBRoutersSwitchersStorage equipmentYCbCr

  • Transmisin con Display ArrowheadLegalidad de la seal en un display de Arrowhead Utillizada para seales en vivo o en movimientoLmites seleccionablesNTSCPAL

  • NegroBlanco 100 IRE/700 mVPresentacin de gama de color deseal compuesta, Punta de FlechaLa luminancia se muestra sobre el eje vertical izquierdoLa subportadora de croma en cada nivel de luminancia se extiende hacia la derechaLa alarma puede ajustarse a 100 IRE o 700 mV, 110%, 120% y 131%

  • Display Punta de FlechaLa Gama de la senal compuesta se checa utilizando este display de Punta de FlechaLa Luminancia se despliega a lo largo del eje verticalLa sub portadora de Croma o color a cada nivel de luminancia se extiende hacia la derechaUna Alarma puede ser colocada a 100 IRE o 700 mV, 110%, 120%, 131%WhiteBlackChroma100 IRE

  • Barras de color de 100%RGB aceptableSeal compuesta, demasiado alto

  • Colores y luminancia no vlidosRGBSeal compuesta

  • Arquitectura de las capas del sistema de DTVProduction and DisplayTransmissionMultiple Picture Formatsand Frame RatesVideo CompressionData TransportVariable Length CodesVideo PacketVideo PacketAudio PacketData PacketData HeadersMotion vectorsDCT CoefficientsMPEG-2Packets withheader/descriptors19.39 Mbs @ 6MHz8VSB6 MHz

  • Cadena de Transmisin DTV

    EncoderEncoderVideoAudioMULTIPLEXERTransportStreamPESPESES=Elementary Stream contieneAU=AccessUnits I,B,PESMPEG Compression LayerMPEG Systems Layer+ DVB/ATSC/ARIB Programme Specific Information(PSI) o Service Information (SI) o (PSIP)o (ARIB SI)

    13818-2 A/53 ATSC13818-3 A/52 ac313818-4BasicStandards13818-1 ETS 300-468 A65 PSIP13818-4 ETR 290 ETR154 A54

    MODULATORDVBATSC ISDB QPSK OFDMQAM HM8VSBPresentation UnitsDataESTiming DTS/PTSSystem Time Clock(STC)DataPESPESECM/EMMPacketiserPacketiserPacketiserPacketiserDataPID

  • Proceso de CompresinEl Encoder genera Access UnitsUn Access Unit de Video es un Cuadro (I, B o P)

    Una secuencia de Access UnitsElementary Stream (ES)

    Se dividen en paquetesPacketised Elementary Stream (PES)Ya sea solo video o solo audio

    El encabezado de PES contiene informacin de TimingPresentation Time Stamp (PTS)Cuando desplegar el contenido de los paquetesDecoder Time Stamp (DTS)Cuando decodificar el contenidoVideo encoderAudio encoder PES PESPUPU

  • Elementary StreamPicture Payload = ISequence StartGOP StartPicture StartSequence end CodeHeaderSeq. HeaderAccess UnitBNext GOP

  • De ES a PESAccess unit Start CodeAccess unit Header Access Unit payloadPES headerPES header Elementary stream is just a stream of access units They are cut up, and headers added, every header has at least stream ID and maybe a lot more At this point, basic timing information is added to the stream in the PES header, PTS & DTS - the timestamps.

  • MPEG-2 Transport StreamVideo encoderAudio encoderMUX PES PESTransport StreamPSI (PAT / PMT tables), SI or PSIP informationSystem Timing Clock

  • Entonces Qu es un Transport Stream ?Un Transport Stream (TS) provee el mecanismo para transmitir:Multiple Video PESMultiple Audio PESInformacin de horariosClosed Caption/SubttulosDatos Privados etc.Datos multiplexados en un slo stream de datos

  • De PES a TSPES STREAM VIDEOPES STREAM AUDIOPES STREAM CLOSE CAPTIONPES STREAM AUDIO ALTERNOTS HeaderPES Header188 BytesTransport Stream TS

  • Paquete de Transport Stream4 Byte HeaderPayload188 Bytes

  • Tipos de paquetes del Transport Stream PIDs pueden tener valores de 0 al 8191

    PIDs 0-31 estn reservados para las tablas bsicasMPEG-2 Program Specific Information (PSI)Program Association Table (PAT) PID 0Conditional Access Table (CAT) PID 1Network Information Table (NIT)

  • Tablas de Program Specific Information (PSI)Programme Association Table (PAT) PID 0Programme Map Tables(PMT)PID115PID 221Stream TypePID123 VideoAudioTeletext 5164101PATProg1PMTProg2PMTPID No.Prog1Vid1Prog2Aud2Prog1Aud1Prog2Vid1Prog2Aud1Prog1Teletext0 16 115 221 51 35 64 50 42 101 PacketsNetworkInformation TableNITNet Info PID16Prog1PID 115Prog2PID 221Stream TypePID123 VideoAudioAudio 504235PID 16NIT

  • Programme Guide InformationPSI - Program Specific Information. Est definido por MPEG y consiste de PAT, PMT, CAT, NIT, TSDT

    SI - Service information. Son tablas adicionales definidas por DVB (p.e. SDT, TDT, EIT, etc.) (dos categoras Mandatorias y opcionales) PSIP Tablas adicionales definidas por ATSC para terrestre y cable nicamente (MGT, VCT, etc.)

    ARIB SI- Tablas adicionales definidas por ARIB en Japn para satlite

  • ATSC PSIP tables*Mandatory*OptionalProgram and System Information Protocol (PSIP)Master Guide Table (MGT)Acts as an index for all other tables, indicates table sizes, version numbers and PID valuesSystem Time Table (STT)Single packet that shows current date and timeRating Region Table (RRT)Transmits program ratingsVirtual Channel Table (VCT)Lists all channels in the Transport Stream. Includes channel name, stream components and navigation identifiers. Carries the source_id for each program, which is then used by the EIT to create the EPGEvent Information Table (EIT)Describes the network events associated with each channel listed in the VCT. Provides a description, start times and duration. Used to create the EPGExtended Text Table (ETT)Carries text messages describing channels or events that provide more detailed information than the EIT. The messages appear as additional information in the EPG

  • Program Clock Reference (PCR)Para qu se utilizaSincroniza el encoder de MPEG2 con el decoder.Qu esUn muestreo de 42 bits del reloj de tiempo del sistema del encoderPorqu es importanteAlgunos errores se pueden prevenir para una correcta decodificacin o re-multiplexacin de los streams.Los decoders lo usan para re-generar el timing de video, color, etc.PCRSystem Time Clock (STC)

  • Capas de Transport Stream Transport StreamPSI/SI/PSIPPCRPESDataPTSAudioDTSVideoDataES AnalyzerPES AnalyzerCarousel analyzer& GeneratorTS AnalyzerBuffer Analyzer

  • TR101 290 Transport StreamTR101 290 define las siguientes prioridades de cumplimiento para asegurar interoperatibilidad

    1st Priority: Prevencin de DecodificacinMonitoreo bsico requerido

    2nd PriorityArtifacts de imgen o decodif intermitenteMonitoreo contnuo recomendado

    3rd PriorityOtros problemas de encoder o multiplexerMonitoreo dependiente de la Aplicacin

    **Muestreo 601*Para ejemplificar el proceso tomamos una onda sinusoidal. A medida que el tiempo pasa y ubicado en el eje horizontal la Amplitud de la seal aumenta y disminuye. En este caso si la onda representa un voltaje, se tienen pequeas variaciones de voltaje que van desde el cero hasta el pico de la seal.El procesamiento digital comienza convirtiendo esta serie de amplitudes en un conjunto de valores binarios a travs del muestreo de la seal. Se toman lecturas en una serie de intervalos, velocidad de muestreo para generar la serie de valores binarios.

    *Unos cuantos puntos de muestreo describen la seal, pero la teora dice que para que la seal puede ser reproducida de manera mas excata, la seal debe ser muestreada al menos al doble de la frecuencia de la seal que se quiere muestrear. El la prctica esto se hace 3 o 4 veces mas. La seal es cuantizada en una serie de pasos o rangos. Utilizando una codificacin de 8 bits, se puede cuantizar la seal hasta en 256 niveles. Y se puede tener al final la seal lo mas parecida a la original.

    *La utilizacin de mltiples hilos resulta incmoda, especialmente si la longitud de palabra es extensa, por lo que es posible utilizar un solo hilo en el que los digitos sucesivos de cada muestra son enviados en serie. La frecuencia del reloj debe ser ahora mayor que la frecuencia de muestreo.**To convert the analog component signal into a digital value, we send the analog signal to an Analog to Digital (ADC) convert which converts the analog waveform into a binary word, in this case a 10 bit binary word.

    *The samples of Y, Pb, Pr are multiplexed together in the form of Cb, Y Cr, Y**The FCC does not mandate Table 3 within the ATSC standard. However consume sets will support the entire Table. These set will not however be multiscan as in a computer monitor, since the cost of implementing this within the TV set would be to costly. Therefore the consumer sets will be one format and will interpolate between the other formats to suit the display. This gives broadcasters the choice of which format to broadcast. The likely scenario so far is multicasting during the day, carrying up to 4 SDTV channels and during primetime broadcasting HDTV from film originated material at 24fps.

    It is likely that after sometime only a few of these formats will survive and will depend on whether datacasting becomes prevalent (If so than 1280x720 would allow more data to be sent in the channel), what are the consumer set scan rates so that no interpolation is necessary to be done in the set and hence reduce the artifacts.*Muestreo 601***COMPONENTComponent signals use the excluded values 3FF and 000 to produce synchronizing data groups known as EAV (end of active video) and SAV (start of active video) on every horizontal line. The sample XYZ indicates EAV/SAV, field, and vertical blankingLuminance and color difference samples are interleaved as shownCb and Cr are associated with the interleaved Y sampleThese are called co-sited samplesThe resulting sample rate is 27 MHz for the complete signalThere are 1716 samples per line, 858 each for luminance and color

    *There are 1716 sample words in the total 525/60 line numbered 0-1715. 858Y,, 429 R-Y, 429 R-B1440 sample words in active video line, 276 available for ANC dataWords 1440-1443 are EAV timing sequenceWords 1712-1716 are SAV timing sequenceXYZ word contains field (bit 8) vertical blanking (bit 7) and EAV/SAV information (bit 6), and six protective bits allowing correction of single bit errors (page 9, SMPTE RP 125M)***Quantizing is chosen so important levels will have the same 8 & 10 bit values.

    Example: 10-bit white = 11 1010 1100 8-bit white = 1110 1011

    Headroom is provided above peak white and below black. This area was set aside for transients. Use of this area can lead to problems later on (combination of Y and R-Y, B-Y can result in illegal composite values). Excluded values 000 - 003 and 3FF - 3FC are reserved for sync purposes

    **Point of the slide is that the traditional approach to gamut monitoring, the waveform display, is not as efficient as using one of the dedicated gamut monitoring displays from Tektronix. The operator must make six total checks to validate gamut, looking at the white levels of each component and then the black levels. Even then it is a qualitative check, requiring vertical gain for quantification. And, it cant be done automatically to support applications like tape QA.

    There is a better way, and we have it.*Point of the slide is to explain how the Diamond display is formed.

    The Diamond display consists of two XY plots: green versus blue in the upper diamond, and green versus red in the lower diamond. The plots are bounded by a graticule indicating nominal gamut compliance at 0 and 700mv.

    In the WFM700 family Tektronix announced an improvement on the Diamond display, the Split Diamond display. By separating the diamonds, it is easier for the user to visualize black gamut errors.

    Now lets look at a practical example using the Diamond display.

    ****Point of the slide is to show practical application of the Diamond display in color correcting live signals during Telecine. In this part of the class well use the color corrector to demonstrate how easy it is to note an out of gamut condition, to determine which component is at fault, and to take corrective action.

    In the first example, notice the trace shifted up and to the right in the upper diamond. This indicates a white balance error in the blue component. In the next example, the trace is shifted to the left in both diamonds indicating a problem with the green component. In the last example, note that the error is restricted to the lower diamond meaning the red component is at fault. And, correcting the problem is quick and straightforward. In just the time its taken me to say that, I can detect the problem, determine which component was at fault, and correct it.

    And, the display is just as useful for monochrome, for example when youre doing camera balancing using a gray-scale chart.*Point of the slide is that the Diamond display is as useful for monochrome applications as it is for RGB applications. A perfect gray-scale signal produces a straight vertical line extending from the apex of one diamond, through the black point, exactly to the apex of the other diamond.

    A balance error is shown by bending in the trace, and again, the faulty component is easily isolated and corrected.

    Now lets look at another type of problem: timing errors.****What if your content is destined for broadcast in a composite system? Well, Tektronix has a tool for that as well Arrowhead. Another exclusive, easy-to-use display.*****Multiple picture formats either HDTV of SDTV either progressive or interlace scans at 16:9 or 4:3 aspect ratios are converted by MPEG-2 compression which carries a data header, motion vectors and DCT coefficients to remove redundant information in a picture (Intra-Frame) and between successive pictures (Inter-Frame) which produces a variable bit rate. This data is then packetized into 188byte packets and multiplexed with compressed audio and data packets. A header is added to each packet to describe the information within the packet - descriptor.This data rate produced is 19.39Mb/s which is then modulated using and 8 Vestigial Sideband modulation and transmitted in the 6MHz channel.***In order to decode MPEG compressed signals the decoder must be synchronised to the encoder. This is achieved using the Program Clock Reference (PCR). At the encoder a reference 27MHz clock drives a 42 bit counter which is periodically sampled. The resulting sample is embedded into the transport stream in the adaptation field.The decoder implements its own 27 MHz clock which in turn drives a counter which is sampled when a PCR is detected in the incoming transport stream. The difference between the last two received PCR values and the last two locally generated values gives an indication of whether the local 27MHz clock is synchronised to that at the encoder. *A digital video signal can be described as being made up from a number of layers. At the top level is the transport stream multiplex which comprises all of the video, audio and ancillary data. The transport stream is generated by the multiplexer from Packetised Elementary Streams (PES). PES is composed from individual elementary streams. Each elementary stream is comprised of a number of coding layers depending on the type of the data. This is covered in more detail later.