# H264/H265 Codec Format Support

**URL:** <https://forums.developer.nvidia.com/t/h264-h265-codec-format-support/160064>\
**Category:** Jetson AGX Xavier\
**Tags:** decoder, encoder\
**Created:** [November 20, 2020, 4:19pm UTC](https://forums.developer.nvidia.com/t/h264-h265-codec-format-support/160064 "2020-11-20T16:19:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabian.solano](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fabian.solano/32/15649_2.png) [@fabian.solano](https://forums.developer.nvidia.com/u/fabian.solano)\
**Post date:** [November 20, 2020, 4:19pm UTC](https://forums.developer.nvidia.com/t/h264-h265-codec-format-support/160064/1 "2020-11-20T16:19:11Z")

</div>

Hi,

Currently we are developing a product based on Jetson Xavier AGX and we have some doubts about supported formats related to the codecs and LibArgus (H265/H264).

We are aware of the gstreamer encoding plugins supported formats as indicated by gst-inspect command:

```auto
gst-inspect-1.0 nvv4l2h265enc

```

```auto
Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      video/x-raw(memory:NVMM)
                  width: [1, 2147483647]
                 height: [1, 2147483647]
                 format: { (string)I420, (string)NV12, (string)P010_10LE }
              framerate: [0/1, 2147483647/1]

```

However, are other formats supported from LibArgus side? We are specifically interested in the whether the following formats are supported:

- PIXEL\_FMT\_Y8
- PIXEL\_FMT\_Y16
- PIXEL\_FMT\_YCbCr\_420\_888
- PIXEL\_FMT\_YCbCr\_422\_888
- PIXEL\_FMT\_YCbCr\_444\_888
- PIXEL\_FMT\_JPEG\_BLOB
- PIXEL\_FMT\_RAW16
- PIXEL\_FMT\_P016

If not, does hardware support them? Can we extend the format support?

Regards,  
Fabian  
[www.ridgerun.com](https://www.ridgerun.com)

---

<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:** [November 23, 2020, 12:59am UTC](https://forums.developer.nvidia.com/t/h264-h265-codec-format-support/160064/3 "2020-11-23T00:59:03Z")

</div>

Hi,  
If you mean fetching frames from Argus and then doing encoding, currently only YUV420(I420 or NV12) is supported. YUV420 10 bit is supported by h265 encoder but not supported in Argus.

---

<div class="post-metadata">

**Author:** ![fabian.solano](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fabian.solano/32/15649_2.png) [@fabian.solano](https://forums.developer.nvidia.com/u/fabian.solano)\
**Post date:** [November 23, 2020, 5:06pm UTC](https://forums.developer.nvidia.com/t/h264-h265-codec-format-support/160064/4 "2020-11-23T17:06:20Z")

</div>

Hi @DaneLLL,

Thanks for the quick answer. From

```auto
tegra_multimedia_api/argus/include/Argus/Types.h

```

we saw all of the formats listed in my previous comment.

Can you confirm if the hardware supports any of these formats for the encoding process?

Regards,  
Fabian  
[www.ridgerun.com](https://www.ridgerun.com)

---

<div class="post-metadata">

**Author:** ![fabian.solano](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fabian.solano/32/15649_2.png) [@fabian.solano](https://forums.developer.nvidia.com/u/fabian.solano)\
**Post date:** [December 1, 2020, 9:14pm UTC](https://forums.developer.nvidia.com/t/h264-h265-codec-format-support/160064/5 "2020-12-01T21:14:19Z")

</div>

Hi @DaneLLL,

Just a follow-up comment to verify if you have the information about this. It is important to plan our roadmap for the project we are working on.

Thanks

Regards,  
Fabian  
[www.ridgerun.com](https://www.ridgerun.com)

---

<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:** [December 2, 2020, 3:19am UTC](https://forums.developer.nvidia.com/t/h264-h265-codec-format-support/160064/6 "2020-12-02T03:19:33Z")

</div>

Hello,  
Currently, apart from 8 bit YUV, we support 16 bit YUV format using PIXEL\_FMT\_P016 ARUS format.

---

<div class="post-metadata">

**Author:** ![Carlos001](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/carlos001/32/273049_2.png) [@Carlos001](https://forums.developer.nvidia.com/u/Carlos001)\
**Post date:** [December 9, 2020, 4:17pm UTC](https://forums.developer.nvidia.com/t/h264-h265-codec-format-support/160064/8 "2020-12-09T16:17:52Z")

</div>

> [@DaneLLL](#):
>
> YUV420 10 bit is supported by h265 encoder but not supported in Argus

Hi, given your information, is this possible:

1. ISP to provide PIXEL\_FMT\_P016
2. Cuda to convert from P016 to P010\_10LE
3. H265 encoder to accept P010\_10LE
4. Perform 1,2,3 using GStreamer on AGX JP4.4
5. Perform 1,2,3 Argus on AGX JP4.4

Regards and thank you for your time.

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 18, 2021, 6:20pm UTC](https://forums.developer.nvidia.com/t/h264-h265-codec-format-support/160064/10 "2021-10-18T18:20:53Z")

</div>

Closed on October 18, 2021, 6:20pm UTC


