NVEnc icon indicating copy to clipboard operation
NVEnc copied to clipboard

assertion error

Open llittleton opened this issue 4 years ago • 6 comments

Hi,

I am getting this error on all longer encodes:

rAssertion next_dts <= 0x7fffffff failed at libavformat/movenc.c:1026

Source files are EVS server exports, AVC 600mbit UHD 4:2:2 10 bit, multi channel audio.

Please advise,

Lawrence

llittleton avatar Mar 10 '22 15:03 llittleton

Would you please share the ffprobe output for a file causing this error?

Thanks.

rigaya avatar Apr 25 '22 13:04 rigaya

ASTMAC04998MKTG:~ llittleton$ /Applications/ffprobe /Volumes/E4Raid/Gerard
Rational\ Reminder\ Podcast_21-APR-2022.mxf

ffprobe version 5.0.1-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2007-2022 the FFmpeg developers

built with Apple clang version 11.0.0 (clang-1100.0.33.17)

configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay

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

[mxf @ 0x7faf34608ec0] Stream #0: not enough frames to estimate rate; consider increasing probesize

Input #0, mxf, from '/Volumes/E4Raid/Gerard Rational Reminder Podcast_21-APR-2022.mxf':

Metadata:

operational_pattern_ul: 060e2b34.04010101.0d010201.01010900

uid             : 27986300-c23b-11ec-9cc6-ac1f6bb4e89c

generation_uid  : 27986300-c23b-11ec-9cc7-ac1f6bb4e89c

company_name    : oc

product_name    : OCtk

product_version : 2.10

product_uid     : 3a4fe380-0d01-11e4-869f-3cd92b5c1dfc

modification_date: 2022-04-22T07:53:06.480000Z

material_package_umid:

0x060A2B340101010501010D2013000000279778A0C23B11EC9C9EAC1F6BB4E89C

timecode        : 13:51:42;16

Duration: 02:03:26.73, start: 0.000000, bitrate: 614769 kb/s

Stream #0:0: Video: h264 (High 4:2:2 Intra), yuv422p10le(tv, unknown/unknown/bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 59.94 tbn

Metadata:

  file_package_umid:

0x060A2B340101010501010D201300000027966730C23B11EC9C7DAC1F6BB4E89C

Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

Metadata:

  file_package_umid:

0x060A2B340101010501010D201300000027966730C23B11EC9C7DAC1F6BB4E89C

Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

Metadata:

  file_package_umid:

0x060A2B340101010501010D201300000027966730C23B11EC9C7DAC1F6BB4E89C

Stream #0:3: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

Metadata:

  file_package_umid:

0x060A2B340101010501010D201300000027966730C23B11EC9C7DAC1F6BB4E89C

Stream #0:4: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

Metadata:

  file_package_umid:

0x060A2B340101010501010D201300000027966730C23B11EC9C7DAC1F6BB4E89C

Stream #0:5: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

Metadata:

  file_package_umid:

0x060A2B340101010501010D201300000027966730C23B11EC9C7DAC1F6BB4E89C

Stream #0:6: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

Metadata:

  file_package_umid:

0x060A2B340101010501010D201300000027966730C23B11EC9C7DAC1F6BB4E89C

Stream #0:7: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

Metadata:

  file_package_umid:

0x060A2B340101010501010D201300000027966730C23B11EC9C7DAC1F6BB4E89C

Stream #0:8: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

Metadata:

  file_package_umid:

0x060A2B340101010501010D201300000027966730C23B11EC9C7DAC1F6BB4E89C

Stream #0:9: Data: none

Metadata:

  file_package_umid:

0x060A2B340101010501010D201300000027966730C23B11EC9C7DAC1F6BB4E89C

  data_type       : vbi_vanc_smpte_436M

Unsupported codec with id 0 for input stream 9

On Mon, Apr 25, 2022 at 8:20 AM rigaya @.***> wrote:

Would you please share the ffprobe output for a file causing this error?

Thanks.

— Reply to this email directly, view it on GitHub https://github.com/rigaya/NVEnc/issues/383#issuecomment-1108563818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFXIICVNATRMGXFAKNA7H3VG2LZ5ANCNFSM5QM72Y7A . You are receiving this because you authored the thread.Message ID: @.***>

-- Skype: cyberlll Cell: 5125901161

llittleton avatar Apr 25 '22 14:04 llittleton

Thank you, so the input is 59.94fps with 59.94tbn, and is around 2hours, which should not cause trouble.

