Decoding a multi-layer video stream using a joint packet stream

GB2613015BActive Publication Date: 2024-10-23V NOVA INT LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
GB2021016781
Authority / Receiving Office
GB · GB
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-11-22
Publication Date
2024-10-23
Estimated Expiration
2041-11-22

AI Technical Summary

Technical Problem

Existing multi-layer video coding schemes face challenges in widespread adoption due to difficulties in adapting existing and new decoders to process multi-layer encoded streams, which often results in cumbersome implementations that mitigate the benefits of multi-layer encodings, leading developers to revert to single H.264 video streams.

Method used

A method and system for decoding multi-layer video data by generating a joint elementary packet stream from separate packet sub-streams, allowing different layers to be processed by multiple video decoders, thereby simplifying synchronization and memory management, and enabling efficient decoding of multi-layer video streams.

Benefits of technology

This approach allows for efficient decoding of multi-layer video streams, enabling more benefits of multi-layer coding schemes to be realized, such as improved quality and reduced complexity in decoding processes, while maintaining compatibility with existing decoding frameworks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000001_0000
    Figure 00000001_0000
  • Figure 00000002_0000
    Figure 00000002_0000
  • Figure 00000003_0000
    Figure 00000003_0000
Patent Text Reader

Abstract

A method of decoding a multi-layer video stream, the stream encoding a video signal and comprising at least first and second layers, comprises: receiving a first packet sub-stream for the first layer, each packet comprising a header and data payload, the first packet sub-stream being identified via a first packet identifier (PID) in the header and received as part of a transport stream (TS); receiving a second packet sub-stream for the second layer, each packet comprising a header and data payload, the second packet sub-stream being identified via a second packet identifier in the header and part of the transport stream; joining packets from the first and second packet sub-streams, generating a joint elementary packet stream comprising a sequence of packets comprising data for both the first and second layer; providing the joint elementary packet stream to a first layer decoder for decoding first layer data within the joint elementary packet stream; providing the joint elementary packet stream to a second layer decoder for decoding at least the second layer data within the joint stream, the first and the second layer decoders differing; and combining decoder outputs to provide a multi-layer reconstruction of the video signal.
Need to check novelty before this filing date? Find Prior Art

Description

DECODING A MULTI-LAYER VIDEO STREAM USING A | OINT PACKET STREAM Technical Field

[0001] The present invention relates to the decoding of a multi-layer video stream. In particular, the presentinvention relates to the decoding of a multi-layer video stream using a generated joint elementary packet stream. Background

[0002] Multi-layer video coding schemes have existed for a number of years but have experienced problems with widespread adoption. Much of the video content on the Internet is still encoded using H.264 or MPE G-4 Part 10, Advanced Video Coding (MPEG- 4 AVC), with this format being used for between 80-90% of online video content. This content is typically supplied to decoding devices as a single video stream that has a one- to-one relationship with available hardware and / or software video decoders, e.g. a single stream is received, parsed and decoded by a single video decoder to output a reconstructed video signal. Many video decoder implementations are thus developed according to this framework. To support different encodings, decoders are generally configured with a simple switching mechanism that is driven based on metadata identifying a stream format.

[0003] Existing multi-layer coding schemes include the Scalable Video Coding (SVC) extension to H.264, Scalable extensions to H.265 or MPEG-H Part 2 High Efficiency Video Coding (SHVC), and newer standards such as MPEG-5 Part 2 Low Complexity Enhancement Video Coding (LCEVC). While H.265 is a development of the coding framework used by H.264, LCEVC takes a different approach to scalable video. SVC and SHVC operate by creating different encoding layers and feeding each of these with a different spatial resolution. Each layer encodes the input according to a normal AVC or HEVC encoder with the possibility of leveraging information generated by lower encoding layers. LCEVC, on the other hand, generates one or more layers of enhancement residuals as compared to a base encoding, where the base encoding may be of a lower spatial resolution.

[0004] One reason for the slow adoption of multi-layer coding schemes has been the difficulty adapting existing and new decoders to process multi-layer encoded streams. As discussed above, video streams are typically single streams of data that have a one-to- one pairing with a suitable decoder, whether implemented in hardware or software or a combination of the two. Client devices and media players, including Intemet browsers, are thus built to receive a stream of data, determine what video encoding the stream uses, and then pass the stream to an appropriate video decoder. Within this framework, multi-layer schemes such as SVC and SHVC have typically been packaged as larger single video streams containing multiple layers, where these streams may be detected as SVC _or SHVC _and the multiple layers extracted from the single stream and passed to an SVC or SHVC decoder for reconstruction. This approach though often mitigates some of the benefits of multi-layer encodings. Hence, many developers and engineers have concluded that multi-layer coding schemes are too cumbersome and retum instead to a multicast of single H.264 video streams.

[0005] Itis thus desired to obtain an improved method and system for decoding multi- layer video data that overcomes some of the disadvantages discussed above and that allows more of the benefits of multi-layer coding schemes to be realised.

[0006] The paper The Scalable Video Coding Extension of the H.264 / AVC Standard _ by Heiko Schwarz and Mathias Wien, as published in IEEE Signal Processing Magazine 135, March 2008, provides an overview of the SVC extension.

[0007] The paper Overview of SHVC: Scalable Extensions of the High Efficiency Video Coding Standard _by J ill Boyce, Yan Ye, J ianle Chen, and Adarsh K. Ramasubramonian, as published in IEEE Transactions on Circuits and Systems for Video Technology, VOL. 26, NO. 1, January 2016, provides an overview of the SHVC extensions.

[0008] The decoding technology for LCEVC is set out in the Draft Text of ISO / IEC FDIS 23094-2 as published at Meeting 129 of MPEG in Brussels in J anuary 2020, as well as the Final Approved Text and WO 2020 / 188273 A1. Figure 29B of WO 2020 / 188273 A1 describes a hypothetical reference decoder where a demuxer provides a base bitstream to a base decoder and an enhancement bitstream to an enhancement decoder.

[0009] US 2010 / 0272190 A1 describes a scalable transmitting / receiving apparatus and a method for improving availability of a broadcasting service, which can allow a reception party to select an optimum video according to an attenuation degree of a broadcasting signal by scalably encoding video data and transmitting it by a different transmission scheme for each layer. US 2010 / 0272190 A1 encodes HD and SD video streams using an H.264 scalable video encoder (i.e., using SVC) and generates different layers of the SVC encoding using different packet streams. At a decoding device, a DVB-S2 receiver / demodulator receives / demodulates a satellite broadcasting signal from a transmitting satellite and restores a first layer packet stream and a second layer packet stream. At the decoding device, a scalable combiner combines the restored first- and second-layer packet streams in input order generating a single transport stream. A subsequent demultiplexer demultiplexes and depacketizes the combined transport stream and splits it into first- and second-layer video streams, which are then passed to an H.264 scalable video decoder for decoding and generation of a reconstruction of the original HD video stream. US 2010 / 0272190 A1 thus creates a joint transport stream at the decoding device from separately transmitted layer streams (e.g., effectively separate transport streams), where the layer streams are separated to allow different modulation as part of the satellite transmission. However, at the decoding device, once a typical joint transport stream is restored, the multi-layer streams are demultiplexed in a known manner, e.g. based on different program identifications or PIDs that are specified in the header of the transport stream packets. The demultiplexer thus supplies a single H.264 scalable video decoder with two separate PID streams. The demultiplexer thus operates in a similar manner to the demuxer of the hypothetical reference decoder in WO 2020 / 188273 A1.

[0010] WO 2017 / 141038 A1 describes a physical adapter that is configured to receive a data stream comprising data useable to derive a rendition of a signal at a first level of quality and reconstruction data produced by processing a rendition of the signal at a second, higher level of quality and indicating how to reconstruct the rendition at the second level of quality using the rendition at the first level of quality. WO 2017 / 141038 A1 describes how a presentation timestamp (PTS) may be used to synchronise different elementary streams, a first elementary stream with a first packet identifier (PID) and a second elementary stream with a second packet identifier (PID).

[0011] All of the above publications set out above are to be incorporated by reference herein. Summary of the Invention

[0012] Aspects of the present invention are set out in the appended independent claims. Variations of these aspects are set out in the appended dependent claims. Brief Description of the Figures

[0013] Figure 1 is a schematic diagram showing how encoded video data may be transported within various data streams.

[0014] Figure 2A is a schematic diagram showing an example system for receiving and decoding multiple streams of encoded data.

[0015] Figures 2B and 2C are schematic diagrams respectively showing example components of a stream receiver and a video decoder.

[0016] Figure 3 is a schematic diagram showing an example system for efficiently decoding multi-layer encoded video data.

[0017] Figure 4 is a schematic diagram showing a set of example components for efficiently decoding multi-layer encoded video data.

[0018] Figure 5 is a schematic diagram showing an example of a joined packet stream.

[0019] Figure 6 is a flow diagram showing an example method of decoding a multi-layer video stream.

[0020] Figures 7 and 8 are schematic diagrams respectively showing an example multi- layer encoder and decoder configuration.

[0021] Figure 9 is a schematic diagram showing certain data processing operations performed by an example multi-layer encoder. Detailed Description

[0022] Certain examples described herein allow decoding devices to be easily adapted to handle multi-layer video coding schemes. Certain examples are described with reference to an LCEVC multi-layer video stream, but the general concepts may be applied to other multi-layer video schemes including SVC and SHVC, as well as multi-layer watermarking and content delivery schemes. In examples, different layers of a multi-layer video coding are transmitted as separate packets within a transport stream. This allows different layers to be effectively supplied separately and for enhancement layers to be easily added to pre-existing or pre-configured base layers. Ata decoding device, different packet sub-streams are received and parsed, e.g. based on packet identifiers (PIDs) within packet headers. This may be performed by existing decoding pipelines that are configured to parse different single-layer encodings (e.g., non-scalable H.264 or H.265 streams). Present examples, however, construct a joint elementary packet stream using payloads of the first- and second-layer transport stream packets. For example, for a frame of video data, a joined sequence of Network Abstraction Layer (NAL) units for both layers may be supplied as stream data. The joint elementary packet stream may then be provided to multiple video decoders, such as decoders for each layer of the multi-layer video coding. In examples, a first layer decoder decodes the data relating to the first layer within the joint elementary packet stream and a second layer decoder decodes the data relating to the second layer within the joint elementary packet stream. The first layer decoder may be configured to ignore data relating to the second layer and the second layer decoder may use both the first- and second-layer data or just the second layer data. As both layer decoders receive the same data stream, synchronisation and memory management are simplified. Once decoded output is available for the multiple layers, it may be combined to generate a high-quality output for viewing. However, the first layer decoder output is also available as a parallel stream for alternative viewing or reference.

[0023] A number of examples will now be described with reference to the accompanying Figures. Figures 1 to 2C relate to comparative media decoding pipelines whereas Figures 3 to 6 set out particular examples of an improved decoding system and method. Figures 7 to 9 then provide examples of a particular multi-layer video scheme that may be used with the examples of Figures 3 to 6.

[0024] Figure 1 shows an example 100 of a Transport Stream (TS) 102 that may be used to transmit encoded video data to one or more decoding devices. The Transport Stream 102 comprises a sequence of fixed-length 188-byte TS packets 110. Each TS packet 110 has a header 112, which may have a variable length, and a payload 114. The header 112 includes one or more data fields. One of these data fields provides a Packet Identifier (PID) 116. The PID is used to distinguish different sub-streams within the Transport Stream. The PID may be a number of bits of a fixed length (e.g., 13 bits) that stores a numeric or alphanumeric identifier (typically represented as hexadecimal value). For example, the PID 116 may be used to identify different video streams that are multiplexed together into a single stream that forms the Transport Stream 102. An example Transport Stream specification is set out in MPEG-2 Part 1 and defined as part of ISO / IEC standard 13818-1 or ITU-T Rec. H.222.0.

[0025] Figure 1 also shows a so-called PID stream 104 that may be extracted from the Transport Stream 102. The PID stream 104 comprises a stream of consecutive packets 110 that have a common (i.e., shared) PID value. The PID stream 104 may be created by demultiplexing the Transport Stream 102 based on the PID value. The PID stream 104 thus represents a sub-stream of the Transport Stream 102.

[0026] In certain cases, there may be special PID values that are reserved for indexing tables. In one case, one PID value may be reserved for a program association table (PAT) that contains a directory listing of a set of program map tables, a program map table (PMT) comprising a mapping between one or more PID values and a particular ‘program _. Originally a ‘program_ related to a particular broadcast program but with Internet streaming, the term is used broadly to relate to the content of a particular video stream.

[0027] Figure 1 also shows a Packetised Elementary Stream (PES) 106 that is constructed based on the payload data of a plurality of TS packets 110. A PES comprises data from payloads of a PID stream that carries media sample data. Media sample data may comprise video data as well as other modalities, such as audio data, subtitle data, or volumetric data. In Figure 1, a PES is generated by combining the payloads 114 of multiple media TS packets 110 that are associated with a common (i.e., shared) PID value, The PES comprises a packet stream where each PES packet consists of a header (i.e., a PES Header) 122 and a payload 124, the payload 124 canying the combined data. The start of a new PES packet is indicated by a one-bit field from the TS header 112, called a Payload Unit Start Indicator (PUSI) 126. When the PUSI is set, the first byte of the TS packet payload 114 indicates where a new PES payload unit starts. This allows a decoding device that starts receiving data mid-transmission to determine when to start extracting data. The PES header 122 contains a Presentation Time Stamp (PTS) 128. This indicates a time of presentation for the corresponding piece of media encapsulated within the payload 124.

[0028] Figure 1 lastly shows the contents of the PES payload 124 for a video stream. In this case, the PES payload 124 comprises a sequence 108 of NAL units 130 (i.e., a NALU stream). These may form part of an Access Unit for the video stream, i.e. a set of NAL units that are associated with a particular output time, are consecutive in decoding order, and contain a coded picture or frame. Figure 1 shows a NALU stream 108 that may be provided to a suitable video decoder for decoding.

[0029] Figure 2A shows an example of a comparative media playback pipeline 200 that may be used to decode and display media streams that are configured according to Figure 1, The media playback pipeline 200 may form part of a client or decoding device such as a smartphone, laptop, smart television, or other media receiver and / or player.

[0030] In Figure 2A, the stream receiver 210 receives stream data 205 from a source. Stream data 205 may be received over a communications network (e.g., as a received encoded stream) and / or may be received as a filesystem data stream (e.g., from memory, local storage, or a computer-readable medium). The term ‘stream _is used herein to refer to consecutive portions of data that are received or accessed. The stream receiver 210 in this example is configured to receive stream data 205 in the form of a container data stream such as a transport stream, similar to Transport Stream 102 in Figure 1, or a digital multimedia container such as an MPE G-4 Part 14 (MP4) container. The stream receiver 210 is configured to detect a container type and then parse the stream data 205 based on the container type. For example, the stream receiver 210 may detect whether the stream data 205 is a transport stream or another MPEG container (such as an MP4 container) and then initiate an appropriate parser for the container type (e.g., a TS parser or MP4 parser). The stream receiver 210 may parse the stream data 205 to locate both media sample data and metadata within the stream data 205. For example, the metadata of a transport stream may comprise PAT data and / or PMT data that maps PIDs with data packet headers to programs and the metadata of an MP4 container may comprise a listing of ‘tracks_ that are present within an MP4 file. The stream receiver 210 may thus conditionally parse the stream data 205 to identify metadata in the form of a directory _ identifying what packetised elementary streams (e.g., TS containers) or tracks (e.g., MP4 containers) are present,

[0031] Following the parsing of the stream data 205 by the stream receiver 210, the stream receiver 210 is configured to instantiate one or more decoders to decode the individual data streams contained within the stream data 205. Figure 2A shows a plurality of video decoders 220-A to C and an audio decoder 240. Other decoders may also be provided, such as subtitle decoders. In the example of Figure 2A, the stream receiver 210 may instantiate a particular decoder based on metadata carried in the stream data 205, such as metadata accompanying a particular PID stream such as PID stream 104 in Figure 1 or a particular MP4 track. The stream receiver 210 may instantiate a particular decoder based on an identified stream type for a particular PID stream or MP4 type. For example, the stream receiver 210 may instantiate an H.264 video decoder for a PID stream identified as a H.264 video stream and an H.265 video decoder for a PID stream identified as a H.265 video stream. Audio streams that accompany a video stream (e.g., where the audio and video streams are multiplexed) may be identified and an audio decoder 240 instantiated based on the audio stream type. In one case, the stream receiver 210 may not directly instantiate a decoder but may pass a demultiplexed data stream for a program or track to an existing decoder, e.g. where the existing decoder may be determined based on the metadata carried in the stream data 205. Although only one audio decoder 240 is shown in Figure 2A, multiple audio decoders may be provided in implementations (e.g., for different audio formats similar to the shown video decoder case). Similarly, other decoders such as subtitle decoders have been omitted for clarity but may also be instantiated in parallel with the shown video and audio decoders.

[0032] The video decoders 220 shown in Figure 2A are configured to process a particular encoded video stream, such as PES 106 from Figure 1 or a corresponding MP4 track, and output decoded video data ready for display. The audio decoder 240 performs a similar function with respect to an encoded audio stream to output encoded audio data for output. In Figure 2A, the video decoders 220 provide their output to a display output compositor 230, which is configured to render the decoded video data on a display. The display may be an integrated display (such as a touchscreen of a smartphone) or a separate display (such as a monitor, headset, or projector). The audio decoder 240 provides its output to an audio mixer 250 for output of decoded audio data on an appropriate speaker device, such as headphones, integrated speakers, or an extemal sound system. In general, the decoded data may comprise frames of video data, audio samples, or subtitles for display over one or more frames, amongst others.

[0033] Figure 2B shows two sub-components of the stream receiver 210 according to a particular example. In Figure 2B, the stream receiver 210 comprises a container detector 212 and a stream parser 214. The container detector 212 is configured to detect the container type of the received stream data 205. For example, the received stream data 205 may comprise a stream of data received using a particular communication protocol over a network or a stream of data received from an operating system file system function. The container detector 212 may at least detect the container type of the stream data 205, e.g. whether the stream data 205 comprises a transport stream or another MPEG media container. The stream parser 214 receives the stream data 205 and the detected container type from the container detector 212. The stream parser 214 uses the detected container type to parse metadata carried within the stream data 205 (e.g., locate and extract a PAT for a transport stream or a track listing for an MP4 file) and to then instantiate suitable decoders as described in more detail below.

[0034] Figure 2C shows three sub-components of a video decoder 220 according to a particular example. The audio decoder 240 and other decoder types may also have a similar form. The video decoder 220 in Figure 2C comprises an Elementary Stream (ES) parser 222, an Access Unit (AU) producer 224, and a renderer 226. The elementary stream parsed by the ES parser 222 may be a Packetised Elementary Stream (PES) or a non-packetised elementary stream. The ES parser 222 is configured to receive an output 216 of the stream receiver 210 and to extract appropriate encoded media data from that output 216. In one case, the ES parser 222 receives the stream data 205 and a PID or track of interest from the stream parser 214. The PID of interest may comprise a particular program (i.e., particular video content) a user wishes to view. In this case, the ES parser 222 extracts or demultiplexes the identified program or track data streams, e.g. based on an identified PID or MP4 track. The ES parser 222 may thus extract PID stream 104 from a TS stream 102. In this case, the output 216 of the stream receiver 210 may comprise the stream data 205, which is passed to each decoder as a complete stream. In other cases, the stream parser 214 may perform extraction or demultiplexing prior to the ES parser 222, such that the output for a particular video decoder 220 comprises a single identified program or track data streams. The exact location of the extraction or demultiplexing may thus vary according to different implementations.

[0035] Once a particular PID stream or track is identified, the ES parser 222 is configured to process the data of that stream or track to provide encoded media data to the AU producer 224, This may comprise extracting data from the payloads of multiple TS packets 110 to form a PES 106 as shown in Figure 1. PES 106 may then be passed to the AU producer 224. For container tracks, a similar elementary stream may be generated from extracted track data. The AU producer 224 is then configured to parse the encoded media data at the access unit level. This may comprise extracting the actual sample data for passing to the renderer 226 for reconstruction of original signal data (such as a decoded frame of video). This may also comprise additional coding-scheme specific parsing of the PES 106 or track, such as extracting and parsing coding-scheme specific metadata. Coding-scheme specific metadata may comprise one or more of Sequence Parameter Set (SPS) data, Picture Parameter Set (PPS) data (e.g., for H.264 video), or Supplementary Enhancement Information (SEI) data. Coding-scheme specific metadata may be ‘in band, i.e. interleaved with the (media) sample data. In one case, media sample data may be extracted in the form of a sequence of NAL units 108 as shown in Figure 1. This sequence of NAL units 108 may form the input to the renderer 226.

[0036] The renderer 226 is configured to decode the media sample data received from the AU producer 224 to produce a decoded medium 228 (e.g., a frame, a subtitle or an audio sample) ready to be output, e.g. on a display. The renderer 226 may comprise a specific codec or decoder, such as a H.264 or H.265 decoder (or an MP3 / 4 or Advanced Audio Coding ~ AAC decoder for audio data).

[0037] In the examples of Figures 2A to 2C, each video decoder 220 is implemented as a specific decoding pipeline that receives either a single demultiplexed stream or multiplexed data at the transport or container level, the latter being processed to extract a single demultiplexed stream. Each video decoder 220 comprises a coding-scheme- specific implementation, as at least the AU producer 224 and renderer 226 implement coding-scheme-specific parsing and decoding. Hence, in comparative examples, a stream receiver 210 may parse a PMT of a transport stream to enable extraction of a plurality of PES as shown in Figure 1. The stream receiver 210 may create or instantiate a particular video decoder 220 to actas a PES parser based on a stream type and parsed elementary stream data (e.g., as determined by the container detector 212 and stream parser 214). In this case, the instantiated video decoder 220 reads the payload of the PES, e.g. according to a specific coding scheme, and an AU producer 224 of the video decoder 220 outputs (e.g., creates) a set of access units by parsing a sequence of NAL units. The access units may then be supplied as an input data source for a specific renderer. This process may form the basis of a media player that is implemented on a particular client device.

[0038] Within the context of the comparative examples of Figures 1 to 2C, Figures 3 to 6 provide examples of an improved system and method for decoding a multi-layer video stream. While the comparative examples of Figures 1 to 2C are suitable for decoding single layer media streams, such as conventional H.264 or H.265 data streams, it is not straightforward to adapt such frameworks to process multi-layer data streams, especially multi-layer data streams where each layer may be encoded using a different coding scheme. For example, SVC and SHVC are typically provided in the same form as their parent H.264 or H.265 single-layer schemes and are processed by a single SVC or SHVC video decoder as shown in Figure 2A. In SVC and SHVC cases, the separate layers cannot be processed by separate video decoders (e.g., one layer processed by video decoder 220-A and another layer processed by video decoder 220-B) as the efficiencies of the schemes are based on SVC and SHVC specific intra-layer information. As such, SVC and SHVC streams need to be decoded by a single decoder unit that has access to this internal information.

[0039] With newer multi-layer video coding schemes, such as LCEVC, it is becoming possible to have a multi-layer coding scheme where different layers within the coding scheme are encoded according to different coding standards. For example, an LCEVC data stream may comprise a lower resolution H.264, H.265, or Versatile Video Coding (VVC) base_layer stream and an LCEVC-specific ‘enhancement layer_ stream, where the LCEVC-specific ‘enhancement layer_ stream may in turn comprise different sub- layers. The ‘base _layer stream may thus take a variety of forms and may comprise pre- existing and / or independent streams, e.g. a video distributer may provide an LCEVC- specific ‘enhancement layer_stream ‘on top of_ an existing and / or independent ‘base _ layer stream. In LCEVC, the sub-layers comprise encoded residual data for application to a decoded output of the ‘base _layer stream.

[0040] Figure 3 shows an example 300 that provides an efficient decoding of a multi- layer video stream, where different layers may be encoded according to different coding formats. The example 300 of Figure 3 may be seen as an adaptation or extension of the example 200 of Figure 2A. Components with functions as described with reference to Figure 2A are provided with corresponding reference numbers in Figure 3.

[0041] Figure 3 shows a stream receiver 210 that receives stream data 205 as described with reference to Figure 2A. In Figure 3, an audio decoding pipeline may be implemented as shown in Figure 2A, e.g. via audio decoder 240 and audio mixer 250. The audio decoding pipeline may be used to decode and output one or more audio streams or tracks corresponding to a decoded video stream, Figure 3 also shows a display output compositor 230 for the display of decoded video data as per Figure 2A. In the example 300 of Figure 3, the arrangement of video decoders 220 in Figure 2A are modified to provide the efficient decoding of a multi-layer video stream. In this context, certain existing single-layer video decoders 220 that are not used by the multi-layer video stream may be implemented as described with reference to Figure 2A. This minimises the changes to existing media players. However, to provide the decoding of the multi-layer video stream, the example 300 of Figure 3 shows a stream generator 310, a first layer decoder 322, a second layer decoder 324, and a multi-layer controller 326. Components shown in Figure 3 may form part of a video decoder, such as a client device implementing a media player.

[0042] The stream receiver 210 in the example 300 performs functions similar to the stream receiver 210 described with reference to Figures 2A and 2B. In the present example 300, the stream receiver 210 coordinates receipt of first and second packet sub- streams corresponding to first and second layers of a multi-layer video encoding. For example, the firstand second packet sub-streams may be received as part of a transport stream such as Transport Stream 102 of Figures 1 or Figure 5 or as part of another digital multimedia container, such as different MP4 tracks. The first and second packet sub- streams may be multiplexed within stream data 205. Figure 5 shows a first packet sub- stream 104 in the form of a PID stream with a first PID (PID 'B_in Figure 5). Figure 5 also shows a second packet sub-stream 504 in the form of a PID stream with a second PID (PID 1 _in Figure 5). The stream receiver 210 may receive the two sub-streams multiplexed in Transport Stream 102 as shown in Figure 5. As per Figure 1, in the present example and as shown in Figure 5, each packet of the first and second packet sub- streams comprises a header 112 and a data payload 114. The first packet stream is identified via a first packet identifier indicated in the header (e.g., PID B) and the second packet stream is identified via a second packet identifier indicated in the header (e.g., PID 'L). In this example, the identifiers B_and 1 _ may refer respectively to ‘base_and ‘LCEVC _layers of a multi-layer stream.

[0043] In the example of Figure 3, the stream generator 310 receives the first and second packet sub-streams and is configured to generate a joint elementary packet stream from the sub-streams. In one case, the stream generator 310 may receive the first and second packet sub-streams as separate packet sub-streams. In this case, it may be desired to view a multi-layer stream that is indicated by a highest layer stream, e.g. the 'L_PID stream 504. In this case, a user may select a program associated with the L _PID stream 504. This may be identified as an ‘enhanced _version of the 'B_PID stream 104. The stream receiver 210 may first determine the content type of, and extract metadata from, the selected 1 _ PID stream 504. The extracted metadata may then comprise a reference to the PID of the 'B_PID stream 104 (e.g., header data for the 1._PID stream 504 may identify the base PID as 'B). The stream receiver 210 may then be configured to also determine the content type of, and extract metadata from, the determined ‘B_PID stream 104. In another case, a user may select a program associated with the 'L_PID stream 504 and the PID and an output from the stream receiver 210 for this stream may be passed, together with the transport stream, to the stream generator 310. The stream generator 310 may then be configured to determine the lower level (e.g., base) PID stream associated with the higher level (e.g., enhancement or LCEVC) stream and demultiplex both PID streams accordingly. In both cases, the stream generator 310 ends up with two packet sub-streams in the form of the 'B_and 'L_PID streams.

