<div dir="ltr">Have you tried just using the nvidia SDK directly? Since you need low latency, I assume this is for some kind of realtime application, which implies you're streaming video packets. The raw video codec data is simpler than many people imagine. It's just a stream of packets - also called NALs, or NALUs. The nvidia encoder will likely spit these out, and I'm guessing this is what your decoding side needs. You'll want avcodec for packaging those up into a .mp4 file or some other container format. But if you're just streaming live video data, then I'm guessing you don't actually need a container file format, so the raw packets might be good enough.</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, 9 Jul 2025 at 17:12, Alex Cha <<a href="mailto:alex-1er-at-hotmail.com@ffmpeg.org">alex-1er-at-hotmail.com@ffmpeg.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg1594429980814755840">




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I was under the impression that there was hardware acceleration for D3D12 supported by ffmpeg.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Upon implementing the solution however, we had unsupported pixel format d3d12 by the hevc_nvenc. </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Digging further in the nvenc.c code it seems d3d12 format is not supported directly. Was there a reason for this? Looking into the nvidia documentation the encoder should support D3D12, even if it is unclear to me what needs to be done. </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
For reference, we are trying to integrate hardware streaming using FFmpeg into a unreal engine 5 application which uses D3D12. We need a very low latency.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
We have tried using the D3D11on12 interop without success, it is returning us "openencodesessionex failed no encode device(1)". The adapter seems to be using my RTX 4090 correctly but no success.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Anyway, this email is a long shot in case someone as already encountered these issues and is able encode without copying to CPU.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Alex</div>
</div>

_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".<br>
</div></blockquote></div>