linphone-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-users] how to set video codec


From: Tahir Jilani
Subject: Re: [Linphone-users] how to set video codec
Date: Thu, 18 Feb 2016 18:02:23 +0500

Hi, I apologize for the dealy in response.

In an earlier project for Android application based on linphone. I was controlling video size and quality from cloud for a specific user like this:

public void setPreferredVideoSize(String preferredVideoSizeFromServer) {
int bandwidth = 512; // VGA (640x480)
if (preferredVideoSizeFromServer) .equals("720p")) { //hd
bandwidth = 1024 + 128;
} else if (preferredVideoSizeFromServer) .equals("qvga")) { //QVGA (320x240)
bandwidth = 380;
}  else if (preferredVideoSizeFromServer) .equals("qcif")) { //qcif
bandwidth = 256;
}

LinphoneManager.getLinphoneCore().setPreferredVideoSizeByName(preferredVideoSize);
LinphoneManager.getLinphoneCore().setUploadBandwidth(bandwidth);
LinphoneManager.getLinphoneCore().setDownloadBandwidth(bandwidth);
}

LinphoneCore.java:
these methods are written as:

/**
* Sets the preferred video size giving a known size name.
*
* This applies only to the stream that is captured and sent to the remote party,
* since we accept all standard video size on the receive path.
* @param name A known video name (eg. vga or 720p)
**/
void setPreferredVideoSizeByName(String name);

void setUploadBandwidth(int bw);


/**
* Sets maximum available download bandwidth
*
*
* This is IP bandwidth, in kbit/s.
* This information is used signaled to other parties during
* calls (within SDP messages) so that the remote end can have
* sufficient knowledge to properly configure its audio & video
* codec output bitrate to not overflow available bandwidth.
*
* @param bw the bandwidth in kbits/s, 0 for infinite
*/
void setDownloadBandwidth(int bw);


Regards,
Tahir

On Wed, Feb 17, 2016 at 10:47 PM, Jalal Miah <address@hidden> wrote:
How do I unsubscribe to this

From: <address@hidden> on behalf of Wlady <address@hidden>
Reply-To: <address@hidden>
Date: Wednesday, 17 February 2016 at 17:39
To: <address@hidden>
Subject: Re: [Linphone-users] how to set video codec

can you write me how you do in Android? perhaps the procedure is similar, thanks

2016-02-17 18:10 GMT+01:00 Tahir Jilani <address@hidden>:
 I am sorry i have no idea how its done in debian based linux. In iOS and Android camera module set the size.

On Wed, Feb 17, 2016 at 7:00 PM, Wlady <address@hidden> wrote:
have you some tips? thanks!

2016-02-15 18:26 GMT+01:00 Tahir Jilani <address@hidden>:
What platform are you running the linphone on? Is it Android, iOS ?

On Sat, Feb 13, 2016 at 8:53 PM, Wlady <address@hidden> wrote:
Hello,

I'm trying to place video calls with linphone but with H263 I receive the following error:

linphonec> 2016-02-13 15:49:50:888 ortp-error-no such method on filter MSH263Enc, fid=16392 method index=8
2016-02-13 15:49:52:840 ortp-error-Camera is proposing a size bigger than encoder's suggested size (640x480 > 352x288) Using the camera size as fallback because cropping or resizing is not implemented for this device.
[h263 @ 0xb0291908] The specified picture size of 640x480 is not valid for the H.263 codec.
Valid sizes are 128x96, 176x144, 352x288, 704x576, and 1408x1152.Try H.263+.
2016-02-13 15:49:52:843 ortp-error-avcodec_open() failed: -1

I've tried to change size parameter in .linphonerc with qcif, cif, vga, 4cif but result is always the same. Is there any way to change video size for H263 codec?

With H264 video works, but quality is not satisfactory

anyone can help me?

_______________________________________________
Linphone-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-users




--
Tahir Jilani

Co-founder & CTO

skype: tahir.jilani
Cell: 92 346 643 0284
Office: 92 423 5442316

Notice of Confidentiality: This message is intended solely for the use of its addressee and may contain privileged or confidential information. If you are not the addressee you should not distribute, copy or file this message. In this case, please notify the sender and destroy its contents immediately.

_______________________________________________
Linphone-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-users



_______________________________________________
Linphone-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-users




--
Tahir Jilani

Co-founder & CTO

skype: tahir.jilani
Cell: 92 346 643 0284
Office: 92 423 5442316
Lahore, Pakistan

Notice of Confidentiality: This message is intended solely for the use of its addressee and may contain privileged or confidential information. If you are not the addressee you should not distribute, copy or file this message. In this case, please notify the sender and destroy its contents immediately.

_______________________________________________
Linphone-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-users


_______________________________________________ Linphone-users mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/linphone-users

_______________________________________________
Linphone-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-users




--
Tahir Jilani

Co-founder & CTO

skype: tahir.jilani
Cell: 92 346 643 0284
Office: 92 423 5442316
Lahore, Pakistan

Notice of Confidentiality: This message is intended solely for the use of its addressee and may contain privileged or confidential information. If you are not the addressee you should not distribute, copy or file this message. In this case, please notify the sender and destroy its contents immediately.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]