# Ineed to decode YU420p stream buffer to RGB image for C# or C++ language

**URL:** <https://devforum.zoom.us/t/ineed-to-decode-yu420p-stream-buffer-to-rgb-image-for-c-or-c-language/76543>\
**Category:** Windows\
**Tags:** meeting-sdk, video-sdk\
**Created:** [September 26, 2022, 10:26pm UTC](https://devforum.zoom.us/t/ineed-to-decode-yu420p-stream-buffer-to-rgb-image-for-c-or-c-language/76543 "2022-09-26T22:26:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoomuser](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoomuser/32/40795_2.png) [@zoomuser](https://devforum.zoom.us/u/zoomuser)\
**Post date:** [September 26, 2022, 10:26pm UTC](https://devforum.zoom.us/t/ineed-to-decode-yu420p-stream-buffer-to-rgb-image-for-c-or-c-language/76543/1 "2022-09-26T22:26:25Z")

</div>

* * *

**Description**  
I need to decode zoom frame YUV420 planar to RGB image formatter as PNG or JPEG

**Which Windows Meeting SDK version?**  
5.11.4

**Screenshots**

 ![zoom_support](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/0/10deb23759e40c78bc380a09389f47f818335730.png)

**Troubleshooting Routes**  
[Render recordings from Video raw data - #14 by chump](https://devforum.zoom.us/t/render-recordings-from-video-raw-data/64344/14)

**Device (please complete the following information):**

- Device: lenovo
- OS: Windows 10

**Additional context**  
I need a decoding algorithm or Code for C++ or C# instead

---

<div class="post-metadata">

**Author:** ![amanda-recallai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amanda-recallai/32/44747_2.png) [@amanda-recallai](https://devforum.zoom.us/u/amanda-recallai)\
**Post date:** [September 27, 2022, 7:29am UTC](https://devforum.zoom.us/t/ineed-to-decode-yu420p-stream-buffer-to-rgb-image-for-c-or-c-language/76543/2 "2022-09-27T07:29:54Z")

</div>

@zoomuser, happy to see if we can help.

Are you building a recording bot, or are you building a desktop app?

---

<div class="post-metadata">

**Author:** ![zoomuser](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoomuser/32/40795_2.png) [@zoomuser](https://devforum.zoom.us/u/zoomuser)\
**Post date:** [October 4, 2022, 2:26pm UTC](https://devforum.zoom.us/t/ineed-to-decode-yu420p-stream-buffer-to-rgb-image-for-c-or-c-language/76543/3 "2022-10-04T14:26:58Z")

</div>

Yes, it’s a recording process in a bot.

> [@amanda-recallai](#):
>
> Are you building a recording bot, or are you building a desktop app?

---

<div class="post-metadata">

**Author:** ![nguyenhavinh](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@nguyenhavinh](https://devforum.zoom.us/u/nguyenhavinh)\
**Post date:** [October 5, 2022, 3:31pm UTC](https://devforum.zoom.us/t/ineed-to-decode-yu420p-stream-buffer-to-rgb-image-for-c-or-c-language/76543/4 "2022-10-05T15:31:30Z")

</div>

Hi pro.

I am going to build a meeting bot that records audio only. Can you please help to share some hints that I should start with

Really appreciated your help. Thanks!

---

<div class="post-metadata">

**Author:** ![amanda-recallai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amanda-recallai/32/44747_2.png) [@amanda-recallai](https://devforum.zoom.us/u/amanda-recallai)\
**Post date:** [October 5, 2022, 11:45pm UTC](https://devforum.zoom.us/t/ineed-to-decode-yu420p-stream-buffer-to-rgb-image-for-c-or-c-language/76543/5 "2022-10-05T23:45:46Z")

</div>

Hey @zoomuser, the JPEG and PNG specifications are quite complicated – this is most likely not something you want to write yourself by hand. What we’d suggest is to use a tool like FFMPEG, which has this capability built-in.  
We wrote a bit more about this here: [How to Convert Zoom Raw Data into PNG and MP4](https://www.recall.ai/post/how-to-convert-zoom-raw-data-into-png-and-mp4)

---

<div class="post-metadata">

**Author:** ![amanda-recallai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amanda-recallai/32/44747_2.png) [@amanda-recallai](https://devforum.zoom.us/u/amanda-recallai)\
**Post date:** [October 5, 2022, 11:52pm UTC](https://devforum.zoom.us/t/ineed-to-decode-yu420p-stream-buffer-to-rgb-image-for-c-or-c-language/76543/6 "2022-10-05T23:52:17Z")

</div>

Hey @nguyenhavinh, happy to share how to build a meeting bot.

If you’re using the Zoom Raw Data SDK, these are the steps:

1. Spin up a server. We recommend AWS, GCP, or Digital Ocean.
2. Use either the Windows or Mac Zoom SDK to launch an instance of the Zoom client.
3. Once you have the Zoom SDK launched, and use the Raw Data functionality to extract the video and audio streams.
4. This will return the video in I420 raw frames and audio in PCM 16LE raw format, so you’ll need to encode the audio and video yourself afterwards.
5. Once you have one instance of this working, you’ll need to scale this across several servers if you want to run multiple bots simultaneously, which is required to have bots for multiple meetings.

You could also use Twilio to build a bot that dials in to meetings. This is much easier, but some meetings don’t have a dial-in option enabled - just keep that in mind.

Finally, another option is Recall.ai. It’s a simple 3rd party API that lets you use meeting bots to get raw audio/video from meetings without you needing to spend months to build, scale and maintain these bots.

Let me know if you have any questions!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [November 5, 2022, 9:52am UTC](https://devforum.zoom.us/t/ineed-to-decode-yu420p-stream-buffer-to-rgb-image-for-c-or-c-language/76543/7 "2022-11-05T09:52:19Z")

</div>

Closed on November 5, 2022, 9:52am UTC

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