Failed to export "Application provided invalid, non monotonically increasing dts to muxer in stream 0"

Not sure what’s going on with this… Any help would be appreciated. It exports the first few minutes just fine and then fails around the 3:30 mark. When I tried to export a part of it by importing the MLT as a clip and starting the render at a point a few seconds before the crash, it only got a second or further before crashing. I’ve attached the log of the trimmed reattempt.

Project file: unify final pfa compiled - manual edit 2 - Repaired.mlt (45.0 KB)

I’m exporting using QSV in 4K60 at 70% quality.

Seriously though, any ideas would be greatly appreciated. I’m hoping to get this rendered soon, and the sooner I get it to work the sooner I can be done.

Export log:

plugin_mgr_get_object_file_plugins: error opening shared object file 'C:\Program Files\Shotcut\lib\ladspa/AUTHORS': "C:\Program Files\Shotcut\lib\ladspa\AUTHORS": The specified module could not be found.
plugin_mgr_get_object_file_plugins: error opening shared object file 'C:\Program Files\Shotcut\lib\ladspa/COPYING': "C:\Program Files\Shotcut\lib\ladspa\COPYING": The specified module could not be found.
plugin_mgr_get_object_file_plugins: error opening shared object file 'C:\Program Files\Shotcut\lib\ladspa/readme.txt': "C:\Program Files\Shotcut\lib\ladspa\readme.txt": 
[h264_qsv @ 000002771a8f4f80] Initialized an internal MFX session using hardware accelerated implementation
[h264_qsv @ 000002771a8f4f80] Using the constant quantization parameter (CQP) ratecontrol method
[h264_qsv @ 000002771a8f4f80] profile: high; level: 52
[h264_qsv @ 000002771a8f4f80] GopPicSize: 300; GopRefDist: 4; GopOptFlag: closed ; IdrInterval: 0
[h264_qsv @ 000002771a8f4f80] TargetUsage: 5; RateControlMethod: CQP
[h264_qsv @ 000002771a8f4f80] QPI: 12; QPP: 16; QPB: 21
[h264_qsv @ 000002771a8f4f80] NumSlice: 1; NumRefFrame: 3
[h264_qsv @ 000002771a8f4f80] RateDistortionOpt: OFF
[h264_qsv @ 000002771a8f4f80] RecoveryPointSEI: OFF IntRefType: 0; IntRefCycleSize: 0; IntRefQPDelta: 0
[h264_qsv @ 000002771a8f4f80] MaxFrameSize: 0; MaxSliceSize: 0; 
[h264_qsv @ 000002771a8f4f80] BitrateLimit: ON; MBBRC: OFF; ExtBRC: OFF
[h264_qsv @ 000002771a8f4f80] Trellis: auto
[h264_qsv @ 000002771a8f4f80] VDENC: OFF
[h264_qsv @ 000002771a8f4f80] RepeatPPS: OFF; NumMbPerSlice: 0; LookAheadDS: 2x
[h264_qsv @ 000002771a8f4f80] AdaptiveI: OFF; AdaptiveB: OFF; BRefType: pyramid
[h264_qsv @ 000002771a8f4f80] MinQPI: 0; MaxQPI: 0; MinQPP: 0; MaxQPP: 0; MinQPB: 0; MaxQPB: 0
[h264_qsv @ 000002771a8f4f80] Entropy coding: CABAC; MaxDecFrameBuffering: 3
[h264_qsv @ 000002771a8f4f80] NalHrdConformance: OFF; SingleSeiNalUnit: ON; VuiVclHrdParameters: OFF VuiNalHrdParameters: OFF
[h264_qsv @ 000002771a8f4f80] FrameRateExtD: 1; FrameRateExtN: 60 
[h264 @ 0000027726ac5900] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 000002771ac06740] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0000027726e01040] Reinit context to 3840x2160, pix_fmt: yuv420p
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[AVIOContext @ 000002771abadb00] Statistics: 1015505 bytes read, 2 seeks
[producer avformat-novalidate] D:/migue/OneDrive - CDMN/MuseScore3/Scores/Unuify/Final Video/fl background render.mp4
    missing hwaccel parameters. skipping hardware initialization
[h264 @ 0000027727062a00] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 00000277270640c0] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 0000027726f87040] Reinit context to 1920x1088, pix_fmt: yuv420p
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[AVIOContext @ 0000027726cd1d80] Statistics: 1843325 bytes read, 2 seeks
[producer avformat-novalidate] D:/migue/OneDrive - CDMN/MuseScore3/Scores/Unuify/Final Video/waveform background new.mp4
    missing hwaccel parameters. skipping hardware initialization
[h264 @ 0000027726f854c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0000027726f874c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[AVIOContext @ 0000027745638500] Statistics: 875949 bytes read, 2 seeks
[producer avformat-novalidate] D:/migue/OneDrive - CDMN/MuseScore3/Scores/Unuify/Final Video/render particles mask.mp4
    missing hwaccel parameters. skipping hardware initialization
[h264 @ 0000027726f85e00] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0000027726f88b80] Reinit context to 3840x2160, pix_fmt: yuv420p
[AVIOContext @ 0000027745637d00] Statistics: 901705 bytes read, 2 seeks
[producer avformat-novalidate] D:/migue/OneDrive - CDMN/MuseScore3/Scores/Unuify/Final Video/render particles.mp4
    missing hwaccel parameters. skipping hardware initialization
[h264 @ 0000027726f96cc0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0000027726f955c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[AVIOContext @ 00000277455ca7c0] Statistics: 791821 bytes read, 2 seeks
[producer avformat-novalidate] D:/migue/OneDrive - CDMN/MuseScore3/Scores/Unuify/Final Video/render pfa mask.mp4
    missing hwaccel parameters. skipping hardware initialization
[h264 @ 0000027726f93600] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0000027726f91f00] Reinit context to 3840x2160, pix_fmt: yuv420p
[AVIOContext @ 00000277455c92c0] Statistics: 937459 bytes read, 2 seeks
[producer avformat-novalidate] D:/migue/OneDrive - CDMN/MuseScore3/Scores/Unuify/Final Video/render pfa.mp4
    missing hwaccel parameters. skipping hardware initialization
[wav @ 0000027745886140] parser not found for codec pcm_s16le, packets or times may be invalid.
[wav @ 00000277457c1900] parser not found for codec pcm_s16le, packets or times may be invalid.
[producer avformat] audio: total_streams 1 max_stream 0 total_channels 2 max_channels 2
[AVIOContext @ 00000277455ca7c0] Statistics: 294956 bytes read, 2 seeks
[filter swresample] 2(stereo) f32le 44100Hz -> 2(stereo) f32le 48000Hz
[producer avformat-novalidate] D:/migue/OneDrive - CDMN/MuseScore3/Scores/Unuify/Final Video/render pfa.mp4
    checking VFR: pkt.duration 256
[h264 @ 0000027726f93a80] Reinit context to 3840x2160, pix_fmt: yuv420p
[producer avformat-novalidate] D:/migue/OneDrive - CDMN/MuseScore3/Scores/Unuify/Final Video/render pfa mask.mp4
    checking VFR: pkt.duration 256
[h264 @ 0000027726f96800] Reinit context to 3840x2160, pix_fmt: yuv420p
[producer avformat-novalidate] D:/migue/OneDrive - CDMN/MuseScore3/Scores/Unuify/Final Video/render particles.mp4
    checking VFR: pkt.duration 256
[h264 @ 0000027727062e80] Reinit context to 3840x2160, pix_fmt: yuv420p
[producer avformat-novalidate] D:/migue/OneDrive - CDMN/MuseScore3/Scores/Unuify/Final Video/render particles mask.mp4
    checking VFR: pkt.duration 256
[h264 @ 0000027726f894c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[producer avformat-novalidate] D:/migue/OneDrive - CDMN/MuseScore3/Scores/Unuify/Final Video/waveform background new.mp4
    checking VFR: pkt.duration 256
[h264 @ 0000027726f8a700] Reinit context to 1920x1088, pix_fmt: yuv420p
[producer avformat-novalidate] D:/migue/OneDrive - CDMN/MuseScore3/Scores/Unuify/Final Video/fl background render.mp4
    checking VFR: pkt.duration 512
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[mp4 @ 0000027719ee2400] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[mp4 @ 0000027719ee2400] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0000027727062e80] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0000027726f894c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0000027726f8a700] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[swscaler @ 000002783c735440] Warning: data is not aligned! This can lead to a speed loss
[h264 @ 0000027726f894c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0000027726f8a700] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0000027726f894c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0000027726f8a700] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0000027726f894c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0000027726f8a700] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0000027726f894c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0000027726f8a700] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 000002771ac020c0] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264_qsv @ 000002771a8f4f80] Error allocating the output packet
[consumer avformat] error with video encode: -12 (frame 2471)
[h264_qsv @ 000002771a8f4f80] Error allocating the output packet
[consumer avformat] error with video encode: -12 (frame 2472)
[mp4 @ 0000027719ee2400] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 632064 >= 631808
[consumer avformat] error writing video frame: -22
[mp4 @ 0000027719ee2400] Starting second pass: moving the moov atom to the beginning of the file
[AVIOContext @ 000002776fa10180] Statistics: 160204905 bytes read, 0 seeks
[aac @ 000002771aaa2980] Qavg: 233.499
[aac @ 000002771aaa2980] 2 frames left in the queue on closing
[AVIOContext @ 0000027726abcb40] Statistics: 4 seeks, 1227 writeouts

Failed with exit code 1

Maybe this is a hint. Have you tried to export without hardware encoding? Uncheck the hardware encoding and try again to see if it works better.

If you find that it always crashes at the same time in the project, I would suggest:

  1. Make a copy of your project
  2. Open the copy and delete features that you may be using (filters, transitions, clips on a timeline) at or around the time that the failure is occurring
  3. If you find a particular feature is causing the failure, then open your original project and remove just that one feature or recreate it.

The export still seems to be failing but I can’t be sure why, since Shotcut is closed when I check my PC again.

What is happenin g in your video timeline at frame 2471? (type “2471” into the time box in the source player). If e.g you have a filter starting there disable it and see if the export now works. If it does, delete the filter and re-apply it, then try to export again.

MAKE A COPY OF YOUR .mlt FILE BEFORE TRYING THINGS OUT, JUST IN CASE.

Sorry I’m late. Frame 2471 is a solid 2 and a half minutes before the render fails, and there’s nothing consequential there. I’d say that this is probably a memory allocation error caused by my system running out of resources.

See here:

This topic was automatically closed after 90 days. New replies are no longer allowed.