EricssonResearch / openwebrtc

A cross-platform WebRTC client framework based on GStreamer
http://www.openwebrtc.org
BSD 2-Clause "Simplified" License
1.8k stars 537 forks source link

Depedency packages when using openWRT for cross compiling openwebrtc #426

Open suganthikarthick opened 9 years ago

suganthikarthick commented 9 years ago

Hi all, We are using openWRT for cross compiling OpenWebrtc. Our requirement is we have a target board, where we need to receive the media streams from a camera through WiFi, sending the media streams in a webrtc compatible format to the cloud (basically webrtc based browsers). We are using openwebrtc for this purpose. FYI, we do not need any display at target side. GUI support is not needed.

We have the following queries when porting the openwebrtc to our target.

  1. Do we need the packages like usersctp,seed,srtp,webkit-gtk inside openWebRTC?
  2. What plugins are required in openwebrtc-gst-plugins

It would be helpful if you give your suggestion on this.

Thank you.

superdump commented 9 years ago
  1. Packages...
    • usrsctp is needed for WebRTC data channel support. If you are only interested in audio / video, it should be possible to build without it.
    • javascriptcoregtk and seed are needed for the OpenWebRTC 'bridge' code which basically bridges the OpenWebRTC C API to the JavaScript WebRTC API. If you write only native applications, you do not need it and I am intending to make building those parts what is called a 'variant' in cerbero so that people can more easily disable them for embedded platforms where that layer is perhaps not so interesting or is more difficult to cross-compile. I need to do this to finish off the Raspberry Pi build, for example.
    • srtp is a standard part of WebRTC and must be built.
  2. What architecture is your embedded platform? Probably the easiest way to see all the required plugins for OpenWebRTC is to look at those linked in for static builds (for iOS and Android) - https://github.com/EricssonResearch/openwebrtc/blob/master/owr/owr.c#L88 .
    • videorepair is needed.
    • ercolorspace is mostly for ARM optimisations for colour space conversion, but depending on your device, doing software colour space conversion may not be desirable / possible anyway. And in your case, the decoder should decode to the format that the encoder wants (I420 or similar) so you should not need it.
    • sctp is only need if you want data channel support.
suganthikarthick commented 9 years ago

Thank you. We are using ARM architecture.