Opened 11 months ago

Last modified 11 months ago

#6979 new defect

Application provided invalid, non monotonically increasing dts to muxer in stream 2: 23309 >= 23226 av_interleaved_write_frame(): Invalid argument

Reported by: kayson Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: mkv pgssub
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Having this error on Ubuntu 17.10 with ffmpeg version 3.3.4-2

The sample file is ~25GB so I don't have a place to upload it. I tried seeking to the problem area (~43:00) with this command:

ffmpeg -y -ss 00:43:00 -t 30 -i problem.mkv -c copy test_nonmonotonic_dts.mkv

But then I get the following error-

[matroska @ 0x55d638320d20] failed to avoid negative pts -83 in stream 0.
Try -avoid_negative_ts 1 as a possible workaround.
[matroska @ 0x55d638320d20] failed to avoid negative pts -41 in stream 0.
Try -avoid_negative_ts 1 as a possible workaround.
[matroska @ 0x55d638320d20] Non-monotonous DTS in output stream 0:0; previous: -676, current: -715; changing to -676. This may result in incorrect timestamps in the output file.

I tried adding -fix_sub_duration as suggested in #2212, but that didn't fix the problem.

Please let me know what else to try to so I can get a sample uploaded. (or what options to use to fix the issue)

Change History (6)

comment:1 Changed 11 months ago by cehoyos

Please test current FFmpeg git head and provide the command line you tested together with the complete, uncut console output to make this a valid ticket.

comment:2 follow-up: Changed 11 months ago by kayson

Compiled with just libx264.

Command:

~/git/FFmpeg/ffmpeg -y -ss 00:43:00 -t 60 -i test.mkv -map_metadata 0 -c:s copy -c:a copy -c:v libx264 -preset medium -crf 16 -g 24 -profile:v high -level 4.2 -max_muxing_queue_size 1024 test4.mkv

Output:

ffmpeg version N-89877-g046a946868 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.2.0-8ubuntu3)
  configuration: --enable-libx264 --enable-gpl
  libavutil      56.  7.100 / 56.  7.100
  libavcodec     58.  9.100 / 58.  9.100
  libavformat    58.  5.100 / 58.  5.100
  libavdevice    58.  0.101 / 58.  0.101
  libavfilter     7. 11.101 /  7. 11.101
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
[matroska,webm @ 0x55bdec722a00] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55bdec722a00] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55bdec722a00] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55bdec722a00] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55bdec722a00] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55bdec722a00] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55bdec722a00] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'test.mkv':
  Metadata:
    title           : test
    encoder         : libebml v1.3.4 + libmatroska v1.4.5
    creation_time   : 2017-08-04T15:47:53.000000Z
  Duration: 01:46:35.76, start: 0.000000, bitrate: 37390 kb/s
    Chapter #0:0: start 0.000000, end 244.285000
    Metadata:
      title           : (01)00:00:00:000
    Chapter #0:1: start 244.285000, end 389.639000
    Metadata:
      title           : (02)00:04:04:285
    Chapter #0:2: start 389.639000, end 632.465000
    Metadata:
      title           : (03)00:06:29:639
    Chapter #0:3: start 632.465000, end 1101.183000
    Metadata:
      title           : (04)00:10:32:465
    Chapter #0:4: start 1101.183000, end 1221.553000
    Metadata:
      title           : (05)00:18:21:183
    Chapter #0:5: start 1221.553000, end 1672.337000
    Metadata:
      title           : (06)00:20:21:553
    Chapter #0:6: start 1672.337000, end 1864.279000
    Metadata:
      title           : (07)00:27:52:337
    Chapter #0:7: start 1864.279000, end 2093.716000
    Metadata:
      title           : (08)00:31:04:279
    Chapter #0:8: start 2093.716000, end 2269.600000
    Metadata:
      title           : (09)00:34:53:716
    Chapter #0:9: start 2269.600000, end 2460.833000
    Metadata:
      title           : (10)00:37:49:600
    Chapter #0:10: start 2460.833000, end 2793.373000
    Metadata:
      title           : (11)00:41:00:833
    Chapter #0:11: start 2793.373000, end 3188.685000
    Metadata:
      title           : (12)00:46:33:373
    Chapter #0:12: start 3188.685000, end 3697.402000
    Metadata:
      title           : (13)00:53:08:685
    Chapter #0:13: start 3697.402000, end 3848.761000
    Metadata:
      title           : (14)01:01:37:402
    Chapter #0:14: start 3848.761000, end 4089.919000
    Metadata:
      title           : (15)01:04:08:761
    Chapter #0:15: start 4089.919000, end 4450.362000
    Metadata:
      title           : (16)01:08:09:919
    Chapter #0:16: start 4450.362000, end 4550.212000
    Metadata:
      title           : (17)01:14:10:362
    Chapter #0:17: start 4550.212000, end 4707.369000
    Metadata:
      title           : (18)01:15:50:212
    Chapter #0:18: start 4707.369000, end 4855.809000
    Metadata:
      title           : (19)01:18:27:369
    Chapter #0:19: start 4855.809000, end 5109.270000
    Metadata:
      title           : (20)01:20:55:809
    Chapter #0:20: start 5109.270000, end 5671.832000
    Metadata:
      title           : (21)01:25:09:270
    Chapter #0:21: start 5671.832000, end 5749.118000
    Metadata:
      title           : (22)01:34:31:832
    Chapter #0:22: start 5749.118000, end 5998.659000
    Metadata:
      title           : (23)01:35:49:118
    Chapter #0:23: start 5998.659000, end 6176.170000
    Metadata:
      title           : (24)01:39:58:659
    Chapter #0:24: start 6176.170000, end 6395.755000
    Metadata:
      title           : (25)01:42:56:170
    Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           :
      BPS             : 32541365
      BPS-eng         : 32541365
      DURATION        : 01:46:34.763000000
      DURATION-eng    : 01:46:34.763000000
      NUMBER_OF_FRAMES: 153321
      NUMBER_OF_FRAMES-eng: 153321
      NUMBER_OF_BYTES : 26011789725
      NUMBER_OF_BYTES-eng: 26011789725
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit) (default)
    Metadata:
      title           : DTS-HD MA 5.1
      BPS             : 4529996
      BPS-eng         : 4529996
      DURATION        : 01:46:35.755000000
      DURATION-eng    : 01:46:35.755000000
      NUMBER_OF_FRAMES: 599602
      NUMBER_OF_FRAMES-eng: 599602
      NUMBER_OF_BYTES : 3621593740
      NUMBER_OF_BYTES-eng: 3621593740
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
    Metadata:
      title           : DD 2.0
      BPS             : 224000
      BPS-eng         : 224000
      DURATION        : 01:46:35.744000000
      DURATION-eng    : 01:46:35.744000000
      NUMBER_OF_FRAMES: 199867
      NUMBER_OF_FRAMES-eng: 199867
      NUMBER_OF_BYTES : 179080832
      NUMBER_OF_BYTES-eng: 179080832
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : English-PGS
      BPS             : 13081
      BPS-eng         : 13081
      DURATION        : 01:37:54.702000000
      DURATION-eng    : 01:37:54.702000000
      NUMBER_OF_FRAMES: 1132
      NUMBER_OF_FRAMES-eng: 1132
      NUMBER_OF_BYTES : 9606560
      NUMBER_OF_BYTES-eng: 9606560
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : English-Commentary-PGS
      BPS             : 45518
      BPS-eng         : 45518
      DURATION        : 01:45:16.268000000
      DURATION-eng    : 01:45:16.268000000
      NUMBER_OF_FRAMES: 2722
      NUMBER_OF_FRAMES-eng: 2722
      NUMBER_OF_BYTES : 35938459
      NUMBER_OF_BYTES-eng: 35938459
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:5(rus): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Russian-PGS
      BPS             : 8609
      BPS-eng         : 8609
      DURATION        : 01:45:47.632000000
      DURATION-eng    : 01:45:47.632000000
      NUMBER_OF_FRAMES: 834
      NUMBER_OF_FRAMES-eng: 834
      NUMBER_OF_BYTES : 6831007
      NUMBER_OF_BYTES-eng: 6831007
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:6(est): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Estonian-PGS
      BPS             : 8098
      BPS-eng         : 8098
      DURATION        : 01:40:33.360000000
      DURATION-eng    : 01:40:33.360000000
      NUMBER_OF_FRAMES: 742
      NUMBER_OF_FRAMES-eng: 742
      NUMBER_OF_BYTES : 6107409
      NUMBER_OF_BYTES-eng: 6107409
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:7(lav): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Latvian-PGS
      BPS             : 7502
      BPS-eng         : 7502
      DURATION        : 01:45:46.923000000
      DURATION-eng    : 01:45:46.923000000
      NUMBER_OF_FRAMES: 734
      NUMBER_OF_FRAMES-eng: 734
      NUMBER_OF_BYTES : 5952462
      NUMBER_OF_BYTES-eng: 5952462
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:8(lit): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Lithuanian-PGS
      BPS             : 7538
      BPS-eng         : 7538
      DURATION        : 01:45:46.923000000
      DURATION-eng    : 01:45:46.923000000
      NUMBER_OF_FRAMES: 734
      NUMBER_OF_FRAMES-eng: 734
      NUMBER_OF_BYTES : 5980742
      NUMBER_OF_BYTES-eng: 5980742
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:9(slv): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Slovenian-PGS
      BPS             : 7630
      BPS-eng         : 7630
      DURATION        : 01:42:35.232000000
      DURATION-eng    : 01:42:35.232000000
      NUMBER_OF_FRAMES: 824
      NUMBER_OF_FRAMES-eng: 824
      NUMBER_OF_BYTES : 5870925
      NUMBER_OF_BYTES-eng: 5870925
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (copy)
  Stream #0:3 -> #0:2 (copy)
Press [q] to stop, [?] for help
[libx264 @ 0x55bdecbacec0] using SAR=1/1
[libx264 @ 0x55bdecbacec0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA3 LZCNT BMI1
[libx264 @ 0x55bdecbacec0] profile High, level 4.2
[libx264 @ 0x55bdecbacec0] 264 - core 148 r2795 aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=24 keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=24 rc=crf mbtree=1 crf=16.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'test4.mkv':
  Metadata:
    title           : test
    creation_time   : 2017-08-04T15:47:53.000000Z
    encoder         : Lavf58.5.100
    Chapter #0:0: start 0.000000, end 213.373000
    Metadata:
      title           : (11)00:41:00:833
    Chapter #0:1: start 213.373000, end 608.685000
    Metadata:
      title           : (12)00:46:33:373
    Chapter #0:2: start 608.685000, end 1117.402000
    Metadata:
      title           : (13)00:53:08:685
    Chapter #0:3: start 1117.402000, end 1268.761000
    Metadata:
      title           : (14)01:01:37:402
    Chapter #0:4: start 1268.761000, end 1509.919000
    Metadata:
      title           : (15)01:04:08:761
    Chapter #0:5: start 1509.919000, end 1870.362000
    Metadata:
      title           : (16)01:08:09:919
    Chapter #0:6: start 1870.362000, end 1970.212000
    Metadata:
      title           : (17)01:14:10:362
    Chapter #0:7: start 1970.212000, end 2127.369000
    Metadata:
      title           : (18)01:15:50:212
    Chapter #0:8: start 2127.369000, end 2275.809000
    Metadata:
      title           : (19)01:18:27:369
    Chapter #0:9: start 2275.809000, end 2529.270000
    Metadata:
      title           : (20)01:20:55:809
    Chapter #0:10: start 2529.270000, end 3091.832000
    Metadata:
      title           : (21)01:25:09:270
    Chapter #0:11: start 3091.832000, end 3169.118000
    Metadata:
      title           : (22)01:34:31:832
    Chapter #0:12: start 3169.118000, end 3418.659000
    Metadata:
      title           : (23)01:35:49:118
    Chapter #0:13: start 3418.659000, end 3596.170000
    Metadata:
      title           : (24)01:39:58:659
    Chapter #0:14: start 3596.170000, end 3815.755000
    Metadata:
      title           : (25)01:42:56:170
    Stream #0:0(eng): Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 23.98 fps, 1k tbn, 23.98 tbc (default)
    Metadata:
      title           :
      BPS             : 32541365
      BPS-eng         : 32541365
      DURATION        : 01:46:34.763000000
      DURATION-eng    : 01:46:34.763000000
      NUMBER_OF_FRAMES: 153321
      NUMBER_OF_FRAMES-eng: 153321
      NUMBER_OF_BYTES : 26011789725
      NUMBER_OF_BYTES-eng: 26011789725
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      encoder         : Lavc58.9.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: dts (DTS-HD MA) ([1] [0][0] / 0x2001), 48000 Hz, 5.1(side), s32p (24 bit) (default)
    Metadata:
      title           : DTS-HD MA 5.1
      BPS             : 4529996
      BPS-eng         : 4529996
      DURATION        : 01:46:35.755000000
      DURATION-eng    : 01:46:35.755000000
      NUMBER_OF_FRAMES: 599602
      NUMBER_OF_FRAMES-eng: 599602
      NUMBER_OF_BYTES : 3621593740
      NUMBER_OF_BYTES-eng: 3621593740
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle ([255][255][255][255] / 0xFFFFFFFF)
    Metadata:
      title           : English-PGS
      BPS             : 13081
      BPS-eng         : 13081
      DURATION        : 01:37:54.702000000
      DURATION-eng    : 01:37:54.702000000
      NUMBER_OF_FRAMES: 1132
      NUMBER_OF_FRAMES-eng: 1132
      NUMBER_OF_BYTES : 9606560
      NUMBER_OF_BYTES-eng: 9606560
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[matroska @ 0x55bdecbb6600] Application provided invalid, non monotonically increasing dts to muxer in stream 2: 23309 >= 23226
av_interleaved_write_frame(): Invalid argument
frame=  550 fps= 13 q=-1.0 Lsize=   47300kB time=00:00:23.30 bitrate=16623.6kbits/s speed=0.545x
video:34695kB audio:12493kB subtitle:86kB other streams:0kB global headers:0kB muxing overhead: 0.053668%
[libx264 @ 0x55bdecbacec0] frame I:27    Avg QP:13.23  size:257043
[libx264 @ 0x55bdecbacec0] frame P:164   Avg QP:16.78  size: 95285
[libx264 @ 0x55bdecbacec0] frame B:359   Avg QP:18.32  size: 36100
[libx264 @ 0x55bdecbacec0] consecutive B-frames: 11.5%  0.4% 12.5% 75.6%
[libx264 @ 0x55bdecbacec0] mb I  I16..4:  4.9% 84.2% 10.8%
[libx264 @ 0x55bdecbacec0] mb P  I16..4:  1.0% 18.7%  1.7%  P16..4: 35.8% 27.2% 10.7%  0.0%  0.0%    skip: 5.0%
[libx264 @ 0x55bdecbacec0] mb B  I16..4:  0.1%  2.7%  0.2%  B16..8: 50.8% 11.6%  2.1%  direct: 6.6%  skip:25.9%  L0:42.9% L1:42.1% BI:15.0%
[libx264 @ 0x55bdecbacec0] 8x8 transform intra:86.7% inter:73.8%
[libx264 @ 0x55bdecbacec0] coded y,uvDC,uvAC intra: 93.9% 88.1% 58.8% inter: 39.6% 35.6% 3.2%
[libx264 @ 0x55bdecbacec0] i16 v,h,dc,p:  6% 17% 14% 63%
[libx264 @ 0x55bdecbacec0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 14% 17%  7%  9%  9% 10%  9% 10%
[libx264 @ 0x55bdecbacec0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 24% 11%  7% 12%  9% 10%  7%  7%
[libx264 @ 0x55bdecbacec0] i8c dc,h,v,p: 47% 21% 20% 11%
[libx264 @ 0x55bdecbacec0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x55bdecbacec0] ref P L0: 67.9% 14.1% 13.4%  4.7%
[libx264 @ 0x55bdecbacec0] ref B L0: 94.3%  4.9%  0.7%
[libx264 @ 0x55bdecbacec0] ref B L1: 98.0%  2.0%
[libx264 @ 0x55bdecbacec0] kb/s:12389.74
Conversion failed!

Command:

~/git/FFmpeg/ffmpeg -ss 00:43:00 -t 30 -i test.mkv -c copy test2.mkv

Output:

ffmpeg version N-89877-g046a946868 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.2.0-8ubuntu3)
  configuration: --enable-libx264 --enable-gpl
  libavutil      56.  7.100 / 56.  7.100
  libavcodec     58.  9.100 / 58.  9.100
  libavformat    58.  5.100 / 58.  5.100
  libavdevice    58.  0.101 / 58.  0.101
  libavfilter     7. 11.101 /  7. 11.101
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
[matroska,webm @ 0x55ed2fe8c700] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55ed2fe8c700] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55ed2fe8c700] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55ed2fe8c700] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55ed2fe8c700] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55ed2fe8c700] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55ed2fe8c700] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'test.mkv':
  Metadata:
    title           : test
    encoder         : libebml v1.3.4 + libmatroska v1.4.5
    creation_time   : 2017-08-04T15:47:53.000000Z
  Duration: 01:46:35.76, start: 0.000000, bitrate: 37390 kb/s
    Chapter #0:0: start 0.000000, end 244.285000
    Metadata:
      title           : (01)00:00:00:000
    Chapter #0:1: start 244.285000, end 389.639000
    Metadata:
      title           : (02)00:04:04:285
    Chapter #0:2: start 389.639000, end 632.465000
    Metadata:
      title           : (03)00:06:29:639
    Chapter #0:3: start 632.465000, end 1101.183000
    Metadata:
      title           : (04)00:10:32:465
    Chapter #0:4: start 1101.183000, end 1221.553000
    Metadata:
      title           : (05)00:18:21:183
    Chapter #0:5: start 1221.553000, end 1672.337000
    Metadata:
      title           : (06)00:20:21:553
    Chapter #0:6: start 1672.337000, end 1864.279000
    Metadata:
      title           : (07)00:27:52:337
    Chapter #0:7: start 1864.279000, end 2093.716000
    Metadata:
      title           : (08)00:31:04:279
    Chapter #0:8: start 2093.716000, end 2269.600000
    Metadata:
      title           : (09)00:34:53:716
    Chapter #0:9: start 2269.600000, end 2460.833000
    Metadata:
      title           : (10)00:37:49:600
    Chapter #0:10: start 2460.833000, end 2793.373000
    Metadata:
      title           : (11)00:41:00:833
    Chapter #0:11: start 2793.373000, end 3188.685000
    Metadata:
      title           : (12)00:46:33:373
    Chapter #0:12: start 3188.685000, end 3697.402000
    Metadata:
      title           : (13)00:53:08:685
    Chapter #0:13: start 3697.402000, end 3848.761000
    Metadata:
      title           : (14)01:01:37:402
    Chapter #0:14: start 3848.761000, end 4089.919000
    Metadata:
      title           : (15)01:04:08:761
    Chapter #0:15: start 4089.919000, end 4450.362000
    Metadata:
      title           : (16)01:08:09:919
    Chapter #0:16: start 4450.362000, end 4550.212000
    Metadata:
      title           : (17)01:14:10:362
    Chapter #0:17: start 4550.212000, end 4707.369000
    Metadata:
      title           : (18)01:15:50:212
    Chapter #0:18: start 4707.369000, end 4855.809000
    Metadata:
      title           : (19)01:18:27:369
    Chapter #0:19: start 4855.809000, end 5109.270000
    Metadata:
      title           : (20)01:20:55:809
    Chapter #0:20: start 5109.270000, end 5671.832000
    Metadata:
      title           : (21)01:25:09:270
    Chapter #0:21: start 5671.832000, end 5749.118000
    Metadata:
      title           : (22)01:34:31:832
    Chapter #0:22: start 5749.118000, end 5998.659000
    Metadata:
      title           : (23)01:35:49:118
    Chapter #0:23: start 5998.659000, end 6176.170000
    Metadata:
      title           : (24)01:39:58:659
    Chapter #0:24: start 6176.170000, end 6395.755000
    Metadata:
      title           : (25)01:42:56:170
    Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           :
      BPS             : 32541365
      BPS-eng         : 32541365
      DURATION        : 01:46:34.763000000
      DURATION-eng    : 01:46:34.763000000
      NUMBER_OF_FRAMES: 153321
      NUMBER_OF_FRAMES-eng: 153321
      NUMBER_OF_BYTES : 26011789725
      NUMBER_OF_BYTES-eng: 26011789725
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit) (default)
    Metadata:
      title           : DTS-HD MA 5.1
      BPS             : 4529996
      BPS-eng         : 4529996
      DURATION        : 01:46:35.755000000
      DURATION-eng    : 01:46:35.755000000
      NUMBER_OF_FRAMES: 599602
      NUMBER_OF_FRAMES-eng: 599602
      NUMBER_OF_BYTES : 3621593740
      NUMBER_OF_BYTES-eng: 3621593740
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
    Metadata:
      title           : DD 2.0
      BPS             : 224000
      BPS-eng         : 224000
      DURATION        : 01:46:35.744000000
      DURATION-eng    : 01:46:35.744000000
      NUMBER_OF_FRAMES: 199867
      NUMBER_OF_FRAMES-eng: 199867
      NUMBER_OF_BYTES : 179080832
      NUMBER_OF_BYTES-eng: 179080832
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : English-PGS
      BPS             : 13081
      BPS-eng         : 13081
      DURATION        : 01:37:54.702000000
      DURATION-eng    : 01:37:54.702000000
      NUMBER_OF_FRAMES: 1132
      NUMBER_OF_FRAMES-eng: 1132
      NUMBER_OF_BYTES : 9606560
      NUMBER_OF_BYTES-eng: 9606560
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : English-Commentary-PGS
      BPS             : 45518
      BPS-eng         : 45518
      DURATION        : 01:45:16.268000000
      DURATION-eng    : 01:45:16.268000000
      NUMBER_OF_FRAMES: 2722
      NUMBER_OF_FRAMES-eng: 2722
      NUMBER_OF_BYTES : 35938459
      NUMBER_OF_BYTES-eng: 35938459
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:5(rus): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Russian-PGS
      BPS             : 8609
      BPS-eng         : 8609
      DURATION        : 01:45:47.632000000
      DURATION-eng    : 01:45:47.632000000
      NUMBER_OF_FRAMES: 834
      NUMBER_OF_FRAMES-eng: 834
      NUMBER_OF_BYTES : 6831007
      NUMBER_OF_BYTES-eng: 6831007
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:6(est): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Estonian-PGS
      BPS             : 8098
      BPS-eng         : 8098
      DURATION        : 01:40:33.360000000
      DURATION-eng    : 01:40:33.360000000
      NUMBER_OF_FRAMES: 742
      NUMBER_OF_FRAMES-eng: 742
      NUMBER_OF_BYTES : 6107409
      NUMBER_OF_BYTES-eng: 6107409
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:7(lav): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Latvian-PGS
      BPS             : 7502
      BPS-eng         : 7502
      DURATION        : 01:45:46.923000000
      DURATION-eng    : 01:45:46.923000000
      NUMBER_OF_FRAMES: 734
      NUMBER_OF_FRAMES-eng: 734
      NUMBER_OF_BYTES : 5952462
      NUMBER_OF_BYTES-eng: 5952462
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:8(lit): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Lithuanian-PGS
      BPS             : 7538
      BPS-eng         : 7538
      DURATION        : 01:45:46.923000000
      DURATION-eng    : 01:45:46.923000000
      NUMBER_OF_FRAMES: 734
      NUMBER_OF_FRAMES-eng: 734
      NUMBER_OF_BYTES : 5980742
      NUMBER_OF_BYTES-eng: 5980742
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:9(slv): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Slovenian-PGS
      BPS             : 7630
      BPS-eng         : 7630
      DURATION        : 01:42:35.232000000
      DURATION-eng    : 01:42:35.232000000
      NUMBER_OF_FRAMES: 824
      NUMBER_OF_FRAMES-eng: 824
      NUMBER_OF_BYTES : 5870925
      NUMBER_OF_BYTES-eng: 5870925
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Output #0, matroska, to 'test2.mkv':
  Metadata:
    title           : test
    encoder         : Lavf58.5.100
    Chapter #0:0: start 0.000000, end 213.373000
    Metadata:
      title           : (11)00:41:00:833
    Chapter #0:1: start 213.373000, end 608.685000
    Metadata:
      title           : (12)00:46:33:373
    Chapter #0:2: start 608.685000, end 1117.402000
    Metadata:
      title           : (13)00:53:08:685
    Chapter #0:3: start 1117.402000, end 1268.761000
    Metadata:
      title           : (14)01:01:37:402
    Chapter #0:4: start 1268.761000, end 1509.919000
    Metadata:
      title           : (15)01:04:08:761
    Chapter #0:5: start 1509.919000, end 1870.362000
    Metadata:
      title           : (16)01:08:09:919
    Chapter #0:6: start 1870.362000, end 1970.212000
    Metadata:
      title           : (17)01:14:10:362
    Chapter #0:7: start 1970.212000, end 2127.369000
    Metadata:
      title           : (18)01:15:50:212
    Chapter #0:8: start 2127.369000, end 2275.809000
    Metadata:
      title           : (19)01:18:27:369
    Chapter #0:9: start 2275.809000, end 2529.270000
    Metadata:
      title           : (20)01:20:55:809
    Chapter #0:10: start 2529.270000, end 3091.832000
    Metadata:
      title           : (21)01:25:09:270
    Chapter #0:11: start 3091.832000, end 3169.118000
    Metadata:
      title           : (22)01:34:31:832
    Chapter #0:12: start 3169.118000, end 3418.659000
    Metadata:
      title           : (23)01:35:49:118
    Chapter #0:13: start 3418.659000, end 3596.170000
    Metadata:
      title           : (24)01:39:58:659
    Chapter #0:14: start 3596.170000, end 3815.755000
    Metadata:
      title           : (25)01:42:56:170
    Stream #0:0(eng): Video: h264 (High) (H264 / 0x34363248), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn, 1k tbc (default)
    Metadata:
      title           :
      BPS             : 32541365
      BPS-eng         : 32541365
      DURATION        : 01:46:34.763000000
      DURATION-eng    : 01:46:34.763000000
      NUMBER_OF_FRAMES: 153321
      NUMBER_OF_FRAMES-eng: 153321
      NUMBER_OF_BYTES : 26011789725
      NUMBER_OF_BYTES-eng: 26011789725
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: dts (DTS-HD MA) ([1] [0][0] / 0x2001), 48000 Hz, 5.1(side), s32p (24 bit) (default)
    Metadata:
      title           : DTS-HD MA 5.1
      BPS             : 4529996
      BPS-eng         : 4529996
      DURATION        : 01:46:35.755000000
      DURATION-eng    : 01:46:35.755000000
      NUMBER_OF_FRAMES: 599602
      NUMBER_OF_FRAMES-eng: 599602
      NUMBER_OF_BYTES : 3621593740
      NUMBER_OF_BYTES-eng: 3621593740
      _STATISTICS_WRITING_APP: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v14.0.0 ('Flow') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-08-04 15:47:53
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-08-04 15:47:53
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x55ed304f7b00] failed to avoid negative pts -83 in stream 0.
Try -avoid_negative_ts 1 as a possible workaround.
[matroska @ 0x55ed304f7b00] failed to avoid negative pts -41 in stream 0.
Try -avoid_negative_ts 1 as a possible workaround.
[matroska @ 0x55ed304f7b00] Non-monotonous DTS in output stream 0:0; previous: -676, current: -715; changing to -676. This may result in incorrect timestamps in the output file.
frame=  741 fps=0.0 q=-1.0 Lsize=  135628kB time=00:00:29.99 bitrate=37042.9kbits/s speed=  61x
video:119793kB audio:15804kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.022428%


comment:3 in reply to: ↑ 2 Changed 11 months ago by cehoyos

Am I correct that it works fine if you specify -sn?
Consider using mkvmerge to cut the input file if you cannot tell us how to obtain it.

comment:4 Changed 11 months ago by kayson

The first command works correctly if I specify -sn, since it removes the problematic subtitle stream.

The second command (copy codec for all streams), still fails, though, since the problem is in the video stream.

Here's a sample from mkvmerge: https://mega.nz/#!08RSVJqZ!r9aDOkfYhzKTIiaygYlQ0NYiocDNV2Gtmh2I6ev6irA

The first command still fails, but the mkvmerge --split seems to have sorted out the issue with the video stream causing the error with command 2.

comment:5 Changed 11 months ago by cehoyos

  • Keywords mkv pgssub added
  • Version changed from unspecified to git-master

Do you have access to the original transport stream (that could be easily cut with dd)?

I believe there is an issue: vlc shows the subtitle line I can't tell. for a reasonable time, FFmpeg 0.6 shows it but does not remove it from screen until the next subtitle appears.
For a very long time, FFmpeg shows the line only for one video frame (or, depending on the exact version, not at all).

$ ffmpeg -i predator.mkv -filter_complex [0:0][0:3]overlay -ac 2 -qscale 2 -ss 48 -t 30 out.avi
ffmpeg version N-89882-g4dbae00 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (GCC)
  configuration: --enable-gpl
  libavutil      56.  7.100 / 56.  7.100
  libavcodec     58.  9.100 / 58.  9.100
  libavformat    58.  5.101 / 58.  5.101
  libavdevice    58.  0.101 / 58.  0.101
  libavfilter     7. 11.101 /  7. 11.101
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
[matroska,webm @ 0x21cc740] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x21cc740] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x21cc740] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x21cc740] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x21cc740] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x21cc740] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x21cc740] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'predator.mkv':
  Metadata:
    title           : test
    encoder         : libebml v1.3.5 + libmatroska v1.4.5
    creation_time   : 2018-01-24T19:38:09.000000Z
  Duration: 00:01:30.07, start: 0.084000, bitrate: 37186 kb/s
    Chapter #0:0: start 0.000000, end 90.155000
    Metadata:
      title           : (11)00:41:00:833
    Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS             : 32698082
      BPS-eng         : 32698082
      DURATION        : 00:01:29.965000000
      DURATION-eng    : 00:01:29.965000000
      NUMBER_OF_FRAMES: 2157
      NUMBER_OF_FRAMES-eng: 2157
      NUMBER_OF_BYTES : 367710376
      NUMBER_OF_BYTES-eng: 367710376
      _STATISTICS_WRITING_APP: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-24 19:38:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-24 19:38:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit) (default)
    Metadata:
      title           : DTS-HD MA 5.1
      BPS             : 4260125
      BPS-eng         : 4260125
      DURATION        : 00:01:29.963000000
      DURATION-eng    : 00:01:29.963000000
      NUMBER_OF_FRAMES: 8434
      NUMBER_OF_FRAMES-eng: 8434
      NUMBER_OF_BYTES : 47906704
      NUMBER_OF_BYTES-eng: 47906704
      _STATISTICS_WRITING_APP: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-24 19:38:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-24 19:38:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
    Metadata:
      title           : DD 2.0
      BPS             : 224000
      BPS-eng         : 224000
      DURATION        : 00:01:29.984000000
      DURATION-eng    : 00:01:29.984000000
      NUMBER_OF_FRAMES: 2812
      NUMBER_OF_FRAMES-eng: 2812
      NUMBER_OF_BYTES : 2519552
      NUMBER_OF_BYTES-eng: 2519552
      _STATISTICS_WRITING_APP: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-24 19:38:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-24 19:38:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : English-PGS
      BPS             : 24747
      BPS-eng         : 24747
      DURATION        : 00:00:48.382000000
      DURATION-eng    : 00:00:48.382000000
      NUMBER_OF_FRAMES: 20
      NUMBER_OF_FRAMES-eng: 20
      NUMBER_OF_BYTES : 149664
      NUMBER_OF_BYTES-eng: 149664
      _STATISTICS_WRITING_APP: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-24 19:38:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-24 19:38:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : English-Commentary-PGS
      BPS             : 59198
      BPS-eng         : 59198
      DURATION        : 00:01:26.253000000
      DURATION-eng    : 00:01:26.253000000
      NUMBER_OF_FRAMES: 46
      NUMBER_OF_FRAMES-eng: 46
      NUMBER_OF_BYTES : 638256
      NUMBER_OF_BYTES-eng: 638256
      _STATISTICS_WRITING_APP: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-24 19:38:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-24 19:38:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:5(rus): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Russian-PGS
      BPS             : 18774
      BPS-eng         : 18774
      DURATION        : 00:00:48.966000000
      DURATION-eng    : 00:00:48.966000000
      NUMBER_OF_FRAMES: 20
      NUMBER_OF_FRAMES-eng: 20
      NUMBER_OF_BYTES : 114917
      NUMBER_OF_BYTES-eng: 114917
      _STATISTICS_WRITING_APP: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-24 19:38:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-24 19:38:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:6(est): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Estonian-PGS
      BPS             : 17950
      BPS-eng         : 17950
      DURATION        : 00:00:48.424000000
      DURATION-eng    : 00:00:48.424000000
      NUMBER_OF_FRAMES: 16
      NUMBER_OF_FRAMES-eng: 16
      NUMBER_OF_BYTES : 108655
      NUMBER_OF_BYTES-eng: 108655
      _STATISTICS_WRITING_APP: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-24 19:38:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-24 19:38:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:7(lav): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Latvian-PGS
      BPS             : 18273
      BPS-eng         : 18273
      DURATION        : 00:00:48.382000000
      DURATION-eng    : 00:00:48.382000000
      NUMBER_OF_FRAMES: 16
      NUMBER_OF_FRAMES-eng: 16
      NUMBER_OF_BYTES : 110516
      NUMBER_OF_BYTES-eng: 110516
      _STATISTICS_WRITING_APP: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-24 19:38:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-24 19:38:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:8(lit): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Lithuanian-PGS
      BPS             : 18404
      BPS-eng         : 18404
      DURATION        : 00:00:48.382000000
      DURATION-eng    : 00:00:48.382000000
      NUMBER_OF_FRAMES: 16
      NUMBER_OF_FRAMES-eng: 16
      NUMBER_OF_BYTES : 111304
      NUMBER_OF_BYTES-eng: 111304
      _STATISTICS_WRITING_APP: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-24 19:38:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-24 19:38:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:9(slv): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Slovenian-PGS
      BPS             : 19857
      BPS-eng         : 19857
      DURATION        : 00:00:48.382000000
      DURATION-eng    : 00:00:48.382000000
      NUMBER_OF_FRAMES: 18
      NUMBER_OF_FRAMES-eng: 18
      NUMBER_OF_BYTES : 120093
      NUMBER_OF_BYTES-eng: 120093
      _STATISTICS_WRITING_APP: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-24 19:38:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-24 19:38:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Please use -q:a or -q:v, -qscale is ambiguous
