WebRTC with h264 on iOS

207 views
Skip to first unread message

Abel

unread,
Jul 14, 2021, 2:12:45 PM7/14/21
to discuss-webrtc
Hello everyone!

When we get the WebRTC iOS code, is h264 enabled by default?

``` 
mkdir webrtc-ios 
cd webrtc-ios 
fetch --nohooks webrtc_ios 
gclient sync 
cd src 
git checkout -b m84 refs/remotes/branch-heads/4147 
gclient sync
```

What arguments must be added in the compilation for webrtc to work with h264 on iOS?

Thanks!



La información incluida en este e-mail es CONFIDENCIAL, siendo para uso exclusivo del destinatario arriba mencionado. Si usted lee este mensaje y no es el destinatario indicado, le informamos que está totalmente prohibida cualquier utilización, divulgación, distribución o reproducción sin autorización expresa. En este caso, le rogamos nos lo notifique inmediatamente por esta misma vía y proceda a su eliminación. 

Su dirección de correo electrónico junto a sus datos personales podrán ser incluidos en un fichero titularidad de DEKA SOFTWARE LABS, S.L.U. cuya finalidad es la de mantener el contacto con usted. Si desea ejercitar sus derechos de acceso, rectificación, cancelación y oposición, deberá enviarnos su solicitud por escrito junto con una fotocopia de su DNI a la siguiente dirección: calle Embajador Vich, 3, 1, B, 46002, Valencia, Servicio de Protección de Datos.

Константин Шабаловский

unread,
Sep 4, 2021, 8:35:44 AM9/4/21
to discuss-webrtc
Hi. Do you have the answer to the question? 
It seems to me H264 is disabled by default and we have to add ffmpeg to have software encoder/decoder.


среда, 14 июля 2021 г. в 21:12:45 UTC+3, Abel:

Константин Шабаловский

unread,
Sep 4, 2021, 8:35:49 AM9/4/21
to discuss-webrtc
Hi there. Have you found the solution?
Is h264 enabled by default?

среда, 14 июля 2021 г. в 21:12:45 UTC+3, Abel:
Hello everyone!

John Mikelich

unread,
Oct 21, 2021, 4:59:47 PM10/21/21
to discuss-webrtc
You specify it in the RTCDefaultVideoEncoderFactory preferred codec attribute. Try looking at the iOS demo project and the ARDSettingsModel, it is setup all there. You can choose H264 or VP8 (those are the only two I've tried).

For example

RTCDefaultVideoDecoderFactory *decoderFactory = [[RTCDefaultVideoDecoderFactory alloc] init];

    RTCDefaultVideoEncoderFactory *encoderFactory = [[RTCDefaultVideoEncoderFactory alloc] init];

    ARDSettingsModel *settings = [[ARDSettingsModel alloc] init];

    encoderFactory.preferredCodec = [settings currentVideoCodecSettingFromStore];

    

    self.factory = [[RTCPeerConnectionFactory alloc] initWithEncoderFactory:encoderFactory

                                                         decoderFactory:decoderFactory];




John Mikelich

unread,
Oct 21, 2021, 5:01:18 PM10/21/21
to discuss-webrtc
So to be direct, Yes h264 is enabled by default, you just have to specify it on instantiation.

Kanstantsin

unread,
Oct 22, 2021, 2:18:55 AM10/22/21
to discuss-webrtc
Hi, John. 
Yes. You are right. H264 is enabled and works pretty well. I my case the problem was it other place.
Thank you.

пятница, 22 октября 2021 г. в 00:01:18 UTC+3, John.M...@socialive.us:
Reply all
Reply to author
Forward
0 new messages