Skip to content

[RFE]: Support P010 and Rec. 2100(HLG) ("warning: unsupported pixel format 18") #1150

@vegcom

Description

@vegcom

Operating System Version

Windows 10

CPU

13th Gen Intel(R) Core(TM) i9-13900KF

GPU

NVIDIA GeForce RTX 4090

NDI Devices

OBS

OBS Version

30.2.3

OBS Installation Method

exe

DistroAV Version

DistroAV 6.0.0

DistroAV Installation Method

zip

[Extra] Installation Steps

NDI SDK WIN64 12:45:30 May 6 2024 6.0.1.0

OBS Log [URL]

https://obsproject.com/logs/GzZBl4sJBVOP2ORz

NDI Version

NDI SDK WIN64 12:45:30 May 6 2024 6.0.1.0

Describe the bug

Main output results in log msg warning: unsupported pixel format 18, preview only with main disabled results in expected output ( provided below ). This plugin does not support p010 per ndi-output.cpp line 182

10:59:24.112: [DistroAV] +main_output_init()
10:59:24.112: [DistroAV] -main_output_init()
10:59:24.112: [DistroAV] +preview_output_init()
10:59:24.112: [DistroAV] +preview_output_start()
10:59:24.112: [DistroAV] preview_output_start: starting NDI preview output 'OBS Preview'
10:59:24.113: [DistroAV] ndi_output_update(name='OBS Preview', groups='OBS', ...)
10:59:24.113: [DistroAV] +ndi_output_start(name='OBS Preview', groups='OBS', ...)
10:59:24.117: [DistroAV] +on_preview_output_started()
10:59:24.117: [DistroAV] -on_preview_output_started()
10:59:24.117: [DistroAV] 'OBS Preview' ndi_output_start: ndi output started
10:59:24.117: [DistroAV] -ndi_output_start(name='OBS Preview', groups='OBS'...)
10:59:24.117: [DistroAV] preview_output_start: successfully started NDI preview output 'OBS Preview'
10:59:24.117: [DistroAV] -preview_output_start()
10:59:24.117: [DistroAV] -preview_output_init()

Steps to reproduce the problem

  1. w plugin v DistroAV 6.0.0 ( NDI SDK WIN64 12:45:30 May 6 2024 6.0.1.0 ) on OBS 30.2.3 w P010 and Rec. 2100(HLG) enable Program output via NDI.

Expected behavior

Actually this is the expected behavior, but can it not be though?

DistroAV/src/ndi-output.cpp

Lines 182 to 200 in 6640cb4

case VIDEO_FORMAT_NV12:
o->frame_fourcc = NDIlib_FourCC_video_type_NV12;
break;
case VIDEO_FORMAT_I420:
o->frame_fourcc = NDIlib_FourCC_video_type_I420;
break;
case VIDEO_FORMAT_RGBA:
o->frame_fourcc = NDIlib_FourCC_video_type_RGBA;
break;
case VIDEO_FORMAT_BGRA:
o->frame_fourcc = NDIlib_FourCC_video_type_BGRA;
break;
case VIDEO_FORMAT_BGRX:
o->frame_fourcc = NDIlib_FourCC_video_type_BGRX;
break;

Screenshots

🤗🤗🤗

Additional context

appears similar to but may not be related #1147

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions