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
0
votes
1 answer

How to disable B frames in FFmpeg for H.264 encoding?

I'm encoding video with h264_nvenc, and I would like to disable B-Frames. I'm trying to use -bframes 0 parameter, but I'm not sure if it works, and where exactly put the command. For now, this is my code: -probesize 10MB -s 1920x1080 -framerate 30…
A GV
  • 11
  • 4
0
votes
1 answer

OpenCV VideoWriter (Gstreamer + NVENC) freezes for more than 3 streams

I am trying to setup a multi-stream hardware accelerated (Nvidia's NVENC) encoding system using Opencv compiled with Gstreamer backend as well as nvenc and nvdec plugins baked into Gstreamer. The setup works fine for <= 3 streams but as soon as I…
0
votes
0 answers

Why does CreateDXGIFactory occupy GPU even if I call it's release interface

First I run the following code: IDXGIFactory* pFactory; HRESULT hr = CreateDXGIFactory(__uuidof(IDXGIFactory1), (void**)(&pFactory)); if (FAILED(hr)) { return -1; } then I tried to use ffmpeg's nvenc_h264 function: …
TONY
  • 101
  • 7
0
votes
1 answer

FFMpeg quality degradation when using NVENC

I'm using ffmpeg to encode a folder full of static PNG images into video format. Among other things, I set the quality to 20Mbps and preset to veryslow. Everything works. However, as soon as I switch from the default H264 encoder to NVENC, it seems…
Dmitri Nesteruk
  • 23,067
  • 22
  • 97
  • 166
0
votes
1 answer

Ffmpeg nvenc encoder on gpu does not compress files as much as compared to libx264

I wanted to encode a video file which was initially encoded by a libx264 encoder on a non gpu machine with ultrafast preset and crf 23 , i typically re-encode it with preset medium and get a good compression but the process is very slow , so i am…
Srinjoy Choudhury
  • 622
  • 1
  • 4
  • 19
0
votes
0 answers

Why was NVIDIA NvFBCHWEncode interface deprecated starting with NVIDIA Capture SDK 5.0.?

I've been working on a project that requires capturing and streaming video content from backend applications and headless chromium/browsers. So far I was able to do so by calling the older version of NVIDIA Capture SDK for capturing from GPU…
0
votes
1 answer

Nonzero SPS and PPS id in H.264 bitstream from NVENC

In what cases will NVENC choose nonzero SPS and PPS ids for a bitstream? I have a bitstream that should only have one SPS and one PPS and yet it's choosing '2' for both seq_parameter_set_id and pic_parameter_set_id. EDIT: Indeed the…
qdin
  • 268
  • 3
  • 15
0
votes
1 answer

DXGI/NvEnc YUV44 10bit format compatability

Using DirectX 11, DXGI DDA and NvEnc. I have to support YUV420, YUV444, 8bit, and 10bit. I have the conversions working great for YUV420, YUV444, and 8bit. With 10bit i Run into a bit of a problem of DXGI_FORMAT compatibility with the…
vulkur
  • 21
  • 5
0
votes
1 answer

Using more than 2 NV_ENC at a time with FFMPEG

I'm currently generating timelapse videos using a thread on my CPU with fluent-ffmpeg running on nodejs. It takes roughly 1 minute to generate a 10 second timelapse. I'm generating many at the same time (basically one per thread) such that I tend…
lowcrawler
  • 6,777
  • 9
  • 37
  • 79
0
votes
1 answer

FFMPEG encoding 16bit video data results in 10bit

I want to compress a depth map that has 16 bits of information per pixel. In general, such depth maps can be stored in different ways, e.g. p016le, gray16le, yuv420p16le, yuv444p16le, ... but for simplicity, let's assume the depth map is a…
Jl arto
  • 1
  • 1
0
votes
1 answer

How to set H264 NVENC encoding parameters to output high-quality video stream?

I use NVENC (nvEncodeAPI) interface hardware encoding H264, and then RTMP to stream out, when using ffplay to pull the stream to watch, I found that the picture is obviously distorted: the green lines become sharper? the text color becomes lighter…
fredirty2017
  • 103
  • 11
0
votes
1 answer

GPU-accelerated streaming using WebRTC not connecting [ConnectionRefusedError: [Errno 111] Connection refused]

I am trying to use NVENC to encode and take that output, stream it to another server using WebRTC and then decode it there. I tried to follow this GPU-accelerated streaming using WebRTC project to get started. I would like to run this locally…
guidingfox
  • 77
  • 2
  • 12
0
votes
0 answers

Emphasis level map with ffmpeg using NVENC

I am trying to have different compression levels, to different regions in the video. ffmpeg has something called "addroi", but it's just a recommendation and doesn't guarantee the absolute level of compression. Nvidia NVENC has something called…
0
votes
1 answer

How can I learn the effective quality of the h264_nvenc encoder?

I seek to ascertain the end-product quality of various cq ("constant quality") values for the h264_nvenc video encoder. To use the h264_nvenc encoder through ffmpeg and with a target quality, I follow the instructions in Nvidia's documentation, last…
plodus4k
  • 1
  • 1
0
votes
1 answer

How to let FFMPEG fetch frames from OpenCV and stream them to HTTP server

There is a camera that shoots at 20 frame per second. each frame is 4000x3000 pixel. The frames are sent to a software that contain openCV in it. OpenCV resizes the freames to 1920x1080 then they must be sent to FFMPEG to be encoded to H264 or H265…
Entropy
  • 13
  • 1
  • 1
  • 8