Building WebRTC.lib with opus disabled. (plus, excluding audio from WebRTC.lib)

86 views
Skip to first unread message

Eunryoung Lim

unread,
Apr 5, 2021, 5:22:11 AM4/5/21
to discuss-webrtc
Hello,

I am trying to build WebRTC.lib without opus and link it to our own Windows project.
(which our project already depends on opus codec library).
  
This is my gn build arguments:
  • gn gen --ide=vs out/x64/DisableOpus --args="is_debug=true use_rtti=true use_custom_libcxx=false is_component_build=false target_cpu=\"x64\" enable_iterator_debugging=true rtc_enable_protobuf=false is_clang=false use_lld=false rtc_include_tests=false rtc_include_opus=false rtc_build_opus=false rtc_opus_support_120ms_ptime=false"
The compilation is fine and has no linking error. but It has a crash inside the voice engine when collecting codecs. Has anyone tried this approach before?

There was a related discussion in 2016 (https://groups.google.com/g/discuss-webrtc/c/bcIpvWjrsxY), but they failed to compile WebRTC.lib excluding opus. It could be a different case.

In addition, Is there a way to exclude voice engine (audio) to use only video stack?
Every idea is welcoming, thanks a lot for your help.


Reply all
Reply to author
Forward
0 new messages