[0044] In the present example 300, the stream generator 310 takes the two packet sub- streams and generates a joint elementary packet stream comprising a sequence of packets comprising data for both the first and the second layers. The joint elementary packet stream may comprise a joined PES 508 as shown in Figure 5, wherein a PES payload 512 for the first layer (e.g., the 'B_base layer) is extracted together with a PES payload 514 for the second layer (e.g., the 'L_enhancement layer). In this case, the PES payload 512 for the first layer and the PES payload 514 for the second layer are arranged as a payload 516 for the PES joined stream 508. The PES joined stream 508 also comprises a PES header 518. Hence, the PES joined stream 508 appears as a normal PES such as PES 106 in Figure 1. As shown in Figure 5, the joint elementary packet stream may be made up of a sequence of NAL units 520 in a similar manner to NALU stream 108 in Figure 1; however, in the present case, the NAL units 520 comprise a first sequence of NAL units 522 for the first layer and (e.g., concatenated with) a second sequence of NAL units 524 for the second layer.

[0045] Returning to Figure 3, the stream generator 310 provides the same joint elementary packet stream to both the first layer decoder 322 and the second layer decoder 324. The stream generator 310 outputs the joint elementary packet stream in a normal elementary packet stream format (e.g., as a PES). Hence, the first layer decoder 322 and the second layer decoder 324 may be configured to receive an input of the same format as the video decoders 220 in Figure 2A, only in the present case the decoders receive additional data in the form of the joined stream.

[0046] The first layer decoder 322 is configured to receive the joint elementary packet stream generated by the stream generator and to output a decoding of the data for the first layer within the joint elementary packet stream. The first layer decoder 322 may comprise a normal single layer decoder (e.g., a H.264 or H.265 decoder). In this case, NAL units for the second layer in the joint elementary packet stream, such as NAL units 524 in Figure 5, may comprise a NAL unit type field in a header of each NAL unit. This NAL unit type field may be set as a reserved value (such as 28 to 30), wherein the first layer decoder 322 may be configured to ignore NAL units within a reserved range (e.g., 28 and above). For example, decoding devices that comply with the H.264 or H.265 standards, amongst others, are configured to ignore NAL units that contain header data thatis outside specified value ranges defined within those standards. In other cases, other NAL unit fields may be set to indicate that the NAL units 524 are to be ignored when processing the first layer. With regard to LCEVC, further details may be found in section 7.4.2.2 of the LCEVC standard (ISO / ZEC FDIS 23094-2:2021), which is incorporated herein by reference. The first layer decoder 322 thus processes the data contained with the first sequence of NAL units 522 in a similar manner to the original sequence of NAL units 108 shown in Figure 1. The decoding of the data for the first layer may comprise a decoded picture or frame for the first layer, such as a H.264, H.265 or VVC decoded frame.

[0047] The second layer decoder 324 also receives the joint elementary packet stream generated by the stream generator 310. The second layer decoder 324 decodes the data for the second layer, e.g. the data contained in NAL units 524, to outputa decoding of the data for the second layer within the joint elementary packet stream. In the examples described herein, the second layer decoder 324 is different to the first layer decoder 322. For example, the first layer decoder 322 may be a legacy hardware and / or software video decoder that complies with a first video coding standard (e.g., H.264, H.265, VVC etc.) and the second layer decoder 324 may be an enhancement hardware and / or software video decoder that complies with a second, different video coding standard (e.g., LCEVC). The second layer decoder 324 may decode a residual signal whereas the first layer decoder 322 may decode a video (non-residual) signal. The residual signal may comprise a plurality of sub-layers representing different levels of quality (e.g., different spatial resolutions).

[0048] Inthe present example, the multi-layer controller 326 is communicatively coupled to the first layer decoder 322 and the second layer decoder 324. The multi-layer controller 326 is configured to combine an output of the first layer decoder 322 and an output of the second layer decoder 324 to provide a multi-layer reconstruction of the video signal. Although shown as a separate component, in certain implementations the multi-layer controller 326 may form part of the second layer decoder 324. For example, an enhancement decoder may comprise a second layer decoder in the form of a residual decoder and a controller to apply decoded residual data to a decoded frame of video from the first layer decoder 322. The multi-layer controller 326 may receive the output of the firstand second layer decoders 322, 324 directly or indirectly. In the latter case, the multi- layer controller 326 may have access to a shared memory where decoded output of one or more of the first and second layer decoders 322, 324 is available. The shared memory may comprise a frame buffer than contains one or more frames as they are decoded. In an LCEVC case, the first layer decoder 322 may comprise a base decoder that outputs a lower quality picture or frame, e.g. a lower resolution frame, and the second layer decoder 324 may comprise an LCEVC decoder that receives and decodes residual data for a higher quality picture or frame, e.g., at a higher resolution. In this case, the multi-layer controller 326 may be configured to upsample the output of the first layer decoder 322 and apply one or more sub-layers of residual data. In one configuration, the multi-layer controller 326 may apply a first sub-layer of decoded residual data to the output of the first layer decoder 322, upsample the result, and then apply a second sub-layer of decoded residual data before outputting the multi-layer reconstruction of the video signal at the upsampled resolution. In LCEVC, the sub-layers and upsampling operations may be flexibly configured and so different multi-layer reconstruction configurations are possible. Generally, multiple sub-layers of the second layer may be decoded, possibly in parallel, by a common (e.g., single) second layer decoder.

[0049] In the example 300 of Figure 3, the first layer decoder 322 provides a decoded output to the display output compositor 230 as per the video decoders 220 of Figure 2A. This output may be at a lower level of quality, e.g. a frame of video data at a reduced resolution or encoding quality (e.g., high quantisation for a lower bit rate). However, it is still viewable as per the video decoding shown in Figure 2A. An accompanying audio stream may also be decoded by the audio decoder 240 and output by the audio mixer 250 as described with reference to Figure 2A. In Figure 3, the multi-layer reconstruction output by the multi-layer controller 326 is also available to the display output compositor 230. The multi-layer reconstruction may be an improved or enhanced version of the output of the first layer decoder 322. For example, it may comprise a higher resolution version of this output or a version with finer detail and fewer compression artifacts. The multi-layer reconstruction may thus be viewed on a display device as a sequence of decoded frames.

[0050] In certain examples, the stream receiver 210 may comprise a demultiplexer to receive and demultiplex a multiplexed transport stream comprising a first packet sub- stream and a second packet sub-stream, e.g. Transport Stream 102. The data payloads of the first packet sub-stream may form a first packetized elementary stream (i.e., a first PES) and the data payloads of the second packet sub-stream may form a second packetized elementary stream (i.e., a second PES), wherein a joint elementary packet stream is generated that comprises a third packetized elementary stream (i.e., a joined PES) with a header comprising a presentation time stamp, the data payload following the header comprising data payloads from the first and second packetized elementary streams that are associated with the presentation time stamp. In certain cases, the first and second packet sub-streams may be transmitted such that the data payload of the second packet sub-stream arrives no later than the data payload of a corresponding portion of the first packet sub-stream. This may assist in synchronising the two PID streams.

[0051] Figure 4 shows another example 400 of how the components of Figure 2C may be adapted to allow efficient decoding of a multi-layer video stream. Figure 4 shows an Elementary Stream (ES) Parser J oiner 410 the supplies stream data to a first decoder 420 and a second decoder 430. As per the example 300, in the example 400 of Figure 4 a solution with a dual PID joiner is adopted. The ES Parser] oiner 410 is fed with multiple PES or PID streams and outputs a single PES whose payload comprises the juxtaposed payloads of the multiple streams. This single PES is supplied to a downstream decoding chain comprising the components of the first decoder 420 and the second decoder 430. Both decoders comprise an AU producer and a renderer in series, similar to the example video decoder 220 of Figure 2C. In this case, the ES Parser ] oiner 410 replaces the separate ES Parsers 222 of the individual video decoders. The first decoder 420 comprises a first AU producer 424 and a first renderer 426. The second decoder 430 comprises a second AU producer 434 and a second renderer 436. The first decoder 420 may reuse the AU producer 224 and the renderer 226 shown in Figure 2C to provide a decoded video output (e.g., a decoded frame of video) as described with reference to Figure 2C. In one case, the first AU producer 424 receives the single PES with the joint payloads and processes the payload data to generate an access unit from the sequence of NAL units. As the first AU producer 424 may be configured based on legacy or known video decoding standards it may ignore the second sequence of NAL units 524 as shown in Figure 5 when producing the access unit. In short, the first AU producer 424 may behave in same way as if the payload was originally from a single PID stream.

[0052] In Figure 4, the second decoder 430 is then configured to decode an enhancement to the output the first decoder 420. In this example, the second decoder 430 incorporates features of the multi-layer controller 326 as part of the renderer 436. The second AU producer 434 is configured to generate an access unit comprising the second sequence of NAL units 524 for supply to the second renderer 436 for decoding. The second renderer 436 receives the output of the first decoder 420, decodes the enhancement carried within the access unit, and then combines the output and the enhancement to output an enhanced video for display. The first renderer 426 may thus form a first layer renderer to render an output of a first layer decoder on a display device and the second renderer 436 may form a multi-layer renderer to render a multi-layer reconstruction on the display device.

