[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linphone-developers] HD Video
From: |
Jonathan Rosser |
Subject: |
Re: [Linphone-developers] HD Video |
Date: |
Wed, 27 Oct 2010 08:43:47 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8 |
On 10/26/10 19:06, Doug Blewett wrote:
How much work would it be to add HD video to Linphone?
This works for me on Linux:
diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c
index 7befb64..cce1c17 100644
--- a/coreapi/linphonecore.c
+++ b/coreapi/linphonecore.c
@@ -3273,6 +3273,7 @@ unsigned long
linphone_core_get_native_video_window_id(const LinphoneCore *lc){
}
static MSVideoSizeDef supported_resolutions[]={
+ { {MS_VIDEO_SIZE_1080P_W,MS_VIDEO_SIZE_1080P_H} ,
"hd1080"},
{ {MS_VIDEO_SIZE_SVGA_W,MS_VIDEO_SIZE_SVGA_H} ,
"svga" },
{ {MS_VIDEO_SIZE_4CIF_W,MS_VIDEO_SIZE_4CIF_H} ,
"4cif" },
{ {MS_VIDEO_SIZE_VGA_W,MS_VIDEO_SIZE_VGA_H} ,
"vga" },
Obviously you need to pay attention to the codec and actually getting a
v4l2 source to deliver HD video in the right format, but I have
HDMI+HDSDI capture driving linphone fine. I'm using x264 as the codec
with the "zerolatency" preset and the picture quality at 10Mbits/sec is
fine on a 46" screen.
For me, it feels like this kind of image size stresses the internals of
mediastreamer2 quite significantly - looks like there may be room for
some optimisation.
Regards,
Jonathan.