Questions tagged [nvenc]

Nvidia's dedicated H.264, HEVC hardware on the GPU chip that performs video encoding.

Nvidia's dedicated H.264, HEVC hardware on the GPU chip that performs video encoding.
More information at https://en.wikipedia.org/wiki/Nvidia_NVENC
and https://developer.nvidia.com/nvidia-video-codec-sdk

110 questions
3
votes
2 answers

Desktop grabbing with FFmpeg at 60 fps using NVENC codec

I'm having trouble recording my desktop at 60FPS using the latest Windows compiled FFmpeg with NVENC codec. Metadata says the file is 60 fps but when I play it, I can see clearly see it is not 60FPS. The command-line I use is the following: ffmpeg…
Akatosh
  • 448
  • 9
  • 17
2
votes
1 answer

Why is my NVEnc image coming out pixelated?

I have been working on an NVEnc project but the images seem to come out blurry no matter what I do in the setup if I am using CBR as my rate control mode. I am adapting the code from the NVidia sample here:…
thoxey
  • 322
  • 3
  • 12
2
votes
0 answers

Extreme High Quality HDR livestreaming using FFMPEG/SRT with hevc_nvenc

So I am working out and just testing different encoder settings and I wonder if someone has some insights , it works OK now but maybe I can improve stuff. first lets start with my whole command, lets ignore the audio part for now: The final input…
finnjaeger
  • 21
  • 2
2
votes
2 answers

Location of the amd64 compiler in Visual Studio 2022 | Compiling FFmpeg with NVENC

I'm trying to follow Nvidia's guide to compile FFmpeg with nvenc support on Windows and it has a stage to export the path of Visual Studio's 2013 SP2 amd64 compiler to the global path variable of the compilation dev environment: export…
Gal Grünfeld
  • 800
  • 3
  • 9
  • 32
2
votes
0 answers

FFMPEG using AV_PIX_FMT_D3D11 gives "Error registering the input resource" from NVENC

Input frames start on the GPU as ID3D11Texture2D pointers. I encode them to H264 using FFMPEG + NVENC. NVENC works perfectly if I download the textures to CPU memory as format AV_PIX_FMT_BGR0, but I'd like to cut out the CPU texture download…
nbabcock
  • 21
  • 3
2
votes
1 answer

Decode an H264 stream using the VideoToolbox API (kVTVideoDecoderBadDataErr)

my goal is to encode the main framebuffer of my Windows machine using nvenc and stream its content to my iPad using the VideoToolbox API The code I use to encode the h264 stream is basically a copy/paste of…
TheMode
  • 21
  • 1
  • 1
  • 5
2
votes
0 answers

Files created with "ffmpeg hevc_nvenc" do not play on TV. (with video codec SDK 9.1 of nvidia)

Problem Files created with hevc_nvenc do not play on TV. (samsung smart tv, model unknown) Related to my ffmpeg build is below. FFmpeg build conf $ ffmpeg -buildconf --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree …
Dashhh
  • 21
  • 4
2
votes
2 answers

How to decode AVFrame with pixel format AV_PIX_FMT_CUDA in software?

I recently followed this example (https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/vaapi_encode.c) to encode an AVFrame using NVENC (by swapping out AV_PIX_FMT_VAAPI with AV_PIX_FMT_CUDA and h264_vaapi with h264_nvence, among other things).…
M. Ying
  • 197
  • 2
  • 15
2
votes
1 answer

Best Settings for H264_Nvenc To Minimize Latency? (FFMPEG)

I'm currently using Libavcodec to encode video frames using H.264. Because I'm streaming this video frames after they're encoded, minimizing latency is crucial to me. My current settings are: avcodec_register_all(); codec =…
M. Ying
  • 197
  • 2
  • 15
2
votes
0 answers

nvEncLockBitstream low performance on NVENC

I'm trying to capture my desktop using Desktop Duplication API, encode the D3DTexture2D using NVENC and send it over the local network. The performance of everything is very high until I reach the part where we need to lock the bitstream and extract…
Hey'Youssef
  • 285
  • 4
  • 15
2
votes
0 answers

What would be the simplest way to send a live video stream from a PC to a native iOS or Android app, with very low latency

I am trying to send a live video feed from a PC to a native Android or iOS app. The connection will be over wifi. The App in return will send back it's SLAM AR tracking to the PC. The PC will update it's camera position and send new video.…
2
votes
2 answers

FFMPEG NVENC HEVC to H264

I try to transcode a HEVC 4k broadcast down to 1080p H264. HEVC 4K to HEVC 1080p works but when I try hevc to h264 i get "No NVENC capable devices found" Now I am wondering is it not possible to fully hw transcode HEVC to H264? Code used: ffmpeg…
Sambir
  • 129
  • 1
  • 3
  • 15
2
votes
0 answers

FFMPEG Video from images to mp4 in nvidia GPU

I am trying to encode a h264 .mp4 video created from .jpg images using a 1070ti nvidia cuda power, having a a crossfade transition between each image. I am able to render the video in GPU using the flags -c:v h264_nvenc, I see a short peak in the…
M.y
  • 21
  • 4
2
votes
0 answers

FFmpeg: encode from CUDA buffer instead of RAM buffer

I need to encode a raw video stream captured from a camera to h264. I'm using an NVIDIA Pascal GPU under Windows 7 and am trying to use FFmpeg to control the h264_nvenc, rather than the NVIDIA SDK directly. Using libavcodec, I've got a program that…
JPh
  • 536
  • 3
  • 20
2
votes
1 answer

Decoding H264 using random access

I want to access random frames in a H264 file and map the decoded images to a Direct3D texture. I am using the the NVIDIA VIDEO CODEC SDK. I've already found the NvDecodeD3D11 sample that was included in version 8.0 and have stripped it down to the…
HeLi
  • 21
  • 1