Something is wrong in DTS after commit 0cdb464 Invalid DTS

Issue #370 closed
rossi mario created an issue

Something is wrong in DTS after commit https://bitbucket.org/multicoreware/x265/commits/0cdb464618ee43674de02557910a023522cc9a9c Invalid DTS

before (HEVC encoder version 2.5+22-8db95a1da9f8)

#!
ffmpeg -hide_banner -i "/home/mc/rec/temp/test.mkv"  -t 30.0 -an -c:v libx265 -crf:v 24.6  -x265-params 'ssim=1:psnr=1' -preset fast  -pix_fmt yuv420p10le  -f matroska -map_metadata -1  "/home/mc/rec/temp/test.x265-10b.mkv"
Input #0, matroska,webm, from '/home/mc/rec/temp/test.mkv':
  Metadata:
    encoder         : libmkv 0.6.5
    TITLE           : 15767
  Duration: 00:06:32.76, start: 0.000000, bitrate: 1370 kb/s
    Stream #0:0(eng): Video: h264 (Main), yuv420p(tv, smpte170m/bt470bg/bt709, progressive), 716x434 [SAR 64:45 DAR 22912:9765], SAR 209:147 DAR 74822:31899, 25 fps, 25 tbr, 1k tbn, 180k tbc (default)
    Stream #0:1(ita): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> hevc (libx265))
Press [q] to stop, [?] for help
x265 [info]: HEVC encoder version 2.5+22-8db95a1da9f8
x265 [info]: build info [Linux][GCC 6.3.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [warning]: --psnr used with psy on: results will be invalid!
x265 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x265 [info]: Main 10 profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 16 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 4 / wpp(7 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-24.6 / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 rskip signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing deblock sao
Output #0, matroska, to '/home/mc/rec/temp/test.x265-10b.mkv':
  Metadata:
    encoder         : Lavf57.82.101
    Stream #0:0: Video: hevc (libx265), yuv420p10le, 716x434 [SAR 209:147 DAR 74822:31899], q=2-31, 25 fps, 1k tbn, 25 tbc (default)
    Metadata:
      encoder         : Lavc57.106.101 libx265
frame=  749 fps= 63 q=-0.0 Lsize=    1838kB time=00:00:29.88 bitrate= 503.8kbits/s speed=2.53x    
video:1829kB audio:0kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 0.455254%
x265 [info]: frame I:     16, Avg QP:23.83  kb/s: 2650.50   PSNR Mean: Y:43.606 U:50.379 V:50.647  SSIM Mean: 0.978828 (16.742dB)
x265 [info]: frame P:    153, Avg QP:24.85  kb/s: 967.01    PSNR Mean: Y:43.040 U:49.657 V:49.755  SSIM Mean: 0.976317 (16.256dB)
x265 [info]: frame B:    580, Avg QP:29.17  kb/s: 316.70    PSNR Mean: Y:42.210 U:49.257 V:49.306  SSIM Mean: 0.971663 (15.476dB)
x265 [info]: Weighted P-Frames: Y:7.2% UV:1.3%
x265 [info]: consecutive B-frames: 11.2% 3.6% 0.0% 1.2% 84.0% 

encoded 749 frames in 11.72s (63.90 fps), 499.40 kb/s, Avg QP:28.17, Global PSNR: 44.156, SSIM Mean Y: 0.9727665 (15.649 dB)

after (HEVC encoder version 2.5+27-0e168bdeb48b):

#!
ffmpeg -hide_banner -i "/home/mc/rec/temp/test.mkv"  -t 30.0 -an -c:v libx265 -crf:v 24.6  -x265-params 'ssim=1:psnr=1' -preset fast  -pix_fmt yuv420p10le  -f matroska -map_metadata -1  "/home/mc/rec/temp/test.x265-10b._2_.mkv"
Input #0, matroska,webm, from '/home/mc/rec/temp/test.mkv':
  Metadata:
    encoder         : libmkv 0.6.5
    TITLE           : 15767
  Duration: 00:06:32.76, start: 0.000000, bitrate: 1370 kb/s
    Stream #0:0(eng): Video: h264 (Main), yuv420p(tv, smpte170m/bt470bg/bt709, progressive), 716x434 [SAR 64:45 DAR 22912:9765], SAR 209:147 DAR 74822:31899, 25 fps, 25 tbr, 1k tbn, 180k tbc (default)
    Stream #0:1(ita): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> hevc (libx265))
Press [q] to stop, [?] for help
x265 [info]: HEVC encoder version 2.5+27-0e168bdeb48b
x265 [info]: build info [Linux][GCC 6.3.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [warning]: --psnr used with psy on: results will be invalid!
x265 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x265 [info]: Main 10 profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 16 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 4 / wpp(7 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-24.6 / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 rskip signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing deblock sao
Output #0, matroska, to '/home/mc/rec/temp/test.x265-10b._2_.mkv':
  Metadata:
    encoder         : Lavf57.82.101
    Stream #0:0: Video: hevc (libx265), yuv420p10le, 716x434 [SAR 209:147 DAR 74822:31899], q=2-31, 25 fps, 1k tbn, 25 tbc (default)
    Metadata:
      encoder         : Lavc57.106.101 libx265
[matroska @ 0x55a9c63b94e0] Invalid DTS: 80 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 120 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 160 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 200 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 240 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 280 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 320 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 360 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 400 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 440 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 480 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 520 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 560 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 600 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 640 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 680 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 720 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 760 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 800 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 840 PTS: 0 in output stream 0:0, replacing by guess
[matroska @ 0x55a9c63b94e0] Invalid DTS: 880 PTS: 0 in output stream 0:0, replacing by guess

Comments (9)

  1. rossi mario reporter

    Thanks for reply.

    With (and previous) encoder version 2.5+22-8db95a1da9f8 (libx265) all works without problems.

    With the new versions and same ffmpeg, invalid DTS appears with all the videos.

    Here a short test.mkv 3.12 MB https://www.dropbox.com/s/bfg5bzsry8wzvyi/test.zip?dl=0

    Perhaps the problem is created by another commit, i don't now. I'm still using 2.5+22-8db95a1da9f8 that works well.

    Debian 9 64bit.

  2. rossi mario reporter

    More investigations:

    HEVC encoder version 2.5+22-8db95a1da9f8 OK.

    HEVC encoder version 2.5+23-30998ebc3a3b OK.

    HEVC encoder version 2.5+24-0cdb464618ee Invalid DTS.

    All the versions builded now.

    so certainly 0cdb464 is the problem.

    Details:

    #!
    
    mc@dhcppc1:~/rec/temp/mc-libx265-1/x265$ hg pull && hg up -c 8db95a1
    pulling from https://bitbucket.org/multicoreware/x265
    searching for changes
    no changes found
    6 files updated, 0 files merged, 0 files removed, 0 files unresolved
    
    mc@dhcppc1:~/rec/temp/mc-libx265-1$ x265 -V
    x265 [info]: HEVC encoder version 2.5+22-8db95a1da9f8
    x265 [info]: build info [Linux][GCC 6.3.0][64 bit] 8bit+10bit
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    
    $ clear
    cd "/home/mc/torrent"
    $ $ ffmpeg -hide_banner -i "/home/mc/torrent/ac36-ch.mkv"  -t 15.0 -an -c:v libx265 -crf:v 24.6  -x265-params 'ssim=1:psnr=1' -preset medium  -pix_fmt yuv420p10le  -f matroska -map_metadata -1  "/home/mc/torrent/ac36-ch.x265-10b.mkv"
    Input #0, matroska,webm, from '/home/mc/torrent/ac36-ch.mkv':
      Metadata:
        encoder         : libmkv 0.6.5
        TITLE           : 15767
      Duration: 00:06:32.76, start: 0.000000, bitrate: 1370 kb/s
        Stream #0:0(eng): Video: h264 (Main), yuv420p(tv, smpte170m/bt470bg/bt709, progressive), 716x434 [SAR 64:45 DAR 22912:9765], SAR 209:147 DAR 74822:31899, 25 fps, 25 tbr, 1k tbn, 180k tbc (default)
        Stream #0:1(ita): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> hevc (libx265))
    Press [q] to stop, [?] for help
    x265 [info]: HEVC encoder version 2.5+22-8db95a1da9f8
    x265 [info]: build info [Linux][GCC 6.3.0][64 bit] 10bit
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    x265 [warning]: --psnr used with psy on: results will be invalid!
    x265 [warning]: --tune psnr should be used if attempting to benchmark psnr!
    x265 [info]: Main 10 profile, Level-3 (Main tier)
    x265 [info]: Thread pool created using 16 threads
    x265 [info]: Slices                              : 1
    x265 [info]: frame threads / pool features       : 4 / wpp(7 rows)
    x265 [warning]: Source height < 720p; disabling lookahead-slices
    x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
    x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
    x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
    x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
    x265 [info]: References / ref-limit  cu / depth  : 3 / on / on
    x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
    x265 [info]: Rate Control / qCompress            : CRF-24.6 / 0.60
    x265 [info]: tools: rd=3 psy-rd=2.00 rskip signhide tmvp strong-intra-smoothing
    x265 [info]: tools: deblock sao
    Output #0, matroska, to '/home/mc/torrent/ac36-ch.x265-10b.mkv':
      Metadata:
        encoder         : Lavf57.82.101
        Stream #0:0: Video: hevc (libx265), yuv420p10le, 716x434 [SAR 209:147 DAR 74822:31899], q=2-31, 25 fps, 1k tbn, 25 tbc (default)
        Metadata:
          encoder         : Lavc57.106.101 libx265
    frame=  374 fps= 57 q=-0.0 Lsize=     614kB time=00:00:14.88 bitrate= 338.2kbits/s speed=2.28x    
    video:609kB audio:0kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 0.905112%
    x265 [info]: frame I:     11, Avg QP:23.16  kb/s: 2217.71   PSNR Mean: Y:44.560 U:51.137 V:51.312  SSIM Mean: 0.980592 (17.120dB)
    x265 [info]: frame P:     97, Avg QP:23.65  kb/s: 609.45    PSNR Mean: Y:44.853 U:50.671 V:50.991  SSIM Mean: 0.981697 (17.375dB)
    x265 [info]: frame B:    266, Avg QP:28.20  kb/s: 153.69    PSNR Mean: Y:44.516 U:50.528 V:50.827  SSIM Mean: 0.980760 (17.158dB)
    x265 [info]: Weighted P-Frames: Y:10.3% UV:2.1%
    x265 [info]: consecutive B-frames: 14.8% 4.6% 11.1% 58.3% 11.1% 
    
    encoded 374 frames in 6.50s (57.52 fps), 332.60 kb/s, Avg QP:26.87, Global PSNR: 46.137, SSIM Mean Y: 0.9809978 (17.212 dB)
    $ 
    
    OK
    ---------------
    
    mc@dhcppc1:~/rec/temp/mc-libx265-1/x265$ hg pull && hg up -c 30998eb
    pulling from https://bitbucket.org/multicoreware/x265
    searching for changes
    no changes found
    1 files updated, 0 files merged, 0 files removed, 0 files unresolved
    
    mc@dhcppc1:~/rec/temp/mc-libx265-1$ x265 -V
    x265 [info]: HEVC encoder version 2.5+23-30998ebc3a3b
    x265 [info]: build info [Linux][GCC 6.3.0][64 bit] 8bit+10bit
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    
    $ clear
    cd "/home/mc/torrent"
    $ $ ffmpeg -hide_banner -i "/home/mc/torrent/ac36-ch.mkv"  -t 15.0 -an -c:v libx265 -crf:v 24.6  -x265-params 'ssim=1:psnr=1' -preset medium  -pix_fmt yuv420p10le  -f matroska -map_metadata -1  "/home/mc/torrent/ac36-ch.x265-10b.mkv"
    Input #0, matroska,webm, from '/home/mc/torrent/ac36-ch.mkv':
      Metadata:
        encoder         : libmkv 0.6.5
        TITLE           : 15767
      Duration: 00:06:32.76, start: 0.000000, bitrate: 1370 kb/s
        Stream #0:0(eng): Video: h264 (Main), yuv420p(tv, smpte170m/bt470bg/bt709, progressive), 716x434 [SAR 64:45 DAR 22912:9765], SAR 209:147 DAR 74822:31899, 25 fps, 25 tbr, 1k tbn, 180k tbc (default)
        Stream #0:1(ita): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> hevc (libx265))
    Press [q] to stop, [?] for help
    x265 [info]: HEVC encoder version 2.5+23-30998ebc3a3b
    x265 [info]: build info [Linux][GCC 6.3.0][64 bit] 10bit
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    x265 [warning]: --psnr used with psy on: results will be invalid!
    x265 [warning]: --tune psnr should be used if attempting to benchmark psnr!
    x265 [info]: Main 10 profile, Level-3 (Main tier)
    x265 [info]: Thread pool created using 16 threads
    x265 [info]: Slices                              : 1
    x265 [info]: frame threads / pool features       : 4 / wpp(7 rows)
    x265 [warning]: Source height < 720p; disabling lookahead-slices
    x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
    x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
    x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
    x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
    x265 [info]: References / ref-limit  cu / depth  : 3 / on / on
    x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
    x265 [info]: Rate Control / qCompress            : CRF-24.6 / 0.60
    x265 [info]: tools: rd=3 psy-rd=2.00 rskip signhide tmvp strong-intra-smoothing
    x265 [info]: tools: deblock sao
    Output #0, matroska, to '/home/mc/torrent/ac36-ch.x265-10b.mkv':
      Metadata:
        encoder         : Lavf57.82.101
        Stream #0:0: Video: hevc (libx265), yuv420p10le, 716x434 [SAR 209:147 DAR 74822:31899], q=2-31, 25 fps, 1k tbn, 25 tbc (default)
        Metadata:
          encoder         : Lavc57.106.101 libx265
    frame=  374 fps= 57 q=-0.0 Lsize=     614kB time=00:00:14.88 bitrate= 338.2kbits/s speed=2.27x    
    video:609kB audio:0kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 0.905112%
    x265 [info]: frame I:     11, Avg QP:23.16  kb/s: 2217.71   PSNR Mean: Y:44.560 U:51.137 V:51.312  SSIM Mean: 0.980592 (17.120dB)
    x265 [info]: frame P:     97, Avg QP:23.65  kb/s: 609.45    PSNR Mean: Y:44.853 U:50.671 V:50.991  SSIM Mean: 0.981697 (17.375dB)
    x265 [info]: frame B:    266, Avg QP:28.20  kb/s: 153.69    PSNR Mean: Y:44.516 U:50.528 V:50.827  SSIM Mean: 0.980760 (17.158dB)
    x265 [info]: Weighted P-Frames: Y:10.3% UV:2.1%
    x265 [info]: consecutive B-frames: 14.8% 4.6% 11.1% 58.3% 11.1% 
    
    encoded 374 frames in 6.53s (57.27 fps), 332.60 kb/s, Avg QP:26.87, Global PSNR: 46.137, SSIM Mean Y: 0.9809978 (17.212 dB)
    $ 
    
    OK
    ------------------------------------------
    
    
    mc@dhcppc1:~/rec/temp/mc-libx265-1/x265$ hg pull && hg up -c 0cdb464
    pulling from https://bitbucket.org/multicoreware/x265
    searching for changes
    no changes found
    2 files updated, 0 files merged, 0 files removed, 0 files unresolved
    
    
    mc@dhcppc1:~/rec/temp/mc-libx265-1$ x265 -V
    x265 [info]: HEVC encoder version 2.5+24-0cdb464618ee
    x265 [info]: build info [Linux][GCC 6.3.0][64 bit] 8bit+10bit
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    
    
    $ clear
    cd "/home/mc/torrent"
    $ $ ffmpeg -hide_banner -i "/home/mc/torrent/ac36-ch.mkv"  -t 15.0 -an -c:v libx265 -crf:v 24.6  -x265-params 'ssim=1:psnr=1' -preset medium  -pix_fmt yuv420p10le  -f matroska -map_metadata -1  "/home/mc/torrent/ac36-ch.x265-10b.mkv"
    Input #0, matroska,webm, from '/home/mc/torrent/ac36-ch.mkv':
      Metadata:
        encoder         : libmkv 0.6.5
        TITLE           : 15767
      Duration: 00:06:32.76, start: 0.000000, bitrate: 1370 kb/s
        Stream #0:0(eng): Video: h264 (Main), yuv420p(tv, smpte170m/bt470bg/bt709, progressive), 716x434 [SAR 64:45 DAR 22912:9765], SAR 209:147 DAR 74822:31899, 25 fps, 25 tbr, 1k tbn, 180k tbc (default)
        Stream #0:1(ita): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> hevc (libx265))
    Press [q] to stop, [?] for help
    x265 [info]: HEVC encoder version 2.5+24-0cdb464618ee
    x265 [info]: build info [Linux][GCC 6.3.0][64 bit] 10bit
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    x265 [warning]: --psnr used with psy on: results will be invalid!
    x265 [warning]: --tune psnr should be used if attempting to benchmark psnr!
    x265 [info]: Main 10 profile, Level-3 (Main tier)
    x265 [info]: Thread pool created using 16 threads
    x265 [info]: Slices                              : 1
    x265 [info]: frame threads / pool features       : 4 / wpp(7 rows)
    x265 [warning]: Source height < 720p; disabling lookahead-slices
    x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
    x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
    x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
    x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
    x265 [info]: References / ref-limit  cu / depth  : 3 / on / on
    x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
    x265 [info]: Rate Control / qCompress            : CRF-24.6 / 0.60
    x265 [info]: tools: rd=3 psy-rd=2.00 rskip signhide tmvp strong-intra-smoothing
    x265 [info]: tools: deblock sao
    Output #0, matroska, to '/home/mc/torrent/ac36-ch.x265-10b.mkv':
      Metadata:
        encoder         : Lavf57.82.101
        Stream #0:0: Video: hevc (libx265), yuv420p10le, 716x434 [SAR 209:147 DAR 74822:31899], q=2-31, 25 fps, 1k tbn, 25 tbc (default)
        Metadata:
          encoder         : Lavc57.106.101 libx265
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 80 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 120 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 160 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 200 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 240 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 280 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 320 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 360 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 400 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 440 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 480 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 520 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 560 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 600 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 640 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 680 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 720 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 760 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 800 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 840 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 880 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 920 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 960 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1000 PTS: 0 in output stream 0:0, replacing by guess5x    
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1040 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1080 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1120 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1160 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1200 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1240 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1280 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1320 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1360 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1400 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1440 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1480 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1520 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1560 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1600 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1640 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1680 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1720 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1760 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1800 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1840 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1880 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1920 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 1960 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2000 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2040 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2080 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2120 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2160 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2200 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2240 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2280 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2320 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2360 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2400 PTS: 0 in output stream 0:0, replacing by guess5x    
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2440 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2480 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2520 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2560 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2600 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2640 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2680 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2720 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2760 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2800 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2840 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2880 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2920 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 2960 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3000 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3040 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3080 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3120 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3160 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3200 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3240 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3280 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3320 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3360 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3400 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3440 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3480 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3520 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3560 PTS: 0 in output stream 0:0, replacing by guess8x    
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3600 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3640 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3680 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3720 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3760 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3800 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3840 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3880 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3920 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 3960 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4000 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4040 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4080 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4120 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4160 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4200 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4240 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4280 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4320 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4360 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4400 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4440 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4480 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4520 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4560 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4600 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4640 PTS: 0 in output stream 0:0, replacing by guess1x    
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4680 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4720 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4760 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4800 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4840 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4880 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4920 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 4960 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5000 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5040 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5080 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5120 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5160 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5200 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5240 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5280 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5320 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5360 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5400 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5440 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5480 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5520 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5560 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5600 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5640 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5680 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5720 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5760 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5800 PTS: 0 in output stream 0:0, replacing by guess62x    
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5840 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5880 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5920 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 5960 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6000 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6040 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6080 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6120 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6160 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6200 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6240 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6280 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6320 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6360 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6400 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6440 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6480 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6520 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6560 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6600 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6640 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6680 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6720 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6760 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6800 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6840 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6880 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6920 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 6960 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7000 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7040 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7080 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7120 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7160 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7200 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7240 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7280 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7320 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7360 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7400 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7440 PTS: 0 in output stream 0:0, replacing by guess4x    
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7480 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7520 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7560 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7600 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7640 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7680 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7720 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7760 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7800 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7840 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7880 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7920 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 7960 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8000 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8040 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8080 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8120 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8160 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8200 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8240 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8280 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8320 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8360 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8400 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8440 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8480 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8520 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8560 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8600 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8640 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8680 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8720 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8760 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8800 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8840 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8880 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8920 PTS: 0 in output stream 0:0, replacing by guess4x    
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 8960 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9000 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9040 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9080 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9120 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9160 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9200 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9240 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9280 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9320 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9360 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9400 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9440 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9480 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9520 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9560 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9600 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9640 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9680 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9720 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9760 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9800 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9840 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9880 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9920 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 9960 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10000 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10040 PTS: 0 in output stream 0:0, replacing by guessx    
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10080 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10120 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10160 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10200 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10240 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10280 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10320 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10360 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10400 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10440 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10480 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10520 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10560 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10600 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10640 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10680 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10720 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10760 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10800 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10840 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10880 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10920 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 10960 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11000 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11040 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11080 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11120 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11160 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11200 PTS: 0 in output stream 0:0, replacing by guess1x    
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11240 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11280 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11320 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11360 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11400 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11440 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11480 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11520 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11560 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11600 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11640 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11680 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11720 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11760 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11800 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11840 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11880 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11920 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 11960 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12000 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12040 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12080 PTS: 0 in output stream 0:0, replacing by guessx    
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12120 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12160 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12200 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12240 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12280 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12320 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12360 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12400 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12440 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12480 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12520 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12560 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12600 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12640 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12680 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12720 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12760 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12800 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12840 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12880 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12920 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 12960 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13000 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13040 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13080 PTS: 0 in output stream 0:0, replacing by guess6x    
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13120 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13160 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13200 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13240 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13280 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13320 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13360 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13400 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13440 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13480 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13520 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13560 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13600 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13640 PTS: 0 in output stream 0:0, replacing by guess
    [matroska @ 0x55b895f0a4e0] Invalid DTS: 13680 PTS: 0 in output stream 0:0, replacing by guess
    frame=  374 fps= 57 q=-0.0 Lsize=     614kB time=00:00:14.88 bitrate= 338.2kbits/s speed=2.26x    
    video:609kB audio:0kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 0.904310%
    x265 [info]: frame I:     11, Avg QP:23.16  kb/s: 2217.71   PSNR Mean: Y:44.560 U:51.137 V:51.312  SSIM Mean: 0.980592 (17.120dB)
    x265 [info]: frame P:     97, Avg QP:23.65  kb/s: 609.45    PSNR Mean: Y:44.853 U:50.671 V:50.991  SSIM Mean: 0.981697 (17.375dB)
    x265 [info]: frame B:    266, Avg QP:28.20  kb/s: 153.69    PSNR Mean: Y:44.516 U:50.528 V:50.827  SSIM Mean: 0.980760 (17.158dB)
    x265 [info]: Weighted P-Frames: Y:10.3% UV:2.1%
    x265 [info]: consecutive B-frames: 14.8% 4.6% 11.1% 58.3% 11.1% 
    
    encoded 374 frames in 6.55s (57.06 fps), 332.60 kb/s, Avg QP:26.87, Global PSNR: 46.137, SSIM Mean Y: 0.9809978 (17.212 dB)
    $ 
    
    Invalid DTS
    
  3. Ma0

    For curiosity I've compiled ffmpeg with libx265 (for Windows) and tested your command line -- for me it works OK:

    f:\speed\is>ffmpeg -i test.mkv -an -c:v libx265 -crf:v 24.6  -x265-params 'ssim=1:psnr=1' -preset fast  -pix_fmt yuv420p10le  -f
     matroska -map_metadata -1  test.x265-10b._3_.mkv
    ffmpeg version N-87867-g0655810072 Copyright (c) 2000-2017 the FFmpeg developers
      built with gcc 7.2.0 (GCC)
      configuration: --enable-gpl --enable-libx265
      libavutil      55. 79.100 / 55. 79.100
      libavcodec     57.108.100 / 57.108.100
      libavformat    57. 84.100 / 57. 84.100
      libavdevice    57. 11.100 / 57. 11.100
      libavfilter     6.108.100 /  6.108.100
      libswscale      4.  9.100 /  4.  9.100
      libswresample   2. 10.100 /  2. 10.100
      libpostproc    54.  8.100 / 54.  8.100
    Input #0, matroska,webm, from 'test.mkv':
      Metadata:
        ENCODER         : Lavf57.25.100
      Duration: 00:00:15.24, start: 0.200000, bitrate: 1103 kb/s
        Stream #0:0: Video: h264 (Main), yuv420p(tv, smpte170m/bt470bg/bt709, progressive), 716x434 [SAR 64:45 DAR 22912:9765], SAR
    1:1 DAR 358:217, 25 fps, 25 tbr, 1k tbn, 180k tbc (default)
        Metadata:
          DURATION        : 00:00:15,240000000
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> hevc (libx265))
    Press [q] to stop, [?] for help
    x265 [info]: HEVC encoder version 2.5+27-0e168bdeb48b
    x265 [info]: build info [Windows][GCC 7.2.0][64 bit] 10bit
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    x265 [info]: Main 10 profile, Level-3 (Main tier)
    x265 [info]: Thread pool created using 4 threads
    x265 [info]: Slices                              : 1
    x265 [info]: frame threads / pool features       : 2 / wpp(7 rows)
    x265 [warning]: Source height < 720p; disabling lookahead-slices
    x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
    x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
    x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
    x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
    x265 [info]: References / ref-limit  cu / depth  : 3 / on / on
    x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
    x265 [info]: Rate Control / qCompress            : CRF-24.6 / 0.60
    x265 [info]: tools: rd=2 psy-rd=2.00 rskip signhide tmvp fast-intra
    x265 [info]: tools: strong-intra-smoothing deblock sao
    Output #0, matroska, to 'test.x265-10b._3_.mkv':
      Metadata:
        encoder         : Lavf57.84.100
        Stream #0:0: Video: hevc (libx265), yuv420p10le, 716x434 [SAR 1:1 DAR 358:217], q=2-31, 25 fps, 1k tbn, 25 tbc (default)
        Metadata:
          encoder         : Lavc57.108.100 libx265
    frame=  375 fps= 50 q=-0.0 Lsize=     569kB time=00:00:14.92 bitrate= 312.4kbits/s speed=   2x
    video:563kB audio:0kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 0.975602%
    x265 [info]: frame I:     10, Avg QP:23.23  kb/s: 2210.10
    x265 [info]: frame P:     78, Avg QP:23.85  kb/s: 625.73
    x265 [info]: frame B:    287, Avg QP:28.08  kb/s: 153.96
    x265 [info]: Weighted P-Frames: Y:6.4% UV:1.3%
    x265 [info]: consecutive B-frames: 14.8% 4.5% 0.0% 1.1% 79.5%
    
    encoded 375 frames in 7.41s (50.60 fps), 306.92 kb/s, Avg QP:27.07
    
  4. rossi mario reporter

    Ok, rebuilded the same version of ffmpeg (ffmpeg version N-87381-g16adbfe60c), with last x265 0e168bd shared lib, and now all works. Strange, usually only rebuild ffmpeg when libx265 soname changes. Obviously with that commit it was necessary. Sorry and thanks. FIXED.

    Builded also ffmpeg 3.4, and all works fine

    #!
    
    $ ffmpeg
    ffmpeg version n3.4 Copyright (c) 2000-2017 the FFmpeg developers
      built with gcc 6.3.0 (Debian 6.3.0-18) 20170516
      configuration: --extra-cflags='-I../static/include -O3 -mtune=generic -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-L../static/lib -Wl,-z,relro' --enable-gpl --enable-nonfree --enable-version3 --enable-libvorbis --enable-pthreads --enable-libxvid --enable-libmp3lame --enable-postproc --enable-libgsm --enable-libtheora --enable-libx264 --enable-libspeex --disable-stripping --enable-libopenjpeg --enable-libvpx --enable-librtmp --enable-avfilter --enable-frei0r --enable-libfreetype --enable-libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --disable-ffserver --disable-shared --enable-static --enable-libfdk-aac --enable-libass --enable-libvidstab --enable-opencl --enable-libiec61883 --enable-libtwolame --disable-vaapi --enable-libx265 --enable-libsoxr --enable-librubberband --enable-libzimg
      libavutil      55. 78.100 / 55. 78.100
      libavcodec     57.107.100 / 57.107.100
      libavformat    57. 83.100 / 57. 83.100
      libavdevice    57. 10.100 / 57. 10.100
      libavfilter     6.107.100 /  6.107.100
      libswscale      4.  8.100 /  4.  8.100
      libswresample   2.  9.100 /  2.  9.100
      libpostproc    54.  7.100 / 54.  7.100
    
    
    
    
    $ ffmpeg -hide_banner -i "/home/mc/test/ac36-ch.mkv"  -t 10.0 -an -c:v libx265 -crf:v 24.6  -x265-params 'ref=2:limit-refs=3:rd=3:psy-rd=2:bframes=3:b-adapt=2:weightp=1:aq-mode=3:aq-strength=0.9:aq-motion=1:sao=0:rc-lookahead=20:deblock=-1\:-4:psnr=1:vbv-bufsize=30000:vbv-maxrate=600:dynamic-rd=1.55:ssim-rd=1' -preset superfast  -pix_fmt yuv420p10le  -f matroska -map_metadata -1  "/home/mc/test/ac36-ch.x265-10b._2_.mkv"
    Input #0, matroska,webm, from '/home/mc/torrent/ac36-ch.mkv':
      Metadata:
        encoder         : libmkv 0.6.5
        TITLE           : 15767
      Duration: 00:06:32.76, start: 0.000000, bitrate: 1370 kb/s
        Stream #0:0(eng): Video: h264 (Main), yuv420p(tv, smpte170m/bt470bg/bt709, progressive), 716x434 [SAR 64:45 DAR 22912:9765], SAR 209:147 DAR 74822:31899, 25 fps, 25 tbr, 1k tbn, 180k tbc (default)
        Stream #0:1(ita): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> hevc (libx265))
    Press [q] to stop, [?] for help
    x265 [info]: HEVC encoder version 2.5+27-0e168bdeb48b
    x265 [info]: build info [Linux][GCC 6.3.0][64 bit] 10bit
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    x265 [warning]: --psnr used with AQ on: results will be invalid!
    x265 [warning]: --tune psnr should be used if attempting to benchmark psnr!
    x265 [info]: Main 10 profile, Level-3 (Main tier)
    x265 [info]: Thread pool created using 16 threads
    x265 [info]: Slices                              : 1
    x265 [info]: frame threads / pool features       : 4 / wpp(14 rows)
    x265 [warning]: Source height < 720p; disabling lookahead-slices
    x265 [info]: Coding QT: max CU size, min CU size : 32 / 8
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge         : hex / 57 / 1 / 2
    x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
    x265 [info]: Lookahead / bframes / badapt        : 20 / 3 / 2
    x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
    x265 [info]: References / ref-limit  cu / depth  : 2 / on / on
    x265 [info]: AQ: mode / str / qg-size / cu-tree  : 3 / 0.9 / 32 / 1
    x265 [info]: Rate Control / qCompress            : CRF-24.6 / 0.60
    x265 [info]: VBV/HRD buffer / max-rate / init    : 30000 / 600 / 0.900
    x265 [info]: tools: rd=3 dynamic-rd=1.55 ssim-rd early-skip rskip signhide tmvp
    x265 [info]: tools: fast-intra strong-intra-smoothing deblock(tC=-1:B=-4)
    Output #0, matroska, to '/home/mc/torrent/ac36-ch.x265-10b._2_.mkv':
      Metadata:
        encoder         : Lavf57.83.100
        Stream #0:0: Video: hevc (libx265), yuv420p10le, 716x434 [SAR 209:147 DAR 74822:31899], q=2-31, 25 fps, 1k tbn, 25 tbc (default)
        Metadata:
          encoder         : Lavc57.107.100 libx265
    frame=  249 fps= 93 q=-0.0 Lsize=     328kB time=00:00:09.88 bitrate= 272.1kbits/s speed=3.71x    
    video:324kB audio:0kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 1.409654%
    x265 [info]: frame I:      5, Avg QP:21.04  kb/s: 2590.96   PSNR Mean: Y:46.576 U:52.605 V:53.017
    x265 [info]: frame P:     66, Avg QP:23.23  kb/s: 559.52    PSNR Mean: Y:45.193 U:50.860 V:51.370
    x265 [info]: frame B:    178, Avg QP:29.40  kb/s: 90.95     PSNR Mean: Y:45.036 U:50.792 V:51.278
    x265 [info]: Weighted P-Frames: Y:7.6% UV:1.5%
    x265 [info]: consecutive B-frames: 11.3% 2.8% 9.9% 76.1% 
    
    encoded 249 frames in 2.63s (94.67 fps), 265.35 kb/s, Avg QP:27.60, Global PSNR: 46.604
    

    Close this issue.

  5. Log in to comment