[0053] As described above, Figure 5 illustrates the process of joining two PID streams ora firstand second PES. A multiplexed Transport Stream 102 is shown as per Figure 1. The Transport Stream 102 comprises multiple different PID sub-streams, including a base 'B_PID stream 104 and an enhancement or LCEVC I._stream 504. Figure 5 shows the two PID streams 104, 504 following demultiplexing. Figure 5 also shows the result of processing the two PID streams to generate separate PES (i.e., separate Packetised Elementary Streams). This may comprise combining the payloads of multiple TS packets with a common PTS value (shown in Figure 5 as PTS N). The PTS may also be used to synchronise the two PID streams, e.g. the shown PES headers of B_PES 106 and 'L PES 506 both have corresponding PTS values. Figure 5 then shows a generated joint elementary packet stream (e.g., a joined PES) with the PES header 518 from PID 'B_and the payload 512 from PID B_followed by the payload 514 of PID 'L . This joint elementary packet stream 508 forms an access unit for both layers of the multi-layer coding, with a first sequence of NAL units 522 containing the first layer encoded data and a second sequence of NAL units 524 containing the second layer encoded data.

[0054] Figure 6 shows a method 600 of decoding a multi-layer video stream according to an example. The method 600 may be implemented by the systems 300 or 400 of Figures 3 or 4 or upon another decoding system. In the present example, the multi-layer video stream encodes a video signal and comprises at least a first layer and a second layer. The first layer may be a normal single layer video stream, e.g. an H.264, H.265 or VVC stream at a predefined resolution and / or bit rate. The second layer may comprise an enhancement layer that is encoded using a different encoding method, such as a hierarchical residual encoding. The second layer may comprise an LCEVC stream.

[0055] At block 602, the method 600 comprises receiving a first packet sub-stream for the first layer. This first packet sub-stream may be a PID stream or PES such as PID stream 104 or PES 106 in Figure 5. If the first packet sub-stream is a PID stream, each packet of the first packet sub-stream comprises a header and a data payload. The first packet sub-stream is identified via a first packet identifier (e.g., a PID) indicated in the header. The first packet sub-stream may be received as part of a digital multimedia container, such as a transport stream.

[0056] At block 604, the method 600 comprises receiving a second packet sub-stream for the second layer. This second packet sub-stream may be a PID stream or PES such as PID stream 504 or PES 506 in Figure 5. If the second packet sub-stream is a PID stream, each packet of the second packet sub-stream comprises a header and a data payload. The second packet sub-stream is identified via a second packet identifier (e.g., a PID) indicated in the header. The second packet sub-stream may be received as part of a digital multimedia container, such as a transport stream. The digital multimedia container may be the same or different to the digital multimedia container that contains the first packet sub-stream. In one case, both the first packet sub-stream and the second packet sub-stream are received as part of a common (i.e., shared and single) transport stream as illustrated in Figure 5. Blocks 602 and 604 may be performed by one or more of the stream receiver 210, the stream generator 310, and the ES Parser J oiner 410 of the previous examples.

[0057] Atblock 606, the packets from the first packet sub-stream and the second packet sub-stream are joined to generate a joint elementary packet stream. The joint elementary packet stream comprises a sequence of packets comprising data for both the first layer and the second layer. These packets may be NAL units, such as NAL units 522 and 524 in Figure 5. They may be encapsulated within a single PES such as PES 508 in Figure 5.

[0058] At block 608, the joint elementary packet stream is provided to a first layer decoder for decoding of the data for the first layer within the joint elementary packet stream. This may comprise decoding data for the first layer using a H.264, H.265, or VVC decoder. The first layer decoder may ignore packets comprising data for the second layer. The first layer decoder may comprise the first layer decoder 322 of Figure 3 or the first decoder 420 of Figure 4.

[0059] At block 610, the joint elementary packet stream is also provided to a second layer decoder for decoding of at least the data for the second layer within the joint elementary packet stream. The second layer decoder may comprise the second layer decoder 324 of Figure 3 of the second decoder 430 of Figure 4. Blocks 608 and 610 may be performed in parallel. In preferred examples, the first layer decoder differs from the second layer decoder. For example, the second layer decoder may comprise an LCEVC decoder.

[0060] At block 612, the method 600 comprises combining an output of the first layer decoder and an output of the second layer decoder to provide a multi-layer reconstruction of the video signal. For example, this may be performed by the multi-layer controller 326 of Figure 3 or the second renderer 436 of Figure 4. The multi-layer reconstruction may comprise an enhanced or augmented version of a reconstruction output by the first layer decoder at block 608. The method may be repeated on a frame-by-frame basis, where different colour planes may be processed in series or parallel per frame. The result may be an enhanced or augmented video that is rendered on a display for viewing.

[0061] In one case, the data payloads of the first packet sub-stream form a first packetized elementary stream (i.e., a first PES) and the data payloads of the second packet sub-stream form a second packetized elementary stream (i.e., a second PES). The joint elementary packet stream thus then comprises a third packetized elementary stream (i.e, a third PES). The third packetized elementary stream has a header comprising a presentation time stamp (PTS), and a data payload following the header (i.e., a payload of the third PES) comprises data payloads from the first and second packetized elementary streams that are associated with the presentation time stamp. In this case, the presentation time stamp is used to sync data for a particular picture or frame. In one case, the first and second packet sub-streams may be transmitted such that the last packet in the second packet sub-stream arrives no later than the last packet in the first packet sub-stream. In this manner, data for all the layers of the multi-layer encoding for a given picture or frame is available at a decoder to be synchronised, decoded, and combined as described.

[0062] A payload of the joint elementary packet stream may comprise a sequence of network abstraction layer (NAL) units for the first layer and a sequence of NAL units for the second layer. The first layer decoder may be configured to ignore the network abstraction layer units for the second layer based on unit type data values within a header of the network abstraction layer units for the second layer.

[0063] An output of the first layer decoder may be renderable independently of the multi- layer reconstruction of the video signal. For example, it may be possible to view both the output of the first layer decoder and the multi-layer reconstruction of the video signal. In certain cases, a displayed video rendering may switch between the two outputs based on the availability of the second packet sub-stream. The first layer may comprise a ‘base _ video stream and the second layer may comprise a corresponding ‘enhancement_video stream. The base video stream may have first encoding parameters and the enhancement video stream may have second encoding parameters. In one case, the multi-layer reconstruction of the video signal comprises a higher quality rendition of a base video signal decoded from the base video stream. For example, the first packet sub- stream may represent a video encoding at a first resolution, such as a High Definition (HD) H.264 encoding, and the second packet sub-stream may representan enhancement encoding at a second higher resolution, such as an Ultra-HD (UHD) LCEVC encoding. As well as different resolutions, the two packet sub-streams may also represent encodings at one or more of: different bit rates, different colour depths, different quantisation configurations, and different bit depths.

[0064] In one case, the method 600 further comprises receiving a multiplexed transport stream comprising the first packet sub-stream and the second packet sub-stream and demultiplexing the multiplexed transport stream to extract the first packet sub-stream and the second packet sub-stream. For example, this may be performed by one of the stream receiver 210, the stream generator 310, and the ES Parser J oiner 410 of the previous examples.

[0065] In certain examples, data for the second layer comprises frames of residual data that are combined with frames of the base video signal as decoded from the base video stream. For example, the second layer may comprise a Low Complexity Enhancement Video Coding (LCEVC) video stream. In certain cases, the second layer may comprise a watermarking stream, e.g. a stream with data to be added to an original video stream to visibly or invisibly mark, identify or secure the original video stream. In this case, the second layer may comprise data that is combined with the original video stream but where the data does not comprise residual data. The second layer may also comprise a metadata stream to accompany an original, first layer video stream. For example, the second layer may comprise localised metadata associated with objects or people within the original first layer video stream, such as unique identifiers or hyperlinks to data sources.

[0066] In one case, the method 600 described herein may be applied as part of an adapted media player implementation. Blocks 602 and 604 may be implemented by a PMT reader or parser that extracts Elementary Streams (ES) from a digital multimedia container such as a transport stream. For example, a transport stream may be detected and a PMT parsed to extract a directory or mapping of programs to a set of PIDs. Blocks 602 and 604 may also involve a transport stream extractor that creates a PES reader for one or more of the identified PID streams. The transport stream extractor may perform functions similar to the stream receiver 210 or the stream generator 310. The PES reader may be generated based on a stream type and stream information (e.g., PES information). The PID for each ES / PES may also be extracted and passed to the corresponding PES reader. In an enhancement coding case, if a corresponding base PID is signalled, then a PES reader for the base stream (e.g., having the base PID) may be shared between a base decoder and an enhancement decoder. When ES metadata are read, if a reference base PID is signalled, the ES for the base is sentto a ‘base_PES reader. In the present case, all PES readers may have as a consumer a joiner interface that is capable of providing the joint elementary packet stream. Each PES reader may be unaware of the joining and see a sequence of NAL units. The joiner interface may provide data to specific data consumers, such as readers (i.e., decoders) for particular video formats. The joiner interface may be provided by an ES Parser that is fed by two inputs, based on the two PID streams, but has a single output as per comparative ES parsers such as 222 in Figure 2C. This may be achieved using internal consumers that have the joiner interface as output. The joiner interface is then able to output to PES Reader consumers, as it would in a single PID case.

[0067] In certain cases, the NAL units of the second layer may be interleaved with the NAL units of the first layer. In this case, a second layer decoder or second layer pre- processor may parse the sequence of NAL units to extract the NAL units of the second layer from the joined stream.

[0068] In certain cases, the joint stream may only require data for the first layer before release. In this case, if the second layer data is present it may be added, but if it is absent (e.g., in whole or par), it may be omitted and only the first layer decoded and viewed. The second layer decoder may thus either skip the enhancements and / or provide a pass through of the first layer output. Hence, the enhancement layer may be flexibly added to the base layer. The present examples allow easy retrofitting of existing stream processing pipelines to manage multi-layer streams. For example, each video decoder expects a single PES stream as input and thus a common interface may be provided, regardless of whether a single layer or multi-layer stream is being decoded. The advanced logic for the upper layers of the multi-layer stream may thus be incorporated into second layer decoders and / or multi-layer controllers that can be easily added to existing options for stream parsing and decoding.

[0069] In certain cases, one or more of the example systems 300 and 400, or method 600, may be implemented via instructions retrieved from a computer-readable medium that are executed by a processor of a decoding system, such as a client device.

[0070] Certain examples describe herein allow an upper layer of a multi-layer coding scheme to be efficiently decoded while keeping timing constraints imposed by a lower layer of the multi-layer coding scheme. For example, by generating a joined stream as described base and enhancement layers are easily bound together and the enhancement layer may be decoded for addition to the base (e.g., in parallel), while reusing existing lower layer decoders.

[0071] Certain general information relating to example enhancement coding schemes will now be described. This information provides examples of specific multi-layer coding schemes.

[0072] It should be noted that examples are presented herein with reference to a signal as a sequence of samples (i.e., two-dimensional images, video frames, video fields, sound frames, etc.). For simplicity, non-limiting examples illustrated herein often refer to signals that are displayed as 2D planes of settings (e.g., 2D images in a suitable colour space), such as for instance a video signal. In a preferred case, the signal comprises a video signal. An example video signal is described in more detail with reference to Figure 9.

[0073] The terms ‘picture, frame_or field_ are used interchangeably with the term ‘image , so as to indicate a sample in time of the video signal: any concepts and methods illustrated for video signals made of frames (progressive video signals) can be easily applicable also to video signals made of fields (interlaced video signals), and vice versa. Despite the focus of examples illustrated herein on image and video signals, people skilled in the art can easily understand that the same concepts and methods are also applicable to any other types of multidimensional signal (e.g., audio signals, volumetric signals, stereoscopic video signals, 3DoF / 6DoF video signals, plenoptic signals, point clouds, etc). Although image or video coding examples are provided, the same approaches may be applied to signals with dimensions fewer than two (e.g., audio or sensor streams) or greater than two (e.g., volumetric signals).

[0074] In the description the terms ‘image ‘picture_ or ‘plane _ (intended with the broadest meaning of ‘hyperplane , i.e., array of elements with any number of dimensions and a given sampling grid) will be often used to identify the digital rendition of a sample of the signal along the sequence of samples, wherein each plane has a given resolution for each of its dimensions (e.g., X and Y), and comprises a set of plane elements (or ‘element, or ‘pel, or display element for two-dimensional images often called ‘pixel , for volumetric images often called Voxel, etc.) characterized by one or more Values _ or ‘settings _ (e.g., by ways of non-limiting examples, colour settings in a suitable colour space, settings indicating density levels, settings indicating temperature levels, settings indicating audio pitch, settings indicating amplitude, settings indicating depth, settings indicating alpha channel transparency level, etc.). Each plane element is identified by a suitable set of coordinates, indicating the integer positions of said element in the sampling grid of the image. Signal dimensions can include only spatial dimensions (e.g., in the case of an image) or also a time dimension (e.g., in the case of a signal evolving over time, such as a video signal). In one case, a frame of a video signal may be seen to comprise a two-dimensional array with three colour component channels or a three-dimensional array with two spatial dimensions (e.g., of an indicated resolution ~ with lengths equal to the respective height and width of the frame) and one colour component dimension (e.g., having a length of 3). In certain cases, the processing described herein is performed individually to each plane of colour component values that make up the frame. For example, planes of pixel values representing each of Y, U, and V colour components may be processed in parallel using the methods described herein.

[0075] Certain examples described herein use a scalability framework that uses a base encoding and an enhancement encoding. The video coding systems described herein operate upon a received decoding of a base encoding (e.g., frame-by-frame or complete base encoding) and add one or more of spatial, temporal, or other quality enhancements via an enhancement layer. The base encoding may be generated by a base layer, which may use a coding scheme that differs from the enhancement layer, and in certain cases may comprise a legacy or comparative (e.g., older) coding standard.

[0076] Figure 7 to 9 show a spatially scalable coding scheme that uses a down-sampled source signal encoded with a base codec, adds a first level of correction or enhancement data to the decoded output of the base codec to generate a corrected picture, and then adds a further level of correction or enhancement data to an up-sampled version of the corrected picture. Thus, the spatially scalable coding scheme may generate an enhancement stream with two spatial resolutions (higher and lower), which may be combined with a base stream at the lower spatial resolution.

[0077] In the spatially scalable coding scheme, the methods and apparatuses may be based on an overall algorithm which is built over an existing encoding and / or decoding algorithm (e.g., MPEG standards such as AVC / H.264, HEV C / H.265, etc. as well as non- standard algorithms such as VP9, AV1, and others) which works as a baseline for an enhancement layer. The enhancement layer works accordingly to a different encoding and / or decoding algorithm. The idea behind the overall algorithm is to encode / decode hierarchically the video frame as opposed to using block-based approaches as done in the MPEG family of algorithms. Hierarchically encoding a frame includes generating residuals for the full frame, and then a reduced or decimated frame and so on.

[0078] Figure 7 shows a system configuration for an example spatially scalable encoding system 700. The encoding process is split into two halves as shown by the dashed line. Each half may be implemented separately. Below the dashed line is a base level and above the dashed line is the enhancement level, which may usefully be implemented in software. The encoding system 700 may comprise only the enhancement level processes, or a combination of the base level processes and enhancement level processes as needed. The encoding system 700 topology ata general level is as follows. The encoding system 700 comprises an inputIfor receiving an input signal 701. The input Tis connected to a down-sampler 705D. The down-sampler 705D outputs to a base encoder 720E at the base level of the encoding system 700. The down-sampler 705D also outputs to a residual generator 710-S. An encoded base stream is created directly by the base encoder 720E, and may be quantised and entropy encoded as necessary according to the base encoding scheme. The encoded base stream may be the base layer as described above, e.g. a lowest layer in a multi-layer coding scheme.

[0079] Above the dashed line is a series of enhancement level processes to generate an enhancement layer of a multi-layer coding scheme. In the present example, the enhancement layer comprises two sub-layers. In other example, one or more sub-layers may be provided. In Figure 7, to generate an encoded sub-layer 1 enhancement stream, the encoded base stream is decoded via a decoding operation that is applied at a base decoder 720D. In preferred examples, the base decoder 720D may be a decoding component that complements an encoding component in the form of the base encoder 720E within a base codec. In other examples, the base decoding block 720D may instead be part of the enhancement level. Via the residual generator 710-S, a difference between the decoded base stream output from the base decoder 720D and the down-sampled input video is created (i.e., a subtraction operation 710-S is applied to a frame of the down-sampled input video and a frame of the decoded base stream to generate a first set of residuals). Here, residuals represent the error or differences between a reference signal or frame and a desired signal or frame. The residuals used in the first enhancement level can be considered as a correction signal as they are able to :correct”a frame of a future decoded base stream. This is useful as this can correct for quirks or other peculiarities of the base codec. These include, amongst others, motion compensation algorithms applied by the base codec, quantisation and entropy encoding applied by the base codec, and block adjustments applied by the base codec.

[0080] In Figure 7, the first set of residuals are transformed, quantised and entropy encoded to produce the encoded enhancement layer, sub-layer 1 stream. In Figure 7, a transform operation 710-1 is applied to the first set of residuals; a quantisation operation 720-1 is applied to the transformed set of residuals to generate a set of quantised residuals; and, an entropy encoding operation 730-1 is applied to the quantised set of residuals to generate the encoded enhancement layer, sub-layer 1 stream (e.g., ata first level of enhancement). However, it should be noted that in other examples only the quantisation step 720-1 may be performed, or only the transform step 710-1. Entropy encoding may not be used, or may optionally be used in addition to one or both of the transform step 710-1 and quantisation step 720-1. The entropy encoding operation can be any suitable type of entropy encoding, such as a Huffmann encoding operation or a run-length encoding (RLE) operation, or a combination of both a Huffmann encoding operation and a RLE operation (e.g., RLE then Huffmann or prefix encoding).

[0081] To generate the encoded enhancement layer, sub-layer 2 stream, a further level of enhancement information is created by producing and encoding a further set of residuals via residual generator 700-S. The further set of residuals are the difference between an up-sampled version (via up-sampler 705U) of a corrected version of the decoded base stream (the reference signal or frame), and the input signal 701 (the desired signal or frame).

[0082] To achieve a reconstruction of the corrected version of the decoded base stream as would be generated at a decoder (e.g., as shown in Figure 8), at least some of the sub-layer 1 encoding operations are reversed to mimic the processes of the decoder, and to account for at least some losses and quirks of the transform and quantisation processes. To this end, the first set of residuals are processed by a decoding pipeline comprising an inverse quantisation block 720-1i and an inverse transform block 710-1i. The quantised first set of residuals are inversely quantised at inverse quantisation block 720-1i and are inversely transformed at inverse transform block 710-1i in the encoding system 700 to regenerate a decoder-side version of the first set of residuals. The decoded base stream from decoder 720D is then combined with the decoder-side version of the first set of residuals (i.e., a summing operation 710-C is performed on the decoded base stream and the decoder-side version of the first set of residuals). Summing operation 710- C generates a reconstruction of the down-sampled version of the input video as would be generated in all likelihood at the decoder ~ i.e. a reconstructed base codec video). The reconstructed base codec video is then up-sampled by up-sampler 705U. Processing in this example is typically performed on a frame-by-frame basis. Each colour component of a frame may be processed as shown in parallel or in series.

