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

Nvidia h264_nvenc doesn't accept rgb0 input in 18.04 #36

Open
bmegli opened this issue Jan 16, 2023 · 3 comments
Open

Nvidia h264_nvenc doesn't accept rgb0 input in 18.04 #36

bmegli opened this issue Jan 16, 2023 · 3 comments

Comments

@bmegli
Copy link
Owner

bmegli commented Jan 16, 2023

Same workflow works in 20.04

@bmegli
Copy link
Owner Author

bmegli commented Jan 16, 2023

ffmpeg -encoders | grep h264

 V..... libx264              libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264)
 V..... libx264rgb           libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB (codec h264)
 V..... h264_nvenc           NVIDIA NVENC H.264 encoder (codec h264)
 V..... h264_omx             OpenMAX IL H.264 video encoder (codec h264)
 V..... h264_v4l2m2m         V4L2 mem2mem H.264 encoder wrapper (codec h264)
 V..... h264_vaapi           H.264/AVC (VAAPI) (codec h264)
 V..... nvenc                NVIDIA NVENC H.264 encoder (codec h264)
 V..... nvenc_h264           NVIDIA NVENC H.264 encoder (codec h264)
ffmpeg -h encoder=h264_nvenc

Encoder h264_nvenc [NVIDIA NVENC H.264 encoder]:
    General capabilities: delay 
    Threading capabilities: none
    Supported pixel formats: yuv420p nv12 p010le yuv444p yuv444p16le bgr0 rgb0 cuda

# other options follow

So in theory it should support bgr0 input.

Maybe it depends on context

  • like working with 4:4:4 chroma subsampling
  • but same workflow works well in 20.04

@bmegli
Copy link
Owner Author

bmegli commented Jan 16, 2023

Workarounds

  • upload data in nv12
  • switch to Ubuntu 20.04 or newer

@bmegli
Copy link
Owner Author

bmegli commented Mar 13, 2023

Possibly related:

So maybe it was already fixed, needs retesting

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