> For the complete documentation index, see [llms.txt](https://docs.tlic.cmu.ac.th/ez-studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tlic.cmu.ac.th/ez-studio/obs-platform/live-stream-obs/obs-x-microsoft-stream.md).

# OBS x Microsoft Stream

Microsoft Stream เป็น Platform สำหรับการถ่ายทอดสดและลง content ประเภทวิดีโอค้ลายกับ YouTube แต่มีข้อแตกต่างที่สำคัญคือสามารถกำหนด Privacy ในการเข้าชมให้เป็นระดับองค์กรหรือรายบุคคลได้ ซึ่งแตกต่างจาก YouTube ที่จะเน้นการเผยแพร่และถ่ายทอดสดในรูปแบบสาธารณะมากกว่า การตั้งค่าสำหรับการ Live Stream บน Microsoft Stream ด้วย OBS มีวิธีการดังนี้

1.Login ใน <https://web.microsoftstream.com/> (สามารถใช้ cmu Account ได้)

2.ไปที่แถบเมนูมุมซ้ายบน เลือก Create -> Live Event

![](/files/ESazei0v9kfulUp3zMmH)

3.จะเข้าสู่หน้าจอการตั้งค่า Live Stream ให้ทำการใส่รายละเอียดใน Detail , ตั้งค่า Permission และ Options ให้เรียบร้อย จากนั้นกด Save

![](/files/35bvpYwPC7JPRd4fN1re)

4.เมื่อกด Save แล้ว ส่วนการตั้งค่าของ Encoder setup จะปรากฏขึ้น ไปที่ส่วนของ Server ingest URL แล้วกด Copy

![](/files/dDVkXHRdKlLFJKO9bql2)

5.เปิดโปรแกรม OBS ไปที่แถบเครื่องมือบริเวณมุมขวาล่าง เลือกที่ Setting

![](/files/G5Xj2DzhIQp26WFYMjws)

6.หน้าต่าง Setting จะปรากฏขึ้น เลือกที่ Stream ตั้งค่า Service ตามภาพด้านล่าง ส่วนช่อง Server ให้กด Ctrl + V หรือคลิกขวา + Paste เพื่อวาง Server ingest URL ที่คัดลอกมาจากหน้าตั้งค่าของ Microsoft Stream ลงไป และช่อง Stream Key ให้พิมพ์ 123456 จากนั้นกด OK

![](/files/8HeLvi77fOPxEx5BAxJo)

7.ไปที่ Microsoft Stream คลิกที่ปุ่ม Start setup(สีเหลือง) จากนั้นรอระบบเชื่อมต่อกับ OBS

![](/files/Ho2HjiRZQKAexrz2WaRx)

8.เมื่อระบบเชื่อมต่อกับ OBS เสร็จเรียบร้อย จะขึ้นเป็นหน้าจอดังกล่าว ให้ไปที่ OBS กด Start Streaming&#x20;

![](/files/dSO8BTi8nu1mulZCm3xN)

9.หน้า Microsoft Stream จะแสดงตัวอย่างหน้าจอระหว่างถ่ายทอดสดขึ้นมาให้ พร้อมข้อความแจ้งเตือนว่าระบบพร้อมสำหรับการถ่ายทอดสดแล้วที่ด้านบนปุ่ม Start event เมื่อพร้อมแล้วสามารถกดที่ Start event ได้ทันที

และเมื่อต้องการหยุดการถ่ายทอดสดให้กดที่ Stop Streaming ใน OBS และกดปุ่ม End event(ปุ่มสีชมพู ตำแหน่งเดียวกับ Start event)ที่หน้า Microsoft Stream

![เมื่อระบบพร้อมสำหรับการถ่ายทอดสดจะเห็นข้อความแจ้งเตือนขึ้นมาดังภาพ](/files/7uScwkgMtJLHysK9sLTS)

![เมื่อกด End event จะมีข้อความแจ้งเเตือนการหยุดการถ่ายทอดสดขึ้นมา](/files/RUaM6vwyw4IA9wJd8Mj9)

10.สามารถเข้าไปจัดการรายละเอียดหรือตัดวิดีโอส่วนที่ไม่ต้องการออกได้ในภายหลัง โดยเข้าไปที่ My content -> Videos


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tlic.cmu.ac.th/ez-studio/obs-platform/live-stream-obs/obs-x-microsoft-stream.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
