This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Crashed ffmpeg...
#1
Crashed ffmpeg...
Reply
#2
According to the debut output, NVEncC crashed, not ffmpeg:
NVEnc output: nvenc : Failed to Initialize the encoder
nvenc : .: 8 (NVENC indicates that one or more of the parameter passed to the API call is invalid.)
What happens if you call:
"D:\!_System\Hybrid\64bit\NVEncC.exe" --check-features
?

My guess is that it's a driver issue, or your card is too old for latest NVEncC.
Starting with NVEncC 7.43 it requires Windows/Turing or later GPUs/528.24 or later driver.

Cu Selur
Reply
#3
[Image: d7cee8b7a56a5ad1bca9039de967803a.jpg]
Reply
#4
That does not answer my question,....
Reply
#5
C:\Users\Orion>"D:\!_System\Hybrid\64bit\NVEncC.exe" --check-features
NVEncC (x64) 7.45 (r2773) by rigaya, Mar 8 2024 12:36:49 (VC 1929/Win)
[NVENC API v12.1, CUDA 10.1]
reader: raw, y4m, avi, avs, vpy, avsw, avhw [H.264/AVC, H.265/HEVC, MPEG2, VP8, VP9, VC-1, MPEG1, MPEG4, AV1]

Environment Info
OS : Windows 11 x64 (22621) [UTF-8]
CPU: AMD Ryzen 7 5700X 8-Core Processor [4.67GHz] (8C/16T)
RAM: Used 24357 MB, Total 32691 MB

#0: NVIDIA GeForce RTX 3060 (3584 cores, 1837 MHz)[PCIe4x16][551.76]
NVEnc features
Codec: H.264/AVC
Encoder Engines 1
Max Bframes 4
B Ref Mode 3 (each + only middle)
RC Modes 63 (CQP, CBR, CBRHQ, VBR, VBRHQ)
Field Encoding 0 (no)
MonoChrome no
FMO no
Quater-Pel MV yes
B Direct Mode yes
CABAC yes
Adaptive Transform yes
Max Temporal Layers 4
Hierarchial P Frames yes
Hierarchial B Frames yes
Max Level 62 (6.2)
Min Level 10 (1)
4:4:4 yes
Min Width 145
Max Width 4096
Min Height 49
Max Height 4096
Multiple Refs yes
Max LTR Frames 8
Dynamic Resolution Change yes
Dynamic Bitrate Change yes
Forced constant QP yes
Dynamic RC Mode Change no
Subframe Readback yes
Constrained Encoding yes
Intra Refresh yes
Custom VBV Bufsize yes
Dynamic Slice Mode yes
Ref Pic Invalidiation yes
PreProcess no
Async Encoding yes
Max MBs 65536
Lossless yes
SAO no
Me Only Mode 1 (I,P frames)
Lookahead yes
AQ (temporal) yes
Weighted Prediction yes
10bit depth no

Codec: H.265/HEVC
Encoder Engines 1
Max Bframes 5
B Ref Mode 3 (each + only middle)
RC Modes 63 (CQP, CBR, CBRHQ, VBR, VBRHQ)
Field Encoding 0 (no)
MonoChrome no
Quater-Pel MV yes
B Direct Mode no
Max Temporal Layers 0
Hierarchial P Frames no
Hierarchial B Frames no
Max Level 186 (6.2)
Min Level 30 (1)
4:4:4 yes
Min Width 129
Max Width 8192
Min Height 33
Max Height 8192
Multiple Refs yes
Max LTR Frames 7
Dynamic Resolution Change yes
Dynamic Bitrate Change yes
Forced constant QP yes
Dynamic RC Mode Change no
Subframe Readback yes
Constrained Encoding yes
Intra Refresh yes
Custom VBV Bufsize yes
Dynamic Slice Mode yes
Ref Pic Invalidiation yes
PreProcess no
Async Encoding yes
Max MBs 262144
Lossless yes
SAO yes
Me Only Mode 1 (I,P frames)
Lookahead yes
AQ (temporal) yes
Weighted Prediction yes
10bit depth yes


