Opened 3 years ago

Last modified 3 months ago

#4536 new defect

mkv audio reencoding leads to nonuniform video timecodes

Reported by: sneaker Owned by:
Priority: normal Component: ffmpeg
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
When transcoding the audio of an mkv file the video timecodes of the output change inexplicably. This seems to happen with different audio encoders, I will use libopus to demonstrate. It is not a constant delay affecting all timecodes but the delta between timecode n to timecode n+1 starts to vary (more than the 1ms margin given by the timecode accuracy). A simple remux (without transcoding any tracks) will leave the timecodes intact.

How to reproduce:

  1. transcode audio: ffmpeg -i "original.mkv" -c:v copy -c:a libopus ffmpeg_opus.mkv
  2. view video timecodes

Comparison of video (23.976 fps) timecodes:
original.mkv:

# timecode format v2
0
42
83
125
167
209
250
292
334
375
417
459
500
...

ffmpeg_opus.mkv:

# timecode format v2
0
49
90
132
167
216
257
299
341
382
424
466
507
...
ffmpeg -report -i "original.mkv" -c:v copy -c:a libopus ffmpeg_opus.mkv
ffmpeg version N-71924-ga2190de
built on 2015-5-6
ffmpeg started on 2015-05-06 at 15:16:51
Report written to "ffmpeg-20150506-151651.log"
Command line:
ffmpeg -report -i original.mkv -c:v copy -c:a libopus ffmpeg_opus.mkv
ffmpeg version N-71924-ga2190de Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 23.101 / 54. 23.101
  libavcodec     56. 37.100 / 56. 37.100
  libavformat    56. 31.102 / 56. 31.102
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-i' ... matched as input file with argument 'original.mkv'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'libopus'.
Reading option 'ffmpeg_opus.mkv' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file original.mkv.
Successfully parsed a group of options.
Opening an input file: original.mkv.
[matroska,webm @ 0000000002e3da40] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
[matroska,webm @ 0000000002e3da40] Before avformat_find_stream_info() pos: 13805 bytes read:24852 seeks:0
[h264 @ 0000000002e50e80] no picture 
[matroska,webm @ 0000000002e3da40] All info found
[matroska,webm @ 0000000002e3da40] After avformat_find_stream_info() pos: 14987 bytes read:24852 seeks:0 frames:12
Input #0, matroska,webm, from 'original.mkv':
  Metadata:
    encoder         : libebml v1.3.1 + libmatroska v1.4.2
    creation_time   : 2015-05-06 12:55:54
  Duration: 00:00:08.34, start: 0.000000, bitrate: 23 kb/s
    Stream #0:0, 4, 1/1000: Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0:1, 8, 1/1000: Audio: flac, 44100 Hz, mono, s16 (default)
Successfully opened the file.
Parsing a group of options: output file ffmpeg_opus.mkv.
Applying option c:v (codec name) with argument copy.
Applying option c:a (codec name) with argument libopus.
Successfully parsed a group of options.
Opening an output file: ffmpeg_opus.mkv.
Successfully opened the file.
detected 8 logical cores
[graph 0 input from stream 0:1 @ 0000000005475580] Setting 'time_base' to value '1/44100'
[graph 0 input from stream 0:1 @ 0000000005475580] Setting 'sample_rate' to value '44100'
[graph 0 input from stream 0:1 @ 0000000005475580] Setting 'sample_fmt' to value 's16'
[graph 0 input from stream 0:1 @ 0000000005475580] Setting 'channel_layout' to value '0x4'
[graph 0 input from stream 0:1 @ 0000000005475580] tb:1/44100 samplefmt:s16 samplerate:44100 chlayout:0x4
[audio format for output stream 0:1 @ 0000000005474b20] Setting 'sample_fmts' to value 's16|flt'
[audio format for output stream 0:1 @ 0000000005474b20] Setting 'sample_rates' to value '48000|24000|16000|12000|8000'
[audio format for output stream 0:1 @ 0000000005474b20] Setting 'channel_layouts' to value '0x4|0x3|0x7|0x33|0x37|0x3f|0x70f|0x63f'
[audio format for output stream 0:1 @ 0000000005474b20] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:1'
[AVFilterGraph @ 00000000055d9240] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0000000005477800] ch:1 chl:mono fmt:s16 r:44100Hz -> ch:1 chl:mono fmt:s16 r:48000Hz
[libopus @ 0000000005474120] No bit rate set. Defaulting to 64000 bps.
[matroska @ 0000000002e45fe0] Codec for stream 0 does not use global headers but container format requires global headers
Output #0, matroska, to 'ffmpeg_opus.mkv':
  Metadata:
    encoder         : Lavf56.31.102
    Stream #0:0, 0, 1/1000: Video: h264 (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn, 1k tbc (default)
    Stream #0:1, 0, 1/1000: Audio: opus (libopus) ([255][255][255][255] / 0xFFFFFFFF), 48000 Hz, mono, s16, 64 kb/s (default)
    Metadata:
      encoder         : Lavc56.37.100 libopus
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (flac (native) -> opus (libopus))
Press [q] to stop, [?] for help
[matroska @ 0000000002e45fe0] Writing block at offset 748, size 943, pts 0, dts -83, duration 41, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 1698, size 40, pts 167, dts -42, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 1744, size 3, pts 0, dts 0, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 1753, size 37, pts 90, dts 7, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 1796, size 3, pts 21, dts 21, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 1805, size 3, pts 41, dts 41, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 1814, size 37, pts 49, dts 49, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 1857, size 3, pts 61, dts 61, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 1866, size 3, pts 81, dts 81, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 1875, size 37, pts 132, dts 90, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 1918, size 3, pts 101, dts 101, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 1927, size 3, pts 121, dts 121, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 1936, size 46, pts 341, dts 132, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 1988, size 3, pts 141, dts 141, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 1997, size 3, pts 161, dts 161, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2006, size 39, pts 257, dts 174, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 2051, size 3, pts 181, dts 181, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2060, size 3, pts 201, dts 201, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2069, size 37, pts 216, dts 216, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 2112, size 3, pts 221, dts 221, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2121, size 3, pts 240, dts 240, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2130, size 37, pts 299, dts 257, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 2173, size 3, pts 260, dts 260, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2182, size 3, pts 280, dts 280, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2191, size 46, pts 507, dts 299, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 2243, size 3, pts 300, dts 300, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2252, size 3, pts 320, dts 320, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2261, size 3, pts 340, dts 340, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2270, size 39, pts 424, dts 341, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 2315, size 3, pts 360, dts 360, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2324, size 3, pts 380, dts 380, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2333, size 37, pts 382, dts 382, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 2376, size 3, pts 400, dts 400, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2385, size 3, pts 420, dts 420, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2394, size 37, pts 466, dts 424, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 2437, size 3, pts 440, dts 440, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2446, size 3, pts 460, dts 460, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2455, size 46, pts 674, dts 466, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 2507, size 3, pts 480, dts 480, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2516, size 3, pts 500, dts 500, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2525, size 39, pts 591, dts 507, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 2570, size 3, pts 520, dts 520, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2579, size 3, pts 540, dts 540, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2588, size 37, pts 549, dts 549, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 2631, size 3, pts 560, dts 560, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2640, size 3, pts 580, dts 580, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2649, size 37, pts 633, dts 591, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 2692, size 3, pts 600, dts 600, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2701, size 3, pts 620, dts 620, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2710, size 46, pts 841, dts 633, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 2762, size 3, pts 640, dts 640, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2771, size 3, pts 660, dts 660, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2780, size 39, pts 758, dts 674, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 2825, size 3, pts 680, dts 680, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2834, size 3, pts 700, dts 700, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2843, size 37, pts 716, dts 716, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 2886, size 3, pts 720, dts 720, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2895, size 3, pts 740, dts 740, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2904, size 37, pts 799, dts 758, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 2947, size 3, pts 760, dts 760, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2956, size 3, pts 780, dts 780, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 2965, size 46, pts 1008, dts 799, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3017, size 3, pts 800, dts 800, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3026, size 3, pts 820, dts 820, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3035, size 3, pts 840, dts 840, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3044, size 39, pts 925, dts 841, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3089, size 3, pts 860, dts 860, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3098, size 3, pts 880, dts 880, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3107, size 37, pts 883, dts 883, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3150, size 3, pts 900, dts 900, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3159, size 3, pts 920, dts 920, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3168, size 37, pts 966, dts 925, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3211, size 3, pts 940, dts 940, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3220, size 3, pts 960, dts 960, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3229, size 46, pts 1175, dts 966, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3281, size 3, pts 980, dts 980, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3290, size 3, pts 1000, dts 1000, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3299, size 39, pts 1091, dts 1008, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3344, size 3, pts 1020, dts 1020, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3353, size 3, pts 1040, dts 1040, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3362, size 37, pts 1050, dts 1050, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3405, size 3, pts 1060, dts 1060, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3414, size 3, pts 1080, dts 1080, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3423, size 37, pts 1133, dts 1091, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3466, size 3, pts 1100, dts 1100, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3475, size 3, pts 1120, dts 1120, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3484, size 46, pts 1342, dts 1133, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3536, size 3, pts 1140, dts 1140, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3545, size 3, pts 1160, dts 1160, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3554, size 39, pts 1258, dts 1175, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3599, size 3, pts 1180, dts 1180, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3608, size 3, pts 1200, dts 1200, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3617, size 37, pts 1217, dts 1217, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3660, size 3, pts 1220, dts 1220, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3669, size 3, pts 1240, dts 1240, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3678, size 37, pts 1300, dts 1258, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3721, size 3, pts 1260, dts 1260, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3730, size 3, pts 1280, dts 1280, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3739, size 46, pts 1508, dts 1300, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3791, size 3, pts 1300, dts 1300, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3800, size 3, pts 1320, dts 1320, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3809, size 3, pts 1340, dts 1340, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3818, size 39, pts 1425, dts 1342, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3863, size 3, pts 1360, dts 1360, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3872, size 3, pts 1380, dts 1380, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3881, size 37, pts 1383, dts 1383, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3924, size 3, pts 1400, dts 1400, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3933, size 3, pts 1420, dts 1420, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3942, size 37, pts 1467, dts 1425, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 3985, size 3, pts 1440, dts 1440, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 3994, size 3, pts 1460, dts 1460, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4003, size 46, pts 1675, dts 1467, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 4055, size 3, pts 1480, dts 1480, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4064, size 3, pts 1500, dts 1500, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4073, size 39, pts 1592, dts 1508, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 4118, size 3, pts 1520, dts 1520, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4127, size 3, pts 1540, dts 1540, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4136, size 37, pts 1550, dts 1550, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 4179, size 3, pts 1560, dts 1560, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4188, size 3, pts 1580, dts 1580, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4197, size 37, pts 1634, dts 1592, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 4240, size 3, pts 1600, dts 1600, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4249, size 3, pts 1620, dts 1620, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4258, size 46, pts 1842, dts 1634, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 4310, size 3, pts 1640, dts 1640, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4319, size 3, pts 1660, dts 1660, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4328, size 39, pts 1759, dts 1675, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 4373, size 3, pts 1680, dts 1680, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4382, size 3, pts 1700, dts 1700, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4391, size 37, pts 1717, dts 1717, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 4434, size 3, pts 1720, dts 1720, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4443, size 3, pts 1740, dts 1740, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4452, size 37, pts 1800, dts 1759, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 4495, size 3, pts 1760, dts 1760, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4504, size 3, pts 1780, dts 1780, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4513, size 46, pts 2009, dts 1800, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 4565, size 3, pts 1800, dts 1800, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4574, size 3, pts 1820, dts 1820, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4583, size 3, pts 1840, dts 1840, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4592, size 39, pts 1926, dts 1842, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 4637, size 3, pts 1860, dts 1860, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4646, size 3, pts 1880, dts 1880, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4655, size 37, pts 1884, dts 1884, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 4698, size 3, pts 1900, dts 1900, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4707, size 3, pts 1920, dts 1920, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4716, size 37, pts 1967, dts 1926, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 4759, size 3, pts 1940, dts 1940, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4768, size 3, pts 1960, dts 1960, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4777, size 46, pts 2176, dts 1967, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 4829, size 3, pts 1980, dts 1980, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4838, size 3, pts 2000, dts 2000, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4847, size 39, pts 2092, dts 2009, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 4892, size 3, pts 2020, dts 2020, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4901, size 3, pts 2040, dts 2040, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4910, size 37, pts 2051, dts 2051, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 4953, size 3, pts 2060, dts 2060, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4962, size 3, pts 2080, dts 2080, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 4971, size 37, pts 2134, dts 2092, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5014, size 3, pts 2100, dts 2100, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5023, size 3, pts 2120, dts 2120, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5032, size 46, pts 2343, dts 2134, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5084, size 3, pts 2140, dts 2140, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5093, size 3, pts 2160, dts 2160, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5102, size 39, pts 2259, dts 2176, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5147, size 3, pts 2180, dts 2180, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5156, size 3, pts 2200, dts 2200, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5165, size 37, pts 2218, dts 2218, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5208, size 3, pts 2220, dts 2220, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5217, size 3, pts 2240, dts 2240, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5226, size 37, pts 2301, dts 2259, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5269, size 3, pts 2260, dts 2260, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5278, size 3, pts 2280, dts 2280, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5287, size 3, pts 2300, dts 2300, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5296, size 46, pts 2509, dts 2301, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5348, size 3, pts 2320, dts 2320, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5357, size 3, pts 2340, dts 2340, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5366, size 39, pts 2426, dts 2343, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5411, size 3, pts 2360, dts 2360, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5420, size 3, pts 2380, dts 2380, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5429, size 37, pts 2384, dts 2384, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5472, size 3, pts 2400, dts 2400, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5481, size 3, pts 2420, dts 2420, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5490, size 37, pts 2468, dts 2426, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5533, size 3, pts 2440, dts 2440, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5542, size 3, pts 2460, dts 2460, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5551, size 46, pts 2676, dts 2468, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5603, size 3, pts 2480, dts 2480, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5612, size 3, pts 2500, dts 2500, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5621, size 39, pts 2593, dts 2509, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5666, size 3, pts 2520, dts 2520, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5675, size 3, pts 2540, dts 2540, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5684, size 37, pts 2551, dts 2551, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5727, size 3, pts 2560, dts 2560, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5736, size 3, pts 2580, dts 2580, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5745, size 37, pts 2635, dts 2593, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5788, size 3, pts 2600, dts 2600, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5797, size 3, pts 2620, dts 2620, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5806, size 46, pts 2843, dts 2635, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5858, size 3, pts 2640, dts 2640, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5867, size 3, pts 2660, dts 2660, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5876, size 39, pts 2760, dts 2676, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5921, size 3, pts 2680, dts 2680, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5930, size 3, pts 2700, dts 2700, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5939, size 37, pts 2718, dts 2718, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 5982, size 3, pts 2720, dts 2720, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 5991, size 3, pts 2740, dts 2740, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6000, size 37, pts 2801, dts 2760, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 6043, size 3, pts 2760, dts 2760, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6052, size 3, pts 2780, dts 2780, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6061, size 3, pts 2800, dts 2800, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6070, size 46, pts 3010, dts 2801, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 6122, size 3, pts 2820, dts 2820, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6131, size 3, pts 2840, dts 2840, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6140, size 39, pts 2927, dts 2843, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 6185, size 3, pts 2860, dts 2860, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6194, size 3, pts 2880, dts 2880, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6203, size 37, pts 2885, dts 2885, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 6246, size 3, pts 2900, dts 2900, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6255, size 3, pts 2920, dts 2920, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6264, size 37, pts 2968, dts 2927, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 6307, size 3, pts 2940, dts 2940, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6316, size 3, pts 2960, dts 2960, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6325, size 46, pts 3177, dts 2968, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 6377, size 3, pts 2980, dts 2980, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6386, size 3, pts 3000, dts 3000, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6395, size 39, pts 3093, dts 3010, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 6440, size 3, pts 3020, dts 3020, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6449, size 3, pts 3040, dts 3040, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6458, size 37, pts 3052, dts 3052, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 6501, size 3, pts 3060, dts 3060, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6510, size 3, pts 3080, dts 3080, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6519, size 37, pts 3135, dts 3093, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 6562, size 3, pts 3100, dts 3100, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6571, size 3, pts 3120, dts 3120, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6580, size 46, pts 3344, dts 3135, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 6632, size 3, pts 3140, dts 3140, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6641, size 3, pts 3160, dts 3160, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6650, size 39, pts 3260, dts 3177, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 6695, size 3, pts 3180, dts 3180, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6704, size 3, pts 3200, dts 3200, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6713, size 37, pts 3219, dts 3219, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 6756, size 3, pts 3220, dts 3220, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6765, size 3, pts 3240, dts 3240, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6774, size 37, pts 3302, dts 3260, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 6817, size 3, pts 3260, dts 3260, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6826, size 3, pts 3280, dts 3280, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6835, size 3, pts 3300, dts 3300, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6844, size 46, pts 3510, dts 3302, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 6896, size 3, pts 3320, dts 3320, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6905, size 3, pts 3340, dts 3340, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6914, size 39, pts 3427, dts 3344, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 6959, size 3, pts 3360, dts 3360, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6968, size 3, pts 3380, dts 3380, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 6977, size 37, pts 3385, dts 3385, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7020, size 3, pts 3400, dts 3400, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7029, size 3, pts 3420, dts 3420, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7038, size 37, pts 3469, dts 3427, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7081, size 3, pts 3440, dts 3440, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7090, size 3, pts 3460, dts 3460, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7099, size 46, pts 3677, dts 3469, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7151, size 3, pts 3480, dts 3480, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7160, size 3, pts 3500, dts 3500, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7169, size 39, pts 3594, dts 3510, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7214, size 3, pts 3520, dts 3520, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7223, size 3, pts 3540, dts 3540, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7232, size 37, pts 3552, dts 3552, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7275, size 3, pts 3560, dts 3560, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7284, size 3, pts 3580, dts 3580, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7293, size 37, pts 3636, dts 3594, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7336, size 3, pts 3600, dts 3600, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7345, size 3, pts 3620, dts 3620, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7354, size 46, pts 3844, dts 3636, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7406, size 3, pts 3640, dts 3640, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7415, size 3, pts 3660, dts 3660, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7424, size 39, pts 3761, dts 3677, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7469, size 3, pts 3680, dts 3680, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7478, size 3, pts 3700, dts 3700, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7487, size 37, pts 3719, dts 3719, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7530, size 3, pts 3720, dts 3720, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7539, size 3, pts 3740, dts 3740, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7548, size 3, pts 3760, dts 3760, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7557, size 37, pts 3802, dts 3761, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7600, size 3, pts 3780, dts 3780, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7609, size 3, pts 3800, dts 3800, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7618, size 46, pts 4011, dts 3802, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7670, size 3, pts 3820, dts 3820, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7679, size 3, pts 3840, dts 3840, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7688, size 39, pts 3928, dts 3844, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7733, size 3, pts 3860, dts 3860, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7742, size 3, pts 3880, dts 3880, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7751, size 37, pts 3886, dts 3886, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7794, size 3, pts 3900, dts 3900, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7803, size 3, pts 3920, dts 3920, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7812, size 37, pts 3969, dts 3928, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7855, size 3, pts 3940, dts 3940, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7864, size 3, pts 3960, dts 3960, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7873, size 46, pts 4178, dts 3969, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7925, size 3, pts 3980, dts 3980, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7934, size 3, pts 4000, dts 4000, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7943, size 39, pts 4094, dts 4011, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 7988, size 3, pts 4020, dts 4020, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 7997, size 3, pts 4040, dts 4040, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8006, size 37, pts 4053, dts 4053, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 8049, size 3, pts 4060, dts 4060, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8058, size 3, pts 4080, dts 4080, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8067, size 37, pts 4136, dts 4094, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 8110, size 3, pts 4100, dts 4100, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8119, size 3, pts 4120, dts 4120, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8128, size 46, pts 4345, dts 4136, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 8180, size 3, pts 4140, dts 4140, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8189, size 3, pts 4160, dts 4160, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8198, size 39, pts 4261, dts 4178, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 8243, size 3, pts 4180, dts 4180, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8252, size 3, pts 4200, dts 4200, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8261, size 37, pts 4220, dts 4220, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 8304, size 3, pts 4220, dts 4220, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8313, size 3, pts 4240, dts 4240, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8322, size 3, pts 4260, dts 4260, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8331, size 37, pts 4303, dts 4261, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 8374, size 3, pts 4280, dts 4280, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8383, size 3, pts 4300, dts 4300, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8392, size 46, pts 4511, dts 4303, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 8444, size 3, pts 4320, dts 4320, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8453, size 3, pts 4340, dts 4340, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8462, size 39, pts 4428, dts 4345, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 8507, size 3, pts 4360, dts 4360, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8516, size 3, pts 4380, dts 4380, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8525, size 37, pts 4386, dts 4386, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 8568, size 3, pts 4400, dts 4400, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8577, size 3, pts 4420, dts 4420, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8586, size 37, pts 4470, dts 4428, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 8629, size 3, pts 4440, dts 4440, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8638, size 3, pts 4460, dts 4460, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8647, size 46, pts 4678, dts 4470, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 8699, size 3, pts 4480, dts 4480, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8708, size 3, pts 4500, dts 4500, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8717, size 39, pts 4595, dts 4511, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 8762, size 3, pts 4520, dts 4520, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8771, size 3, pts 4540, dts 4540, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8780, size 37, pts 4553, dts 4553, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 8823, size 3, pts 4560, dts 4560, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8832, size 3, pts 4580, dts 4580, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8841, size 37, pts 4637, dts 4595, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 8884, size 3, pts 4600, dts 4600, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8893, size 3, pts 4620, dts 4620, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8902, size 46, pts 4845, dts 4637, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 8954, size 3, pts 4640, dts 4640, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8963, size 3, pts 4660, dts 4660, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 8972, size 39, pts 4762, dts 4678, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 9017, size 3, pts 4680, dts 4680, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9026, size 3, pts 4700, dts 4700, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9035, size 37, pts 4720, dts 4720, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 9078, size 3, pts 4720, dts 4720, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9087, size 3, pts 4740, dts 4740, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9096, size 3, pts 4760, dts 4760, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9105, size 37, pts 4803, dts 4762, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 9148, size 3, pts 4780, dts 4780, duration 20, flags 128
[matroska @ 0000000002e45fe0] Starting new cluster at offset 9157 bytes, pts 5012dts 4803
[matroska @ 0000000002e45fe0] Writing block at offset 9173, size 3, pts 4800, dts 4800, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9182, size 46, pts 5012, dts 4803, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 9234, size 3, pts 4820, dts 4820, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9243, size 3, pts 4840, dts 4840, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9252, size 39, pts 4929, dts 4845, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 9297, size 3, pts 4860, dts 4860, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9306, size 3, pts 4880, dts 4880, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9315, size 37, pts 4887, dts 4887, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 9358, size 3, pts 4900, dts 4900, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9367, size 3, pts 4920, dts 4920, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9376, size 37, pts 4970, dts 4929, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 9419, size 3, pts 4940, dts 4940, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9428, size 3, pts 4960, dts 4960, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9437, size 46, pts 5179, dts 4970, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 9489, size 3, pts 4980, dts 4980, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9498, size 3, pts 5000, dts 5000, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9507, size 39, pts 5095, dts 5012, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 9552, size 3, pts 5020, dts 5020, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9561, size 3, pts 5040, dts 5040, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9570, size 37, pts 5054, dts 5054, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 9613, size 3, pts 5060, dts 5060, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9622, size 3, pts 5080, dts 5080, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9631, size 37, pts 5137, dts 5095, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 9674, size 3, pts 5100, dts 5100, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9683, size 3, pts 5120, dts 5120, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9692, size 46, pts 5346, dts 5137, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 9744, size 3, pts 5140, dts 5140, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9753, size 3, pts 5160, dts 5160, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9762, size 39, pts 5262, dts 5179, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 9807, size 3, pts 5180, dts 5180, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9816, size 3, pts 5200, dts 5200, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9825, size 3, pts 5220, dts 5220, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9834, size 37, pts 5221, dts 5221, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 9877, size 3, pts 5240, dts 5240, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9886, size 3, pts 5260, dts 5260, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9895, size 37, pts 5304, dts 5262, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 9938, size 3, pts 5280, dts 5280, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9947, size 3, pts 5300, dts 5300, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 9956, size 46, pts 5512, dts 5304, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10008, size 3, pts 5320, dts 5320, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10017, size 3, pts 5340, dts 5340, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10026, size 39, pts 5429, dts 5346, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10071, size 3, pts 5360, dts 5360, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10080, size 3, pts 5380, dts 5380, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10089, size 37, pts 5387, dts 5387, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10132, size 3, pts 5400, dts 5400, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10141, size 3, pts 5420, dts 5420, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10150, size 37, pts 5471, dts 5429, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10193, size 3, pts 5440, dts 5440, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10202, size 3, pts 5460, dts 5460, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10211, size 46, pts 5679, dts 5471, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10263, size 3, pts 5480, dts 5480, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10272, size 3, pts 5500, dts 5500, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10281, size 39, pts 5596, dts 5512, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10326, size 3, pts 5520, dts 5520, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10335, size 3, pts 5540, dts 5540, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10344, size 37, pts 5554, dts 5554, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10387, size 3, pts 5560, dts 5560, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10396, size 3, pts 5580, dts 5580, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10405, size 37, pts 5638, dts 5596, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10448, size 3, pts 5600, dts 5600, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10457, size 3, pts 5620, dts 5620, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10466, size 46, pts 5846, dts 5638, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10518, size 3, pts 5640, dts 5640, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10527, size 3, pts 5660, dts 5660, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10536, size 39, pts 5763, dts 5679, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10581, size 3, pts 5680, dts 5680, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10590, size 3, pts 5700, dts 5700, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10599, size 3, pts 5720, dts 5720, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10608, size 37, pts 5721, dts 5721, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10651, size 3, pts 5740, dts 5740, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10660, size 3, pts 5760, dts 5760, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10669, size 37, pts 5804, dts 5763, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10712, size 3, pts 5780, dts 5780, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10721, size 3, pts 5800, dts 5800, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10730, size 46, pts 6013, dts 5804, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10782, size 3, pts 5820, dts 5820, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10791, size 3, pts 5840, dts 5840, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10800, size 39, pts 5930, dts 5846, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10845, size 3, pts 5860, dts 5860, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10854, size 3, pts 5880, dts 5880, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10863, size 37, pts 5888, dts 5888, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10906, size 3, pts 5900, dts 5900, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10915, size 3, pts 5920, dts 5920, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10924, size 37, pts 5971, dts 5930, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 10967, size 3, pts 5940, dts 5940, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10976, size 3, pts 5960, dts 5960, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 10985, size 46, pts 6180, dts 5971, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11037, size 3, pts 5980, dts 5980, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11046, size 3, pts 6000, dts 6000, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11055, size 39, pts 6096, dts 6013, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11100, size 3, pts 6020, dts 6020, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11109, size 3, pts 6040, dts 6040, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11118, size 37, pts 6055, dts 6055, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11161, size 3, pts 6060, dts 6060, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11170, size 3, pts 6080, dts 6080, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11179, size 37, pts 6138, dts 6096, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11222, size 3, pts 6100, dts 6100, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11231, size 3, pts 6120, dts 6120, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11240, size 46, pts 6347, dts 6138, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11292, size 3, pts 6140, dts 6140, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11301, size 3, pts 6160, dts 6160, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11310, size 39, pts 6263, dts 6180, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11355, size 3, pts 6180, dts 6180, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11364, size 3, pts 6200, dts 6200, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11373, size 3, pts 6220, dts 6220, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11382, size 37, pts 6222, dts 6222, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11425, size 3, pts 6240, dts 6240, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11434, size 3, pts 6260, dts 6260, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11443, size 37, pts 6305, dts 6263, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11486, size 3, pts 6280, dts 6280, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11495, size 3, pts 6300, dts 6300, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11504, size 46, pts 6513, dts 6305, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11556, size 3, pts 6320, dts 6320, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11565, size 3, pts 6340, dts 6340, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11574, size 39, pts 6430, dts 6347, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11619, size 3, pts 6360, dts 6360, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11628, size 3, pts 6380, dts 6380, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11637, size 37, pts 6388, dts 6388, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11680, size 3, pts 6399, dts 6399, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11689, size 3, pts 6419, dts 6419, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11698, size 37, pts 6472, dts 6430, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11741, size 3, pts 6439, dts 6439, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11750, size 3, pts 6459, dts 6459, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11759, size 46, pts 6680, dts 6472, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11811, size 3, pts 6479, dts 6479, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11820, size 3, pts 6499, dts 6499, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11829, size 39, pts 6597, dts 6513, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11874, size 3, pts 6519, dts 6519, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11883, size 3, pts 6539, dts 6539, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11892, size 37, pts 6555, dts 6555, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11935, size 3, pts 6559, dts 6559, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11944, size 3, pts 6579, dts 6579, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 11953, size 37, pts 6639, dts 6597, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 11996, size 3, pts 6599, dts 6599, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12005, size 3, pts 6619, dts 6619, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12014, size 46, pts 6847, dts 6639, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 12066, size 3, pts 6639, dts 6639, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12075, size 3, pts 6659, dts 6659, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12084, size 3, pts 6679, dts 6679, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12093, size 39, pts 6764, dts 6680, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 12138, size 3, pts 6699, dts 6699, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12147, size 3, pts 6720, dts 6720, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12156, size 37, pts 6722, dts 6722, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 12199, size 3, pts 6740, dts 6740, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12208, size 3, pts 6760, dts 6760, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12217, size 37, pts 6805, dts 6764, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 12260, size 3, pts 6780, dts 6780, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12269, size 3, pts 6800, dts 6800, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12278, size 46, pts 7014, dts 6805, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 12330, size 3, pts 6820, dts 6820, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12339, size 3, pts 6840, dts 6840, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12348, size 39, pts 6931, dts 6847, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 12393, size 3, pts 6860, dts 6860, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12402, size 3, pts 6880, dts 6880, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12411, size 37, pts 6889, dts 6889, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 12454, size 3, pts 6900, dts 6900, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12463, size 3, pts 6920, dts 6920, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12472, size 37, pts 6972, dts 6931, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 12515, size 3, pts 6940, dts 6940, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12524, size 3, pts 6960, dts 6960, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12533, size 46, pts 7181, dts 6972, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 12585, size 3, pts 6980, dts 6980, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12594, size 3, pts 7000, dts 7000, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12603, size 39, pts 7097, dts 7014, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 12648, size 3, pts 7020, dts 7020, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12657, size 3, pts 7040, dts 7040, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12666, size 37, pts 7056, dts 7056, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 12709, size 3, pts 7060, dts 7060, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12718, size 3, pts 7080, dts 7080, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12727, size 37, pts 7139, dts 7097, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 12770, size 3, pts 7100, dts 7100, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12779, size 3, pts 7120, dts 7120, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12788, size 46, pts 7348, dts 7139, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 12840, size 3, pts 7140, dts 7140, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12849, size 3, pts 7160, dts 7160, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12858, size 3, pts 7180, dts 7180, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12867, size 39, pts 7264, dts 7181, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 12912, size 3, pts 7200, dts 7200, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12921, size 3, pts 7220, dts 7220, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12930, size 37, pts 7223, dts 7223, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 12973, size 3, pts 7239, dts 7239, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12982, size 3, pts 7259, dts 7259, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 12991, size 37, pts 7306, dts 7264, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 13034, size 3, pts 7279, dts 7279, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13043, size 3, pts 7299, dts 7299, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13052, size 46, pts 7514, dts 7306, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 13104, size 3, pts 7319, dts 7319, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13113, size 3, pts 7339, dts 7339, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13122, size 39, pts 7431, dts 7348, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 13167, size 3, pts 7359, dts 7359, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13176, size 3, pts 7379, dts 7379, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13185, size 37, pts 7389, dts 7389, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 13228, size 3, pts 7399, dts 7399, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13237, size 3, pts 7419, dts 7419, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13246, size 37, pts 7473, dts 7431, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 13289, size 3, pts 7439, dts 7439, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13298, size 3, pts 7459, dts 7459, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13307, size 46, pts 7681, dts 7473, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 13359, size 3, pts 7479, dts 7479, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13368, size 3, pts 7499, dts 7499, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13377, size 39, pts 7598, dts 7514, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 13422, size 3, pts 7519, dts 7519, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13431, size 3, pts 7539, dts 7539, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13440, size 37, pts 7556, dts 7556, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 13483, size 3, pts 7560, dts 7560, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13492, size 3, pts 7580, dts 7580, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13501, size 37, pts 7640, dts 7598, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 13544, size 3, pts 7600, dts 7600, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13553, size 3, pts 7620, dts 7620, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13562, size 46, pts 7848, dts 7640, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 13614, size 3, pts 7640, dts 7640, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13623, size 3, pts 7660, dts 7660, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13632, size 3, pts 7680, dts 7680, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13641, size 39, pts 7765, dts 7681, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 13686, size 3, pts 7700, dts 7700, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13695, size 3, pts 7720, dts 7720, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13704, size 37, pts 7723, dts 7723, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 13747, size 3, pts 7740, dts 7740, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13756, size 3, pts 7760, dts 7760, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13765, size 37, pts 7806, dts 7765, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 13808, size 3, pts 7780, dts 7780, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13817, size 3, pts 7800, dts 7800, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13826, size 46, pts 8015, dts 7806, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 13878, size 3, pts 7820, dts 7820, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13887, size 3, pts 7840, dts 7840, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13896, size 39, pts 7932, dts 7848, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 13941, size 3, pts 7860, dts 7860, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13950, size 3, pts 7880, dts 7880, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 13959, size 37, pts 7890, dts 7890, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 14002, size 3, pts 7900, dts 7900, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14011, size 3, pts 7920, dts 7920, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14020, size 37, pts 7973, dts 7932, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 14063, size 3, pts 7940, dts 7940, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14072, size 3, pts 7960, dts 7960, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14081, size 46, pts 8182, dts 7973, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 14133, size 3, pts 7980, dts 7980, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14142, size 3, pts 8000, dts 8000, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14151, size 39, pts 8098, dts 8015, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 14196, size 3, pts 8020, dts 8020, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14205, size 3, pts 8040, dts 8040, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14214, size 37, pts 8057, dts 8057, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 14257, size 3, pts 8060, dts 8060, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14266, size 3, pts 8079, dts 8079, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14275, size 37, pts 8140, dts 8098, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 14318, size 3, pts 8099, dts 8099, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14327, size 3, pts 8119, dts 8119, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14336, size 3, pts 8139, dts 8139, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14345, size 45, pts 8307, dts 8140, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 14396, size 3, pts 8159, dts 8159, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14405, size 3, pts 8179, dts 8179, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14414, size 37, pts 8265, dts 8182, duration 41, flags 0
[matroska @ 0000000002e45fe0] Writing block at offset 14457, size 3, pts 8199, dts 8199, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14466, size 3, pts 8219, dts 8219, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14475, size 37, pts 8224, dts 8224, duration 42, flags 0
[libopus @ 0000000005474120] Trying to remove 568 more samples than there are in the queue
[output stream 0:1 @ 0000000005475b40] EOF on sink link output stream 0:1:default.
No more output streams to write to, finishing.
[matroska @ 0000000002e45fe0] Writing block at offset 14518, size 3, pts 8239, dts 8239, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14527, size 3, pts 8259, dts 8259, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14536, size 3, pts 8279, dts 8279, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14545, size 3, pts 8299, dts 8299, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14554, size 3, pts 8319, dts 8319, duration 20, flags 128
[matroska @ 0000000002e45fe0] Writing block at offset 14563, size 3, pts 8339, dts 8339, duration 8, flags 128
[matroska @ 0000000002e45fe0] end duration = 8348
frame=  200 fps=0.0 q=-1.0 Lsize=      14kB time=00:00:08.35 bitrate=  14.0kbits/s    
video:9kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 44.737103%
Input file #0 (original.mkv):
  Input stream #0:0 (video): 200 packets read (8845 bytes); 
  Input stream #0:1 (audio): 80 packets read (882 bytes); 80 frames decoded (367867 samples); 
  Total: 280 packets (9727 bytes) demuxed