[0083] The up-sampled signal (i.e., reference signal or frame) is then compared to the input signal 701 (i.e., desired signal or frame) to create the further set of residuals (i.e., a difference operation is applied by the residual generator 700-S to the up-sampled re- created frame to generate a further set of residuals). The further set of residuals are then processed via an encoding pipeline that mirrors that used for the first set of residuals to become an encoded enhancement layer, sub-layer 2 stream (i.e., an encoding operation is then applied to the further set of residuals to generate the encoded further enhancement stream). In particular, the further set of residuals are transformed (i.e., a transform operation 710-0 is performed on the further set of residuals to generate a further transformed set of residuals). The transformed residuals are then quantised, and entropy encoded in the manner described above in relation to the first set of residuals (i.e., a quantisation operation 720-0 is applied to the transformed set of residuals to generate a further set of quantised residuals; and, an entropy encoding operation 730-0 is applied to the quantised further set of residuals to generate the encoded enhancement layer, sub- layer 2 stream containing the further level of enhancement information). In certain cases, the operations may be controlled, e.g. such that, only the quantisation step 720-1 may be performed, or only the transform and quantisation step. E ntropy encoding may optionally be used in addition. Preferably, the entropy encoding operation may be a Huffmann encoding operation or a run-length encoding (RLE) operation, or both (e.g., RLE then Huffmann encoding). The transformation applied at both blocks 710-1 and 710-0 may be a Hadamard transformation that is applied to 2x2 or 4x4 blocks of residuals.

[0084] The encoding operation in Figure 7 does not result in dependencies between local blocks of the input signal (e.g., in comparison with many known coding schemes that apply inter or intra prediction to macroblocks and thus introduce macroblock dependencies). Hence, the operations shown in Figure 7 may be performed in parallel on 4x4 or 2x2 blocks, which greatly increases encoding efficiency on multicore central processing units (CPUs) or graphical processing units (GP Us).

[0085] As illustrated in Figure 7, the output of the spatially scalable encoding process is one or more enhancement streams for an enhancement layer which preferably comprises a first level of enhancement and a further level of enhancement. This is then combinable (e.g., via multiplexing or otherwise) with a base stream at a base level, e.g. into the Transport Stream 102 as described above or as multiple tracks within another digital container. The first level of enhancement (sub-layer 1) may be considered to enable a corrected video at a base level, that is, for example to correct for encoder quirks. The second level of enhancement (sub layer 2) may be considered to be a further level of enhancement that is usable to convert the corrected video to the original input video or a close approximation thereto. For example, the second level of enhancement may add fine detail that is lost during the downsampling and / or help correct from errors that are introduced by one or more of the transform operation 710-1 and the quantisation operation 720-1.

[0086] Figure 8 shows a corresponding example decoding system 800 for the example spatially scalable coding scheme, The enhancement layer processing shown above the dotted line may be implemented by the second layer decoder as described herein, e.g. the second layer decoder 324 and the multi-layer controller 326 of Figure 3 or the second renderer 436 of Figure 4. The base layer processing shown below the dotted line may be implemented by the first layer decoder as described herein, e.g. the first layer decoder 324 of Figure 3 or the first decoder 420 of Figure 4.

[0087] In Figure 8, the encoded base stream is decoded at base decoder 820 in order to produce a base reconstruction of the input signal 701. This base reconstruction may be used in practice to provide a viewable rendition of the signal 701 at the lower quality level. However, the primary purpose of this base reconstruction signal is to provide a base for a higher quality rendition of the input signal 701. To this end, the decoded base stream is provided for enhancement layer, sub-layer 1 processing (i.e., sub-layer 1 decoding). Sub-layer 1 processing in Figure 8 comprises an entropy decoding process 830-1, an inverse quantisation process 820-1, and an inverse transform process 810-1. Optionally, only one or more of these steps may be performed depending on the operations carried out at corresponding block 700-1 at the encoder. By performing these comesponding steps, a decoded enhancement layer, sub-layer 1 stream comprising the first set of residuals is made available at the decoding system 800. The first set of residuals is combined with the decoded base stream from base decoder 820 (i.e, a summing operation 810-C is performed on a frame of the decoded base stream and a frame of the decoded first set of residuals to generate a reconstruction of the down-sampled version of the inputvideo ~ i.e. the reconstructed base codec video). A frame ofthe reconstructed base codec video is then up-sampled by up-sampler 805U.

[0088] Additionally, and optionally in parallel, the encoded enhancement layer, sub-layer 2 stream is processed to produce a decoded further set of residuals. Similar to sub-layer 1 processing, enhancement layer, sub-layer 2 processing comprises an entropy decoding process 830-0, an inverse quantisation process 820-0 and an inverse transform process 810-0. Of course, these operations will correspond to those performed at block 700-0 in encoding system 700, and one or more of these steps may be omitted as necessary. Block 800-0 produces a decoded enhancement layer, sub-layer 2 stream comprising the further set of residuals, and these are summed at operation 800-C with the output from the up-sampler 805U in order to create an enhancement layer, sub-layer 2 reconstruction of the input signal 701, which may be provided as the output of the decoding system 800. Thus, as illustrated in Figure 7 and 8, the output of the decoding process may comprise up to three outputs: a base reconstruction, a corrected lower resolution signal and an original signal reconstruction for the multi-layer coding scheme at a higher resolution.

[0089] With reference to the example 300 of Figure 3, the residual ‘decoding _processes 710, 720, 730 may be performed by the second layer decoder 324, wherein the two sub- layers are provided as part of the enhancement layer NAL units.

[0090] In general, examples described herein operate within encoding and decoding pipelines that comprises at least a transform operation. The transform operation may comprise the DCT or a variation of the DCT, a Fast Fourier Transform (FFT), or, in preferred examples, a Hadamard transform as implemented by LCEVC. The transform operation may be applied on a block-by-block basis. For example, an input signal may be segmented into a number of different consecutive signal portions or blocks and the transform operation may comprise a matrix multiplication (i.e., linear transformation) that is applied to data from each of these blocks (e.g., as represented by a 1D vector). In this description and in the art, a transform operation may be said to result in a set of values for a predefined number of data elements, e.g. representing positions in a resultant vector following the transformation. These data elements are known as transformed coefficients (or sometimes simply ‘coefficients ).

[0091] As described herein, where the enhancement data comprises residual data, a reconstructed set of coefficient bits may comprise transformed residual data, and a decoding method may further comprise instructing a combination of residual data obtained from the further decoding of the reconstructed set of coefficient bits with a reconstruction of the input signal generated from a representation of the input signal ata lower level of quality to generate a reconstruction of the input signal at a first level of quality. The representation of the input signal ata lower level of quality may be a decoded base signal and the decoded base signal may be optionally upscaled before being combined with residual data obtained from the further decoding of the reconstructed set of coefficient bits, the residual data being at a first level of quality (e.g., a first resolution). Decoding may further comprise receiving and decoding residual data associated with a second sub-layer, e.g. obtaining an output of the inverse transformation and inverse quantisation component, and combining it with data derived from the aforementioned reconstruction of the input signal at the first level of quality. This data may comprise data derived from an upscaled version of the reconstruction of the input signal at the first level of quality, i.e. an upscaling to the second level of quality.

[0092] Further details and examples of a two sub-layer enhancement encoding and decoding system may be obtained from published LCEVC documentation. Although examples have been described with reference to a tier-based hierarchical coding scheme in the form of LCEVC, the methods described herein may also be applied to other tier- based hierarchical coding scheme, such as VC-6: SMPTE VC-6 ST-2117 as described in PCT / GB2018 / 053552 and / or the associated published standard document, which are both incorporated by reference herein.

[0093] Figure 9 shows an example 900 of how a video signal may be decomposed into different components and then encoded. In the example of Figure 9, a video signal 902 is encoded. The video signal 902 comprises a plurality of frames or pictures 904, e.g. where the plurality of frames represent action over time. In this example, each frame 904 is made up of three colour components. The colour components may be in any known colour space. In Figure 9, the three colour components 906 are Y (luma), U (a first chroma opponent colour) and V (a second chroma opponent colour). E ach colour component may be considered a plane 908 of values. The plane 908 may be decomposed into a set of n by n blocks of signal data 910. For example, in LCEVC, n may be 2 or 4; in other video coding technologies n may be 8 to 32.

[0094] In LCEVC and certain other coding technologies, a video signal fed into a base layer is a downscaled version of the input video signal, e.g. 701. In this case, the signal that is fed into both sub-layers of the enhancement layer comprises a residual signal comprising residual data. A plane of residual data may also be organised in sets of n-by- n blocks of signal data 910. The residual data may be generated by comparing data derived from the input signal being encoded, e.g. the video signal 701, and data derived from a reconstruction of the input signal, the reconstruction of the input signal being generated from a representation of the input signal at a lower level of quality. The comparison may comprise subtracting the reconstruction from the downsampled version. The comparison may be performed on a frame-by-frame (and / or block-by-block) basis. The comparison may be performed at the first level of quality; if the base level of quality is below the first level of quality, a reconstruction from the base level of quality may be upscaled prior to the comparison. In a similar manner, the input signal to the second sub- layer, e.g. the input for the second sub-layer transformation and quantisation component, may comprise residual data that results from a comparison of the input video signal 701 at the second level of quality (which may comprise a full-quality original version of the video signal) with a reconstruction of the video signal at the second level of quality. As before, the comparison may be performed on a frame-by-frame (and / or block-by-block) basis and may comprise subtraction. The reconstruction of the video signal may comprise a reconstruction generated from the decoded decoding of the encoded base bitstream and a decoded version of the first sub-layer residual data stream. The reconstruction may be generated at the first level of quality and may be upsampled to the second level of quality.

