TL;DR: In this article, a local access unit counter is used to detect lost or false access unit headers, and correct the AV synchronization error caused by storage media or transmission errors. But it does not support editing.
Abstract: A compressed video signal and a compressed audio signal decoding apparatus which including a local access unit counter intended for digital AV applications where access unit headers (e.g. frame headers, audio unit headers or other kind of data unit headers) may be lost or generated by storage media or transmission errors. In order to prevent a resulting AV sync error a value called "access unit count" is included in each elementary stream. With this value each decoder can detect lost or false access unit headers, and correct the AV synchronization. In order to support editing, an extra bit can be added to indicate discontinuity in the access unit count.
TL;DR: In this article, a remultiplexer is disclosed for communicating plural programs, which consist of one or more elementary streams that are encoded in relation to a single common time base corresponding to the respective programs.
Abstract: A remultiplexer is disclosed for communicating plural programs. Each program comprises one or more elementary streams that are encoded in relation to a single common time base corresponding to the respective program. The communicated programs originate from plural input transport streams that each comprises plural transport packets. Each transport packet contains a packet identifier indicating the data contained therein. Within each transport stream, unique packet identifiers are assigned to each elementary stream of each program. The data of each elementary stream is only contained in transport packets having a corresponding packet identifier. Each input transport stream contains time stamps for reconstructing the single program time base corresponding to each program conveyed therein. The remultiplexer has a data link module which receives the plural input transport streams. The data link module also selectively extracts transport packets from the received input transport streams. The remultiplexer has a downstream bus on which the data link module sequentially transfers at least some of the extracted transport packets. The remultiplexer selects which of the extracted transport packets to transfer on the downstream message bus depending on the packet identifiers of the transport packets. The remultiplexer also has a scheduler which assembles the transport packets transferred on the downstream bus into a single output transport stream.
TL;DR: In this paper, an MPEG-2 Program Stream (PS) encoder-decoder model is used to convert an input data stream into an output data stream having a Transport Stream (TS) decoder.
Abstract: A digital video recorder or similar apparatus implements a method of converting an input data stream having an MPEG-2 Program Stream (PS) format into an output data stream having an MPEG-2 Transport Stream (TS) format. The input data stream (PS) includes data of at least first and second elementary data streams (404, 406) formed and multiplexed in compliance with a PS decoder model. A scheduler (412) within the apparatus inhibits reading of a further data block from the input stream when, in the absence of a vacancy for data of an audio elementary stream within a target decoder model (418), a clock reference (SCR) of said input data stream advances beyond a clock reference of said output data stream by a predetermined waiting threshold.
TL;DR: In this paper, a transport stream decoder/demultiplexer is provided, which includes a program clock recovery circuit for recovering program clock from program clock reference (PCR) values contained in selected transport packets.
Abstract: A transport stream decoder/demultiplexer is provided which includes a program clock recovery circuit for recovering a program clock from program clock reference (PCR) values contained in selected transport packets. A processor is provided for extracting elementary stream data from transport packets labeled with packet identification codes (PIDs) that are specified by a host processor. The processor separately stores the elementary stream data of each stream. A host processor interface is also provided for transferring data between an external host processor and the program clock recovery circuit. A memory manager may be provided for storing the data extracted by the processor for each elementary stream in a corresponding queue. The queues may be maintained by the memory manager in an external RAM. A descrambler interface may be provided for transferring scrambled data and data derived from conditional access information between the processor and an external descrambler. In addition, at least one elementary stream interface, such as a video interface or audio interface, may be provided for outputting extracted elementary stream data for a particular elementary stream from a corresponding queue. Furthermore, a high speed interface may be provided for outputting transport packet data prior to data extraction by the processor.
TL;DR: In this article, error recovery for isochronous data ("isodata") obtained from a data stream is provided for error detection and recovery techniques, including the maintenance of a presentation unit counter, the use of a PTE extension and PTS offset to verify output timing, the provision of a pair of PTS pointers verifying correct output data timing, and the detection and discarding of packets designated as encrypted after any decryption should have already been completed.
Abstract: Error recovery is provided for isochronous data ("isodata") obtained from a data stream. Isodata transport packets are monitored to locate isodata presentation time stamps (PTSs). The presentation of isodata from a buffer is synchronized to a system time clock (STC) using timing information derived from the PTSs. Discontinuity errors between said isodata transport packets are identified and, if a discontinuity of no more than one packet is identified, a write pointer of the buffer is advanced by a suitable number of bits to compensate for the discontinuity, while maintaining the synchronization of the presentation with respect to the STC. Additional error detection and recovery techniques are disclosed, including the maintenance of a presentation unit counter, the use of a PTE extension and PTS offset to verify output timing, the provision of a pair of PTS pointers verifying correct output data timing, the use of a packet elementary stream (PES) count to detect lost data in the transport stream, and the detection and discarding of packets designated as encrypted after any decryption should have already been completed.