Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to scale and convert frame which pix_fmt is AV_PIX_FMT_CUDA #9

Open
bug-developer021 opened this issue Feb 27, 2024 · 0 comments
Open

Comments

@bug-developer021
Copy link

bug-developer021 commented Feb 27, 2024

https://docs.nvidia.com/video-technologies/video-codec-sdk/12.0/ffmpeg-with-nvidia-gpu/index.html#hwaccel-transcode-with-scaling

According to https://github.com/NVIDIA/GMAT/blob/main/ffmpeg-gpu/libswscale/cuda/swscale_cuda.c#L34, supported_fmts do not include AV_PIX_FMT_CUDA, which my ffmpeg hw_decoder px_fmt is AV_PIX_FMT_CUDA, how to scale and transform px_fmt to RGB, then to host memory?

As far as I know AV_PIX_FMT_CUDA is the NV12 format on the GPU, which is YUV_NV12, So, how to support AV_PIX_FMT_CUDA format when use libgpuscale

@bug-developer021 bug-developer021 changed the title The difference between libgpuscale and scale_cuda How to scale and convert frame which pix_fmt is AV_PIX_FMT_CUDA Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant