Compiling H323Plus 1.22 CVS Trunk, Visual Studio 2008
Hello people
Reporting back:
* PTLib 2.6 (SVN Trunk): All compile fine and now DirectShow and Application properly works on projects outside PTLib_samples_2008.sln
* H323Plus 1.22 (CVS Trunk): H46018_h225.h Error
"H46019UDPSocket::GetLocalAddress" makes access to members "m_locAddr" and "m_locPort" but the two members are guarded by macro H323_H46024A and the method not.
Solution (?): put "H46019UDPSocket::GetLocalAddress" under H323_H46024A macro guardian like "[Get/Set]AlternateAddresses" ?
-- ----- Jogue RPG, alimente o lado criativo!
****Fix****
The version tested of PTLib trunk is 2.7.1, not 2.6.
2009/8/25 Marcos Fábio Jardini marcos.f.jardini@gmail.com:
Hello people
Reporting back:
- PTLib 2.6 (SVN Trunk): All compile fine and now DirectShow and
Application properly works on projects outside PTLib_samples_2008.sln
- H323Plus 1.22 (CVS Trunk): H46018_h225.h Error
"H46019UDPSocket::GetLocalAddress" makes access to members "m_locAddr" and "m_locPort" but the two members are guarded by macro H323_H46024A and the method not.
Solution (?): put "H46019UDPSocket::GetLocalAddress" under H323_H46024A macro guardian like "[Get/Set]AlternateAddresses" ?
--
Jogue RPG, alimente o lado criativo!
Marcos
The Fix for compiling without SSL support (H.460.24A disabled) as been checked into CVS
Simon
-----Original Message----- From: h323plus-bounces@lists.packetizer.com [mailto:h323plus-bounces@lists.packetizer.com] On Behalf Of Marcos Fábio Jardini Sent: Wednesday, 26 August 2009 5:39 AM To: h323plus Subject: Re: [h323plus] Compiling H323Plus 1.22 CVS Trunk, Visual Studio 2008
****Fix****
The version tested of PTLib trunk is 2.7.1, not 2.6.
2009/8/25 Marcos Fábio Jardini marcos.f.jardini@gmail.com:
Hello people
Reporting back:
- PTLib 2.6 (SVN Trunk): All compile fine and now DirectShow and
Application properly works on projects outside PTLib_samples_2008.sln
- H323Plus 1.22 (CVS Trunk): H46018_h225.h Error
"H46019UDPSocket::GetLocalAddress" makes access to members "m_locAddr" and "m_locPort" but the two members are guarded by macro H323_H46024A and the method not.
Solution (?): put "H46019UDPSocket::GetLocalAddress" under H323_H46024A macro guardian like "[Get/Set]AlternateAddresses" ?
--
Jogue RPG, alimente o lado criativo!
Thanks Simon
H323Plus now compiled, as well plugins, openmcu and simpleplus. But found few runtime errors:
Plugins are compiled with suffix '_pwlib'. If you put the plugins on folder PTLIB_PLUGINS or env:PTLIBPLUGINDIR they are not found. If renamed to sufix '_ptlib' they are found.
With the original suffix ('_pwlib') they *must* be put on PWLIB_PLUGINS or env:PWLIBPLUGINDIR for be found.
Simpleplus crash on start webcam, an old behavior I already found on previous versions of the same project. The problem is in SimpleH323EndPoint::OpenVideoChannel (main.cxx:799) when isEncoding=TRUE. Te code below:
//============================================================= if (!device->SetFrameSize(codec.GetWidth(), codec.GetHeight()) || !device->SetColourFormatConverter("YUV420P") || !device->Open(deviceName, TRUE)) { PTRACE(1, "Failed to open or configure the video device "" << deviceName << '"'); //=============================================================
Throws a NULL Pointer Exception in PVideoInputDevice_DirectShow::SetAllParameters (vidinput_directx.cxx:497) because member 'm_pCapture' is not yet initialized. I remember old openh323 files/logs that say all the windows implementation use late-bind.
Splitting the 'if' clause and put device->Open(deviceName, FALSE) first and device->Start() at end (after the resolution and color changes) fix the problem.
After fixing above problem the video start with green-red interlaced. I know this behavior too, from old interaction with old'OpenH323. Is related to misallign memory access on color converter YUV420P or size converter. The calculus to read U and V buffers overlaps if i'm remembered. I'll try re-find the code.
Regards. Eng. Marcos F. Jardini
PS. I'll try put a screenshot on google and send a link to you see the effect on video.
2009/8/26 Simon Horne s.horne@packetizer.com:
Marcos
The Fix for compiling without SSL support (H.460.24A disabled) as been checked into CVS
Simon
-----Original Message----- From: h323plus-bounces@lists.packetizer.com [mailto:h323plus-bounces@lists.packetizer.com] On Behalf Of Marcos Fábio Jardini Sent: Wednesday, 26 August 2009 5:39 AM To: h323plus Subject: Re: [h323plus] Compiling H323Plus 1.22 CVS Trunk, Visual Studio 2008
****Fix****
The version tested of PTLib trunk is 2.7.1, not 2.6.
2009/8/25 Marcos Fábio Jardini marcos.f.jardini@gmail.com:
Hello people
Reporting back:
- PTLib 2.6 (SVN Trunk): All compile fine and now DirectShow and
Application properly works on projects outside PTLib_samples_2008.sln
- H323Plus 1.22 (CVS Trunk): H46018_h225.h Error
"H46019UDPSocket::GetLocalAddress" makes access to members "m_locAddr" and "m_locPort" but the two members are guarded by macro H323_H46024A and the method not.
Solution (?): put "H46019UDPSocket::GetLocalAddress" under H323_H46024A macro guardian like "[Get/Set]AlternateAddresses" ?
--
Jogue RPG, alimente o lado criativo!
--
Jogue RPG, alimente o lado criativo!
Here is a link for the red-green striped video
http://picasaweb.google.com/lh/photo/mKyxNOFD-o4-Gjbz5XK7cA?feat=directlink
I'll continue to search for any clue about what is the source of the problem, but I remember to say I'm using Windows 7 on 64bit mode.
VidTest from PTLib_samples solution don't show any errors so I think the '64bit' is not the problem. WoW64 of win7 provides a smooth execution of 32bits apps on 64bits OS.
2009/8/26 Simon Horne s.horne@packetizer.com:
Marcos
The Fix for compiling without SSL support (H.460.24A disabled) as been checked into CVS
Simon
-----Original Message----- From: h323plus-bounces@lists.packetizer.com [mailto:h323plus-bounces@lists.packetizer.com] On Behalf Of Marcos Fábio Jardini Sent: Wednesday, 26 August 2009 5:39 AM To: h323plus Subject: Re: [h323plus] Compiling H323Plus 1.22 CVS Trunk, Visual Studio 2008
****Fix****
The version tested of PTLib trunk is 2.7.1, not 2.6.
2009/8/25 Marcos Fábio Jardini marcos.f.jardini@gmail.com:
Hello people
Reporting back:
- PTLib 2.6 (SVN Trunk): All compile fine and now DirectShow and
Application properly works on projects outside PTLib_samples_2008.sln
- H323Plus 1.22 (CVS Trunk): H46018_h225.h Error
"H46019UDPSocket::GetLocalAddress" makes access to members "m_locAddr" and "m_locPort" but the two members are guarded by macro H323_H46024A and the method not.
Solution (?): put "H46019UDPSocket::GetLocalAddress" under H323_H46024A macro guardian like "[Get/Set]AlternateAddresses" ?
--
Jogue RPG, alimente o lado criativo!
--
Jogue RPG, alimente o lado criativo!
Marcos
The error may be a video conversion error coming from the Webcam. The video test program outputs the video at BGR24 where as in the endpoint it is YUV420P. I've done quite a lot of development with directshow and have found the best way to ensure that all webcams work is to force them to always output in BGR24 and then let the PTLIB converter correctly convert BGR24 to YUV420P.
There are quite a number of problems with the directshow implementation in PTLIB. I have just checked into the PTLIB SVN a completely redone directshow implementation (P_DIRECTSHOW2) that fixes a lot of problems and does not rely on ddraw.h (in DirectSound) and also support Camera controls.
Check out the ptlib SVN trunk and SimplePlus CVS and test. MyPhone2 has also been updated.
Simon
-----Original Message----- From: h323plus-bounces@lists.packetizer.com [mailto:h323plus-bounces@lists.packetizer.com] On Behalf Of Marcos Fábio Jardini Sent: Thursday, 3 September 2009 12:17 AM To: h323plus Subject: Re: [h323plus] Compiling H323Plus 1.22 CVS Trunk, Visual Studio 2008
Here is a link for the red-green striped video
http://picasaweb.google.com/lh/photo/mKyxNOFD-o4-Gjbz5XK7cA?feat=directlink
I'll continue to search for any clue about what is the source of the problem, but I remember to say I'm using Windows 7 on 64bit mode.
VidTest from PTLib_samples solution don't show any errors so I think the '64bit' is not the problem. WoW64 of win7 provides a smooth execution of 32bits apps on 64bits OS.
2009/8/26 Simon Horne s.horne@packetizer.com:
Marcos
The Fix for compiling without SSL support (H.460.24A disabled) as been checked into CVS
Simon
-----Original Message----- From: h323plus-bounces@lists.packetizer.com [mailto:h323plus-bounces@lists.packetizer.com] On Behalf Of Marcos Fábio Jardini Sent: Wednesday, 26 August 2009 5:39 AM To: h323plus Subject: Re: [h323plus] Compiling H323Plus 1.22 CVS Trunk, Visual Studio 2008
****Fix****
The version tested of PTLib trunk is 2.7.1, not 2.6.
2009/8/25 Marcos Fábio Jardini marcos.f.jardini@gmail.com:
Hello people
Reporting back:
- PTLib 2.6 (SVN Trunk): All compile fine and now DirectShow and
Application properly works on projects outside PTLib_samples_2008.sln
- H323Plus 1.22 (CVS Trunk): H46018_h225.h Error
"H46019UDPSocket::GetLocalAddress" makes access to members "m_locAddr" and "m_locPort" but the two members are guarded by macro H323_H46024A and the method not.
Solution (?): put "H46019UDPSocket::GetLocalAddress" under H323_H46024A macro guardian like "[Get/Set]AlternateAddresses" ?
--
Jogue RPG, alimente o lado criativo!
--
Jogue RPG, alimente o lado criativo!
Hi simon
I've performed a SVN and CVS yestarday at 10am (gmt -3:00), I think at that time the svn is not yet updated. For my cam the Directshow is working fine, only found an exception in 'hot-switching' resolution. I tested ptlib with Logitech Quickcam Pro 4000, 5000 and Microsoft VX1000. The two fisrt ones accept capture native in BGR24, VYVU and i420 (YUV420P) for resolutions from subQVGA@30, QCIF@30, CIF@30, QVGA@30 and VGA@16
I agree the behaviour is in color conversions. I have the same problems when grabbing the video from PWLib to Java (the old PWLib that don't have dshow support), for Java the color must be fized or converted to BGR32 too (plus little-endian to big-endian)
The strange is the problem is only on openmcu and simpleplus applications, I used and tested all color modes and conversions on VidTest app and all passed.
I'll download the new trunk.
Regards, Eng. Marcos F. Jardini
PS.: I like the Monogram's Blog (http://blog.monogram.sk/janos/) for hints on DShow programming, the guys there have a nice work on ffmpeg/x264 support on dshow filters.
2009/9/3 Simon Horne s.horne@packetizer.com:
Marcos
The error may be a video conversion error coming from the Webcam. The video test program outputs the video at BGR24 where as in the endpoint it is YUV420P. I've done quite a lot of development with directshow and have found the best way to ensure that all webcams work is to force them to always output in BGR24 and then let the PTLIB converter correctly convert BGR24 to YUV420P.
There are quite a number of problems with the directshow implementation in PTLIB. I have just checked into the PTLIB SVN a completely redone directshow implementation (P_DIRECTSHOW2) that fixes a lot of problems and does not rely on ddraw.h (in DirectSound) and also support Camera controls.
Check out the ptlib SVN trunk and SimplePlus CVS and test. MyPhone2 has also been updated.
Simon
-----Original Message----- From: h323plus-bounces@lists.packetizer.com [mailto:h323plus-bounces@lists.packetizer.com] On Behalf Of Marcos Fábio Jardini Sent: Thursday, 3 September 2009 12:17 AM To: h323plus Subject: Re: [h323plus] Compiling H323Plus 1.22 CVS Trunk, Visual Studio 2008
Here is a link for the red-green striped video
http://picasaweb.google.com/lh/photo/mKyxNOFD-o4-Gjbz5XK7cA?feat=directlink
I'll continue to search for any clue about what is the source of the problem, but I remember to say I'm using Windows 7 on 64bit mode.
VidTest from PTLib_samples solution don't show any errors so I think the '64bit' is not the problem. WoW64 of win7 provides a smooth execution of 32bits apps on 64bits OS.
2009/8/26 Simon Horne s.horne@packetizer.com:
Marcos
The Fix for compiling without SSL support (H.460.24A disabled) as been checked into CVS
Simon
-----Original Message----- From: h323plus-bounces@lists.packetizer.com [mailto:h323plus-bounces@lists.packetizer.com] On Behalf Of Marcos Fábio Jardini Sent: Wednesday, 26 August 2009 5:39 AM To: h323plus Subject: Re: [h323plus] Compiling H323Plus 1.22 CVS Trunk, Visual Studio 2008
****Fix****
The version tested of PTLib trunk is 2.7.1, not 2.6.
2009/8/25 Marcos Fábio Jardini marcos.f.jardini@gmail.com:
Hello people
Reporting back:
- PTLib 2.6 (SVN Trunk): All compile fine and now DirectShow and
Application properly works on projects outside PTLib_samples_2008.sln
- H323Plus 1.22 (CVS Trunk): H46018_h225.h Error
"H46019UDPSocket::GetLocalAddress" makes access to members "m_locAddr" and "m_locPort" but the two members are guarded by macro H323_H46024A and the method not.
Solution (?): put "H46019UDPSocket::GetLocalAddress" under H323_H46024A macro guardian like "[Get/Set]AlternateAddresses" ?
--
Jogue RPG, alimente o lado criativo!
--
Jogue RPG, alimente o lado criativo!
--
Jogue RPG, alimente o lado criativo!
participants (2)
-
Marcos Fábio Jardini
-
Simon Horne