Stream Ray-Ban Meta Glasses to OBS Studio
Grab your coffee and turn Ray-Ban Meta glasses into a flexible OBS Studio camera source. MetaLensAI sends the glasses feed to MediaMTX on your local network, OBS receives it, and from there you can add scenes, overlays, graphics, recordings, and stream to any platform that supports RTMP.
Use this flow when you want OBS scenes, overlays, recording, and platform streaming control while using the glasses as the live camera source.
Ray-Ban Meta to OBS Demo
Watch a live stream running through MetaLensAI, MediaMTX, OBS Studio, and YouTube.
Install prerequisites and prepare the local connection
Before configuring the streaming chain, make sure the required software, devices, and local network are ready.
- MediaMTX is installed on the computer that will receive the stream.
- OBS Studio is installed on the computer that will compose and publish the final stream.
- Ray-Ban Meta glasses are connected to your phone.
- Your phone and computer are connected to the same stable Wi-Fi network.
Workflow separation
- MetaLensAI does not stream directly to YouTube in this workflow. If you need direct YouTube streaming, use the YouTube streaming guide.
- MetaLensAI streams to MediaMTX using Custom RTMP.
- OBS Studio receives the stream from MediaMTX.
- OBS Studio streams to YouTube or another platform you configure in OBS.
1. Run MediaMTX on the computer
- Start the MediaMTX server on the computer that will receive the stream from MetaLensAI.
- Keep MediaMTX running while you configure MetaLensAI and OBS Studio.
- If your operating system asks for firewall access, allow MediaMTX to accept local network connections.
A successful startup should look similar to this in your terminal:
$ ./mediamtx
INF MediaMTX v1.15.6
INF configuration loaded from /Users/miwu/Downloads/mediamtx_server/mediamtx.yml
INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)
INF [RTMP] listener opened on :1935
INF [HLS] listener opened on :8888
INF [WebRTC] listener opened on :8889 (HTTP), :8189 (ICE/UDP)
INF [SRT] listener opened on :8890 (UDP)
For this guide, the important line is [RTMP] listener opened on :1935. It means MediaMTX is ready to receive the Custom RTMP stream from MetaLensAI.
2. Get the computer local IP address
Find the local IP address of the computer running MediaMTX. The phone uses this address to reach MediaMTX over your local network.
On macOS, run:
$ ipconfig getifaddr en0
192.168.1.56
On Windows, run:
> ipconfig
Look for the active Wi-Fi or Ethernet adapter and copy the IPv4 Address value.
IPv4 Address . . . . . . . . . . . : 192.168.1.56
This is the address you will enter in MetaLensAI.
Use the computer's local LAN address, not a public IP address. Your phone must be able to reach this address from the same stable Wi-Fi network.
3. Configure MetaLensAI Custom RTMP
- In MetaLensAI, select Custom RTMP as the streaming platform.
- Set the RTMP server to the computer running MediaMTX.
Use the computer IP from the previous step and keep the MediaMTX RTMP port 1935. In this example, the Stream URL is:
rtmp://192.168.1.56:1935/meta
Set the Stream key to:
test
With the example values above, MediaMTX exposes the stream as rtmp://192.168.1.56:1935/meta/test.
The path name meta and stream key test are examples. You can choose your own names, as long as you use the same final stream address when adding the MediaMTX source in OBS.
4. Test the MetaLensAI connection to MediaMTX
- After saving the Stream URL and Stream key, return to the Home screen in MetaLensAI.
- Tap Go Live on Custom RTMP Server.
- Select Performance Mode for the most efficient video path. In this mode, the camera feed is sent directly to MediaMTX without additional processing in the app.
- Watch the MediaMTX terminal logs and confirm that the stream is being published.
INF [RTSP] [conn 192.168.1.56:55452] opened
INF [RTMP] [conn 192.168.1.40:51498] is publishing to path 'meta/test', 2 tracks (H265, MPEG-4 Audio)
The key confirmation is the [RTMP] ... is publishing to path 'meta/test' line. It means MetaLensAI successfully reached MediaMTX and started sending the stream.
MediaMTX also provides a simple browser preview. After MetaLensAI starts streaming, open the WebRTC preview URL:
http://192.168.1.56:8889/meta/test
5. Add the MediaMTX stream to OBS
- In OBS Studio, add a Media Source.
- Set the Media Source input to the RTSP stream exposed by MediaMTX.
- Confirm that both video and audio appear in OBS before going live.
rtsp://192.168.1.56:8554/meta/test
OBS uses RTSP here because MediaMTX republishes the incoming RTMP stream as an RTSP stream that OBS can read directly as a Media Source.
6. Configure your streaming platform in OBS
- Before you start, open the streaming platform you want to use, create or open a live stream, and copy its stream key.
- In OBS Studio, go to Controls > Settings > Stream.
- From the Service dropdown, select your streaming platform. In this example, we use YouTube.
- Select Use Stream Key (Advanced) and paste the stream key from your channel or live stream.
- After starting the stream from OBS, return to YouTube Studio or your selected platform studio and confirm that the stream is received correctly.
7. Start in the correct order
- Start MediaMTX.
- Start streaming from MetaLensAI to MediaMTX.
- Confirm the MediaMTX RTMP publishing log appears.
- Confirm that the feed appears in OBS.
- Start streaming from OBS to your selected platform.
- Confirm preview or live status in YouTube Studio or your selected platform studio.
Most common failure points
- Wrong computer IP address entered in MetaLensAI.
- Phone and computer are not on the same network.
- Firewall blocks MediaMTX or RTMP port 1935.
- Incorrect RTMP path or stream key.
- OBS is configured before the MediaMTX stream is available.
- If you see "Error: RTMP connection failed: Error send packet. Broken pipe" on v0.14.9, please update to v0.15.0 or higher.
Want to stream without OBS?
If you want to stream directly from MetaLensAI to YouTube, Kick, Twitch, or TikTok without OBS, use the direct streaming guide. All you need is an account on your streaming platform and the stream key for your channel.