-
-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Read Frames from uStreamer Unix Socket in Golang #308
Comments
|
Thank you for your response! I appreciate the clarification about uStreamer’s Unix socket being HTTP-over-UDS. My goal is to integrate uStreamer natively without relying on Janus, allowing for more flexibility in using different programming languages like Go and Node.js. I’d love to explore how to efficiently access and process the video stream directly within these environments. If there are any recommended approaches or best practices for achieving this, I’d greatly appreciate your insights! |
You can use shared memory to access to frames. But I don't have Go experience so I can't tell will ir wrong fine or not. |
I’m working on a C library that reads frames from a shared memory segment (/dev/shm/test.h264). I intend to use this with Go via cgo bindings. Below is what I have so far, but I’m unsure if I’m handling shared memory access and frame reading correctly. Key concerns:
Here’s the C code I’ve written:
Any guidance or suggestions would be much appreciated! |
I'm trying to integrate uStreamer with a Go (Golang) application to capture raw frames via a Unix socket and send them over WebRTC using Pion. However, I am unable to read frames from the socket, and the connection either closes immediately or returns EOF.
Start uStreamer with the following command:
ustreamer --device=/dev/video1 --encoder=hw --unix=/run/ustreamer.sock --unix-rm --format=yuyv --port=8002 --host=0.0.0.0 --unix-mode=0660
Run my Go code to read frames from the socket:
While running above code. I am getting this error
Error during read
Log
I am not sure if I am using uStreamer correctly, but the idea is to use it with a different WebRTC library other than Janus.
The text was updated successfully, but these errors were encountered: