Jump to content
  • 0

Reading WebRTC/Live stream from python


Wajid
 Share

Question

We have a use case to read the WebRTC stream from python, is there any specific libraries?. Our objective is to read live stream from python which is required for some AI modules   

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
On 2/22/2023 at 1:02 PM, Wajid said:

We have a use case to read the WebRTC stream from python, is there any specific libraries?. Our objective is to read live stream from python which is required for some AI modules   

You won't be able to read through webrtc because the server assisted webrtc uses special proprietary handshake and other things behind the scene. This is not pure p2p. 

Your best bet will be to use the plugin architecture and read the stream data through in Java and then pass it to python for processing.

Link to comment
Share on other sites

  • 0
1 hour ago, Connessione said:

You won't be able to read through webrtc because the server assisted webrtc uses special proprietary handshake and other things behind the scene. This is not pure p2p. 

Your best bet will be to use the plugin architecture and read the stream data through in Java and then pass it to python for processing.

When you say with plugin any idea how to pass the stream from java to python?

Link to comment
Share on other sites

  • 0
On 3/4/2023 at 12:22 PM, Wajid said:

When you say with plugin any idea how to pass the stream from java to python?

So as pointed by tim you use framelistener to capture data from java then pass it to python by serialising or through a socket service. 

If you search on the internet i am sure you will find some examples of sharing data between python and Java. 

Edited by Connessione
  • Like 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...