Opened 7 years ago

Closed 6 years ago

#1221 closed defect (fixed)

Reconstructed frame is different between encoder and decoder with specific configure file

Reported by: moiamond Owned by:
Priority: major Milestone: HM-16.2
Component: HM Version: HM-12.1
Keywords: Cc: fbossen, ksuehring, davidf, jct-vc@…

Description

Dear all,

In some specific encoder configure setting, the reconstructed frames are different.
Here is the encoder log:

...
POC    8 TId: 0 ( B-SLICE, nQP 14 QP 14 )     130696 bits [Y 61.2198 dB    U 62.2437 dB    V 63.1534 dB] [ET    22 ] [L0 4 3 2 0 ] [L1 4 3 2 0 ]
POC    5 TId: 0 ( B-SLICE, nQP 14 QP 14 )       6376 bits [Y 65.5337 dB    U 65.3747 dB    V 66.6798 dB] [ET    21 ] [L0 4 3 0 8 ] [L1 8 4 3 0 ]
POC    6 TId: 0 ( B-SLICE, nQP 13 QP 13 )      27984 bits [Y 63.0237 dB    U 64.2979 dB    V 65.2965 dB] [ET    21 ] [L0 5 4 0 8 ] [L1 8 5 4 0 ]
POC    7 TId: 0 ( B-SLICE, nQP 13 QP 13 )      17792 bits [Y 62.3651 dB    U 63.3046 dB    V 64.1559 dB] [ET    21 ] [L0 6 4 0 8 ] [L1 8 6 4 0 ]
...

POC 6: the PSNR and reconstructed frame is good.
But the decoded frame (POC 6) is corruputed.

I don't know the issue is related to decoder or encoder.
Or the configure is invalid?
Thank you in advance for your help

PS. I use conformance clip "SlideShow_1280x720_20.yuv" to produce the issue.

Attachments (1)

SlideShow_1280x720_20.cfg (3.9 KB) - added by moiamond 7 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 7 years ago by DefaultCC Plugin

  • Cc fbossen ksuehring davidf jct-vc@… added

Changed 7 years ago by moiamond

comment:2 Changed 7 years ago by fbossen

Issue was reproduced with r3763 (numbers are slightly different):

POC    0 TId: 0 ( I-SLICE, nQP 12 QP 14 )     282016 bits [Y 61.1405 dB    U 60.2993 dB    V 60.4581 dB] [ET     4 ] [L0 ] [L1 ] [MD5:4aaeea75f27ee8b5fb3f202328723df8,d71f5880a6cac08ed25372f64259e2d9,72f16bb3fe3f81cdd4e170f84ab29f6c]
POC    4 TId: 0 ( B-SLICE, nQP 20 QP 21 )      21936 bits [Y 59.3190 dB    U 58.4442 dB    V 59.2894 dB] [ET     4 ] [L0 0 ] [L1 0 ] [MD5:1e46386d1891ee07fe17fbe823619903,e4e0b49d68fe7eafbf89e3ceca3e30b1,5447ae8ea58cfefc3e8b952dcc485c36]
POC    1 TId: 0 ( B-SLICE, nQP 21 QP 22 )       4280 bits [Y 60.8326 dB    U 59.9699 dB    V 60.3261 dB] [ET     6 ] [L0 0 4 ] [L1 4 0 ] [MD5:2cfd09b0488764ff06ee30feaf416cdf,ca24f8baf7433fc730d4dd1cab681b49,36423d11a3e286722140670f194637aa]
POC    2 TId: 0 ( B-SLICE, nQP 17 QP 18 )       5456 bits [Y 60.6054 dB    U 59.8445 dB    V 60.2087 dB] [ET     8 ] [L0 1 0 4 ] [L1 4 1 0 ] [MD5:1c3e6f61580a80359be2aea4a72927d8,0a517aeaf8a711e66eafb8b800101205,97d5b5c921d10d0ac8d5e889937dbdf6]
POC    3 TId: 0 ( B-SLICE, nQP 14 QP 14 )      11152 bits [Y 60.6365 dB    U 59.7028 dB    V 60.0816 dB] [ET    10 ] [L0 2 1 0 4 ] [L1 4 2 1 0 ] [MD5:32d4fb9688921edbcc918833e9ed086a,18368d158b749eb39a6c115b44c0179f,b60a018cb4412e84c4ddc28f1c4bdbf9]
POC    8 TId: 0 ( B-SLICE, nQP 14 QP 14 )     133504 bits [Y 58.2747 dB    U 58.2681 dB    V 58.7341 dB] [ET    10 ] [L0 4 3 2 0 ] [L1 4 3 2 0 ] [MD5:18596336913c5eab81fbeb4870feb430,af7837dfb82434fe47b1278874e5247a,c263f82176966a35ba60c149fb5b16b5]
POC    5 TId: 0 ( B-SLICE, nQP 14 QP 14 )       6208 bits [Y 59.8930 dB    U 59.2092 dB    V 59.6728 dB] [ET    10 ] [L0 4 3 0 8 ] [L1 8 4 3 0 ] [MD5:79aa9b6b16f191d1267b06670d051966,3f0a4fadc17848a97b8e8b782a39d9a7,870cfa7b1999785d80bb71cb5142ab82]
POC    6 TId: 0 ( B-SLICE, nQP 13 QP 13 )      29560 bits [Y 59.1178 dB    U 59.0314 dB    V 59.4632 dB] [ET    10 ] [L0 5 4 0 8 ] [L1 8 5 4 0 ] [MD5:bfea1479f3699801fbcd5791e5fbf3e5,177d07c93d85451d27169370eceb25f0,2e1b95c389aa55ccc86e55d6954ad324]
POC    7 TId: 0 ( B-SLICE, nQP 13 QP 13 )      17968 bits [Y 58.8427 dB    U 58.7224 dB    V 59.1757 dB] [ET    10 ] [L0 6 4 0 8 ] [L1 8 6 4 0 ] [MD5:4622325a4324586c54c943555b4a6263,cf0a0ab6f2f05253aace22c43d782487,53db43f55289bf7cdd33f7b210077ae4]
POC   12 TId: 0 ( B-SLICE, nQP 13 QP 13 )     174832 bits [Y 57.9890 dB    U 57.7165 dB    V 58.1812 dB] [ET    11 ] [L0 8 7 4 0 ] [L1 8 7 4 0 ] [MD5:126bfdf113a002f702714373ed26df4c,21b70d69058177d49b0c660f7ec3d794,10dcf46b4d43ab3ade22beea2bf64482]
POC    9 TId: 0 ( B-SLICE, nQP 12 QP 13 )      37864 bits [Y 58.5903 dB    U 58.4710 dB    V 58.8781 dB] [ET    10 ] [L0 8 4 0 12 ] [L1 12 8 4 0 ] [MD5:863508311ad5cacf9f278a19c6d22002,6fc8e4f9fae774326866801c3b1597a7,07f11148e0f7c3dce0531557f12afd02]
POC   10 TId: 0 ( B-SLICE, nQP 12 QP 13 )      26032 bits [Y 58.5371 dB    U 58.3304 dB    V 58.7028 dB] [ET    10 ] [L0 8 4 0 12 ] [L1 12 8 4 0 ] [MD5:597944357c2678bef73e6ba184593ee6,1aa3a5879c93c42d935f3413416f615b,3504d8515a173952e44a7e049d8c3ab5]
POC   11 TId: 0 ( B-SLICE, nQP 11 QP 11 )      66696 bits [Y 58.5186 dB    U 58.3800 dB    V 58.7455 dB] [ET    11 ] [L0 8 4 0 12 ] [L1 12 8 4 0 ] [MD5:94c0a3d1229f3abf0197ededd14c7fc1,a0df76491330735183e055bb806de7a9,b654b68ce3fc6a7e4930ea44455fc0da]

MD5 mismatch occurs in decoder:

POC    0 TId: 0 ( I-SLICE, QP 14 ) [DT  0.052] [L0 ] [L1 ] [MD5:4aaeea75f27ee8b5fb3f202328723df8,d71f5880a6cac08ed25372f64259e2d9,72f16bb3fe3f81cdd4e170f84ab29f6c,(OK)] 
POC    4 TId: 0 ( B-SLICE, QP 21 ) [DT  0.011] [L0 0 ] [L1 0 ] [MD5:1e46386d1891ee07fe17fbe823619903,e4e0b49d68fe7eafbf89e3ceca3e30b1,5447ae8ea58cfefc3e8b952dcc485c36,(OK)] 
POC    1 TId: 0 ( B-SLICE, QP 22 ) [DT  0.012] [L0 0 4 ] [L1 4 0 ] [MD5:2cfd09b0488764ff06ee30feaf416cdf,ca24f8baf7433fc730d4dd1cab681b49,36423d11a3e286722140670f194637aa,(OK)] 
POC    2 TId: 0 ( B-SLICE, QP 18 ) [DT  0.013] [L0 1 0 4 ] [L1 4 1 0 ] [MD5:1c3e6f61580a80359be2aea4a72927d8,0a517aeaf8a711e66eafb8b800101205,97d5b5c921d10d0ac8d5e889937dbdf6,(OK)] 
POC    3 TId: 0 ( B-SLICE, QP 14 ) [DT  0.013] [L0 2 1 0 4 ] [L1 4 2 1 0 ] [MD5:bfa443b6ff1c94999011a0e4d7d095e4,a5321b29a2ba397687b26bd8aa619a0e,b60a018cb4412e84c4ddc28f1c4bdbf9,(***ERROR***)] [rxMD5:32d4fb9688921edbcc918833e9ed086a,18368d158b749eb39a6c115b44c0179f,b60a018cb4412e84c4ddc28f1c4bdbf9] 
POC    8 TId: 0 ( B-SLICE, QP 14 ) [DT  0.016] [L0 4 3 2 0 ] [L1 4 3 2 0 ] [MD5:4065640c462c09b47609c8a6e8b1e803,4bba9de1eec3852556b99b12a1f7f917,c263f82176966a35ba60c149fb5b16b5,(***ERROR***)] [rxMD5:18596336913c5eab81fbeb4870feb430,af7837dfb82434fe47b1278874e5247a,c263f82176966a35ba60c149fb5b16b5] 
POC    5 TId: 0 ( B-SLICE, QP 14 ) [DT  0.012] [L0 4 3 0 8 ] [L1 8 4 3 0 ] [MD5:a55c1afd072c9d09a703080adff25d92,c3926ef21953fbca00e3c004154fc712,870cfa7b1999785d80bb71cb5142ab82,(***ERROR***)] [rxMD5:79aa9b6b16f191d1267b06670d051966,3f0a4fadc17848a97b8e8b782a39d9a7,870cfa7b1999785d80bb71cb5142ab82] 
POC    6 TId: 0 ( B-SLICE, QP 13 ) [DT  0.014] [L0 5 4 0 8 ] [L1 8 5 4 0 ] [MD5:d3e8879c621f74d43068ec415dfd4825,40b0527ade6ed0628a3e9b77ff7f6b9d,2e1b95c389aa55ccc86e55d6954ad324,(***ERROR***)] [rxMD5:bfea1479f3699801fbcd5791e5fbf3e5,177d07c93d85451d27169370eceb25f0,2e1b95c389aa55ccc86e55d6954ad324] 
POC    7 TId: 0 ( B-SLICE, QP 13 ) [DT  0.013] [L0 6 4 0 8 ] [L1 8 6 4 0 ] [MD5:817cc2910e46f3f22b6773062e4c6980,32dc17a19fa0bd5709d946fa5f2ed8fa,53db43f55289bf7cdd33f7b210077ae4,(***ERROR***)] [rxMD5:4622325a4324586c54c943555b4a6263,cf0a0ab6f2f05253aace22c43d782487,53db43f55289bf7cdd33f7b210077ae4] 
POC   12 TId: 0 ( B-SLICE, QP 13 ) [DT  0.016] [L0 8 7 4 0 ] [L1 8 7 4 0 ] [MD5:ec2e59424cee76f5c85f7da4ebc03c83,aacc3695ef37715127ae8b429d6b5130,10dcf46b4d43ab3ade22beea2bf64482,(***ERROR***)] [rxMD5:126bfdf113a002f702714373ed26df4c,21b70d69058177d49b0c660f7ec3d794,10dcf46b4d43ab3ade22beea2bf64482] 
POC    9 TId: 0 ( B-SLICE, QP 13 ) [DT  0.015] [L0 8 4 0 12 ] [L1 12 8 4 0 ] [MD5:2472f52b713889f2982dd9ac4788437e,6685b5358fdfd390dd27eb20689c5c90,8f1c61a0151c4b08e7a2e73fed522b46,(***ERROR***)] [rxMD5:863508311ad5cacf9f278a19c6d22002,6fc8e4f9fae774326866801c3b1597a7,07f11148e0f7c3dce0531557f12afd02] 
POC   10 TId: 0 ( B-SLICE, QP 13 ) [DT  0.013] [L0 8 4 0 12 ] [L1 12 8 4 0 ] [MD5:8e84e3438ee03f9a693828dc91204243,c38814f258615434068995051306a146,3504d8515a173952e44a7e049d8c3ab5,(***ERROR***)] [rxMD5:597944357c2678bef73e6ba184593ee6,1aa3a5879c93c42d935f3413416f615b,3504d8515a173952e44a7e049d8c3ab5] 
POC   11 TId: 0 ( B-SLICE, QP 11 ) [DT  0.016] [L0 8 4 0 12 ] [L1 12 8 4 0 ] [MD5:81977331d69da0bd8badeeb7cf049b16,b6bb80c9f383ea60e909282634c1108b,b654b68ce3fc6a7e4930ea44455fc0da,(***ERROR***)] [rxMD5:94c0a3d1229f3abf0197ededd14c7fc1,a0df76491330735183e055bb806de7a9,b654b68ce3fc6a7e4930ea44455fc0da] 

It should be noted that tiles and dependent slices are used.

comment:3 follow-up: Changed 7 years ago by ksuehring

It should be noted that tiles and dependent slices are used.

Does turning off one or the other fix the issue?

comment:4 in reply to: ↑ 3 Changed 7 years ago by fbossen

Replying to ksuehring:

It should be noted that tiles and dependent slices are used.

Does turning off one or the other fix the issue?

Turning off dependent slices seems to fix the issue. Turning off tiles doesn't seem to.

comment:5 Changed 7 years ago by fbossen

  • Priority changed from minor to major

comment:6 Changed 7 years ago by ksuehring

  • Milestone HM-13.0 deleted

comment:7 Changed 7 years ago by karlsharman

There are various issues regarding the use of slices with either rate control or multiple QP searches.

In this case, the software was attempting to change the slice-level QP for a dependent slice segment. A fix has been added in r4116 to prevent this. Please can experts examine this fix (line 713 of TEncSlice.cpp, where a check is made that the slice is not a dependent slice).

When rate control is enabled and an attempt is made to adjust the QP of a dependent slice segment, the encoder will now abort rather than produce an invalid bit-stream.

There are also other issues regarding rate control (to be filed as separate tickets), such as calcCostISlice only being used on the first slice, and precompressSlice using functions that operate over the entire picture (including data from slices not yet coded). Some TODOs have been added to the software to highlight these.

comment:8 Changed 6 years ago by ksuehring

  • Milestone set to HM-16.2
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.

This list contains all users that will be notified about changes made to this ticket.

These roles will be notified: Reporter, Owner, Subscriber, Participant

  • David Flynn(Subscriber)
  • Frank Bossen(Subscriber, Participant)
  • jct-vc@…(Subscriber)
  • Karl Sharman(Participant)
  • karl.sharman@…(Always)
  • Karsten Suehring(Subscriber, Participant, Always)
  • Ricky Hsieh(Reporter)