Hi,
How can i stream live video from luxonis robothub to another application…. can i achieve it using robothub API key or suggest any other method.
Thanks,
Jyothi
Hi,
How can i stream live video from luxonis robothub to another application…. can i achieve it using robothub API key or suggest any other method.
Thanks,
Jyothi
@JyothiGarubilli Do you have any requirements for the stream format/codecs? Could you please describe more details about what you want to achieve?
Thank you for reaching out @Luxonis-Vlad. In terms of stream format and codecs, I am planning to utilise either the WebRTC or HLS format with the H.264 codec to stream live video from the RobotHub application to my application using Python.
The goal is to establish a seamless and reliable live video streaming experience from RobotHub application to my application, leveraging the chosen format and codec. If there are APIs available that support these streaming formats and codecs, it would greatly facilitate the integration process.
Could you please provide information on any APIs or documentation available for streaming from the RobotHub application to external applications? I'm looking forward to learning more about the possibilities and requirements for achieving this.
Thank you in advance for your assistance, and I appreciate your time.
Regards,
Jyothi
@JyothiGarubilli Currently you can't use RobotHub library to stream video from the camera to your application but you can make your own implementation of webrtc or HLS streaming (maybe with help off ffmpeg) in python and send the video frames to your application.
Thanks @Luxonis-Vlad. Could you please provide insights into how the video streaming works between RobotHub Studio (opened with a local IP address) and custom applications within the RobotHub page? My custom application running within the RobotHub page is able to receive video frames (getting liveview) from RobotHub Studio by clicking 'start App'. How 'Liveview' module works from Robothub library (from robothub import BaseApplication, LiveView) ? What configurations or functionalities allow for this seamless video communication?
JyothiGarubilli Video streaming works using WebRTC. We establish the connection between the frontend (web app) and the RobotHub Agent. The Python app is just sending the H264 encoded frames to the RobotHub Agent, which then forwards them to connected frontends (web apps). Because RobotHub Agent is also hosting these apps - it can inject the connection code there and make it work seamlessly.
From point of the python code - its just writing H264 frames to a file. All the heavy lifting is done by Agent.