[0095] Hence, a plane of data 908 for the first sub-layer may comprise residual data that is arranged in n-by-n signal blocks 910. One such 2 by 2 signal block is shown in more detail in Figure 9 (n is selected as 2 for ease of explanation) where for a colour plane the block may have values 912 with a set bit length (e.g., 8 or 16-bit). Each n-by-n signal block may be represented as a flattened vector 914 of length n2 representing the blocks of signal data. To perform the transform operation, the flattened vector 914 may be multiplied by a transform matrix 916 (i.e., the dot product taken). This then generates another vector 918 of length n2 representing different transformed coefficients for a given signal block 910. Figure 9 shows an example similar to LCEVC where the transform matrix 916 is a Hadamard matrix of size 4 by 4, resulting in a transformed coefficient vector 918 having four elements with respective values. These elements are sometimes referred to by the letters A, H, V and D as they may represent an average, horizontal difference, vertical difference and diagonal difference. Such a transform operation may also be referred to as a directional decomposition. When n = 4, the transform operation may use a 16 by 16 matrix and be referred to as a directional decomposition squared.

[0096] As shown in Figure 9, the set of values for each data element across the complete set of signal blocks 910 for the plane 908 may themselves be represented as a plane or surface of coefficient values 920. For example, values for the *H_data elements for the set of signal blocks may be combined into a single plane, where the original plane 908 is then represented as four separate coefficient planes 922. For example, the illustrated coefficient plane 922 contains all the 'H_ values. These values are stored with a predefined bit length, e.g. a bit length B, which may be 8, 16, 32 or 64 depending on the bit depth. A 16-bit example is considered below but this is not limiting. As such, the coefficient plane 922 may be represented as a sequence (e.g., in memory) of 16-bit or 2- byte values 924 representing the values of one data element from the transformed coefficients. These may be referred to as coefficient bits. These coefficient bits may be quantised and then entropy encoded as discussed to then generate the encoded enhancement layer data (e.g., 'L_PID stream 504) as described above.

[0097] The techniques described herein may be implemented in software or hardware, or may be implemented using a combination of software and hardware. They may include configuring an apparatus to carry out and / or support any or all of techniques described herein. The above examples are to be understood as illustrative. Further examples are envisaged. Itis to be understood that any feature described in relation to any one example may be used alone, or in combination with other features described, and may also be used in combination with one or more features of any other of the examples, or any combination of any other of the examples. Furthermore, equivalents and modifications not described above may also be employed without departing from the scope of the invention, which is defined in the accompanying claims.

Claims

1. A method of decoding a multi-layer video stream, the multi-layer video stream encoding a video signal and comprising at least a first layer and a second layer, the method comprising:receiving a first packet sub-stream for the first layer, each packet of the first packet sub-stream comprising a header and a data payload, the first packet sub-stream being identified via a first packet identifier indicated in the header and being received as part of a transport stream;receiving a second packet sub-stream for the second layer, each packet of the second packet sub-stream comprising a header and a data payload, the second packet sub-stream being identified via a second packet identifier indicated in the header and being received as part of the transport stream;joining packets from the first packet sub-stream and the second packet sub-stream to generate a joint elementary packet stream, the joint elementary packet stream comprising a sequence of packets comprising data for both the first layer and the second layer, a payload of the joint elementary packet stream comprising a sequence of network abstraction layer units for the first layer concatenated with a sequence of network abstraction layer units for the second layer;providing the joint elementary packet stream to a first layer decoder for decoding of the data for the first layer within the joint elementary packet stream;providing the joint elementary packet stream to a second layer decoder for decoding of at least the data for the second layer within the joint elementary packet stream, wherein the first layer decoder differs from the second layer decoder; andcombining an output of the first layer decoder and an output of the second layer decoder to provide a multi-layer reconstruction of the video signal.

2. The method of claim 1, wherein the data payloads of the first packet sub-stream form a first packetized elementary stream and the data payloads of the second packet sub-stream form a second packetized elementary stream, wherein the joint elementary packet stream comprises a third packetized elementary stream with a header comprising a presentation time stamp, a data payload following the header comprising data payloads from the first and second packetized elementary streams that are associated with the presentation time stamp.12 07 243. The method of claim 1 or claim 2, wherein the first and second packet sub-streams are transmitted such that the data payload of the second packet sub-stream arrives no later than the data payload of a corresponding portion of the first packet sub-stream.

4. The method of any one of the preceding claims, wherein the first layer decoder is configured to ignore the network abstraction layer units for the second layer based on unit type data values within a header of the network abstraction layer units for the second layer.

5. The method of any one of the preceding claims, wherein an output of the first layer decoder is renderable independently of the multi-layer reconstruction of the video signal.

6. The method of any one of the preceding claims, comprising:receiving the transport stream comprising the first packet sub-stream and the second packet sub-stream; anddemultiplexing the transport stream to extract the first packet sub-stream and the second packet sub-stream.

7. The method of any one of the preceding claims, wherein the first layer comprises a base video stream and the second layer comprises an enhancement video stream, and wherein the multi-layer reconstruction of the video signal comprises a higher quality rendition of a base video signal decoded from the base video stream.

8. The method of claim 7, wherein data for the second layer comprises frames of residual data that are combined with frames of the base video signal as decoded from the base video stream.

9. The method of claim 8, wherein the second layer comprises a Low Complexity Enhancement Video Coding (LCEVC) video stream.

10. The method of any preceding claims, wherein the second layer comprises a watermarking stream.12 07 2411. A video decoder comprising:a stream receiver to coordinate receipt of first and second packet sub-streams corresponding to first and second layers of a multi-layer video encoding of a video signal, each packet of the first and second packet sub-streams comprising a header and a data payload, the first packet stream being identified via a first packet identifier indicated in the header and the second packet stream being identified via a second packet identifier indicated in the header, the first and second packet sub-streams being received as part of a transport stream;a stream generator to receive the first and second packet sub-streams and to generate a joint elementary packet stream, the joint elementary packet stream comprising a sequence of packets comprising data for both the first and the second layers, a payload of the joint elementary packet stream comprising a sequence of network abstraction layer units for the first layer concatenated with a sequence of network abstraction layer units for the second layer;a first layer decoder to receive the joint elementary packet stream generated by the stream generator and to output a decoding of the data for the first layer within the joint elementary packet stream;a second layer decoder to receive the joint elementary packet stream generated by the stream generator and to output a decoding of the data for the second layer within the joint elementary packet stream, the second layer decoder being different to the first layer decoder; anda multi-layer controller to combine an output of the first layer decoder and an output of the second layer decoder to provide a multi-layer reconstruction of the video signal.

12. The video decoder of claim 11, wherein the stream receiver comprises a demultiplexer to receive and demultiplex the transport stream comprising the first packet sub-stream and the second packet sub-stream.

13. The video decoder of claim 11 or claim 12, wherein the data payloads of the first packet sub-stream form a first packetized elementary stream and the data payloads of the second packet sub-stream form a second packetized elementary stream, wherein the joint elementary packet stream comprises a third packetized elementary stream with a header comprising a presentation time stamp, the data payload following the header comprising data payloads from the first and second packetized elementary streams that12 07 24are associated with the presentation time stamp, wherein the first and second packet sub-streams are transmitted such that the data payload of the second packet sub-stream arrives no later than the data payload of a corresponding portion of the first packet sub-stream.

14. The video decoder of any one of claims 11 to 13, wherein the first layer decoder is configured to ignore the network abstraction layer units for the second layer based on unit type data values within a header of the network abstraction layer units for the second layer.

15. The video decoder of any one of claims 11 to 14, comprising:a first layer renderer to render an output of the first layer decoder on a display device; anda multi-layer renderer to render the multi-layer reconstruction on the display device.

16. The video decoder of any one of claims 11 to 15, wherein the first layer comprises a base video stream and the second layer comprises an enhancement video stream, and wherein the multi-layer reconstruction of the video signal comprises a higher quality rendition of a base video signal decoded from the base video stream.

17. The video decoder of claim 16, wherein data for the second layer comprises frames of residual data that are combined with frames of the base video signal as decoded from the base video stream.

18. The video decoder of claim 17, wherein the second layer comprises a Low Complexity Enhancement Video Coding (LCEVC) video stream.

19. A computer-readable medium comprising instructions which when executed cause a processor to perform the method of any of claims 1 to 10.

Citation Information

Patent Citations

  • Scalable transmitting / receiving apparatus and method for improving availability of broadcasting service

    US20100272190A1

  • Method and apparatus for encoding and decoding multilayer videos

    US20120044999A1

  • Method and apparatus for encoding multilayer video, and method and apparatus for decoding multilayer video

    US20160227233A1

  • Multi-layer video encoding method and multi-layer video decoding method using pattern information

    US20170085890A1

  • Low delay concept in multi-layered video coding

    US20210250593A1