pristineio / webrtc-android

A mirror of the Android AppRTC demo with sources for the libjingle_peerconnection library.
Other
191 stars 96 forks source link

What is the default video codec in WebRTC?How can I change this? #5

Open hoang89yenthe opened 9 years ago

hoang89yenthe commented 9 years ago

What is the default video codec in WebRTC?How can I change this?

czhao commented 9 years ago

There is no default video codec in WebRTC. You always have a choice. The API allows developer to change the video/audio codec.

hoang89yenthe commented 9 years ago

Really, please show me the way to change video codec in webrtc.I used Libjingle peerconnection.

hoang89yenthe commented 9 years ago

I want to use h.264 codec instead of VP8 :d

ArikYa commented 9 years ago

Due to licensing limitations, H.264 in WebRTC is only available on devices that support H.264 hardware acceleration. Right now it is hard coded to support only devices that use Qualcomm chipsets, except the Galaxy S4 (due to some specific issues on that phone).

hoang89yenthe commented 9 years ago

I know that, but I have some special reason to use h.264.Please help

ArikYa commented 9 years ago

What device are you using? If the device supports H.264 using hardware, but it isn't Qualcomm based, you can always get WebRTC sources and add that chipset to the list of supported devices

hoang89yenthe commented 9 years ago

I just want to know how to use H.264 in libjingle_peerconnection lib.I dont care about supported devices. Just how to coding for this

ArikYa commented 9 years ago

Not sure I'm following you. If you are using unsupported devices, you can only do VP8. If you are using supported devices, you need to prefer H.264 in the SDP, because the preferred codec is VP8 even when H.264 is supported. Please elaborate more about what you are trying to do

hoang89yenthe commented 9 years ago

Thanks @ArikYa. How to prefer h264 in sdp? It is a little experiment.

LevonGhazaryan commented 7 years ago

Hello guys i have some problems with mobile browser (on android chrome) seems that WebRTC H264 is not supporting on the latest versions of browser and the latest version of chrome 56...... for windows so i need to convert H264 to VP8/90000. Is it possible to convert on client browser?

karan-tewari commented 7 years ago

@LevonGhazaryan I hope this link helps you out :)

https://developer.android.com/reference/android/media/MediaCodecList.html