The invention relates to temporal scalable video coding.
In case of temporal scalability, it is known to produce a video comprising a sequence of images comprising base layer images and enhancement layer images, alternating with each other.
The type of each image (base layer or enhancement layer) is indicated in the video. In this manner, a video decoder operating at high frame rate (e.g. 100 Hz) will receive and decode both base and enhancement layer images. High frame rate is desirable for example for sport video. On the contrary, a video decoder operating at low frame rate (e.g. 50 Hz) will receive both layers, but will discard the enhancement layer images and will decode only the base layer images, that is to say one image out of two.
One way to produce the previously described video is to shoot the video at the higher rate (e.g. 100 Hz) and to define one image out of two as base layer images, the remaining images being defined as enhancement layer images. Doing so, an issue is to be considered: the choice of the shutter opening time of the camera.
For a given frame rate (Tframe) and a shutter time ratio value (Ashutter), motion blur due to the captor integration time occurs for displacement speed superior or equal to Vlimit defined by:
where:
Tframe=frame rate,
Npixel=number of pixels (width)
Width=screen panel width
(Tframe×Ashutter) is the aperture time duration
For a given screen size, if Ashutter is chosen to avoid blur in the full rate video (comprising both the base layer images and the enhancement layer images) (Tframe=100 fps), the shutter time ratio value will be too short for the low rate video (comprising only the base layer images) (Tframe=50 fps) and there will be a stroboscopic effect.
To overcome this problem, it is possible to temporally filter (“motion blur”) the base layer images. However, this temporal filtering will also appear in the full rate video (in the base layer images) which will decrease video quality of the full rate video.
There is therefore a need for a video encoding method which is scalable and which insures good image quality when only the base layer images are decoded and also when both the base and enhancement layer images are decoded.
It is proposed a video encoding method according to claim 1.
Thanks to the invention, a temporal filtering can be applied only when the base layer images are decoded, and not when both the base and enhancement layer images are decoded.
Other features of the method are set forth in claims 2 to 12.
It is also proposed a computer program according to claim 13.
It is also proposed a video encoder according to claim 14.
It is also proposed a video decoding method according to claim 15.
It is also proposed a computer program according to claim 16.
It is also proposed a video decoder according to claim 17.
An embodiment of the invention will now be described by way of example only and with reference to the appended figures.
In the following description, the term “filter” encompasses any image transformation.
With reference to
I=BLI
1
,ELI
1
, . . . ,BLI
n
,ELI
n
, . . . ,BLI
N
,ELI
N
The elements of the video encoding system 100 will now be introduced and their functioning described in greater detail later, with reference to
The video encoding system 100 comprises a temporal filtering module 102 configured to temporally filter each base layer image BLIn into a temporally filtered image BLIn*. The temporally filtered images BLIn* are intended to simulate what would have been produced by a camera shooting the video with a longer integration time. The temporal filtering leads to several modifications in the image, which may include for example motion blurring, as well as other optical effects.
The video encoding system 100 further comprises a video encoder 104 configured to encode the base layer images BLIn and the enhancement layer images ELIn in order to respectively provide base layer encoded video data BLEVD and enhancement layer encoded video data ELEVD.
The video encoder 104 comprises a base layer encoder 106 configured to encodes the base layer images BLIn in order to produce the base layer encoded video data BLEVD in the form of a base layer bitstream, and reconstructed base layer images rec_BLIn. According to a specific and non-limiting embodiment, the base layer encoder 106 is an H.264 or an HEVC compliant encoder.
The video encoder 104 further comprises an enhancement layer encoder 108 configured to encode the enhancement layer images ELIn in order to produce enhancement layer encoded video data ELEVD in the form of an enhancement layer bitstream. According to a specific and non-limiting embodiment, the enhancement layer encoder 108 is an H.264 or an HEVC compliant encoder.
The video encoding system 100 further comprises an optional preliminary filter module 110 configured, for each reconstructed base layer image rec_BLIn, to apply a preliminary filter F1 to the reconstructed base layer image rec_BLIn in order to produce an intermediate image F1_BLIn.
The video encoding system 100 further comprises a parameters determination module 112 configured to determine, for each reconstructed base layer image rec_BLIn, at least one filter parameter Pn of a parametric filter F2. The filter parameter(s) Pn is/are such that applying the parametric filter F2 with the filter parameter(s) Pn to a version of the reconstructed base layer image rec_BLIn produces a corrected base layer image cor_BLIn similar to the corresponding temporally filtered image BLIn*:
cor_BLIn=F2(int_BLIn)≈BLIn*
The version of the reconstructed base layer image rec_BLIn may be the reconstructed base layer image rec_BLIn itself, for instance when the preliminary filter module 110 is absent. Alternatively, the version of the reconstructed base layer image rec_BLIn may be the intermediate image F1_BLIn when the preliminary filter module 110 is present.
The corrected base layer image cor_BLIn is closer in content to the temporally filtered image BLIn* than the version of the reconstructed base layer image rec_BLIn.
This means that, according to a predetermined distance, the distance between the content of the corrected base layer image cor_BLIn and the content of the temporally filtered image BLIn* is smaller than the distance between the content of the version of the version of the reconstructed base layer image rec_BLIn and the content of the temporally filtered image BLIn*. The distance is for example a L2-norm.
The video encoder 100 optionally comprises a multiplexer 114 configured to multiplex the base layer encoded video data BLEVD with the enhancement layer encoded video data ELEVD in order to produce the encoded video data EVD in the form of a bitstream. The multiplexer 114 may also be configured to multiplex the filter parameters Pn with the base layer encoded video data BLEVD. Furthermore, the multiplexer 114 may be configured to transmit or to store the encoded video data EVD. The encoded video data EVD may be decoded by a decoder, such as the one described later, into a decoded video similar to the received video
In a variant, the multiplexer 114 is external to the video encoder 100.
With reference to
During a step 202, the video encoding system 100 receives the video comprising the sequence of images I.
During a step 204, the temporal filtering module 102 temporally filters each base layer image BLIn into a temporally filtered image BLIn.
Advantageously, one or several enhancement layer images ELIn are used for temporally filtering a base layer image BLIn. In this case, the temporal filtering corresponds to a down conversion since two images (or more) are used for computing a single image. Each of the enhancement layer images ELIn used for temporally filtering a base layer image BLIn may precede or follow this base layer image BLIn. For example, the directly preceding image ELIn-1 or directly following image ELIn may be used. In the described example, the directly preceding image ELIn-1 is used.
Advantageously, temporally filtering a base layer image BLIn comprises computing a mean of the base layer image BLIn with the enhancement layer image(s) ELIn used for the temporal filtering.
For example, in the case of the described example where the directly preceding image ELIn-1 is used, a temporally filtered image BLIn* may be obtained according to the following equation:
where p is a pixel of the temporally filtered image BLIn*, |BLIn* [p]| is the value of the pixel p in the temporally filtered image BLIn*, |BLIn[p]| is the value of the pixel p in the base layer image BLIn, and |ELIn-1[p]| is the value of the pixel p in the directly preceding enhancement layer image ELIn-1.
Alternatively, additional motion compensated frames from the base layer image BLIn and/or enhancement layer image(s) ELIn could be used to compute the mean. During a step 206, the video encoder 104 encodes the base layer images BLIn and the enhancement layer images ELIn in order to respectively produce base layer encoded video data BLEVD and enhancement layer encoded video data ELEVD.
More precisely, the step 206 comprises a step 208 during which the base layer encoder 106 encodes the base layer images BLIn in order to produce the base layer encoded video data BLEVD and reconstructed base layer images rec_BLIn.
Advantageously, the base layer images BLIn are encoded independently of the enhancement layer images ELIn.
Usually, in particular when the base layer encoder 106 is H.264 or HEVC compliant, for encoding a base layer image BLIn, this base layer image BLIn is first partitioned into coding units, e.g. into blocks or macroblocks, according to a partition called encoding partition.
Each coding unit is then encoded by determining a prediction of the coding unit. For determining the prediction, particularly in the case of inter prediction, motion vectors, called encoding motion vectors enc_MVn, are determined with respect to reconstructed coding units taken as references. The prediction is then determined from the encoding motion vectors enc_MVn and the reference reconstructed coding units.
A residual between the prediction and the coding unit is then determined and the residual is encoded. Classically, encoding the residual comprises applying a transformation T (e.g. a DCT) to the residual in order to produce coefficients, which are in turn quantized and entropy coded.
The coding unit is then reconstructed in order to produce a reconstructed coding unit. To this aim, the quantized coefficients are dequantized and the inverse transform T1 is applied to the dequantized coefficients. The prediction is then added to the result of the inverse transform T−1 in order to produce the reconstructed coding unit.
The reconstructed coding units may serve as reference when coding other coding units.
The reconstructed coding units obtained during the encoding of a base layer image BLIn forms a reconstructed base layer image rec_BLIn corresponding to this base layer image BLIn.
The step 206 further comprises a step 210 during which the enhancement layer encoder 108 encodes the enhancement layer images ELIn in order to produce the enhancement layer encoded video data ELEVD.
Advantageously, at least some of the enhancement layer images ELIn are encoded from the reconstructed base layer images rec_BLIn. In this case, the reconstructed base layer images rec_BLIn may be used in the prediction of the enhancement layer images ELIn.
During an optional step 212, for each reconstructed base layer image rec_BLIn, the preliminary filter module 110 applies the preliminary filter F1 to the corresponding reconstructed base layer image rec_BLIn in order to produce an intermediate image F1_BLIn:
F1_BLIn=F1(rec_BLIn)
In the described example, the preliminary filter F1 is a motion compensated temporal filter configured to filter the reconstructed base layer image rec_BLIn according to one or several other reconstructed base layer images, taken as reference images. Accordingly, in the described example, the step 212 is carried out as follows.
Motion vectors, called filtering motion vectors filt_MVn, are first determined, for example by carrying out motion estimation. Advantageously, at least one filtering motion vector filt_MVn is determined from at least one encoding motion vector enc_MVn. For example, an encoding motion vector enc_MVn is taken as the filtering motion vector filt_MVn. Alternatively, an encoding motion vector enc_MVn is used to derive a candidate (for example, it may be used directly as a candidate) in the motion estimation process for determining the filtering motion vector filt_MVn.
The preliminary filter module 110 then determines the intermediate image F1_BLIn from the filtering motion vectors filt_MVn and one or several other reconstructed base layer images rec_BLIn, taken as reference images.
For example, when the preliminary filter F1 is a linear motion compensated filter, the value of the pixel p in the intermediate image F1_BLIn is equal to a weighted sum of the value of the pixel p and the value(s) of the corresponding reference pixel(s) (i.e. the pixel(s) in the reference reconstructed base layer image(s)). For example, the two directly preceding images rec_BLIn-1 and rec_BLIn-2 may be taken as reference images. In this case, the value of each pixel p in the intermediate image F1_BLIn may be given by:
|F1_BLIn[p]|=w0|rec_BLIn[p]|+w1|rec_BLIn-1[p+k1.filt_MVn1(p)]|+w2|rec_BLIn-2[p+k2.filt_MVn2(p)]|
where |F1_BLIn[p]| is the value of the pixel p in the intermediate image F1_BLIn, |rec_BLIn[p]| is the value of the pixel p in the reconstructed base layer image rec_BLIn, |rec_BLIn-1[p+filt_MVn1(p)]| is the value of a pixel located at the location p+k1.filt_MVn1(p) in the reconstructed base layer image rec_BLIn-1, k1 is for example equal to 1.5 in order to increase the length of the first filtering motion vector so that the motion it represents corresponds to a time around n+1/2, |rec_BLIn-2[p+k2.filt_MVn2(p)]| is the value of a pixel located at the location p+k2.filt_MVn2(p) in the reconstructed base layer image rec_BLIn-2, k2 is for example equal to 1.25 in order to increase the length of the second filtering vector so that the motion it represents corresponds to a time around n+1/2, and w0, w1 and w2 are the respective weights.
During a step 214, the parameters determination module 112 determines at least one filter parameter Pn of the parametric filter F2 for each reconstructed base layer image rec_BLIn.
In a particular embodiment where the preliminary filter F1 is applied, the step 214 comprises the followings steps.
The intermediate image F1_BLIn is first partitioned into blocks of pixels, called filtering blocks, according to a partition called filtering partition. For example, the filtering partition is equal to the encoding partition carried out by the base layer encoder 106.
For each filtering block, at least one parameter for the parametric filter F2 is determined, such that applying the parametric filter F2 to the filtering block with the parameter(s) produces a corresponding block of the corrected base layer image cor_BLIn.
In a first embodiment, the parametric filter F2 is a sample adaptive offset filter (SAO filter). In this case, one parameter of each filtering block is an offset. The offset is added to the value of each pixel p of the filtering block, in order to obtain the value of the corresponding pixel p in the corrected base layer image cor_BLIn:
|cor_BLIn[p]|=|F1_BLIn[p]|+Pnk
where |cor_BLIn[p]| is the value of the pixel p in the corrected base layer image cor_BLIn, |F1_BLIn[p]| is the value of the pixel p in the intermediate image F1_BLIn, and Pnk is the offset associated with the filtering block k to which the pixel p belongs.
Alternatively, the filter parameters Pn could be determined in a full-pel manner, which is equivalent to considering that each filtering block comprises only one pixel. In this case, the parameters determination module 112 determines one parameter for each pixel p, this parameter being an offset. The offset is added to the value of the pixel p, in order to obtain the value of the corresponding pixel p in the corrected base layer image cor_BLIn:
|cor_BLIn[p]|=|F1_BLIn[p]|+Pn(p)
where |cor_BLIn[p]| is the value of the pixel p in the corrected base layer image cor_BLIn, |F1_BLIn[p]| is the value of the pixel p in the intermediate image F1_BLIn, and Pn(p) is the offset associated with the pixel p.
Alternatively, the parameters determination module 112 could divide the pixels of each filtering block into a predetermined number of categories and then determine one parameter for each category for this filtering block. In this case, the value of each pixel p is intended to be added to the parameter for the category of the pixel p.
In the above alternatives, the offsets can be determined from the images F1_BLIn and BLIn* according to a method of the state of the art, such as the method disclosed in the document from Fu et al entitled “Sample Adaptive Offset for HEVC” published in MMPS in 2011 which is included herein by reference. It will be appreciated, however, that the invention is not restricted to this specific method for determining the offsets.
In another embodiment, the parametric filter F2 is an adaptive loop filter. In this case, the parameters determination module 112 determines, for each filtering block, several filter parameters. For each pixel p of the filtering block, the filter parameters are weights of a linear combination of the values of the pixel p and neighboring pixels of the pixel p. The filter parameters can be determined from the images F1_BLIn and BLIn* according to a method of the state of the art such as the method disclosed in the document from Zheng et al entitled “directional adaptive loop filter for video coding “published in ICIP in 2011 which is included herein by reference. It will be appreciated, however, that the invention is not restricted to this specific method for determining the offsets.
When the version of the reconstructed base layer image rec_BLIn is the reconstructed base layer image rec_BLIn itself, the same previous steps may be carried out during step 214, in which case the intermediate image F1_BLIn is replaced by the reconstructed base layer image rec_BLIn.
During a step 216, the filter parameters Pn are inserted into the base layer encoded video data BLEVD. According to a specific and non-limiting embodiment, the base layer encoder 106 encodes the filter parameters Pn into the base layer encoded video data BLEVD. In a variant, the multiplexer 114 multiplexes the filter parameters Pn with the base layer encoded video data BLEVD.
During an optional step 218, the multiplexer 114 multiplexes the base layer encoded video data BLEVD with the enhancement layer encoded video data ELEVD in order to produce the encoded video data EVD.
The video encoding system 100 then provides the encoded video data EVD, which comprises the base layer encoded video data BLEVD, the enhancement layer encoded video data ELEVD and, in the base layer encoded video data BLEVD, the parameters Pn.
With reference to
The video decoder 300 is configured to receive encoded video data EVD, for example from the video encoder 100. The video decoder 300 is a low frame rate video decoder configured to decode the base layer images BLIn and to discard the enhancement layer images ELIn. The encoded video data EVD comprises base layer encoded video data BLEVD, enhancement layer encoded video data ELEVD and filter parameters Pn.
The video decoder 300 optionally comprises a demultiplexer 302 configured to recover the base layer encoded video data BLEVD, in which the filter parameters Pn are inserted (for example, by encoding or multiplexing), and to discard the enhancement layer encoded video data ELEVD. In a variant, the demultiplexer 302 is external to the video decoder 300. In this case, the video decoder 300 is configured to receive the base layer encoded video data BLEVD.
The video decoder 300 further comprises a base layer decoder 304 configured to compute reconstructed base layer images rec_BLIn the base layer encoded video data BLEVD. According to a specific embodiment and non-limiting embodiment, the base layer decoder 304 is an H.264 or an HEVC compliant decoder. If necessary, the base layer decoder 304 is further configured to decode the filter parameters Pn from the base layer encoded video data BLEVD. In any case, each reconstructed base layer image rec_BLIn is associated with at least one of the parameters Pn that have been received.
The video decoder 300 further comprises an optional preliminary filter module 306 configured to apply the preliminary filter F1 (similar to the one of the video encoding system 100) to the reconstructed base layer images rec_BLIn in order to produce the intermediate images F1_BLIn.
The video decoder 300 further comprises a parametric filter module 308 configured, for each reconstructed base layer image rec_BLIn, to apply the parametric filter F2 (similar to the one of the video encoding system 100) with the filter parameter(s) Pn associated to the reconstructed base layer image rec_BLIn to a version of the reconstructed base layer image rec_BLIn in order to produce a corrected base layer image cor_BLIn. When the preliminary filter module 306 is present, the version of the reconstructed base layer image rec_BLIn may be the intermediate image F1_BLIn. In the case the preliminary filter module 306 is absent, the version of the reconstructed base layer image rec_BLIn may be the reconstructed base layer image rec_BLIn itself.
With reference to
During a step 402, the video decoder 300 receives the encoded video data EVD.
During an optional step 404, the demultiplexer 302 recovers the base layer encoded video data BLEVD, and discards the enhancement layer encoded video data ELEVD.
In a variant, during the step 402, the video decoder 300 receives only the base layer encoded video data BLEVD. In this case, there is no step 404.
During a step 406, the base layer decoder 304 computes reconstructed base layer images rec_BLIn from the base layer encoded video data BLEVD.
Usually, in particular when the base layer decoder 304 is H.264 or HEVC compliant, for computing a reconstructed base layer image rec_BLIn, the reconstructed base layer image rec_BLIn is first partitioned into coding units, e.g. into blocks or macroblocks, according to the encoding partition.
Each coding unit is then reconstructed by determining a prediction of the coding unit. For determining the prediction, particularly in the case of inter prediction, the encoding motion vector are decoded from the base layer encoded video data BLEVD and applied to reference reconstructed coding units, that is to say coding units that have already been reconstructed.
A residual for the coding unit is then decoded from the base layer encoded video data BLEVD and added to the prediction to reconstruct the coding unit. The residual is classically decoded by entropy decoding parts of the base layer encoded video data BLEVD, and by applying an inverse quantization and an inverse transform (e.g. an inverse DCT).
The set of reconstructed coding units forms the reconstructed base layer image rec_BLIn.
During a step 408, for each reconstructed base layer image rec_BLIn, the associated filter parameter(s) Pn is/are recovered. In a specific and non-limiting embodiment, the base layer decoder 304 decodes the filter parameters Pn from the base layer encoded video data BLEVD. In a variant, the demultiplexer 302 recovers the base layer encoded video data BLEVD and the filter parameters Pn. This variant applies when, during the step 216, the filter parameters Pn and the base layer encoded video data BLEVD are multiplexed.
During an optional step 410, for each reconstructed base layer images rec_BLIn, the preliminary filter module 306 applies the preliminary filter F1 (similar to the one of the video encoding system 100) to the reconstructed base layer image rec_BLn in order to produce the corresponding intermediate image F1_BLIn.
During a step 412, for each reconstructed base layer images rec_BLIn, a parametric filter module 308 applies a parametric filter F2 with the filter parameter(s) Pn associated to the reconstructed base layer image rec_BLIn the version of the reconstructed base layer image rec_BLIn order to produce the corresponding corrected base layer image cor_BLIn.
When the step 410 (preliminary filtering) is carried out, the version of the reconstructed base layer image rec_BLIn may be the intermediate image F1_BLIn. In the contrary, the version of the reconstructed base layer image rec_BLIn may be the reconstructed base layer image rec_BLIn itself.
In this manner, the video decoder 300 provides corrected base layer image cor_BLIm which are similar to the temporally filtered images BLIn* determined in the video encoding 100.
The corrected base layer images cor_BLIn may then be successively displayed on a display screen (not depicted), without any noticeable stroboscopic effect.
With reference to
The video decoder 500 is configured to receive encoded video data EVD, for example from the video encoder 100. The video decoder 500 is a high frame rate video decoder configured to decode both the base layer images and the enhancement layer images.
The video decoder 500 first comprises a demultiplexer 502 configured to recover the base layer encoded video data BLEVD and the enhancement layer encoded video data ELEVD, and to discard the filter parameters Pn. In a variant, the demultiplexer 502 is external to the video decoder 500.
The video decoder 500 further comprises a base layer decoder 504 intended to compute reconstructed base layer images rec_BLIn from the base layer encoded video data BLEVD. In this case, the filter parameters Pn are discarded by the video decoder 500.
The video decoder 500 further comprises an enhancement layer decoder 506 configured to compute reconstructed enhancement layer images rec_ELIn from the enhancement layer encoded video data ELEVD and, if necessary, the reconstructed base layer images rec_BLIn.
The video decoder 500 further comprises a sequencing module 508 configured to sequence in order the reconstructed base layer images rec_BLIn and the reconstructed enhancement layer images rec_ELIn, so as to produce a sequence of reconstructed images rec_I.
The reconstructed images rec_I may for example be displayed on a display screen (not depicted).
With reference to
During a step 602, the video decoder 500 receives the encoded video data EVD.
During an optional step 604, the demultiplexer 502 recovers the base layer encoded video data BLEVD and the enhancement layer encoded video data ELEVD, and discards the filter parameters Pn from the base layer encoded video data BLEVD.
During a step 606, the base layer decoder 504 recovers if necessary the filter parameters Pn from the base layer encoded video data BLEVD and computes the reconstructed base layer images rec_BLI from the base layer encoded video data BLEVD.
During a step 608, the enhancement layer decoder 506 computes the reconstructed enhancement layer images rec_ELIn from the enhancement layer encoded video data ELEVD and, if necessary, the reconstructed base layer images rec_BLIn.
During a step 610, the sequencing module 508 sequences in order the reconstructed base layer images rec_BLIn and the reconstructed enhancement layer images rec_ELIn, so as to produce a sequence of reconstructed images rec_I.
In this manner, the video decoder 500 provides reconstructed base layer image rec_BLIn and reconstructed enhancement layer images rec_ELIn, without any temporal filtering.
The corrected base layer images cor_BLIn may then be successively displayed on a display screen (not depicted), without any noticeable loss in quality.
As it is apparent from the previous description, the invention allows to produce a temporally scalable video which can be decoded by a low frame rate decoder to produce base layer images avoiding flickering effects, and which can be decoded by a high frame rate decoder to produce base and enhancement layer images without any blurring of the base layer images degrading the video quality.
The present invention is not limited to the embodiment previously described, but instead defined by the appended claims. It will in fact be apparent to the one skilled in the art that modifications can be applied to the embodiment previously described.
For example, the preliminary filter module 110 could be omitted, so that the parametric filter module 112 would receive directly the reconstructed base layer images rec_BLI.
It should be noted that
Besides, the terms used in the appended claims shall not be understood as limited to the elements of the embodiments previously described, but on the contrary shall be understood as including all equivalent elements that the one skilled in the art is able to derive using their general knowledge.
Number | Date | Country | Kind |
---|---|---|---|
14306559.7 | Oct 2014 | EP | regional |