WebRTC IOS h264 support!

1,134 views
Skip to first unread message

James Chen

unread,
Apr 1, 2019, 9:30:16 AM4/1/19
to discuss-webrtc
Hello everyone 

I just try to build IOS webrtc with h264 support .

Unfortunately I can not make it work

gn gen out/ios_release --args='target_os="ios" target_cpu="arm64" is_debug=false use_rtti=true proprietary_codecs=true rtc_use_h264=true rtc_include_tests=false' --ide=xcode

first I meet some problem  
then  I did some fix

like 

build/config/chrome_build.gni

 is_chrome_branded = false -> is_chrome_branded = true



create a file if not you will get (fatal error: 'libavutil/avconfig.h' file not found)

src/third_party/ffmpeg/libavutil/avconfig.h

/* Generated by ffconf */
#ifndef AVUTIL_AVCONFIG_H
#define AVUTIL_AVCONFIG_H
#define AV_HAVE_BIGENDIAN 0
#define AV_HAVE_FAST_UNALIGNED 0
#endif /* AVUTIL_AVCONFIG_H */





then I meet this

[57/653] LIBTOOL-STATIC obj/third_party/ffmpeg/libffmpeg_internal.a

FAILED: obj/third_party/ffmpeg/libffmpeg_internal.a 

rm -f obj/third_party/ffmpeg/libffmpeg_internal.a && TOOL_VERSION=1553854376 python ../../build/toolchain/mac/filter_libtool.py libtool -static  -o obj/third_party/ffmpeg/libffmpeg_internal.a -filelist obj/third_party/ffmpeg/libffmpeg_internal.a.rsp

fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file list file: obj/third_party/ffmpeg/libffmpeg_internal.a.rsp is empty

[60/653] CXX clang_x64/obj/third_party/protobuf/protobuf_full/datapiece.o

ninja: build stopped: subcommand failed.








now what can I do next ?

上官海涛

unread,
Apr 2, 2020, 4:26:05 AM4/2/20
to discuss-webrtc


在 2019年4月1日星期一 UTC+8下午9:30:16,James Chen写道:
Are you ok? I have the same question. 

Yin Zhang

unread,
Apr 20, 2020, 2:02:04 AM4/20/20
to discuss-webrtc
Did you solve the problem?  I am facing the same problem ...

-- Yin

X Hogan

unread,
Sep 8, 2020, 2:33:39 AM9/8/20
to discuss-webrtc
need a solution to solve the problem.

yifeng zhang

unread,
Dec 10, 2020, 7:41:16 AM12/10/20
to discuss-webrtc
I think webrtc has build-in h264 support for ios, no need to include ffmpeg like other platform, we've success turn on h264 native support with Videotoolbox build in webrtc

Zorro Zombi

unread,
Dec 29, 2020, 8:33:55 PM12/29/20
to discuss-webrtc
In general yes but for simulcast video toolbox is not working (
Message has been deleted

helloj...@gmail.com

unread,
Jun 19, 2021, 2:21:44 PM6/19/21
to discuss-webrtc
I have the same question.  
In order to achieve WebRTC iOS SIMULCAST H264, I use VIDETOOLBOX and SIMULCASTENCODERADAPTER to solve this problem.

Reply all
Reply to author
Forward
0 new messages