Skip to content

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

@marakhi

Description

@marakhi

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions