Opened 2 years ago

Closed 2 years ago

#9611 closed defect (fixed)

IMF muxing leads to non monotonically increasing dts to muxer

Reported by: Francesco Bucciantini Owned by: Pierre-Anthony Lemieux
Priority: normal Component: ffmpeg
Version: git-master Keywords: IMF
Cc: Francesco Bucciantini Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:

decoding an IMF through the CPL and muxing the result in mxf by copying video and audio tracks result in "non monotonically increasing dts to muxer" warning.

How to reproduce:

% ffmpeg.exe -f imf -i "\\mibcisilonsc\avisynth\Scambio\IMF\ghostbusters_afterlife_feat_240_hdr_uhd_italian\CPL_IMF10327985.xml" -map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -c:v copy -c:a copy -f mxf -y "\\mibcisilonsc\avisynth\Scambio\Raw\IMF.mxf"


ffmpeg version n5.0-1-ga66b58d61c-20220119
built on 19/01/2022

Full logs:

I:\Scambio\>ffmpeg.exe -f imf -i "\\mibcisilonsc\avisynth\Scambio\IMF\ghostbusters_afterlife_feat_240_hdr_uhd_italian\CPL_IMF10327985_11095156_GHOAFT_D_HDR_LB240_REC2020_2398_48K_ITA_DS_ENG_DS_ITA_51_ENG_51_TXT_ITA_A260E741_8158_46FB_B697_9A51FE4CF948.xml" -map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -c:v copy -c:a copy -f mxf -y "\\mibcisilonsc\avisynth\Scambio\Raw\IMF.mxf"
ffmpeg version n5.0-1-ga66b58d61c-20220119 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (crosstool-NG 1.24.0.498_5075e1f)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20220119
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100
IMF CPL ContentTitle: Ghostbusters: Afterlife
IMF CPL Id: urn:uuid:a260e741-8158-46fb-b697-9a51fe4cf948
[imf @ 0000017e1ac52a40] Opening '\\mibcisilonsc\avisynth\Scambio\IMF\ghostbusters_afterlife_feat_240_hdr_uhd_italian/ASSETMAP.xml' for reading
[mxf @ 0000017e1e39d700] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e39d700] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e39d700] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e39d700] local tag 0xdff2 with 0 size
[mxf @ 0000017e1e39d700] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e39d700] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e39d700] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e39d700] local tag 0xdff2 with 0 size
[mxf @ 0000017e1e2af8c0] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e2af8c0] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e2af8c0] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e2af8c0] local tag 0xdff2 with 0 size
[mxf @ 0000017e1e2af8c0] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e2af8c0] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e2af8c0] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e2af8c0] local tag 0xdff2 with 0 size
[mxf @ 0000017e1e610d00] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e610d00] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e610d00] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e610d00] local tag 0xdff2 with 0 size
[mxf @ 0000017e1e610d00] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e610d00] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e610d00] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e610d00] local tag 0xdff2 with 0 size
[mxf @ 0000017e1e5e42c0] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e5e42c0] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e5e42c0] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e5e42c0] local tag 0xdff2 with 0 size
[mxf @ 0000017e1e5e42c0] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e5e42c0] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e5e42c0] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e5e42c0] local tag 0xdff2 with 0 size
[mxf @ 0000017e1e6344c0] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e6344c0] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e6344c0] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e6344c0] local tag 0xdff2 with 0 size
[mxf @ 0000017e1e6344c0] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e6344c0] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e6344c0] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e6344c0] local tag 0xdff2 with 0 size
[mxf @ 0000017e1e63d4c0] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e63d4c0] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e63d4c0] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e63d4c0] local tag 0xdff2 with 0 size
[mxf @ 0000017e1e63d4c0] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e63d4c0] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e63d4c0] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e63d4c0] local tag 0xdff2 with 0 size
[mxf @ 0000017e1e606780] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e606780] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e606780] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e606780] local tag 0xdff2 with 0 size
[mxf @ 0000017e1e606780] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e606780] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e606780] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e606780] local tag 0xdff2 with 0 size
[mxf @ 0000017e1e6071c0] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e6071c0] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e6071c0] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e6071c0] local tag 0xdff2 with 0 size
[mxf @ 0000017e1e6071c0] local tag 0xdff5 with 0 size
[mxf @ 0000017e1e6071c0] local tag 0xdff4 with 0 size
[mxf @ 0000017e1e6071c0] local tag 0xdff3 with 0 size
[mxf @ 0000017e1e6071c0] local tag 0xdff2 with 0 size
Input #0, imf, from '\\mibcisilonsc\avisynth\Scambio\IMF\ghostbusters_afterlife_feat_240_hdr_uhd_italian\CPL_IMF10327985_11095156_GHOAFT_D_HDR_LB240_REC2020_2398_48K_ITA_DS_ENG_DS_ITA_51_ENG_51_TXT_ITA_A260E741_8158_46FB_B697_9A51FE4CF948.xml':
  Duration: 02:08:37.08, start: 0.000000, bitrate: 0 kb/s
  Stream #0:0: Video: jpeg2000, rgb48le(12 bpc, unknown/bt2020/smpte2084, progressive), 3840x2160, 23.98 tbr, 23.98 tbn
  Stream #0:1: Audio: pcm_s24le, 48000 Hz, downmix, s32 (24 bit), 2304 kb/s
  Stream #0:2: Audio: pcm_s24le, 48000 Hz, downmix, s32 (24 bit), 2304 kb/s
  Stream #0:3: Audio: pcm_s24le, 48000 Hz, 5.1(side), s32 (24 bit), 6912 kb/s
  Stream #0:4: Audio: pcm_s24le, 48000 Hz, 5.1(side), s32 (24 bit), 6912 kb/s
Output #0, mxf, to '\\mibcisilonsc\avisynth\Scambio\Raw\IMF.mxf':
  Metadata:
    encoder         : Lavf59.16.100
  Stream #0:0: Video: jpeg2000, rgb48le(12 bpc, unknown/bt2020/smpte2084, progressive), 3840x2160, q=2-31, 23.98 tbr, 23.98 tbn
  Stream #0:1: Audio: pcm_s24le, 48000 Hz, downmix, s32 (24 bit), 2304 kb/s (default)
  Stream #0:2: Audio: pcm_s24le, 48000 Hz, downmix, s32 (24 bit), 2304 kb/s
  Stream #0:3: Audio: pcm_s24le, 48000 Hz, 5.1(side), s32 (24 bit), 6912 kb/s
  Stream #0:4: Audio: pcm_s24le, 48000 Hz, 5.1(side), s32 (24 bit), 6912 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
  Stream #0:3 -> #0:3 (copy)
  Stream #0:4 -> #0:4 (copy)
Press [q] to stop, [?] for help
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 0
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 1
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 2
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 3
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 4
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 5
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 6
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 7
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 8
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 9
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 10
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 11
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 12
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 13
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 14
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 15
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 16
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 17
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 18
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 19
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 20
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 21
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 22
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 23
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 24
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 25
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 26
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 27
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 28
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 29
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 30
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 31
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 32
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 33
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 34
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 35
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 36
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 37
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 38
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 39
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 40
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 41
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 42
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 43
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 44
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 45
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 46
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 47
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 48
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 49
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 50
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 51
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 52
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 53
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 54
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 55
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 56
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 57
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 58
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 59
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 60
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 61
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 62
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 63
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 64
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 65
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 66
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 67
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 68
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 69
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 70
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 71
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 72
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 73
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 74
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 75
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 76
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 77
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 78
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 79
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 80
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 81
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 82
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 83
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 84
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 85
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 86
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 87
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 88
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 89
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 90
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 91
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 92
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 93
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 94
[mxf @ 0000017e25c47f00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 95 >= 95
frame=  227 fps= 12 q=-1.0 size=  216320kB time=00:00:09.46 bitrate=187170.7kbits/s speed=0.52x

[q] command received. Exiting.

frame=  258 fps= 14 q=-1.0 Lsize=  219489kB time=00:00:10.80 bitrate=166448.3kbits/s speed=0.576x
video:194803kB audio:24300kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.175811%

I've tried with 3 other titles and they all lead to the same error, namely: Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1643 >= 1411

Change History (9)

comment:2 by Tomas Härdin, 2 years ago

I think you mean to say IMF demuxing. Also this is missing a sample. Spontaneous guess is the input file is wrong or there is some problem with the IMF demuxer.

comment:3 by Pierre-Anthony Lemieux, 2 years ago

The PTS/DTS calculations in the imf demuxer might be incorrect: it looks like the PTS/DTS of the output frames should be equal to the PTS/DTS of the input frames minus the entry point into the input MXF file plus the offset of the input MXF file into the overall timeline -- like in concatdec.c?

https://github.com/FFmpeg/FFmpeg/blob/0a83ecbf48bdd591b264c3cbb70393bb518b1ecc/libavformat/imfdec.c#L802

This can be reproduced using:

ffmpeg -y -f imf -i   http://ffmpeg-imf-samples-public.s3-website-us-west-1.amazonaws.com/countdown/CPL_f5095caa-f204-4e1c-8a84-7af48c7ae16b.xml -c:v copy -c:a copy -f mxf build/out.mxf
Last edited 2 years ago by Pierre-Anthony Lemieux (previous) (diff)

comment:5 by Pierre-Anthony Lemieux, 2 years ago

Keywords: MXF removed
Reproduced by developer: set
Status: newopen

comment:7 by Pierre-Anthony Lemieux, 2 years ago

Owner: set to Pierre-Anthony Lemieux

comment:8 by Francesco Bucciantini, 2 years ago

I can confirm that the patch indeed fixes the pts/dts problem.
Well done, really! :D

comment:9 by Pierre-Anthony Lemieux, 2 years ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.