Application provided invalid, non monotonically increasing dts to muxer in stream with Intel QSV

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
dalboss
New User
Posts: 1
Joined: Sat Feb 11, 2023 9:52 am

Application provided invalid, non monotonically increasing dts to muxer in stream with Intel QSV

Post by dalboss »

Description of problem or question:

Job fails when is active H265 (Intel QSV). The warning is "Application provided invalid, non monotonically increasing dts to muxer in stream"
No problem without QSV (but too much slow) or H264 with QSV
It happens only for some DVD (about half of mine). Seem to start well but stops at about 10.400 KB, sometimes application crashes and immediately disappears!


HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake 1.6.1 (2023012300)
OS: Microsoft Windows NT 10.0.19045.0
CPU: 12th Gen Intel(R) Core(TM) i5-1240P
Ram: 15956 MB, 
GPU Information:
  Intel(R) Iris(R) Xe Graphics - 31.0.101.3729
Screen: 1920x1080
Temp Dir: C:\Users\Ste\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\Ste\AppData\Roaming\HandBrake

-------------------------------------------

 # Starting Encode ...

[19:20:01] base preset: 1000
[19:20:01] hb_init: starting libhb thread
[19:20:01] Starting work at: Wed Feb 08 19:20:01 2023
[19:20:01] 1 job(s) to process
[19:20:01] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac"
    ]
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "W:\\#MAINMOVIE\\#ricompressi\\La Grande Guerra-01-La Belle Epoque Finisce A Sarajevo-1-HD.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 14,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "10",
          "crop-right": "10",
          "crop-top": "0",
          "height": "720",
          "width": "1280"
        }
      },
      {
        "ID": 7,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 35,
    "Den": 36
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 8
    },
    "Title": 1,
    "Path": "W:\\#MAINMOVIE\\#Documentari\\LA GRANDE GUERRA-01-La belle epoque finisce a Sarajevo"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "qsv_h265",
    "Level": "auto",
    "Bitrate": 1000,
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "lowpower=1",
    "Preset": "balanced",
    "Profile": "auto",
    "QSV": {
      "Decode": true
    },
    "HardwareDecode": 0
  }
}
[19:20:01] CPU: 12th Gen Intel(R) Core(TM) i5-1240P
[19:20:01]  - Intel microarchitecture Alder Lake performance hybrid architecture
[19:20:01]  - logical processor count: 16
[19:20:01] Intel Quick Sync Video support: yes, gpu list: 0
[19:20:01] Intel Quick Sync Video integrated adapter with index 0
[19:20:01] Impl mfx-gen library path: C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_50491fb294f8338f\libmfx64-gen.dll
[19:20:01]  - Intel Media SDK hardware: API 2.7 (minimum: 1.3)
[19:20:01]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes)
[19:20:01]  - H.264 encoder: yes
[19:20:01]     - preferred implementation: hardware (1) via D3D11
[19:20:01]     - capabilities (hardware):  lowpower breftype icq vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[19:20:01]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[19:20:01]     - preferred implementation: hardware (1) via D3D11
[19:20:01]     - capabilities (hardware):  lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1
[19:20:01]  - AV1 encoder: no
[19:20:01] hb_scan: path=W:\#MAINMOVIE\#Documentari\LA GRANDE GUERRA-01-La belle epoque finisce a Sarajevo, title_index=1
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
[19:20:01] bd: not a bd - trying as a stream/file instead
libdvdread: Could not open input:
libdvdread: Can't open W:\#MAINMOVIE\#Documentari\LA GRANDE GUERRA-01-La belle epoque finisce a Sarajevo for reading
libdvdread: Device W:\#MAINMOVIE\#Documentari\LA GRANDE GUERRA-01-La belle epoque finisce a Sarajevo inaccessible, CSS authentication not available.
libdvdnav: Unable to open device file W:\#MAINMOVIE\#Documentari\LA GRANDE GUERRA-01-La belle epoque finisce a Sarajevo.
libdvdread: Could not open input:
libdvdread: Can't open W:\#MAINMOVIE\#Documentari\LA GRANDE GUERRA-01-La belle epoque finisce a Sarajevo for reading
libdvdread: Device W:\#MAINMOVIE\#Documentari\LA GRANDE GUERRA-01-La belle epoque finisce a Sarajevo inaccessible, CSS authentication not available.
[19:20:01] scan: DVD has 1 title(s)
[19:20:01] scan: scanning title 1
[19:20:01] scan: duration is 00:50:57 (3057520 ms)
[19:20:01] pgc_id: 1, pgn: 1: pgc: 0000026fe73d6160
[19:20:01] scan: checking audio 1
[19:20:01] scan: id=0x80bd, lang=italiano (AC3), 3cc=ita ext=0
[19:20:01] scan: title 1 has 8 chapters
[19:20:01] scan: chap 1, 125760 ms
[19:20:01] scan: chap 2, 432960 ms
[19:20:01] scan: chap 3, 828960 ms
[19:20:01] scan: chap 4, 898080 ms
[19:20:01] scan: chap 5, 610080 ms
[19:20:01] scan: chap 6, 120480 ms
[19:20:01] scan: chap 7, 40800 ms
[19:20:01] scan: chap 8, 400 ms
[19:20:01] scan: aspect = 16:9
[19:20:01] scan: decoding previews for title 1
[19:20:01] scan: title angle(s) 1
[19:20:01] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=192000 italiano (AC3) (2.0 ch) (192 kbps)
[19:20:01] scan: 10 previews, 720x576, 25.000 fps, autocrop = 0/0/10/10, aspect 16:9, PAR 64:45, color profile: 5-1-6, chroma location: left
[19:20:01] libhb: scan thread found 1 valid title(s)
[19:20:01] qsv: integrated qsv adapter with index 0 has been selected
[19:20:01] Skipping subtitle scan.  No suitable subtitle tracks.
[19:20:01] Starting Task: Encoding Pass
[19:20:01] Skipping vfr filter
[19:20:01] work: track 1, dithering not supported by codec
[19:20:01] job configuration:
[19:20:01]  * source
[19:20:01]    + W:\#MAINMOVIE\#Documentari\LA GRANDE GUERRA-01-La belle epoque finisce a Sarajevo
[19:20:01]    + title 1, chapter(s) 1 to 8
[19:20:01]  * destination
[19:20:01]    + W:\#MAINMOVIE\#ricompressi\La Grande Guerra-01-La Belle Epoque Finisce A Sarajevo-1-HD.mp4
[19:20:01]    + container: MPEG-4 (libavformat)
[19:20:01]      + align initial A/V stream timestamps
[19:20:01]      + chapter markers
[19:20:01]  * video track
[19:20:01]    + decoder: mpeg2video 8-bit (yuv420p)
[19:20:01]      + bitrate 200 kbps
[19:20:01]    + filters
[19:20:01]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[19:20:01]      + Decomb (mode=39)
[19:20:01]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=10:crop-right=10)
[19:20:01]        + source: 720 * 576, crop (0/0/10/10): 700 * 576, scale: 1280 * 720
[19:20:01]      + Format (format=nv12)
[19:20:01]    + Output geometry
[19:20:01]      + storage dimensions: 1280 x 720
[19:20:01]      + pixel aspect ratio: 35 : 36
[19:20:01]      + display dimensions: 1244 x 720
[19:20:01]    + encoder: H.265 (Intel Media SDK)
[19:20:01]      + preset:  balanced
[19:20:01]      + options: lowpower=1
[19:20:01]      + profile: auto
[19:20:01]      + level:   auto
[19:20:01]      + bitrate: 1000 kbps, pass: 0
[19:20:01]      + color profile: 5-1-6
[19:20:01]      + chroma location: left
[19:20:01]  * audio track 1
[19:20:01]    + decoder: italiano (AC3) (2.0 ch) (192 kbps) (track 1, id 0x80bd)
[19:20:01]      + bitrate: 192 kbps, samplerate: 48000 Hz
[19:20:01]    + mixdown: Stereo
[19:20:01]    + encoder: AAC (libavcodec)
[19:20:01]      + bitrate: 160 kbps, samplerate: 48000 Hz
libdvdread: Could not open input:
libdvdread: Can't open W:\#MAINMOVIE\#Documentari\LA GRANDE GUERRA-01-La belle epoque finisce a Sarajevo for reading
libdvdread: Device W:\#MAINMOVIE\#Documentari\LA GRANDE GUERRA-01-La belle epoque finisce a Sarajevo inaccessible, CSS authentication not available.
libdvdnav: Unable to open device file W:\#MAINMOVIE\#Documentari\LA GRANDE GUERRA-01-La belle epoque finisce a Sarajevo.
libdvdread: Could not open input:
libdvdread: Can't open W:\#MAINMOVIE\#Documentari\LA GRANDE GUERRA-01-La belle epoque finisce a Sarajevo for reading
libdvdread: Device W:\#MAINMOVIE\#Documentari\LA GRANDE GUERRA-01-La belle epoque finisce a Sarajevo inaccessible, CSS authentication not available.
[19:20:01] sync: expecting 76438 video frames
[19:20:01] encqsvInit: using encode-only (LowPower) path
[19:20:01] encqsvInit: H.265/HEVC Main profile @ level 3.1
[19:20:01] encqsvInit: TargetUsage 4 AsyncDepth 6
[19:20:01] encqsvInit: GopRefDist 8 GopPicSize 32 NumRefFrame 4 IdrInterval 0
[19:20:01] encqsvInit: BFramesMax 7 BRefType pyramid
[19:20:01] encqsvInit: RateControlMethod VBR TargetKbps 1000 MaxKbps 1000 BufferSizeInKB 250 InitialDelayInKB 125 BRCParamMultiplier 1
[19:20:01] sync: first pts video is 0
[19:20:01] sync: first pts audio 0x80bd is 0
[19:20:01] sync: "Chapter 1" (1) at frame 3 time 7200
[19:20:01] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 2.7
[mp4 @ 0000026fd0d6b100] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 3600 >= -3600
dvdnav: Can not set dvd menu, No such menu or menu not reachable.
avformatMux: track 0, av_interleaved_write_frame failed with error 'Invalid argument'
[mp4 @ 0000026fd0d6b100] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 3600 >= 0
[mp4 @ 0000026fd0d6b100] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 3600 >= 3600
[19:20:06] work: average encoding speed for job is 385.199707 fps
[19:20:06] comb detect: heavy 1556 | light 140 | uncombed 144 | total 1840
[19:20:06] decomb: deinterlaced 1555 | blended 138 | unfiltered 142 | total 1835
[19:20:06] ac3-decoder done: 2291 frames, 0 decoder errors
[19:20:06] mpeg2video-decoder done: 1901 frames, 0 decoder errors
[19:20:06] sync: got 1848 frames, 76438 expected
[19:20:06] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
[aac @ 0000026fe75f75c0] Ignoring attempt to flush encoder that doesn't support it
[aac @ 0000026fe75f75c0] Qavg: 587.551
[aac @ 0000026fe75f75c0] 2 frames left in the queue on closing
[19:20:06] mux: track 0, 1813 frames, 9017652 bytes, 990.95 kbps, fifo 2048
[19:20:06] mux: track 1, 3341 frames, 1519210 bytes, 166.95 kbps, fifo 4096
Error code -1,	hb_qsv_context_clean	245
[19:20:06] Finished work at: Wed Feb 08 19:20:06 2023
[19:20:06] libhb: work result = 4

 # Job Failed (4)

Post Reply