NVDec features
H.264/AVC: nv12, yv12
H.265/HEVC: nv12, yv12, yv12(10bit), yv12(12bit), yuv444, yuv444(10bit), yuv444(12bit)
MPEG1: nv12, yv12
MPEG2: nv12, yv12
MPEG4: nv12, yv12
VP8: nv12, yv12
VP9: nv12, yv12, yv12(10bit), yv12(12bit)
VC-1: nv12, yv12
AV1: nv12, yv12, yv12(10bit)
Reply
#6
What happens if you call:

1.
"D:\!_System\Hybrid\64bit\ffmpeg.exe" -y -noautorotate -nostdin -threads 8 -i "K:\temp\encodingTempSynthSkript_2024-03-17@20_40_32_9010_0.avs" -an -sn -color_primaries bt709 -color_trc bt709 -colorspace bt470bg -color_range pc -sws_flags accurate_rnd+full_chroma_inp -pix_fmt yuv420p -vsync 0 -f yuv4mpegpipe NUL
2.
"D:\!_System\Hybrid\64bit\ffmpeg.exe" -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "K:\temp\encodingTempSynthSkript_2024-03-17@20_40_32_9010_0.avs" -an -sn -color_primaries bt709 -color_trc bt709 -colorspace bt470bg -color_range pc -sws_flags accurate_rnd+full_chroma_inp -pix_fmt yuv420p -vsync 0 -f yuv4mpegpipe - |"D:\!_System\Hybrid\64bit\NVEncC.exe" --y4m -i - --fps 23.976 --codec h264 --profile high --level 4.1 --sar 1:1 --lookahead 16 --cqp 18:20:23 --gop-len 0 --ref 3 --bframes 3 --direct auto --bref-mode auto --no-b-adapt --mv-precision Q-pel --cabac --no-deblock --preset default --colorrange full --colormatrix bt470bg --cuda-schedule sync --psnr --ssim --output "K:\temp\Rita Ora - Barricades (2022)_new_1_2024-03-17@20_40_32_9010_07.264"

As a side note: it seems strange that the Avisynth script you outputs 'Rec.2020' but your nvenc call hints 'colormatrix bt470bg', hope you know what you are doing.


Cu Selur
Reply
#7
C:\Users\Orion>"D:\!_System\Hybrid\64bit\ffmpeg.exe" -y -noautorotate -nostdin -threads 8 -i "K:\temp\encodingTempSynthSkript_2024-03-17@20_40_32_9010_0.avs" -an -sn -color_primaries bt709 -color_trc bt709 -colorspace bt470bg -color_range pc -sws_flags accurate_rnd+full_chroma_inp -pix_fmt yuv420p -vsync 0 -f yuv4mpegpipe NUL
ffmpeg version N-114082-g2473a5024c-g64634e809f+1 Copyright © 2000-2024 the FFmpeg developers
built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
configuration: --pkg-config=pkgconf --cc='ccache gcc' --cxx='ccache g++' --ld='ccache g++' --extra-cxxflags=-fpermissive --extra-cflags=-Wno-int-conversion --disable-autodetect --enable-amf --enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-zlib --enable-sdl2 --enable-ffnvcodec --enable-nvdec --enable-cuda-llvm --disable-doc --enable-gmp --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libdav1d --enable-libaom --disable-debug --enable-fontconfig --enable-libass --enable-libbluray --enable-libfreetype --enable-libmfx --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libopenmpt --enable-version3 --enable-librav1e --enable-libsrt --enable-libgsm --enable-libvmaf --enable-libsvtav1 --enable-gnutls --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv --disable-w32threads
libavutil 59. 1.100 / 59. 1.100
libavcodec 61. 1.100 / 61. 1.100
libavformat 61. 0.100 / 61. 0.100
libavdevice 61. 0.100 / 61. 0.100
libavfilter 10. 0.100 / 10. 0.100
libswscale 8. 0.100 / 8. 0.100
libswresample 5. 0.100 / 5. 0.100
libpostproc 58. 0.100 / 58. 0.100
-vsync is deprecated. Use -fps_mode
Passing a number to -vsync is deprecated, use a string argument as described in the manual.
Input #0, avisynth, from 'K:\temp\encodingTempSynthSkript_2024-03-17@20_40_32_9010_0.avs':
Duration: 00:02:35.16, start: 0.000000, bitrate: 0 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 3840x1578, 23.98 fps, 23.98 tbr, 23.98 tbn
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> wrapped_avframe (native))
Output #0, yuv4mpegpipe, to 'NUL':
Metadata:
encoder : Lavf61.0.100
Stream #0:0: Video: wrapped_avframe, yuv420p(pc, bt470bg/bt709/bt709, progressive), 3840x1578, q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn
Metadata:
encoder : Lavc61.1.100 wrapped_avframe
frame= 1344 fps= 16 q=-0.0 size=11920640KiB time=00:00:56.05 bitrate=1742077.3kbits/s speed=0.671x

