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

How to stream H.264 video over UDP using the NVidia NVEnc hardware encoder?

This is going to be a self-answered question, because it has driven me nuts over the course of a full week and I wish to spare fellow programmers the frustration I went through. The situation is this: you wish to use NVidia's NVEnc hardware encoder…
JPNotADragon
  • 2,050
  • 2
  • 25
  • 31
9
votes
5 answers

ffmpeg ERROR: libnpp not found in windows

I`m trying to compile ffmpeg in windows with nvidia libraries for hardware acceleration using MinGW/msys. tried to follow the instruction on nvidias website (section: Getting Started with FFmpeg/libav using NVIDIA GPUs). configured with…
Gio
  • 316
  • 2
  • 3
  • 11
8
votes
1 answer

FFMPEG hevc_nvenc "No NVENC capable devices found" with NVidia GTX950M

I get the error "No NVENC capable devices found" when trying a simple encoding like this, even skipping audio to make sure it's not an audio problem: ffmpeg.exe -i input.mp4 -c:v hevc_nvenc -an out.mp4 I also tried with more details, like setting…
NaturalBornCamper
  • 3,675
  • 5
  • 39
  • 58
6
votes
1 answer

Manually generate "empty" h264 p-frame

Let's call a p-frame frame empty if it doesn't change any pixels in the currently decoded video (i.e. no motion vectors, nothing). What I need is to be able to manually insert empty p-frame into the video stream on request (need to send frames to…
leavittx
  • 87
  • 5
6
votes
1 answer

Memory barrier fails to sync between compute stage and data access by CUDA

I have the following pipeline: Render into texture attachment to custom FBO. Bind that texture attachment as image. Run compute shader ,sampling from the image above using imageLoad/Store. Write the results into SSBO or image. Map the SSBO (or…
Michael IV
  • 11,016
  • 12
  • 92
  • 223
5
votes
2 answers

running ffmpeg with nvenc inside nvidia docker

I installed Nvidia Video Codec SDK 8.2 + ffmpeg inside a docker container by using nvidia-docker but when I run this ffmpeg -f rawvideo -s:v 1920x1080 -r 30 -pix_fmt yuv420p -i HeavyHand_1080p.yuv -c:v h264_nvenc -preset slow -cq 10 -bf 2 -g 150…
4
votes
2 answers

gstreamer webrtc h264 playback stops after few frames in browser

I need help for debugging a probabilistic issue. I built a gstreamer pipeline to stream NVENC encoded h264 bitstreams(video only) to browser. Browser seldom plays properly. In most cases only few frames are rendered then the picture gets frozen. The…
miqilin
  • 43
  • 3
4
votes
1 answer

build ffmpeg on ubuntu : build nasm fails

trying to build ffmpeg on ubuntu 18.10 https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu first install dependencies sudo apt-get update -qq && sudo apt-get -y install \ autoconf \ automake \ build-essential \ cmake \ git-core \ libass-dev…
Rakka Rage
  • 15,941
  • 8
  • 33
  • 45
4
votes
2 answers

FFmpeg Hardware Acceleration with NVENC produces Half Green output video

Using the FFmpeg build found here: https://github.com/illuspas/ffmpeg-hw-win32 gcc 5.3.0 --enable-nvenc nvidia_video_sdk_6.0.1 --enable-libmfx Intel(R)_Media_SDK_2016.0.1 --enable-libfdk-aac 0.1.4 --enable-libspeex 1.2rc1 --enable-libx264…
Dan Sandland
  • 7,095
  • 2
  • 29
  • 29
4
votes
1 answer

nvEncRegisterResource() fails with -23

I've hit a complete brick wall in my attempt to use NVEnc to stream OpenGL frames as H264. I've been at this particular issue for close to 8 hours without any progress. The problem is the call to nvEncRegisterResource(), which invariably fails with…
JPNotADragon
  • 2,050
  • 2
  • 25
  • 31
3
votes
0 answers

Extract (Raw or Encoded) Video Frames from any GPU Memory directly for Current Program?

I have been working on Camera Video Frame Capturing for the past year. I am trying to make a video streaming plugin using webrtc and its associated technologies. I know that there are some certain plugins already in the market to stream video i.e.…
Muhammad Usman Bashir
  • 1,441
  • 2
  • 14
  • 43
3
votes
1 answer

Pass ffpmeg OpenCL filter output to NVenc without hwdownload?

I'm trying to do tonemapping (and resizing) of a UHD HDR video stream with ffmpeg. The following command: ffmpeg -vsync 0 -hwaccel cuda -init_hw_device opencl=ocl -filter_hw_device ocl -threads 1 -extra_hw_frames 3 -c:v hevc_cuvid -resize…
w1th0utnam3
  • 963
  • 7
  • 19
3
votes
1 answer

How to set gop-size on NVenc(HEVC) with ffmpeg?

I want to set gop size on NVenc(HEVC) with ffmpeg, but what I did is all failed: -keyiny 60 or -gop-len 60 or -gop-length 60 The command I set is as follows: ffmpeg -hwaccel cuvid -r 50 -i BasketballDrive_1920x1080_50.ts -c:v hevc_nvenc -preset…
iorih0304
  • 326
  • 2
  • 8
3
votes
1 answer

NVENC session limitations

I am doing H264 encoding using the hardware encoder present in NVIDIA GPUs (NVENC). I get the correct output but I am unable to launch more than 140 encoding streams.(One stream performs one video encoding) The error I am getting is…
3
votes
0 answers

decoding H264 from middle of the file

I am currently using nvenc to decode a H264 file and I require random access to the file. So, what I did for test purposes was make every frame a IDR frame. Now, if I know the file offset of the frame in the H264 file. Is it enough to just seek to…
Luca
  • 10,458
  • 24
  • 107
  • 234
1
2 3 4 5 6 7 8