[Opalvoip-user] Problem with YUY2
Brought to you by:
csoutheren,
rjongbloed
From: Thomas B. <sch...@gm...> - 2009-04-16 12:35:01
|
Hi, I wrote a small video softphone based on ptlib and opal. As camera I've connected a ProScope HR microsope camera (http://www.bodelin.com/proscopehr/) Now the problem is that the picture is green and with stripes (the picture is ok with other cameras). The difference between the ProScope and other cameras I've tested is the following: 1. It does not support CIF as native resolution. So ptlib uses another resolution and then scales it down to CIF. 2. PWlib uses YUY2 to receive data from the camera (it uses a different codec for other cameras). When opening the camera with another application (e.g. VLC), the picture is ok, it's only with my softphone where the picture is wrong. I assume it's a a problem how ptlib converts YUY2 (retrieved from the camera) into YUV420P (the default codec used by ptlib) or maybe also the resizing algorithm (received as 640x480 and converted to 352x288 (CIF) ). Any help is appreciated. Cheers, Thomas |