# Encode 16-bit greyscale?

**URL:** <https://forums.developer.nvidia.com/t/encode-16-bit-greyscale/248215>\
**Category:** Jetson TX2\
**Tags:** cuda\
**Created:** [March 30, 2023, 11:06pm UTC](https://forums.developer.nvidia.com/t/encode-16-bit-greyscale/248215 "2023-03-30T23:06:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user16668](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@user16668](https://forums.developer.nvidia.com/u/user16668)\
**Post date:** [March 30, 2023, 11:06pm UTC](https://forums.developer.nvidia.com/t/encode-16-bit-greyscale/248215/1 "2023-03-30T23:06:31Z")

</div>

Is there a way to encode 16-bit greyscale pixels? I don’t see anything suitable in nvEncodeAPI.h. Would the closest be 10-bit, using NV\_ENC\_BUFFER\_FORMAT\_YUV420\_10BIT?

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [March 31, 2023, 1:09am UTC](https://forums.developer.nvidia.com/t/encode-16-bit-greyscale/248215/3 "2023-03-31T01:09:16Z")

</div>

Hi,  
You are correct. Encoding 16-bit GRAY is not supported. Please convert data to YUV420 8-bit or 10-bit.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [April 26, 2023, 3:56am UTC](https://forums.developer.nvidia.com/t/encode-16-bit-greyscale/248215/5 "2023-04-26T03:56:50Z")

</div>

Closed on April 26, 2023, 3:56am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