Output file #0 (ffmpeg_opus.mkv):
  Output stream #0:0 (video): 200 packets muxed (8845 bytes); 
  Output stream #0:1 (audio): 418 frames encoded (400400 samples); 418 packets muxed (1254 bytes); 
  Total: 618 packets (10099 bytes) muxed
88 frames successfully decoded, 0 decoding errors
[AVIOContext @ 00000000054bd620] Statistics: 26 seeks, 439 writeouts
[AVIOContext @ 0000000002e3e2c0] Statistics: 24852 bytes read, 0 seeks

Attachments (2)

mkv audio reencoding leads to nonuniform video timecodes.7z (12.1 KB) - added by sneaker 3 years ago.
sample files (orignal and transcode + timecodes)
other formats.7z (12.0 KB) - added by sneaker 3 years ago.
additional samples (mp3, ac3, vorbis, pcm)

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by sneaker

sample files (orignal and transcode + timecodes)

comment:1 Changed 3 years ago by heleppkes

Only frame 1 seems to be wrong (42->49), everything else has the perfect same distance as before (41/42ms) (ie. a 7ms offset from the original)

I could imagine the Opus special handling might be involved here.

Last edited 3 years ago by heleppkes (previous) (diff)

comment:2 Changed 3 years ago by sneaker

You are kind of right, I didn't look close enough. Happens on 3 occasions:
49 - 0 = 49
167 - 132 = 32
216 - 167 = 49
Then again, the sample is short and there is a general shift of the timecodes. (didn't test if async)

I also suspected special Opus handling at first but it happens with other formats as well but not with pcm. Maybe "only" formats suffering from encoder delay? Interestingly, it also only happens on those 3 points (+the general skew) but each one with different timecodes:
ac3:

# timecode format v2
0
48
89
131
167
215
256
298
340
381
423
465
506
...

mp3:

# timecode format v2
0
67
108
150
167
234
275
317
359
400
442
484
525

vorbis:

# timecode format v2
0
45
86
128
167
212
253
295
337
378
420
462
503
...
Last edited 3 years ago by sneaker (previous) (diff)

Changed 3 years ago by sneaker

additional samples (mp3, ac3, vorbis, pcm)

comment:3 Changed 3 years ago by sneaker

I looked deeper into the delay and it seems to match the encoder delay. This does not explain the weirdness at the beginning, though.
This also has implications for ticket #4487 which might need to be re-opened.

comment:4 Changed 3 months ago by mkver

  1. I think I know why this is happening. The code for offsetting the timestamps is in the write_packet function in libavformat/mux.c. The video in the sample uses two reorder frames and therefore the first two video packets have a dts that is smaller than the dts of the first audio packet; there are therefore interleaved first and arrive first at write_packet where no offset is set (because the pts of both video packets isn't negative, so no shifting is required). But when the first audio packet (with negative pts due to encoder delay) arrives, there needs to be a shift which affects all following packets in coding order (which also explains why MKVToolNix's timecode/timestamp files (which ignore coding order) are unsuited for this). Here is mkvinfo's output for ffmpeg_opus.mkv confirming what I just said:
    Track 1: video, codec ID: V_MPEG4/ISO/AVC (h.264 profile: High @L3.1), mkvmerge/mkvextract track ID: 0, language: und, default duration: 41.708ms (23.976 frames/fields per second for a video track), pixel width: 1280, pixel height: 720, display width: 1280, display height: 720
    Track 2: audio, codec ID: A_OPUS, mkvmerge/mkvextract track ID: 1, language: und, channels: 1, sampling freq: 48000, bits per sample: 16
    I frame, track 1, timestamp 00:00:00.000000000, size 943, adler 0xd5581006
    P frame, track 1, timestamp 00:00:00.167000000, size 40, adler 0x98d0052f
    I frame, track 2, timestamp 00:00:00.000000000, size 3, adler 0x05e702f6
    P frame, track 1, timestamp 00:00:00.090000000, size 37, adler 0x63b003e4
    I frame, track 2, timestamp 00:00:00.021000000, size 3, adler 0x05e702f6
    I frame, track 2, timestamp 00:00:00.041000000, size 3, adler 0x05e702f6
    P frame, track 1, timestamp 00:00:00.049000000, size 37, adler 0x50a503b5
    I frame, track 2, timestamp 00:00:00.061000000, size 3, adler 0x05e702f6
    I frame, track 2, timestamp 00:00:00.081000000, size 3, adler 0x05e702f6
    P frame, track 1, timestamp 00:00:00.132000000, size 37, adler 0x4fb803ae
    ...
    

If one encodes with the libfdk_aac encoder (which has 2048 samples encoder delay which is longer than one frame at 24/1.001 fps), all video frames except the very first one are offset.

  1. This happens generally with encoder delay, it is not opus-specific. Although Opus should be treated specially in this regard (the CodecDelay? header field already indicates the delay, using this header field and baking the delay into the timestamps is wrong, but that is another issue). [Edit]: The "another issue" is now issue #7182. The CodecDelay? field actually shows that one can't rely on a single offset for all tracks.
  2. Judging from this, I think that the decisions regarding delay should be made before any packet is written so that packets from all tracks (or all tracks for which packets are available at the beginning) can be considered.
  3. For a container like Matroska for which the offset decision is based upon pts (by default) there is also another issue that could happen and could be fixed by not making the decision about the offset in write_packet: Just because the first packet of a track has a lower dts than the first packet of another track does not mean that the first track needs a bigger offset. That's because the difference of dts and pts can be different for the tracks. An example: Imagine a video track with (say) 24/1.001 fps and two reorder frames whose first packet has a pts of -1 ms (easily createable with -itsoffset). Then the first packet has a pts of -1 ms and a dts of about -84 ms. If one has e.g. an audio track whose first packet has a pts=dts in between -1 ms and -84 ms (given the encoder delay, this can easily happen), then the audio packet will still have a negative pts after shifting. For Matroska this means that the file is against the specifications.
Last edited 3 months ago by mkver (previous) (diff)
Note: See TracTickets for help on using tickets.