MKV reconstruction fails CRC check

Issue #104 resolved
Gfy repo owner created an issue

http://www.srrdb.com/release/details/Friends.S04E01.1080p.BluRay.x264-TENEIGHTY

Although the .srs file is verified against the main movie file, reconstruction fails with a CRC mismatch and is visibly broken. More samples from this season have the same problem.

More than 4k bytes are different between the two samples. An example:

00001613: 00 01
0001DA31: 0B 60
0001DA32: 77 0B
0001E42F: 0B 54
0001E430: 77 7F
0001EE2D: 0B 75
0001EE2E: 77 DB

Notice the repeating values for the broken reconstructed sample. Full difference included as attachment.

Comments (11)

  1. Gfy reporter

    The sample rebuild of The.Vampire.Diaries.S02E01.1080p.BluRay.x264-FLHD also fails: correct file size but wrong CRC.

  2. Gfy reporter

    Burn.Notice.The.Fall.Of.Sam.Axe.2011.1080p.BluRay.x264-Japhson

    fc /b result:

    Comparing files japhson-bntfosa-1080p-sample.mkv and JAPHSON-BNTFOSA-1080P-SAMPLE-BROKEN.MKV
    00001610: 04 00
    00042DCD: FC 7F
    00042DCE: 3C FE
    00042DCF: 7D 80
    00042DD0: B2 01
    000435A5: FC 7F
    000435A6: 3C FE
    000435A7: 7D 80
    000435A8: B2 01
    
  3. Gfy reporter

    gMKVExtractGUI shows:

    good sample

    • "C:\Program Files\MKVToolNix\mkvextract.exe" --gui-mode --ui-language en tracks "D:\Burn.Notice.The.Fall.Of.Sam.Axe.2011.1080p.BluRay.x264-Japhson\Sample\japhson-bntfosa-1080p-sample.mkv" 0:"D:\Burn.Notice.The.Fall.Of.Sam.Axe.2011.1080p.BluRay.x264-Japhson\Sample\japhson-bntfosa-1080p-sample_track1_eng.avc" 1:"D:\Burn.Notice.The.Fall.Of.Sam.Axe.2011.1080p.BluRay.x264-Japhson\Sample\japhson-bntfosa-1080p-sample_track2_eng_DELAY 3ms.dts"
    • Extracting track 0 with the CodecID 'V_MPEG4/ISO/AVC' to the file 'D:\Burn.Notice.The.Fall.Of.Sam.Axe.2011.1080p.BluRay.x264-Japhson\Sample\japhson-bntfosa-1080p-sample_track1_eng.avc'. Container format: AVC/h.264 elementary stream
    • Extracting track 1 with the CodecID 'A_DTS' to the file 'D:\Burn.Notice.The.Fall.Of.Sam.Axe.2011.1080p.BluRay.x264-Japhson\Sample\japhson-bntfosa-1080p-sample_track2_eng_DELAY 3ms.dts'. Container format: Digital Theater System (DTS)
    • GUI#progress 3%
    • GUI#progress 5%

    broken reconstructed sample

    • "C:\Program Files\MKVToolNix\mkvextract.exe" --gui-mode --ui-language en tracks "D:\Burn.Notice.The.Fall.Of.Sam.Axe.2011.1080p.BluRay.x264-Japhson\Sample\japhson-bntfosa-1080p-sample-BROKEN.mkv" 0:"D:\Burn.Notice.The.Fall.Of.Sam.Axe.2011.1080p.BluRay.x264-Japhson\Sample\japhson-bntfosa-1080p-sample-BROKEN_track1_eng.avc"
    • Extracting track 0 with the CodecID 'V_MPEG4/ISO/AVC' to the file 'D:\Burn.Notice.The.Fall.Of.Sam.Axe.2011.1080p.BluRay.x264-Japhson\Sample\japhson-bntfosa-1080p-sample-BROKEN_track1_eng.avc'. Container format: AVC/h.264 elementary stream
    • GUI#progress 3%
    • GUI#warning Track 0: NAL too big. Size according to header field: 3519159383, available bytes in packet: 262140. This NAL is defect and will be skipped.
    • GUI#warning Track 0: NAL too big. Size according to header field: 2420664119, available bytes in packet: 65532. This NAL is defect and will be skipped.
  4. zoke

    Battle.Royale.2000.Directors.Cut.1080p.BluRay.x264-TENEIGHTY fails

    Battle.Royale.2000.Directors.Cut.1080p.BluRay.x264-TENEIGHTY/Sample$ srs.py teneighty-battle.royale.directors.sample.srs ../teneighty-battle.royale.directors.rar 
    SRS Load Complete...          Elapsed Time: 0.02s
    Track Extraction Complete...  Elapsed Time: 0.33s
    Rebuild Complete...           Elapsed Time: 0.52s
    
    File Details:   Size           CRC
                    -------------  --------
    Expected    :      87.025.329  69334F2F
    Actual      :      87.025.329  F7765F21
    
    This is a known issue for LOL xvid releases.
    Use -k to keep the result for investigation.
    
    Rebuild failed for sample: teneighty-battle.royale.directors.sample.mkv
    

    Adding this for informational purposes.

  5. Gfy reporter

    https://www.matroska.org/technical/specs/index.html

    ContentCompAlgo

    The compression algorithm used. Algorithms that have been specified so far are: 0 - zlib, 1 - bzlib, 2 - lzo1x 3 - Header Stripping

    ContentCompSettings

    Settings that might be needed by the decompressor. For Header Stripping (ContentCompAlgo=3), the bytes that were removed from the beggining of each frames of the track.

  6. Gfy reporter

    Version 0.5 is able to successfully reconstruct the sample from itself.

    PS Burn.Notice.The.Fall.Of.Sam.Axe.2011.1080p.BluRay.x264-Japhson> .\srs.exe .\broken.srs .\orig.mkv
    NOTE: install NumPy to speed up the reconstruction of RARs
          with a Recovery Record.
    SRS Load Complete...          Elapsed Time: 0.00s
    Track Location Complete...    Elapsed Time: 0.25s
    Track Extraction Complete...  Elapsed Time: 0.51s
    Warning: File .\broken.mkv already exists.
    Do you wish to continue? (Y/N): y
    Rebuild Complete...           Elapsed Time: 2.89s
    
    File Details:   Size           CRC
                    -------------  --------
    Expected    :      50 060 045  12668740
    Actual      :      50 060 045  12668740
    
    
    Successfully rebuilt sample: broken.mkv
    
  7. Gfy reporter

    MKV with header compression to sample without header compression works. (since 1.3 preview)

    MKV with header compression to sample with header compression is overwriting the track data with the stripped header information when this is not needed.

    header_compression.png

  8. Log in to comment