I started testing rather encoding with files more than 2hours but cannot reproduce the issue. It might be input file specific with (which I cannot test as I don't have EVS server exports), or might be related with the other command line options.

Would you please share the full command line option used and the log output?

rigaya avatar Apr 26 '22 13:04 rigaya

Here is the log, center part truncated.

3,

    "msg": "Command ***@***.***: Process exited with error

code: 3 (-------------------------------------------------------------------------------------\r\nD:\FFAStrans_Output\UHD\25466Keynote_SeizingOurOpportunity-00_20-APR-2022_UHD.mp4\r\n-------------------------------------------------------------------------------------\r\nNVEncC (x64) 6.00 (r2153) by rigaya, Apr 17 2022 04:14:29 (VC 1929/Win)\r\nOS Version Windows 10 x64 (18363) [UTF-8]\r\nCPU Intel Xeon(R) Silver 4114 @ 2.20GHz [TB: 2.80GHz] (20C/40T)\r\nGPU #0: Quadro P4000 (1792 cores, 1480 MHz)[PCIe3x16][511.09]\r\nNVENC / CUDA NVENC API 11.1, CUDA 11.6, schedule mode: auto\r\nInput Buffers CUDA, 33 frames\r\nInput Info avsw: h264(yuv422(10bit))->p010 [-], 3840x2160, 60000/1001 fps\r\nAVSync vfr\r\nVpp Filters copyHtoD\r\n cspconv(p010 -> yv12(16bit))\r\n selectevery 2 (offset 0)\r\n edgelevel: strength 5.0, threshold 20.0, black 0.0, white 0.0\r\n deband: mode 1, range 15, threY 15, threCb 15, threCr 15\r\n ditherY 15, ditherC 15, blurFirst no, randEachFrame no\r\n cspconv(yv12(16bit) -> p010)\r\nOutput Info H.265/HEVC main10 @ Level auto\r\n 3840x2160p 1:1 29.970fps (30000/1001fps)\r\n avwriter: hevc, #1:pcm_s24le/1ch -> aac/mono/192kbps,\r\n #2:pcm_s24le/1ch -> aac/mono/192kbps => mp4\r\nEncoder Preset default\r\nRate Control VBR\r\nMultipass 2pass-quarter\r\nBitrate 0 kbps (Max: 25000 kbps)\r\nTarget Quality 20.00\r\nInitial QP I:20 P:23 B:25\r\nQP Offset cb:0 cr:0\r\nVBV buf size auto\r\nLookahead on, 24 frames, Adaptive I, B Insert\r\nGOP length 300 frames\r\nB frames 0 frames [ref mode: disabled]\r\nRef frames 3 frames\r\nAQ on\r\nCU max / min auto / auto\r\nVUI matrix:bt709,colorprim:bt709,transfer:bt709,range:limited\r\nOthers mv:Q-pel \r\n[0.0%] 40 frames: 14.79 fps, 31131 kb/s, remain 1:48:09, GPU 61%, VE 73%, est out size 11887.6MB\r[0.1%] 79 frames: 22.49

Truncated

12679.8MB\r[93.5%] 161544 frames: 46.14 fps, 18449 kb/s, remain 0:04:03, GPU 71%, VE 65%, est out size 12678.2MB\r[93.5%] 161584 frames: 46.14 fps, 18447 kb/s, remain 0:04:02, GPU 63%, VE 74%, est out size 12676.5MB\r[93.6%] 161629 frames: 46.14 fps, 18446 kb/s, remain 0:04:01, GPU 67%, VE 82%, est out size 12676.1MB\r[93.6%] 161672 frames: 46.14 fps, 18443 kb/s, remain 0:04:00, GPU 64%, VE 75%, est out size 12673.9MB\r[93.6%] 161712 frames: 46.14 fps, 18441 kb/s, remain 0:03:60, GPU 74%, VE 75%, est out size 12672.2MB\r[93.6%] 161756 frames: 46.15 fps, 18438 kb/s, remain 0:03:59, GPU 62%, VE 68%, est out size 12670.7MB\r[93.7%] 161798 frames: 46.15 fps, 18435 kb/s, remain 0:03:58, GPU 60%, VE 74%, est out size 12668.5MB\r[93.7%] 161839 frames: 46.15 fps, 18433 kb/s, remain 0:03:57, GPU 65%, VE 74%, est out size 12666.9MB\r[93.7%] 161881 frames: 46.15 fps, 18430 kb/s, remain 0:03:56, GPU 60%, VE 71%, est out size 12665.4MB\r[93.7%] 161922 frames: 46.15 fps, 18428 kb/s, remain 0:03:55, GPU 68%, VE 69%, est out size 12663.8MB\r[mp4 @ 000002be49978300] Application provided duration: -9223372036854775808 / timestamp: -9223372036854775808 is out of range for mov/mp4 format\r\nAssertion next_dts <= 0x7fffffff failed at libavformat/movenc.c:1087\r\n)"

  }

}

],

"workflows": {

"20220426-0954-3274-5d0c-6d4a66946f16": {

  "wf_id": "20220426-0954-3274-5d0c-6d4a66946f16",

  "wf_name": "01_EVS_UHD_HEVC_v04",

  "wf_folder": "Hero",

  "description": "",

  "updated": "2022-04-26T09:56:27.114-05:00",

  "updated_by": ***@***.***",

  "created": "2022-04-26T09:54:32.745-05:00",

  "general": {},

  "maintainance": {},

  "special": {},

  "nodes": [

    {

      "id": "20220426-0954-5913-46ee-486455d60b78",

      "type": "mon_folder",

      "custom_proc_guid": "",

      "name": "Folder",

      "slots": 1,

      "hosts_group": 0,

      "bypass": false,

      "start_proc": true,

      "pos_x": 75,

      "pos_y": 75,

      "execute_on": "success"

    },

    {

      "id": "20220426-0955-0704-95fa-168f352afd1d",

      "type": "mon_folder",

      "custom_proc_guid": "",

      "name": "Folder",

      "slots": 1,

      "hosts_group": 0,

     "bypass": false,

      "start_proc": true,

      "pos_x": 247,

      "pos_y": 75,

      "execute_on": "success",

      "outbounds": [

        {

          "type": "cmd_run",

          "id": "20220426-0955-1151-3c6d-7cc02ad3ec45"

        }

      ]

    },

    {

      "id": "20220426-0955-1151-3c6d-7cc02ad3ec45",

      "type": "cmd_run",

      "custom_proc_guid": "",

      "name": "Command executor",

      "slots": 1,

      "hosts_group": 0,

      "bypass": false,

      "start_proc": false,

      "pos_x": 420,

      "pos_y": 75,

      "execute_on": "success",

      "preset": {

        "name": "(custom)",

        "id": null

      },

      "properties": {

        "command": "%comspec% \/c \"D:\\NVEncC_6.00_x64\\NVEncC64.exe

-i "%s_source%" --vpp-select-every 2 --fps 60000/1001 -c hevc --bframes 0 --vbr 0 --vbr-quality 20 --multipass 2pass-quarter -u P4 --max-bitrate 25000 --output-depth 10 --lookahead 24 --aq --profile main10 --mv-precision q-pel --audio-codec 1?aac --audio-codec 2?aac --colormatrix bt709 --colorprim bt709 --transfer bt709 --colorrange auto --vpp-edgelevel --vpp-deband --video-tag hvc1 -o "D:\FFAStrans_Output\UHD\%s_original_name%_UHD.mp4""",

        "out_source": "",

        "omit_exit_code": false,

        "console": false,

        "show_command": true,

        "stdout_var_name": "None",

        "set_timeout": 120,

        "error_timeout": 1

      }

    }

  ],

  "version": "1.3.0.35",

  "variable": {

    "wf_size": 115

  }

}

},

"sys": {

"ffastrans": {

  "general": {

    "install_dir": "D:\\FFAStrans1.3.0.1",

    "versions": {

      "manager": "1.3.0.35",

      "queuer": "1.3.0.45",

      "service": "1.3.0.71"

    },

    "environment_name": "",

    "use_shared": false,

    "work_root": "D:\\.ffastrans_work_root"

  },

  "debug": {

    "adlib": {

      "core_update": 20000,

      "exception_update": 10000,

      "wfs_status": 2000,

      "remove_old_jobs": 3600000,

      "abs_min": 10000

    },

    "max_logs_age": 14,

    "youtubedl_update": true,

    "rand_min": 50,

    "rand_max": 100,

    "core_multiplier": 1,

    "max_queue": 10,

    "max_job_list": 300,

    "queue_factor": 10,

    "proc_execute": true,

    "auto_pause": false,

    "submit_pri": 5,

    "max_retries": 5,

    "aping_retries": 3

  }

},

"hosts": {

  "AST6Q8N4Z2TECH": {

    "computername": "AST6Q8N4Z2TECH",

    "os": {

      "type": "WIN32_NT",

      "architecture": "X64",

      "build": 18363,

      "version": "WIN_10",

      "lang": "0409",

      "code_page": 1252

    },

    "cpu": {

      "architecture": "X64",

      "cores": 40,

      "identifier": "Intel64 Family 6 Model 85 Stepping 4,

GenuineIntel",

      "revision": 5504

    },

    "ip_address": "10.238.104.101",

    "ffas_end_time": null,

    "active": true,

    "local_processing": true,

    "ffas_start_time": "2022-04-21T13:19:03.536-05:00",

    "last_heartbeat": "2022-04-26T09:49:42.861-05:00",

    "work_root": "D:\\.ffastrans_work_root",

    "cpu_roof": 75,

    "core_usage": 2,

    "web_port": 65445,

    "web_enable": false

  }

}

}

}

On Tue, Apr 26, 2022 at 11:14 AM Lawrence Littleton < @.***> wrote:

Here is the command:

"D:\NVEncC_6.00_x64\NVEncC64.exe -i "%s_source%" --vpp-select-every 2 --fps 60000/1001 -c hevc --bframes 0 --vbr 0 --vbr-quality 20 --multipass 2pass-quarter -u P4 --max-bitrate 25000 --output-depth 10 --lookahead 24 --aq --profile main10 --mv-precision q-pel --audio-codec 1?aac --audio-codec 2?aac --colormatrix bt709 --colorprim bt709 --transfer bt709 --colorrange auto --vpp-edgelevel --vpp-deband --video-tag hvc1 -o "E:\FFAStrans_Output\MP4\UHD%s_original_name%_UHD.mp4""

On Tue, Apr 26, 2022 at 8:42 AM rigaya @.***> wrote:

Thank you, so the input is 59.94fps with 59.94tbn, and is around 2hours, which should not cause trouble.

I started testing rather encoding with files more than 2hours but cannot reproduce the issue. It might be input file specific with (which I cannot test as I don't have EVS server exports), or might be related with the other command line options.

Would you please share the full command line option used and the log output?

— Reply to this email directly, view it on GitHub https://github.com/rigaya/NVEnc/issues/383#issuecomment-1109814773, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFXIIHPXKHE3PUEGOIP45TVG7XF3ANCNFSM5QM72Y7A . You are receiving this because you authored the thread.Message ID: @.***>

-- Skype: cyberlll Cell: 5125901161

-- Skype: cyberlll Cell: 5125901161

llittleton avatar Apr 27 '22 14:04 llittleton

It seems like there is some trouble handling timestamps, but currently difficult to figure out where the invalid timestamp came from, as I cannot reproduce the problem.

@ 000002be49978300] Application provided duration: -9223372036854775808 / timestamp: -9223372036854775808 is out of range for mov/mp4

NVEnc 6.01 adds more timestamp checks, which should make it more clear from where the invalid timestamps came out. Would you please share the log when using NVEnc 6.01?

rigaya avatar Apr 29 '22 06:04 rigaya

Here is the command:

"D:\NVEncC_6.00_x64\NVEncC64.exe -i "%s_source%" --vpp-select-every 2 --fps 60000/1001 -c hevc --bframes 0 --vbr 0 --vbr-quality 20 --multipass 2pass-quarter -u P4 --max-bitrate 25000 --output-depth 10 --lookahead 24 --aq --profile main10 --mv-precision q-pel --audio-codec 1?aac --audio-codec 2?aac --colormatrix bt709 --colorprim bt709 --transfer bt709 --colorrange auto --vpp-edgelevel --vpp-deband --video-tag hvc1 -o "E:\FFAStrans_Output\MP4\UHD%s_original_name%_UHD.mp4""

On Tue, Apr 26, 2022 at 8:42 AM rigaya @.***> wrote:

Thank you, so the input is 59.94fps with 59.94tbn, and is around 2hours, which should not cause trouble.

I started testing rather encoding with files more than 2hours but cannot reproduce the issue. It might be input file specific with (which I cannot test as I don't have EVS server exports), or might be related with the other command line options.

Would you please share the full command line option used and the log output?

— Reply to this email directly, view it on GitHub https://github.com/rigaya/NVEnc/issues/383#issuecomment-1109814773, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFXIIHPXKHE3PUEGOIP45TVG7XF3ANCNFSM5QM72Y7A . You are receiving this because you authored the thread.Message ID: @.***>

-- Skype: cyberlll Cell: 5125901161

llittleton avatar Oct 11 '22 09:10 llittleton