[jitsi-dev] video qulity in lower bandwith situation with jitsi-android


#1

Hi Pawel and Guys ,
    Thanks for your reply, i'll look into the code about the reconnection. And the camera switch is working well now .
    I have been trouble at the video quality in jitsi-android, because the signal situation I test in is always not as good as wifi(I don't know what it's like in your country), the video that shown on the other side (such as PC ) is with a serious delay and always mosaic when movement happened ,the BitRate is alway keep in at 350~500Kbps. So is there any solution about this? Will the FFMPEG will work better than mediarecoder codec?
    Thanks.
Regards,
Ray

···

---------------------------------------------------------------------------------------------------------------------------------------------

Message: 3
Date: Thu, 25 Jul 2013 09:24:25 +0200
From: Pawe? Domas <pawel.domas@jitsi.org>
To: Jitsi Developers <dev@jitsi.org>
Subject: Re: [jitsi-dev] jitsi-android reconecction
Message-ID:
  <CAME7wR7SQ_4MXfewQxaBxNFqK8tvtUNYNmH8DRxGp6UAywYpDA@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi Ray,

On Thu, Jul 25, 2013 at 8:30 AM, MAXWELL <95143848@qq.com> wrote:

Hi All,
    I found that Jitsi-android will always reconnect once it lost
connection, but when my mobile signal is not very well in some places it
fails to reconnect and stay in a offline status , i want to fix this issue
but don't know how the reconecction works and where the core code
located.
    Could someone help me ?Thanks.

The reconnection is done by reconnect plugin located in Jitsi package:
net.java.sip.communicator.plugin.reconnectplugin

In current Android version library bundle is located in
lib/asset-bundles/reconnectplugin.jar. For the time you will work on
it it will be convenient to remove the file and just copy this package
to android.

    Also thanks Pawel for your suggestion about the camera swtich issue.
Regards ,
Ray

You're welcome. Does it work this way ?

Regards,
Pawel

------------------------------


#2

Hi Ray,

Hi Pawel and Guys ,
    Thanks for your reply, i'll look into the code about the reconnection.
And the camera switch is working well now .
    I have been trouble at the video quality in jitsi-android, because the
signal situation I test in is always not as good as wifi(I don't know
what it's like in your country), the video that shown on the other side
(such as PC ) is with a serious delay and always mosaic when movement
happened ,the BitRate is alway keep in at 350~500Kbps. So is there any
solution about this? Will the FFMPEG will work better than mediarecoder
codec?

I recall you've been asking about changing video resolution, but
forgot to answer - sorry about that.
Changing video resoultion is currently not finished and the one
selected in settings is not respected I believe.

I suppose libjitsi is not scaling video in this case, but just sends
what mediarecorder gives. However we can try to reconfigure
mediarecorder before video is started.

In mediarecorder datasource there are lines:

                // Tries to read previously stored parameters
                this.h264Params = H264Parameters.getStoredParameters();
                if(this.h264Params == null)
                {
                    // Pre-configure media recorder and camera for video format
                    configure(camera, mediaRecorder, videoFormat);
                    // Obtain h264 parameters from short sample video
                    this.h264Params = obtainParameters(camera, mediaRecorder);
                    // Persists the parameters
                    H264Parameters.storeParameters(this.h264Params);
                }
                // Prints the parameters
                h264Params.logParamaters();

                // Pre-configure media recorder and camera for video format
                configure(camera, mediaRecorder, videoFormat);

What happens here is that we use first video format that returns H264
as it's encoding. This format can be of high resoultion by default.
There is configure function that takes this format and sets
mediarecorder parameters and video size. You can try to experiment by
puttings there some static values. But what's important here is the
fact that we obtain h264 paramaters which contains the size, so you
will have to clear stored parameters each time video size is changed.

Hope this helps and please let me know if that worked.

Thanks,
Pawel

···

On Thu, Jul 25, 2013 at 11:48 AM, MAXWELL <95143848@qq.com> wrote:

    Thanks.
Regards,
Ray
---------------------------------------------------------------------------------------------------------------------------------------------

Message: 3
Date: Thu, 25 Jul 2013 09:24:25 +0200
From: Pawe? Domas <pawel.domas@jitsi.org>
To: Jitsi Developers <dev@jitsi.org>
Subject: Re: [jitsi-dev] jitsi-android reconecction
Message-ID:
<CAME7wR7SQ_4MXfewQxaBxNFqK8tvtUNYNmH8DRxGp6UAywYpDA@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi Ray,

On Thu, Jul 25, 2013 at 8:30 AM, MAXWELL <95143848@qq.com> wrote:

Hi All,
    I found that Jitsi-android will always reconnect once it lost
connection, but when my mobile signal is not very well in some places it
fails to reconnect and stay in a offline status , i want to fix this
issue
but don't know how the reconecction works and where the core code
located.
    Could someone help me ?Thanks.

The reconnection is done by reconnect plugin located in Jitsi package:
net.java.sip.communicator.plugin.reconnectplugin

In current Android version library bundle is located in
lib/asset-bundles/reconnectplugin.jar. For the time you will work on
it it will be convenient to remove the file and just copy this package
to android.

    Also thanks Pawel for your suggestion about the camera swtich issue.
Regards ,
Ray

You're welcome. Does it work this way ?

Regards,
Pawel

------------------------------

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev