# Cant record video using meeting sdk

**URL:** <https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390>\
**Category:** Meeting SDK\
**Created:** [February 22, 2024, 11:32am UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390 "2024-02-22T11:32:14Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![nandakishor2010608](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nandakishor2010608/32/56873_2.png) [@nandakishor2010608](https://devforum.zoom.us/u/nandakishor2010608)\
**Post date:** [February 22, 2024, 11:32am UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390/1 "2024-02-22T11:32:14Z")

</div>

follow the steps in this github

> **[GitHub - zoom/meetingsdk-headless-linux-sample: A demo on creating a headless...](https://github.com/zoom/meetingsdk-headless-linux-sample)**
>
> A demo on creating a headless meeting bot using the Zoom Meeting SDK for Linux and Docker - zoom/meetingsdk-headless-linux-sample

error screenshot -  
zoomsdk-build | ✅ configure  
zoomsdk-build | ✅ initialize  
zoomsdk-build | ✅ authorize  
zoomsdk-build | ✅ join a meeting  
zoomsdk-build | ⏳ connecting to the meeting  
zoomsdk-build | ❌ unknown meeting status  
zoomsdk-build | ⏳ reconnecting to the meeting  
zoomsdk-build | ⏳ connecting to the meeting  
zoomsdk-build | ✅ connected  
zoomsdk-build | ⏳ requesting local recording privilege  
zoomsdk-build | ✅ start raw recording  
zoomsdk-build | ✅ create raw video renderer  
zoomsdk-build | ✅ subscribe to raw video

after this, i am not receiving any video recording, although the recording has started in my meeting

any idea why is this happening?

code responsible for video rendering -  
if (m\_config.useRawVideo()) {  
if (!m\_videoSource) {  
err = createRenderer(&m\_videoHelper, m\_videoSource);  
if (hasError(err, “create raw video renderer”))  
return err;  
}  
auto participantCtl = m\_meetingService-\>GetMeetingParticipantsController();  
int uid = participantCtl-\>GetParticipantsList()-\>GetItem(0);  
m\_videoHelper-\>setRawDataResolution(ZoomSDKResolution\_720P);  
err = m\_videoHelper-\>subscribe(uid, RAW\_DATA\_TYPE\_VIDEO);  
if (hasError(err, “subscribe to raw video”))  
return err;

---

<div class="post-metadata">

**Author:** ![nandakishor2010608](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nandakishor2010608/32/56873_2.png) [@nandakishor2010608](https://devforum.zoom.us/u/nandakishor2010608)\
**Post date:** [February 22, 2024, 11:33am UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390/2 "2024-02-22T11:33:54Z")

</div>

@chunsiong.zoom can you look into this issue

---

<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:** [February 23, 2024, 6:52am UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390/3 "2024-02-23T06:52:25Z")

</div>

@nandakishor2010608 do you have a sample of the SDK Auth token which you were using?

Please tag me in your reply

---

<div class="post-metadata">

**Author:** ![nandakishor2010608](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nandakishor2010608/32/56873_2.png) [@nandakishor2010608](https://devforum.zoom.us/u/nandakishor2010608)\
**Post date:** [February 23, 2024, 11:01am UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390/4 "2024-02-23T11:01:35Z")

</div>

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJrdDJTSHAzVFJIaVlqb090aks3ZEdBIiwiZXhwIjoxNzA4NzcyNDYzLCJpYXQiOjE3MDg2ODYwNjMsInRva2VuRXhwIjoxNzA4NzcyNDYzfQ.zrUBMv61cmyZZuVGtQmEIpDGylBl1Propq13pihw2PA  
@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:** [February 23, 2024, 11:38am UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390/5 "2024-02-23T11:38:59Z")

</div>

@nandakishor2010608 ,

Did the bot successfully joined the meeting? And did you provide it with recording permissions?

---

<div class="post-metadata">

**Author:** ![nandakishor2010608](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nandakishor2010608/32/56873_2.png) [@nandakishor2010608](https://devforum.zoom.us/u/nandakishor2010608)\
**Post date:** [February 23, 2024, 1:05pm UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390/6 "2024-02-23T13:05:44Z")

</div>

> [@nandakishor2010608](#):
>
> eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJrdDJTSHAzVFJIaVlqb090aks3ZEdBIiwiZXhwIjoxNzA4NzcyNDYzLCJpYXQiOjE3MDg2ODYwNjMsInRva2VuRXhwIjoxNzA4NzcyNDYzfQ.zrUBMv61cmyZZuVGtQmEIpDGylBl1Propq13pihw2PA

yes, it joins the meeting properly, and im giving recording permission as well. Iam able to get the audio now but video data is not coming through

@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:** [February 23, 2024, 2:19pm UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390/7 "2024-02-23T14:19:02Z")

</div>

@nandakishor2010608 is the flag to record raw video turned on in config.txt?

---

<div class="post-metadata">

**Author:** ![chriswuyiming](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chriswuyiming/32/56788_2.png) [@chriswuyiming](https://devforum.zoom.us/u/chriswuyiming)\
**Post date:** [February 23, 2024, 2:50pm UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390/8 "2024-02-23T14:50:43Z")

</div>

I have the same issue, what is the flag to record raw video?

i added to config.ini, and it did not work

[RawVideo]  
file=“meeting-video.yuv”

---

<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:** [February 23, 2024, 3:10pm UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390/9 "2024-02-23T15:10:53Z")

</div>

@MaxM need your help on this for a bit

---

<div class="post-metadata">

**Author:** ![nandakishor2010608](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nandakishor2010608/32/56873_2.png) [@nandakishor2010608](https://devforum.zoom.us/u/nandakishor2010608)\
**Post date:** [February 25, 2024, 12:59pm UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390/10 "2024-02-25T12:59:06Z")

</div>

yes the flag has been set

[RawVideo]  
file=“meeting-video.yuv”

@chunsiong.zoom

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 27, 2024, 10:26pm UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390/11 "2024-02-27T22:26:09Z")

</div>

Thank you for bringing this to my attention! I was able to reproduce the issue and am working to release a fix.

---

<div class="post-metadata">

**Author:** ![nandakishor2010608](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nandakishor2010608/32/56873_2.png) [@nandakishor2010608](https://devforum.zoom.us/u/nandakishor2010608)\
**Post date:** [February 28, 2024, 1:02pm UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390/13 "2024-02-28T13:02:28Z")

</div>

@MaxM thank you for spending time on this, looking forward to the release

---

<div class="post-metadata">

**Author:** ![nandakishor2010608](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nandakishor2010608/32/56873_2.png) [@nandakishor2010608](https://devforum.zoom.us/u/nandakishor2010608)\
**Post date:** [March 1, 2024, 6:27am UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390/14 "2024-03-01T06:27:42Z")

</div>

Hey fixed the issue, so the reason for this issue was i was trying toi record the video of the bot but the bot has no video, changed the uid passed in the subscribe() method and it works now. Thanks  
@chunsiong.zoom @MaxM

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [April 4, 2024, 7:35pm UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390/15 "2024-04-04T19:35:59Z")

</div>

It looks like there were also some code issues on my end. I’ve been able to push out a fix and will close this thread now. Thanks for sharing what worked for you!

---

<div class="post-metadata">

**Author:** ![m4hijaziii](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/m4hijaziii/32/49791_2.png) [@m4hijaziii](https://devforum.zoom.us/u/m4hijaziii)\
**Post date:** [December 14, 2024, 6:27pm UTC](https://devforum.zoom.us/t/cant-record-video-using-meeting-sdk/104390/16 "2024-12-14T18:27:52Z")

</div>

Hi am facing similar issue for Linux SDK in cpp idk how to solve this issue and i didn’t understand how @nandakishor2010608  
I get Faild to write data
