Questions tagged [cuvid]
15 questions
12
votes
3 answers
How can I convert an FFmpeg AVFrame with pixel format AV_PIX_FMT_CUDA to a new AVFrame with pixel format AV_PIX_FMT_RGB
I have a simple C++ application that uses FFmpeg 3.2 to receive an H264 RTP stream. In order to save CPU, I'm doing the decoding part with the codec h264_cuvid. My FFmpeg 3.2 is compiled with hw acceleration enabled. In fact, if I do the…

costef
- 121
- 1
- 1
- 3
3
votes
1 answer
NVidia driver libraries in nvidia/cuda image
I want to run ffmpeg with cuvid hw-accelerated decoding in the container based on official nvidia/cuda image. Ffmpeg is not able to find libnvcuvid.so, although there are all required cuda libs.
The output of ldconfig -p | grep libnv from the…

Islam Sabyrgaliyev
- 340
- 1
- 5
- 10
3
votes
1 answer
How to get the GPU Architecture of a Device for CUVID?
I am implementing a video decoder using NVidia's NvDec CUVID feature.
According to chapter 2 of the (woefully inadequate) manual, decoding limits are specified by GPU architecture. ie, the maximum h265 horizontal resolution is 8192 on a GP10x, 4096…

swestrup
- 4,079
- 3
- 22
- 33
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 libavcodec hwaccel workings
Can anyone explain how hwaccel decode, filter and encode work in FFMpeg libavcodec ?
What is the big picture ?
What are the major functions and structures ?
Is there any difference in how VAAPI and CUDA GPUs are handled ?
Any example code for…

whadhack
- 51
- 6
2
votes
0 answers
Is there a way to use the cuvid decoder in OpenCV?
Wondering if there is way to use the NVIDIA codecs (e.g. cuvid, scale_npp, nvenc_h264/nvenc_hevc ) in OpenCV ? These codecs can be used in FFMpeg command line. As FFMpeg is a backend for OpenCV (e.g uses libavcodec, libavfilter etc ), is it …

whadhack
- 51
- 6
2
votes
0 answers
Is it possible to get motion vector from ffmpeg using cuvid decoder (h264_cuvid)
I wonder if is it possible to get motion vector data from the decoding of an h264 stream with ffmpeg using the h264_cuvid decoder. With the standard "h264" decoder, I can get them in the sidedata of the avframe (passing the av_dict_set(&opts,…

user8957959
- 21
- 2
2
votes
1 answer
Error while using h264_cuvid decoder with ffmpeg
I am trying to decode a video using the NVIDIA cuvid hardware acceleration with ffmpeg.
I am using a NVIDIA GeForce GT 745M Graphics card (GPU:GK107), which is compatible with cuvid as specified by NVIDIA here
I compiled ffmpeg with the following…

tthibalti
- 525
- 1
- 6
- 17
1
vote
1 answer
Fully GPU accelerated (decoding,deinterlacing,scaling,encoding) HLS variable stream with ffmpeg
I'm trying to create a variable HLS MBR live stream using ffmpeg, which will be fully accelerated at the GPU level. This means accelerated decoding, deinterlacing, scaling and encoding. Here is my broken example ...
ffmpeg -loglevel debug -hwaccel…

Milan Čížek
- 77
- 1
- 9
1
vote
2 answers
Nvidia NVDEC - copy decoded frame to D3D11 NV12 texture
I'm trying to copy the NV12 NVDEC decoded buffer directly into an NV12 d3d11 texture. No luck so far. What I've managed to do is a double shot copy using 2 d3d11 textures (luma + chroma), 2 cuGraphicsMapResources, 2…

Fabio
- 77
- 6
0
votes
0 answers
opencv4.5.5 using VideoReader can not webrtc
the stream: webrtc://10.10.2.3/exam/2021091400479_topStream
using RTC player OK
but using opencv "VideoReader"
[ERROR:0@3.701] global opencv455/opencv/modules/videoio/src/cap.cpp (166) open VIDEOIO(CV_IMAGES): raised OpenCV…

shaolin
- 11
- 4
0
votes
0 answers
What is the pixel format of AV_PIX_FMT_CUDA in GPU memory and how to convert to BGR format in OpenCV?
I an trying to decode a H264 RTSP stream using GPU hardware decoder and retrieve the image pointer in GPU memory and place it in cv::cuda::GpuMat to avoid CPU transfers.
I received the frame and the pixel format is AV_PIX_FMT_CUDA.
ret =…

cyw
- 163
- 3
- 11
0
votes
1 answer
Unable to get Decoding Capabilities by cuvidGetDecoderCaps CUDA SDK
I have a server with Tesla T4 GPU. I am trying to decode an H264 video on GPU. I am using Cuda SDK to get CUVIDDECODECAPS (decoding capabilities of GPU) but it is returning 0 to MinWidth, MinHeight, MaxWidth, MaxHeight, and false to…

Naveen Verma
- 367
- 1
- 5
- 18
0
votes
1 answer
Encode OpenGL rendered video without leaving the GPU memory
I am doing some preliminary work to make a rendering pipeline and I am investigating whether OpenGL is a good option for my use case: from a markup language I need to generate a video, ideally using opengl which already implements most of the…

fakedrake
- 6,528
- 8
- 41
- 64
0
votes
1 answer
Why there is no AVFrame->data[2] data when decode h264 by ffmpeg use "h264_cuvid"
env: ubuntu 16.04 64 bit; ffmpeg 3.3.2 build whih cuda cuvid libnpp...
use ffmpeg cmd: ffmpeg -vsync 0 -c:v h264_cuvid -i test.264 -f rawvideo test.yuv works fine, the generated yuv file is ok.
BUT When I decode this 264 file by my code use…

Wu NL
- 53
- 1
- 1
- 5