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
1
vote
0 answers

Reading custom SEI message when decoding using VideoCodec (NVENC)

I have a series of videos with custom information encoded in the sei message NAL. Is it possible to read that information when decoding using the Nvidia hardware decoder. If it is not supported, should I use FFMPEG compiled with NVENC support…
cloudraven
  • 2,484
  • 1
  • 24
  • 49
1
vote
1 answer

Google Cloud GPU NVENC + Windows 2016

Having tested some GPU+NVENC x.264 encoding successfully on AWS I am now testing with Google Cloud Compute (Tesla P100 GPU running Windows Svr 2016) It doesn't looks like NVENC is working, has anyone achieved this with windows? or have any…
1
vote
0 answers

NVENC: Number of IDR slices per IDR refresh

I was examining a h264 bitstream I generated with Nvidia Video Encoder (NVENC) and notices that each IDR update contains not a single IDR nal, but 4 of them. I don't understand why there is a need in 4 IDR nals per update. I am trying to find a…
Michael IV
  • 11,016
  • 12
  • 92
  • 223
1
vote
1 answer

How can I obtain the YUV components from the GPU device?

The following program shows the flow of a transcoder from the NVIDIA's NVTranscoder project from the Video_Codec_SDK_8.0.14. The decoder output each frame with NV12 format. However, for my coding part, the frame I received only get the Y component…
md612
  • 300
  • 2
  • 5
  • 20
1
vote
1 answer

ffmpeg full nvidia hardware transcode with deinterlace

I know that if ffmpeg is compiled with libnpp support you can do a full hardware transcoding with scaling, like this: ffmpeg -hwaccel_device 0 -hwaccel cuvid -c:v h264_cuvid -i input -vf scale_npp=-1:720 -c:v h264_nvenc -preset slow output.mkv Is it…
André Moreira
  • 139
  • 1
  • 2
  • 10
1
vote
0 answers

Encode Multiple streams using NVENC - single or multi-thread?

Given the cuda context needs to be synchronized across threads while making NVENC calls, would there be true concurrency in encoding multiple streams using multiple threads [each thread handling a single stream] ? Wouldn't we be better off doing…
nano
  • 687
  • 6
  • 16
1
vote
0 answers

NVENC Nvidia Encoder D3D11 Wrong image dimension and other questions

first a few basic information: OS: Win7 64Bit | GPU: GTX970 I have a staging ID3D11Texture2D wich I would like to encode. I would like to use the texture directly via nvEncRegisterResource but it seems that i could only pass a D3D9 and no D3D11…
Norwido
  • 51
  • 1
  • 7
1
vote
1 answer

how to find out the least busy GPU in nvenc?

I'm working on support multiple GPUs with nvenc lib in my C project. I'd like to find the least busy gpu and use it for the next encoder session. Is there an API to do it? Thanks.
Seven Du
  • 11
  • 3
0
votes
0 answers

FFMpeg autorotate video and image output

I have a video which I'm trying to downscale to a video output, and also create a thumbnail image at every 2 seconds using a single FFMpeg command(hardware accelerated). Following is the command: ffmpeg -hwaccel cuvid -hwaccel_output_format cuda…
CtrlAltElite
  • 487
  • 8
  • 32
0
votes
1 answer

Unit of measure for NV_ENC_PIC_PARAMS.inputDuration

What should I put into NV_ENC_PIC_PARAMS.inputDuration? According to the documentation inputTimeStamp can be any monotonically growing value, but I am struggling to find anything on inputDuration. Should it just be frame.inputTimeStamp -…
LOST
  • 2,956
  • 3
  • 25
  • 40
0
votes
0 answers

Choose CUDA version for ffmpeg encoding

I have multiple CUDA versions installed and I need all of them, so I can’t unistall any. The problem is when I try to encode with the nvenc_h264 encoder, it doesn’t work because it says that there are multiple version of CUDA. I’m trying to choose…
A GV
  • 11
  • 4
0
votes
1 answer

How to see default NVENC hevc options in ffmpeg

I am trying to use the hevc_nvenc encoder in ffmpeg to reencode an old video I have. Obviously software encoding using libx265 would be better, but I want to make in fast. I am trying to optimize for video quality, so I am using these…
Ivan Gorin
  • 303
  • 2
  • 12
0
votes
0 answers

(windows nvidia video codec sdk) How to set up an hevc encode session in c++ that asynchrnously encodes a dxgi surface texture and outputs to stdout?

I'm working on a c++ executable that grabs my display output using DXGI output duplication in the form of DXGI surface textures(I think), directly encodes it in HEVC using my GPU hardware encoder, which then downloads the bitstream to system memory…
0
votes
0 answers

ffmpeg refuses to encode video

The command: ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -resize 1920x1080 -i "Infinity.mkv" -vf "ass=Infinity.ass" -c:v h264_nvenc -preset slowest -crf 18 -c:a flac -af aformat=s32:48000 -compression_level 5 -strict -2…
emipy
  • 1
  • 2
0
votes
0 answers

nvenc encoder performed resolution 2560 * 1440 encoding yuv444 failed ?

NVIDIA Gefore GTX 1660Ti graphics card, I use video-sdk-samples for HEVC encoding, YUV format: NV_ENC_BUFFER_FORMAT_YUV444, resolution “1920 * 1080” and “3840 * 2160” resolution encoding is successful, but resolution 2560*1440 encoding, prompting…
Travis990
  • 1
  • 1