Stream mapping:
  Stream #0:0 (h264) -> overlay:main (graph 0)
  Stream #0:3 (pgssub) -> overlay:overlay (graph 0)
  overlay (graph 0) -> Stream #0:0 (mpeg4)
  Stream #0:1 -> #0:1 (dts (dca) -> ac3 (native))
Press [q] to stop, [?] for help
[matroska,webm @ 0x21cc740] sub2video: using 1920x1080 canvas
Output #0, avi, to 'out.avi':
  Metadata:
    INAM            : test
    ISFT            : Lavf58.5.101
    Chapter #0:0: start 0.000000, end 30.000000
    Metadata:
      title           : (11)00:41:00:833
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc (default)
    Metadata:
      encoder         : Lavc58.9.100 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp (24 bit), 192 kb/s (default)
    Metadata:
      title           : DTS-HD MA 5.1
      BPS             : 4260125
      BPS-eng         : 4260125
      DURATION        : 00:01:29.963000000
      DURATION-eng    : 00:01:29.963000000
      NUMBER_OF_FRAMES: 8434
      NUMBER_OF_FRAMES-eng: 8434
      NUMBER_OF_BYTES : 47906704
      NUMBER_OF_BYTES-eng: 47906704
      _STATISTICS_WRITING_APP: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v15.0.0 ('Duel with the Devil') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-24 19:38:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-24 19:38:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      encoder         : Lavc58.9.100 ac3
frame=  720 fps= 39 q=2.0 Lsize=   33812kB time=00:00:30.03 bitrate=9223.7kbits/s speed=1.63x
video:33059kB audio:704kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.145115%

The same subtitle frame is responsible for the failing remuxing.
Afaict, the issue gets worse with -fix_sub_duration.

comment:6 Changed 11 months ago by kayson

This is all I have, and I'm not sure which version the source is, otherwise I'd try to get it. In theory it should be a straight remuxing of the original ts...

Let me know what else I can do to help... I can try to guess which version and rip it from a bluray?

Version 0, edited 11 months ago by kayson (next)
Note: See TracTickets for help on using tickets.