# Unable to get valid video data(\`yuv\`) using Meeting SDK for Linux when subscribed to \`RAW\_DATA\_TYPE\_SHARE\`

**URL:** <https://devforum.zoom.us/t/unable-to-get-valid-video-data-yuv-using-meeting-sdk-for-linux-when-subscribed-to-raw-data-type-share/114272>\
**Category:** Meeting SDK\
**Tags:** recording\
**Created:** [July 24, 2024, 9:22am UTC](https://devforum.zoom.us/t/unable-to-get-valid-video-data-yuv-using-meeting-sdk-for-linux-when-subscribed-to-raw-data-type-share/114272 "2024-07-24T09:22:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ka.baseball1997](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ka.baseball1997/32/61770_2.png) [@ka.baseball1997](https://devforum.zoom.us/u/ka.baseball1997)\
**Post date:** [July 24, 2024, 9:22am UTC](https://devforum.zoom.us/t/unable-to-get-valid-video-data-yuv-using-meeting-sdk-for-linux-when-subscribed-to-raw-data-type-share/114272/1 "2024-07-24T09:22:11Z")

</div>

**Meeting SDK Type and Version**  
`zoom-meeting-sdk-linux_x86_64-6.1.1.493`

**Description**

I cloned `meetingsdk-headless-linux-sample` from github and created an application that allows a bot to record audio and video using the Meeting SDK for Linux.

Then, to capture screen sharing data as well, I added the following line to perform the recording:

```auto
err = m_videoHelper->subscribe(uid, RAW_DATA_TYPE_SHARE);

```

However, I thought that the recorded data might not be valid. When I examined the contents of the data, it looked like this:

```auto
% head -c 100 out/meeting-video.yuv | xxd 
00000000: dddd dddd dddd dddd dddd dddd dddd dddd ................
00000010: dddd dddd dddd dddd dddd dddd dddd dddd ................
00000020: dddd dddd dddd dddd dddd dddd dddd dddd ................
00000030: dddd dddd dddd dddd dddd dddd dddd dddd ................
00000040: dddd dddd dddd dddd dddd dddd dddd dddd ................
00000050: dddd dddd dddd dddd dddd dddd dddd dddd ................
00000060: dddd dddd ....

```

When I save the user’s video like this:

```auto
err = m_videoHelper->subscribe(uid, RAW_DATA_TYPE_VIDEO);

```

The data is valid, and I can convert it to mp4 and view the user’s video properly. Is there some additional configuration needed to successfully capture the screen sharing data?

Would you like me to provide any analysis or explanation of this situation?

cc: @chunsiong.zoom

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [July 24, 2024, 9:42am UTC](https://devforum.zoom.us/t/unable-to-get-valid-video-data-yuv-using-meeting-sdk-for-linux-when-subscribed-to-raw-data-type-share/114272/2 "2024-07-24T09:42:30Z")

</div>

@ka.baseball1997 you need to use 2 seperate methods to capture 2 “videos”. One is user video, one is sharescreen

---

<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:** [August 5, 2024, 10:57pm UTC](https://devforum.zoom.us/t/unable-to-get-valid-video-data-yuv-using-meeting-sdk-for-linux-when-subscribed-to-raw-data-type-share/114272/3 "2024-08-05T22:57:00Z")

</div>

Hey @ka.baseball1997 ,

As Chun Siong mentioned, you’ll want to use two separate methods for capturing 2 videos.

Concretely, you’ll likely want to use multiple [`ZoomSDKRendererDelegate`](https://github.com/zoom/meetingsdk-headless-linux-sample/blob/a04417b5a4ef81e1eaead3857ee7bad1832fd186/src/Zoom.cpp#L221C33-L221C56)’s, where one of these is subscribing specifically to the screenshare.

For instance:  
`videoHelper->subscribe(userID, RAW_DATA_TYPE_SHARE);`

* * *

If you didn’t want to worry about these sorts of details, another alternative is to use the [Recall.ai API](https://www.recall.ai/?utm_source=zoom_dev_forum&utm_medium=forum_answer&utm_campaign=unable-to-get-valid-video-data-yuv&utm_content=Recall.ai_API) for your meeting bots instead. 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!
