Skip to content
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

How to process frame and send it as video stream? #41

Open
marakhi opened this issue Aug 13, 2022 · 0 comments
Open

How to process frame and send it as video stream? #41

marakhi opened this issue Aug 13, 2022 · 0 comments

Comments

@marakhi
Copy link

marakhi commented Aug 13, 2022

hello @dkumor,

My end goal is to send single 'big' combine frame from multiple cameras to WebRTC. can you please help me understand how to process/modify frame from single video feed and send it to WebRTC? Once I figured out this, I will add more cameras and combine frames from multiple cameras. I am using below code to process/modify frame from single camera source but when I open browser it is not showing any video though I am able to send keyboard commands(key press ) over webrtc. Also I don't see any error on robot, server or browser side.

# commented below line and replace it with camera.subscribe 
#conn.video.putSubscription(camera)

@camera.subscribe
def onFrame(frame):
   #below code show video output on display
    display.put_nowait(frame)    
   #below code doesn't show video output on browser.  Though it is not generating any error on robot or server side.  
    conn.video.put_nowait(frame)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant