Improving video quality for Android

1,095 views
Skip to first unread message

Sibtain Abbas

unread,
Sep 6, 2016, 8:07:39 AM9/6/16
to discuss-webrtc
Hi,

I am building a WebRTC application that streams video from Android (using libjingle) to Chrome client. I am looking to improve my video quality but as of now based on different phones, I have tried different resolutions and frame rates. What I want to achieve:

1. Be able to change bitrate of the video as required (Tried changing bitrate by modifying the SDP adding parameter like and . Nothing changed when I added these parameters to my SDP. Can someone help how exactly to change the bitrate of video and make it work?

2. Get better fps with no lag at 1280x720 resolution by somehow changing the bitrate or something.

Also I am using VP9 for phones with having API greater than 19 and VP8 for phones with API less than 19. For some reason, VP9 does not work on all phones.

- Please tell me what codec, resolution, fps and bitrate combination would work to get the best video quality from Android to the Chrome client.

Christoffer Jansson

unread,
Sep 7, 2016, 8:14:55 AM9/7/16
to discuss...@googlegroups.com
On Tue, Sep 6, 2016 at 2:07 PM Sibtain Abbas <sibtain...@gmail.com> wrote:
Hi,

I am building a WebRTC application that streams video from Android (using libjingle) to Chrome client. I am looking to improve my video quality but as of now based on different phones, I have tried different resolutions and frame rates. What I want to achieve:

1. Be able to change bitrate of the video as required (Tried changing bitrate by modifying the SDP adding parameter like and . Nothing changed when I added these parameters to my SDP. Can someone help how exactly to change the bitrate of video and make it work?
 

2. Get better fps with no lag at 1280x720 resolution by somehow changing the bitrate or something.
Make sure the camera has sufficient light and that the network is stable and it should be fine. 

Also I am using VP9 for phones with having API greater than 19 and VP8 for phones with API less than 19. For some reason, VP9 does not work on all phones.

- Please tell me what codec, resolution, fps and bitrate combination would work to get the best video quality from Android to the Chrome client.
This is hard to answer since resolution and fps is constrained by network and hardware (endless amounts of different hardware for Android and Chrome clients).

When you choose codec, consider using the codec that has hardware and decode support in the devices.

Having written all that, if you have good enough hardware (camera included) and network connection there is no reason 1270x720@30FPS should not work out for you. Once again though, keep in mind this is affected by lots of factors such as heat in the device (thermal throttle), battery life (battery saver mode), network speed and latency and sufficient lighting for the camera to capture 30 fps etc.

/Chris

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/eb0f810c-9042-463c-9564-0fc8d5ed8a68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
/Chris
Reply all
Reply to author
Forward
0 new messages