Open oscarbg opened 3 months ago
@tong1wu can share if https://github.com/intel/cartwheel-ffmpeg/pull/313 is expected to fix, the errors I see in this issue?
@tong1wu can share if #313 is expected to fix, the errors I see in this issue?
It should be fixing this issue.
seems no.. recompiled today and still getting:
[hevc_d3d12va @ 00000177F916EB40] Encode failed 16
[hevc_d3d12va @ 00000177F916EB40] Output failed: -22.
[vost#0:0/hevc_d3d12va @ 00000177F916E5C0] Error submitting video frame to the encoder
[vost#0:0/hevc_d3d12va @ 00000177F916E5C0] Error encoding a frame: Invalid argument
[vost#0:0/hevc_d3d12va @ 00000177F916E5C0] Task finished with error code: -22 (Invalid argument)
[vost#0:0/hevc_d3d12va @ 00000177F916E5C0] Terminating thread with return code -22 (Invalid argument)
more info in case it helps.. using Nvida latest driver from 552.04 built with visual studio with flags (tried both a shared and a static build): ./configure --enable-vaapi --enable-d3d12va --target-os=win64 --arch=x86_64 --toolchain=msvc ./configure --enable-vaapi --enable-d3d12va --target-os=win64 --arch=x86_64 --toolchain=msvc --enable-shared both builds failed equally..
note I also tested on AMD RDNA2 GPU with latest drivers and even fail earlier (more error output shown) can share if wanted. but I think is better fix issues on Nvidia GPUs and later fix remaining bugs of D3D12 encoder AMD GPUs..
EDIT: question I also debugged with Visual Studio the exe file and seems is initializing the encoder/decoder correctly and even creating some correctly encoded frames before it fails en around 10-20fps.. maybe because of threading /sync issues and how to force a single threaded run (I also ran with "-threads 1" but also fails)..
more info in case it helps.. using Nvida latest driver from 552.04 built with visual studio with flags (tried both a shared and a static build): ./configure --enable-vaapi --enable-d3d12va --target-os=win64 --arch=x86_64 --toolchain=msvc ./configure --enable-vaapi --enable-d3d12va --target-os=win64 --arch=x86_64 --toolchain=msvc --enable-shared both builds failed equally..
note I also tested on AMD RDNA2 GPU with latest drivers and even fail earlier (more error output shown) can share if wanted. but I think is better fix issues on Nvidia GPUs and later fix remaining bugs of D3D12 encoder AMD GPUs..
EDIT: question I also debugger with Visual Studio the exe file and seems is initializing the encoder/decoder correctly and even creating some correctly encoded frames before it fails en around 10-20fps.. maybe because of threading /sync issues and how to force a single threaded run (I also ran with "-threads 1" but also fails)..
@oscarbg , seems it's NV or AMD issue. Could you ask NV or AMD's help on this? thank you
@xuguangxin yes will try.. but don't know how to contact D3D12 teams at NV and AMD.. maybe you have better contacts to inform.. also would be nice and would help if this repo offered Windows binaries i.e. if a prebuilt ffmpeg.exe Windows binary with all cartwheel patches (like D3D12VA encode) was downloadable from this site perhaps added to quarterly releases for example added to: https://github.com/intel/cartwheel-ffmpeg/releases/tag/2024q1 this way I can point directly at how to run to reproduce .. afraid asking IVHs of patching FFMPEG and building first ffmpeg windows before they can debug their drivers.. they may answer to wait for patches to be merged into ffmpeg main first.. what do you think? thanks..
commented to AMD here: https://twitter.com/oscarbg81/status/1778613900021272835
commented to NV here: https://twitter.com/oscarbg81/status/1778615032248422738 will close once I confirm it's NV and/or AMD issue..
Asked to nvidia vulkan video devs: https://github.com/nvpro-samples/vk_video_samples/issues/76
Commented to amd amf guys? https://github.com/GPUOpen-LibrariesAndSDKs/AMF/issues/474
Hi, built FFMPEG on Windows and simple testing fails on NV 3070 GPU.. I verify:
and ffmpeg -encoders:
running:
more log: