Captured jpeg size & still pass-through
Posted: Thu Nov 10, 2005 11:34 am
I'm using v1.21.3 on Fedora Core 4 using Corey DeLasaux's rpm (thanks, Corey!). I'm capturing from a pretty cheap IP cam. I can't make any sense of the stream using mplayer or similar, so I'm capturing /still.jpg (20KB) at 1 fps (plenty for me, and it will go faster). Identify (from ImageMagick) tells me that still.jpg has jpeg quality 50, which is how 640x480 fits in 20KBS.
Now my problem is that zoneminder captures alarms at quality 100, which means that captured jpegs are 138KB. I can tell it to save at quality 50 (giving me a file size of 17KB), but I'm compressing a jpeg twice, and I'm losing quality. I can go for a happy medium, but what I'd really like is to aviod recompressing at all - can't zoneminder butt out and keep the jpeg as it originally was (just with a timestamp added)?
I can go into the code and have a look, but I'd like to check that I'm not doing somethinig stupid, and whether there's support for 'pass-through' of captured jpeg stills. If there isn't, is this something that could be added? Am I totally wrong because of my ignorance of what zm is doing internally?
Now my problem is that zoneminder captures alarms at quality 100, which means that captured jpegs are 138KB. I can tell it to save at quality 50 (giving me a file size of 17KB), but I'm compressing a jpeg twice, and I'm losing quality. I can go for a happy medium, but what I'd really like is to aviod recompressing at all - can't zoneminder butt out and keep the jpeg as it originally was (just with a timestamp added)?
I can go into the code and have a look, but I'd like to check that I'm not doing somethinig stupid, and whether there's support for 'pass-through' of captured jpeg stills. If there isn't, is this something that could be added? Am I totally wrong because of my ignorance of what zm is doing internally?