RGB24 not working but BGR24 working on Kodicom 8800 clone.
Posted: Sun Jun 26, 2011 5:33 pm
Hi again guys,
My ZM box is up & running with one cam so far so good. Will be adding another 7 shortly.
My only issue is that the camera will only work when 'Capture Palette' is set to BGR24, RGB565, RGB555 & Grey. BGR32 will display an image OK but the colours are out of wack. RGB24 just shows a broken picture icon.
I have read in the standard docs that ZM only natively supports RGB24 & Grey. Any other palette settings will require more processing & thus degrade performance.
I have compiled ZM with: ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/share/ffmpeg CFLAGS="-g -O3 -march=prescott -mtune=prescott" CXXFLAGS="-g -O3 -march=prescott -mtune=prescott" --enable-mmap CPPFLAGS="-D__STDC_CONSTANT_MACROS"
To tune it to my P4 Prescott. I have also installed the libjpeg-turbo & ZM seems to be using it:
[root@zm1 ~]# lsof |grep libjpeg.so.62.0.0
httpd 2339 root mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
zmc 2526 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4643 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4644 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4645 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4646 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4647 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4648 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4649 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4650 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 28752 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
zmc 29060 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
I have just found mastertheknife's excellent works here: http://www.zoneminder.com/forums/viewto ... ilit=BGR24
My question is is the above palette incompatibility expected due to me using libjpeg-turbo or is there something wrong. Maybe I didn't comple ZM properly agains the libjpeg-turbo libraries ??
There is also a comment by graphicw that the bt878a card don't support RGB24. But I think mastertheknife said he was using RGB24 with bt878a ? Or maybe that was with his patch ? I'm looking forward to trying that out - is it in the 1.25 beta ?
Anyway could someone clear this up for me either way - is this correct behaviour or not?
Thanks,
Mike.
My ZM box is up & running with one cam so far so good. Will be adding another 7 shortly.
My only issue is that the camera will only work when 'Capture Palette' is set to BGR24, RGB565, RGB555 & Grey. BGR32 will display an image OK but the colours are out of wack. RGB24 just shows a broken picture icon.
I have read in the standard docs that ZM only natively supports RGB24 & Grey. Any other palette settings will require more processing & thus degrade performance.
I have compiled ZM with: ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/share/ffmpeg CFLAGS="-g -O3 -march=prescott -mtune=prescott" CXXFLAGS="-g -O3 -march=prescott -mtune=prescott" --enable-mmap CPPFLAGS="-D__STDC_CONSTANT_MACROS"
To tune it to my P4 Prescott. I have also installed the libjpeg-turbo & ZM seems to be using it:
[root@zm1 ~]# lsof |grep libjpeg.so.62.0.0
httpd 2339 root mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
zmc 2526 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4643 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4644 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4645 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4646 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4647 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4648 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4649 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 4650 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
httpd 28752 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
zmc 29060 apache mem REG 8,3 269028 74973204 /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
I have just found mastertheknife's excellent works here: http://www.zoneminder.com/forums/viewto ... ilit=BGR24
My question is is the above palette incompatibility expected due to me using libjpeg-turbo or is there something wrong. Maybe I didn't comple ZM properly agains the libjpeg-turbo libraries ??
There is also a comment by graphicw that the bt878a card don't support RGB24. But I think mastertheknife said he was using RGB24 with bt878a ? Or maybe that was with his patch ? I'm looking forward to trying that out - is it in the 1.25 beta ?
Anyway could someone clear this up for me either way - is this correct behaviour or not?
Thanks,
Mike.