C:\Users\Orion>"D:\!_System\Hybrid\64bit\ffmpeg.exe" -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "K:\temp\encodingTempSynthSkript_2024-03-17@20_40_32_9010_0.avs" -an -sn -color_primaries bt709 -color_trc bt709 -colorspace bt470bg -color_range pc -sws_flags accurate_rnd+full_chroma_inp -pix_fmt yuv420p -vsync 0 -f yuv4mpegpipe - |"D:\!_System\Hybrid\64bit\NVEncC.exe" --y4m -i - --fps 23.976 --codec h264 --profile high --level 4.1 --sar 1:1 --lookahead 16 --cqp 18:20:23 --gop-len 0 --ref 3 --bframes 3 --direct auto --bref-mode auto --no-b-adapt --mv-precision Q-pel --cabac --no-deblock --preset default --colorrange full --colormatrix bt470bg --cuda-schedule sync --psnr --ssim --output "K:\temp\Rita Ora - Barricades (2022)_new_1_2024-03-17@20_40_32_9010_07.264"
--------------------------------------------------------------------------------
K:\temp\Rita Ora - Barricades (2022)_new_1_2024-03-17@20_40_32_9010_07.264
--------------------------------------------------------------------------------
nvenc : Failed to Initialize the encoder
nvenc : .: 8 (NVENC indicates that one or more of the parameter passed to the API call is invalid.)
Reply
#8
Okay, so the decoding in ffmpeg does work without issues and it is related to NVEncC.
Looking at:
NVEnc features
Codec: H.264/AVC
Encoder Engines 1
Max Bframes 4
B Ref Mode 3 (each + only middle)
RC Modes 63 (CQP, CBR, CBRHQ, VBR, VBRHQ)
Field Encoding 0 (no)
MonoChrome no
FMO no
Quater-Pel MV yes
B Direct Mode yes
CABAC yes
Adaptive Transform yes
Max Temporal Layers 4
Hierarchial P Frames yes
Hierarchial B Frames yes
Max Level 62 (6.2)
Min Level 10 (1)
4:4:4 yes
Min Width 145
Max Width 4096
Min Height 49
Max Height 4096
Multiple Refs yes
Max LTR Frames 8
Dynamic Resolution Change yes
Dynamic Bitrate Change yes
Forced constant QP yes
Dynamic RC Mode Change no
Subframe Readback yes
Constrained Encoding yes
Intra Refresh yes
Custom VBV Bufsize yes
Dynamic Slice Mode yes
Ref Pic Invalidiation yes
PreProcess no
Async Encoding yes
Max MBs 65536
Lossless yes
SAO no
Me Only Mode 1 (I,P frames)
Lookahead yes
AQ (temporal) yes
Weighted Prediction yes
10bit depth no
and:
"D:\!_System\Hybrid\64bit\NVEncC.exe" --y4m -i - --fps 23.976 --codec h264 --profile high --level 4.1 --sar 1:1 --lookahead 16 --cqp 18:20:23 --gop-len 0 --ref 3 --bframes 3 --direct auto --bref-mode auto --no-b-adapt --mv-precision Q-pel --cabac --no-deblock --preset default --colorrange full --colormatrix bt470bg --cuda-schedule sync --psnr --ssim --output "K:\temp\Rita Ora - Barricades
I see no problem.

I would recommend:
a. try removing option in NVEncC to figure out which is causing the problem.
b. try older NVEncC versions

Cu Selur
Reply
#9
Quote:try removing option in NVEncC to figure out which is causing the problem.
Thank you!
NVENC - Base - Profile@Level - Profile "high"
There the level was set to 4.1
I set it to "Auto"
Now working!
Output file
Format profile : High@L5.1
Reply
#10
Ahhh,.. the level restiction was the issue. Smile

Cu Selur
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)