Subscriber Discussion

Week 2 Exercise: Experiment With Camera Compression

MM
Marty Major
Oct 22, 2014

Take one of your IP cameras, grab a screenshot and measure bandwidth / file size of the default video stream. Then lower the compression / quality / quantization level., take new screenshots and new bandwidth measurements.

Compare visible quality and bandwidth savings. Share results with images and numbers.

If you do not have an IP camera readily available, use this image and do the same process in a photo / imaging editor (see suggestion below).

To adjust compression levels and view the bandwidth changes for this (or any) image, please download GIMP.

EA
Emadaldin Abd Ali
Oct 23, 2014
IPVMU Certified

i use the image in the link and use the snapshot with the default size ,save under JPEG format the result was 64KB ,
than resize zooming the photo Multiplier and take the snapshot ,save under same format the result was 124KB
it is right
but how calculate the bandwidth ??

it seem the second snapshot (124kB0) better

JH
John Honovich
Oct 23, 2014
IPVM

Emadaldin,

The original resolution was 500 x 333 with a file size of 62KB. What is 'zooming the photo multiplier'? What is the resolution of the image now? Share your image so we can see and compare.

Since you are using an image file, you can only calculate file size, not bandwidth. Bandwidth is a property of a video stream.

EA
Emadaldin Abd Ali
Oct 25, 2014
IPVMU Certified

is this way right? i made a snipping to view all detials

JH
John Honovich
Oct 25, 2014
IPVM

That shot looks like Gimp and looks fine.

What is not clear is your reference to "resize zooming the photo Multiplier"

TU
Tia Ung
Oct 23, 2014

GV-FD320D 3MP Camera

Hi-Res with 3MP camera at max is 2048 x 1536 with size of 410KB, bandwidth at 76Mbps, after lowering compression, Low-Res is at 1024 x 768 with size of 141KB, bandwith at 20Mbps.

JH
John Honovich
Oct 23, 2014
IPVM

Tia,

How are you getting 76Mbps or 20Mbps? Are you using MJPEG? What is the frame rate?

Thanks for sharing the images. I zoomed into the back and could barely see a difference between the two. I checked the file size and pixel count and they both seem about the same, which indicates there was a problem in exporting / uploading them.

TU
Tia Ung
Oct 31, 2014

John, here are the new images from a GeoVision MFD120 camera. On the left is 1280 x 1024, 15 FPS, 686 Kbps and on the right is 320 x 240, 15 FPS, 62 Kbps.

JH
John Honovich
Oct 31, 2014
IPVM

Tia, thanks, that is a clear side by side comparison.

Unfortunately, you adjusted the resolution / pixel count, not the compression / quality level.

Btw, one general comment for all, try to use a subject or an eye chart or stick a license plate in the scene. This will help to better determine how much meaningful detail loss has occured.

TU
Tia Ung
Oct 31, 2014

John, hope I get it right this time. Had some issues locating options in the web interface. The GV-MFD120 IP camera has 5 Quality settings: Standard, Fair, Good, Great and Excellent. Here are the comparisions for Excellent, Good, and Standard.

JH
John Honovich
Oct 31, 2014
IPVM

Tia, great job! That's it exactly.

(1)
RG
Robert Gonzales
Nov 06, 2014
IPVMU Certified

Tia,

Great job and for taking John's advice of using a chart for comparison and for including the information on the fram rates, resolution, video format etc., great job. I found your post to be very informative.

Thanks for for sharing your information with us to learn from your example.

(1)
Avatar
Ross Vander Klok
Oct 23, 2014
IPVMU Certified

AXIS model #m3114 running at .20 Mbit/s at 1024 X768 resolution 10fps and compression set to 30. 30

With compression moved to 80 went down to between .06 and .08 Mbit/s 80 compression

(2)
JH
John Honovich
Oct 23, 2014
IPVM

Good job, Ross. Bandwidth gets cut by 60%, but you can clearly see that the image is fuzzier now.

(1)
(1)
Avatar
Ross Vander Klok
Oct 23, 2014
IPVMU Certified

The full screen image looked HORRIBLE with compression at 80. Basically only good to see if someone was in the room, not who they were.

RG
Robert Gonzales
Nov 06, 2014
IPVMU Certified

Ross nicely done and yes I do agree with John that you do see more fussiness in image two when you reduced the compression level.

WK
Wiebe Koopmans
Oct 23, 2014

Hi res picture of my youth running team versus an edited one.

Hi res team

Low res

JH
John Honovich
Oct 23, 2014
IPVM

Wiebe,

This is not useful. This also does not answer the assignment. Please redo.

Also using a 20MP image and reducing resolution is not going to make a material difference.

(1)
WK
Wiebe Koopmans
Oct 27, 2014

John,

I am very busy at work at the moment so sorry for the delay.

Underneath the edited pictures from the IPVM site.

I opened the JPEG in GIMP and then exported the same image as a JPEG again reducing the quality to 50%. Maintaining the resolution. You can see the image size has changed from 60,5kB to 41,8kB. I am unable to upload the original for somekind of reason.

edited version

BM
Brian Matlock
Oct 23, 2014
IPVMU Certified

I used a camera feed from an Axis 206 (which I believe has been discontinued).

I started with resolution set at 640X480 and Compression level at "Low" (setting available). The snapshot was 28.3kb.

I changed the camera compression to "High". The image was noticeably artifacted but I could still recognize objects. The resulting snapshot was reduced to 9.29kb...1/3 less size than the original. This image could be acceptable depending on what level of detail you desired to see.

Avatar
Jesse Nordgaard
Oct 23, 2014
IPVMU Certified

I used an Axis M3005-V set to 1920x1080. I started with the default compression level of 30, raised the level to 60, and then 90.

Compression = Default 30 - Clear picture - file size of 177KB

M3005-V compression = 30

Compression = 60 - slight bluring in fine lines of painting - file size of 106KB

M3005-V Compression = 60

Compression = 90 - A lot of artifacting (pixelization) - file size of 47.5KB

M3005-V compression = 90

JH
John Honovich
Oct 24, 2014
IPVM

Jesse, nice job. So would you increase compression to 60 to get the bandwidth / storage savings?

Avatar
Jesse Nordgaard
Oct 24, 2014
IPVMU Certified

It comes out to a 40% savings in bandwidth/storage, so yes. Unless the customer was REALLY concerned with with getting every detail out of the image, like banks or casinos.

Typically if we have a customer who is concerned with storage we will adjust the quality setting in the VMS which adjusts the compression on the camera. That is somthing we go over with the customer before install letting them know we can increase storage/bandwidth if we are willing to sacrafice a little in image quality. A lot of the time it is a wait and see for the customer, they want the best quality but when they see they are not getting the retensionthey were expecting they come around to droping quality. As the pictures show you can compress a fair amount before most people see a diffference in image quality.

MC
Michael Conant
Oct 23, 2014
IPVMU Certified

I did the exercise using the provided image, exported with various quality settings from GIMP 2. The original image was 61 KB on my disk.

Exported at quality level 45:

Quality 45

This occupies 40K on the drive, and I can still read the number on the man in the lower left.

Exported at quality level 25:

Quality 25

This occupies 26K, and I am left guessing about that number.

Exported at quality level 5:

Quality 5

This occupies 11K, and does not seem useful for much.

JH
John Honovich
Oct 24, 2014
IPVM

Michael, good job!

AL
Andy Lee
Oct 23, 2014
IPVMU Certified

I took a snapshot from a Axis M3014 at 1024 x 640, and it was 57KB. I changed to 640 x 480 and the snapshot was 29 KB. There was a noticable difference between the two images. Below is a comparison showing a zoomed in portion.

JH
John Honovich
Oct 24, 2014
IPVM

Andy, what you did was change the resolution, not the compression. That's interesting too but for this exercise, we are keeping the resolution constant but varying the compression (like Jesse and Ross did above).

AL
Andy Lee
Oct 24, 2014
IPVMU Certified

Whoops, busy day at work. Here are two images from an Axis M3011, one with the compression set at 25, the other at 75.

The first was 53 KB, the second was 17 KB. The first is noticeably sharper.

JH
John Honovich
Oct 24, 2014
IPVM

Andy, thanks. How wide was the overall camera FoV?

I ask because that is not a very steep drop in quality given the steep decrease in bandwidth.

DL
Donald Lundquist
Oct 23, 2014
IPVMU Certified

Using the pix in the link, we get 500 pixels wide by 333 pixels vertically with file size 60.5kb. Using Windows Photo Viewer, it can be zoomed/expanded (compressed?) about 400% and still read numbers on runners. Using Paint, the zoom/expansion of about 300+% still provided reasonable detail. May not have the best photo-editing software for the exercise.

PO
Paul Oisamoje
Oct 24, 2014
IPVMU Certified

Initial Image

This is the initial image and its about 64kb on disk

@50% compression

@50% compression its size on disk is about 36kb

while at 80% compression its 24kb.

80% compression

UE
Undisclosed End User #1
Oct 24, 2014

H.264 24kbMjpeg

H.264 - 24kb MJPEG - 33Kb

JH
John Honovich
Oct 24, 2014
IPVM

A, can you elaborate on the camera model, resolution / frame, etc. of this video. It's hard to analyze it without knowing those fundamental elements.

U
Undisclosed
Oct 24, 2014

Using the pix in the link, we get 500 pixels wide by 333 pixels vertically with file size 60.5kb. zoomed/expanded using Paint, 768x614 pixels size 210kb with reasonable detail but worseimages.

768-614 210kb

JH
John Honovich
Oct 25, 2014
IPVM

Jeff, Why would you upsample / increase the pixel count? It's not going to make the image quality better and it is going to consume more storage? Please explain / clarify.

Sr
Sergio rodriguez
Oct 24, 2014

H264 (128KB) excellent quality

H264

H264 (104KB) lowest quality

JH
John Honovich
Oct 25, 2014
IPVM

Sergio, good examples. Notice how the first / high quality one shows text (if not perfectly at least you can see the outline of it). However, in the lower quality one, the text is all blurred out.

ES
Erron Spalsbury
Oct 24, 2014

Using the image in the link (saving with Irfanview and adjusting quality) I tried 3 settings in here.

Save image, no adjustments, 62KB

Quality cranked to 100, 144KB (almost un-noticable picture inprovement)

Quality set to 10, 13.2KB (very low quality, pixelation, colors almost seem bland)

Considering these results, in a security environment, when saving say a single Jpeg and size isn't really a concern for a single snapshot (144KB is fairly small and easily email-able) I would think it would be best to save as large as possible to get the most clarity? I know the implications of larger images for video but it would make sense to me to provide a single image in the highest quality possible. Any thoughts on that guys?

JH
John Honovich
Oct 25, 2014
IPVM

Erron, I don't see the point of resaving an image at a higher quality. It's just going to waste space but it's not going to increase the quality (I am referring to the steps you did, not using image enhancement software).

The practical problem is with surveillance is that you can't export / save video at higher quality than what it is being recorded at.

ES
Erron Spalsbury
Oct 27, 2014

That makes sense, John.

I did an additional exeriment this last weekend with a camera I have at home as well. (5MP dome camera) It's set fairly wide, about 4mm and there is a street sign about ~100 feet away. With the quality set to the default level of 80 I could hardly make out the signs letters. Readable, but not sharp. By kicking it up to 100 it did have a bit of a difference and sharpened the edges of the letters quite a bit. I'm sure the storage time will drop like a rock, but it did give me a noticable difference at distance. I'll leave it like that for a while and see what my average days of storage go to.

Avatar
Kyle Folger
Oct 25, 2014
IPVMU Certified

EDIT: I am aware that the date is one day ahead. These cameras are mine and were installed a week ago. Just fixed/synced time. These cameras were simply plugged in and set to record.

I learned quite a bit about the Dahua IPC-HDBW4300E. I learned that Dahua doesn't really want me to compress that much. I forced the camera to black and white to try and get the best comparison, but the camera doesn't really want me to compress that much. In color the but rate remains high. I can reduce the bandwidth quote a bit in color only if I set it to manual exposure because the gain is too high in auto. At quality 6, the DRF is at 14 with a max allowable bitrate of 8261kb/s. At Quality 1, the DRF is at 34 with an average of 731kb/s. I could set the threshold to a minimum of 768kb/s but I left both at the max threshold in VBR to get a fair comparison. The framerate was set to 10fps.

I found that it really doesn't look that bad at Q1 and saves on bandwidth. We found the same thing after analyzing at a jobsite today and we set all at Q1 with a 4Mb threshold cap. This is much different than other manufactures. I may try this on some Hikvision cameras next.

Q1 3MP:

Q6 3MP:

(1)
JH
John Honovich
Oct 25, 2014
IPVM

Kyle,

Excellent job!

"At quality 6, the DRF is at 14"

That is way overkill. As we mentioned in class, average manufacturer default q level / DRF is 24 to 29. There's rarely a need to go lower than this, as it consumes a lot more bandwidth but generally does not deliver commensurate increase in quality.

"At Quality 1, the DRF is at 34"

The only thing I would advise here is to check this when a person passes. You might find some modest degradation in visible details on a person's face compared to a DRF of moderately lower.

(1)
(1)
RG
Robert Gonzales
Oct 29, 2014
IPVMU Certified

Kyle, impressive post and the effect of the images that you posted. Was the scene a small patio or access way? Would have been nice to have seen a person walking across the Field of View of the camera.

Avatar
Kyle Folger
Oct 26, 2014
IPVMU Certified

Just a followup to my post using a Hikvision DS-2CD2732F-I camera, I was able to see a big difference in the compression scale. It's amazing the difference in DRF levels from the Dahua camera. At all levels the max encoding rate was set to 12288kbps. DRF levels:

Q6=23
Q5=27
Q4=31
Q3=34
Q2=37
Q1=40

Attached are images of just the best quality and worst quality. I think using Avinaptic will prove to be a useful tool when comparing manufactures and coming up with standard compression levels for each of them.

NOTE: Keep in mind that there is almost no light out front and the lens needs to be cleaned. The light level is below 1lux once you are 3 or 4 feet away from the porch. Smart IR is on which on this camera actually darkens the scene quite a bit.

Q6:

Q1:

JH
John Honovich
Oct 26, 2014
IPVM

Kyle, nice job again and good working mapping those levels. You can compare to other manufacturers here: IP Camera Manufacturer Compression Comparison

TK
Tim Kerkhoff
Oct 25, 2014
IPVMU Certified

This was a high motion scene as the leasves are moving and falling. I wanted to try a couple things with this set of photos. The first photo is H.264 CBR @ 3072 k/bits. I wanted to see how much difference it would make by going to VBR with same settings. Compression rate was set low for the VBR example. In the 3rd photo I used high compression.

CBR 2.8Mbits

CBR capped at 3072 Kbits

VBR low compression 1.9Mbits

VBR Higher compression 1.6Mbits

As you can see the amount of bandwidth varied greatly between the CBR and VBR. 32% reduction.

With the higher compression setting using VBR gained approx 16% over the 2nd image and 43% ove the CBR image. The 3rd image has the worst quality but there is not much difference from image 1 and 2 to warrant using CBR. I was suspecting a higher badwidth drop >16% from image 2 to 3 but the image had a great deal of motion and my VBR cap was set to 3072 Kbits. ????

I plan on lower the VBR cap and see what that yields

Tim

(1)
JH
John Honovich
Oct 26, 2014
IPVM

Tim, excellent job! Kudos on having a test subject!

A few things:

"bandwidth varied greatly between the CBR and VBR. 32% reduction."

The reduction is simply due to the choice for CBR being 3Mb/s. CBR can be set at 8Mb/s, 2Mb/s, 500Kb/s, etc. There's nothing inherently high or low about CBR. The only inherent characteristic is that it is fixed.

The face that VBR at lower compression went to 1.9Mb/s indicates the CBR level was too high for the scene.

(1)
TK
Tim Kerkhoff
Oct 26, 2014
IPVMU Certified

I should have used the word wasted bandwidth when comparing the CBR to the VBR.

One of my grandchildren, as you can see she is smiling in the first photo...but then.

RG
Robert Gonzales
Oct 29, 2014
IPVMU Certified

tim nice job on the exercise and especially for using a test subject in your analysis. Good job, have you been working with IP video surveillance systems as part of your job experience?

UI
Undisclosed Integrator #2
Oct 26, 2014

The image file is 60.5KB, resolution 500x333 pixels, compression value is not indicated and cannot be selected to be changed; how could I change the compression value to compare the quality difference?

U
Undisclosed
Oct 27, 2014

Was having difficulty finding a program to change the quality, so i took pics with my phone at 8meg and vga. Below are the side by side images. I also attached a screen shot showing the file resolutions of the 4 pics i took (8mg,3mg,1mg, vga).

VGA_8MG comparision

VGA to 8Meg files

JH
John Honovich
Oct 27, 2014
IPVM

Tim, in Paint, I do not believe you can change the compression / quality level of images. Someone let me know if I am wrong.

As the above submissions show, you can do it in Gimp or other editing programs.

BM
Byron Moncayo
Oct 27, 2014

After exporting original into a JPEG file using GIMP and changing quality settings to 20 it changed the bandwidth to 25.3kB ...resulting in a savings of over 70% bandwidth over original 92.2 kb ...with the same 500x334 resolution.

Below is the original above is after changing the quality settings from 90 to 20.

JK
Joe Kroehler
Oct 27, 2014

I had a hard time resovling this ,the picture in the file you gave us .

can you help on this?I understand if you raise the compression level the image

will not be as sharp.also reducing band width

Avatar
Tony Darland
Oct 27, 2014
IPVMU Certified

Axis M3005 at 800X600 and GOV length of 30 and at 10fps.

Adjusted to 1280X960, GOV to 75 and still 10fps.

The one interesting thing about the M3005 is the constant bit rate with a cap of 10000kb/s streams the video at an actual 10000kb/s, instead of doing it at a reasonable rate to give a good image, but not to exceed the set amount. Other Axis cameras will stream at a reasonable rate with the cap, but this one automatically streams at the cap set. Weird

JH
John Honovich
Oct 27, 2014
IPVM

Tony, did you try adjusting compression levels?

As for your image examples, I recommend not changing 2 variables at the same time. For example, the second image has a different resolution and a different GOV setting, making it impossible to tell how much of an impact each of these has on bandwidth.

Thanks for sharing the CBR issue with the M3005. That sounds very strange to me. We will try to reproduce.

Avatar
Tony Darland
Oct 27, 2014
IPVMU Certified

Thanks for the input, John. I redid the test and changed the compression levels and it made quite a difference. Running at .17Mb/s at the default 30 compression with very good image quality. Once I put the compression to 80 it ran at .06Mb/s but at the expence of horrible image quality.

MP
Michael Piscitelli
Oct 27, 2014
IPVMU Certified

I was having some issues streaming video through VLC so I used the photo that was provided.

Original Photo is 61 KB. I zoomed in on each photo so you can see the change clearly.

Second photo is exported at 50 % quality. File size is 42 KB.

Third photo is exported at 10% quality. File size is 17KB.

LV
Larry Vinson
Oct 27, 2014
IPVMU Certified

I did not have a live stream available so I used this image:

https://ipvm-uploads.s3.amazonaws.com/uploads/4d09/254b/NYC-Marathon%20(1).jpg

Since I can't do anything with compression, I resided the image to see different spoecs.

Here are the before and after specs after I resized the image smaller using Paint.net

Original Image:

NYC-Marathon%20(1).jpg

File Size 62.0 kB

Pixels 500x333

Number of pixels: 166,500

Print Size 6.944 x 4.625 inches

Resolution 72 x 72 ppi

Resized Image:

NYC-Marathon%20(2).jpg

File Size 24.9 kB

Pixels 212x141

Number of pixels: 28,892

Print Size 2.208x1.469 inches

Resolution 96x96 ppi

Avatar
John Ringis
Oct 27, 2014
IPVMU Certified

I performed this exersice with an Eagle Eye Networks camera, model number EN-CDUM-002. This manufacturer offered three settings(labeled as quality) high, medium and low. Images and measuremnts are depicted below:

High - 80.5kb

Image Test High

Medium - 45.9kb

Image Test Medium

Low - 22.4kb

Image Test Low

Avatar
Ross Vander Klok
Oct 27, 2014
IPVMU Certified

I like your choice of office furniture John! :-)

JH
John Honovich
Oct 27, 2014
IPVM

Lot of good responses coming in. One thing I would encourage is to take snapshots when a person is in the field of view, ideally walking, which will better show maximum loss / degradation.

KE
Karen Eaton
Oct 27, 2014
IPVMU Certified

Used GIMP to export original 61KB to a .jpg file at different quality levels producing the following:

At 50 Q level: 42KB file--Image still clear--no discernible degradation

At 25 Q level: 30KB file--Image begins to degrade slightly--Numbers are fuzzy around edges

At 5 Q level: 11KB file--Image very degraded. Unable to read numbers on shirts

EO
Eyass Omar
Oct 27, 2014
IPVMU Certified

I opened the JPEG image (60.5 KB) from the site using PHOXO photo editor and then saved it in the same format with 50% quality (34.5 KB). I kept the remaining options the same.

the result:

1) the reduction of size was around 43%.

2) No visual effect was noticed.

.quality = 50%

Thanks

MT
Matt Transue
Oct 27, 2014
IPVMU Certified

I took a few snapshots from a 3Mpix camera.

Available quality levels were 13-90, with 13 being the highest compression and 90 having the least compression.

I started at 80 and resulted an image size of 696KB.

JPEG_Quality_80

I dropped quality to 60 and resulted in an image size of 454KB. There were virtually no visible artifacts unless digitally zoomed in a great deal.

JPEG_Quality_60

I then dropped quality to 13 and resulted in an image size of 149KB. There were very visible compression artifacts.

JPEG_Quality_13

It may be tough to see at first, but if you look at the roof in the last image you can see some artifacts.

CB
Clifford Barr
Oct 28, 2014
IPVMU Certified

I used a photo 1936X1288 Size745 KB and compressed 80x and had a result of a photo a photo 1936x 1288 Size 67.2. The photo was greatly decreased in size and the quality decreased quite a bit.

MM
Marty Major
Oct 28, 2014

Nice work Clifford :)

Everyone else, notice that Clifford's resolution remained constant (1936 x 1288). The size of the file - when compressed 80x - is greatly reduced... but to draw any valid conclusions about quality of the image, the resolution must remain constant.

If you change resolution while also changing compression, no valid conclusions can be made - as you are changing two variables at the same time.

KP
Kristen Pawlak
Oct 28, 2014
IPVMU Certified

Used Avigilon ViQ-HD-CRD225-3-8

High Resolution Stream 1920 x 1080, 15fps, 4.5mbps

Low Resolution Stream 960 x 540, 5fps, 250 kbps

JH
John Honovich
Oct 28, 2014
IPVM

Kristen, you are changing resolution, not compression, which is the focus of this assignment.

AA
Ameen Abdul Khader
Oct 28, 2014
IPVMU Certified

I used an AXIS P3365-v camera outdoor in the late afternoon just before sunset for the experiment. The effect of various compression levels in outdoor environment as well as moving objects (vehicles) was studied.

I couldnt find the rtsp url at Soleratec, and the AXIS website gave urls for players such as Windows Media Player and Quicktime. However I managed to find the rtsp url for VLC with some good guess and trial and error.

Now for the experiment, I had considered three different compression levels - 30%, 70% and 90%, while the CBR was set at 2000kbps. I had recorded the video clips in VLC, and then exported into AVInaptic for analysis. Though the tool was saying that "analysis is not complete", which I didnt understand what the cause could be or see parameters such as DRF, the bitrate and frame rate read as follows:

@ 30% compression, 870.3kbps; 17.45 fps

AXIS P 3365-V @ 30% Compression

@ 70% compression, 266.16 kbps; 17.57 fps

AXIS P 3365-V @ 70% Compression

@ 90% compression, 225.83 kbps, 17.54 fps

AXIS P 3365-V @ 90% Compression

Evidently, the quality and bandwidth was the highest when the compression level was set at 30%. At 70%, the bandwidth was reduced but the quality levels dropped as well with some visible artifacts, but still tolerable. At 90%, the artifacts were worse and no visible change in bandwidth was noticeable.

I would like to send the VLC recorded files and the AVInaptic analysis results which I have saved as a text file, but have some difficulty in trying to attached in here as I couldnt locate an 'Upload' button, which was there for uploading the images though.

A few minutes of advisory class on how to attach/upload pictures, videos and text before start of todays class could be useful.

BK
Brian Kickham
Oct 28, 2014

compressed marathon image to 5 quality

As you can (hopefully) see from the insert image is now ~42k file. Curious that this is non-linear? moving from the default 9 to 5 does not halve the file size. I recognize that JPEG is already a compressed format and this may have something to do with it?

Brian

RH
Rob Herrington
Oct 28, 2014
IPVMU Certified

I downloaded three images from one of the Axis P3304 cameras changing the "quality" settings from 1 to 5 to 10. I could see very little difference in the image doing that. I am thinking that "quality" in Axis was compression. Is that not correct?

Now there is a correlation of "quality" to average image size at 5fps;

Quality setting of 1 = AIS 7500bytes

Quality setting of 5 = AIS 11333bytes

Quality setting of 10 = AIS 36040bytes

The resolution of the camera is set to 1280X800. If I change the resolution of the camera, I'm sure that I will see a greater variation in the image.

RH
Rob Herrington
Oct 28, 2014
IPVMU Certified

Now if I look at m Avigilon 5.0-H3-DP1 at quality setting 6 I get 12.8 Mbps while at quality setting 20 I get 2.3Mbps.

Using this camera I can see the difference between the 2 views when zooming into the details.


UM
Undisclosed Manufacturer #3
Oct 28, 2014

Uncompressed Picture at 500x333 pixels has a result of 457KB

Compressed Image at 500x333 pixels has a result of 61KB

GO
Gerald Ofstedal
Oct 29, 2014
IPVMU Certified

This was my first time using program like Gimp but by reading the forum was able to demonstrate how compressing the image can still provide a decent clear image from 64kb disk space to 40kb or less disk space.

lg
lachlan gordon
Oct 29, 2014

Work has been killing me lately, leading to my late submission (not complete) so i'm going to have to take down a camera at the job site i'm at tomorrow and bring it to my hotel to do this. I do have a question however, as I had a brief look at this.

Pulling a stream out of axis http url to vlc.... it was streaming at mjpeg, and the stream in vlc is washed out red and pixelly. Any idea's?

Also when i change the stream to H.264 the url (right click on the feed as it's an imbedded stream) it still only gave me the url for Mjpeg. Anyone had a similar problem? or is there something i'm doing wrong.

I'll have a play tomorrow night, with a different laptop as well just in case my work laptop is doing something swirly.

AM
Abdullah Mardawi
Oct 30, 2014
IPVMU Certified

Hello
The GIMP software is not clear to lower the compression/quality of the provided image.
Therefore, I used the adobe photoshop element to change the quality of the provided image, I used the option Save For Web, fixed the image size for 500x333 pixels, and set the quality as 10%.
Below is the resulting image.

The resulting image size is 27 KB.

AJ
Ammar Jaber
Oct 30, 2014
IPVMU Certified

Dear Marie, John & Colleagues

For a better organized examination, below link of PDF file for your reference, let me know if you face any problems while downloading it.

Recipients
jaber.ammar@outlook.com
Files (1.14 MB total)
Ammar Jaber.Exercise 2_30.10.014.pdf
Will be deleted on
6 November, 2014
Download link
http://we.tl/8gr2ZsT0oj

I hope the method of calculating the BW I used is correct, the one we got in readings can only be applied if pixels are changed, fixing the bits value ( 8, 16, 24..) or FPS..., while in our case the pixel counts are fixed and the variable factor is the KB value..please correct me if I am wrong.

Thank you.
Regards,

AJ

rb
raul butnar
Oct 30, 2014
Echotek Solutions • IPVMU Certified

i was working with the image provided on cours.

with Gimps i use difrent compresion

100%quality

at 100% quality : size 500x333 disk size 218.77kb

65%qualityat 65% quality inage is still clear, disk size 55.52kb

20%qualityat 20%qualiti image is losing quality, disk size 25.21kb

i have to aplolagize for the late reply to this exercise but i was werry busy at work.

lg
lachlan gordon
Nov 01, 2014

Camera: Axis P3354 Fixed dome Day/Night

Early morning shot, I wanted to see how the light would effect the bandwidth as I didn't have time or access to a 'busy' shot. These camera's also have Axis' billed 'lightfinder' technology so I wanted some average light in there to try and make use of this, and subsequently saw the following.

Resolution 1280x960

0 Compression File size: 1.56 Mb

30 Compression File Size: 970Kb

60 Compression File Size: 842 Kb

90 Compression File Size: 763Kb

Interesting to see that while there's a huge difference between the uncompressed file and the first compression, between 30-90 compression there is only a difference or saving or 207Kb. The picture quality however drops significantly past 30 compression which is the axis default level. A few of our contracts are street surveillance for council's... which by the side incorporate alot of police evidence. We are yet to raise the axis compression level higher than 30. They (for the moment, mid-transition into ip upgrades) have the storage to support it so until their ip network grows too large and storage becomes an issue, I think we'll stick with this as it's a good mid-ground.

JH
John Honovich
Nov 01, 2014
IPVM

Lachlan,

Good experiment.

A few things. Level '0' does not turn compression. The video is still compressed (all H.264 video is compressed) but compression is at its minimum (i.e., a low Q level).

Btw, are you sure that is what your camera looks like set to compression level of 90? Typically 90 makes the video blotchy / smeared and your image looks quite sharp.

lg
lachlan gordon
Nov 02, 2014

Sorry John yes, I didn't word it correctly but it's the axis 0 setting that controls their compression (whatever fancy name they have for it).

I was wondering that myself, I took 4 different video's at those different level's and took snapshot's out of all of them.... Didn't rename the video's at the time which made it a bit harder.

I was going on file size and picture quality to determine which was which... plus it's the lowest file size that came out, and they were all shot within a 10 minute segment so I doubt that light factor would have such an effect on the file size?

THe only other indicator I was looking at was the base of the tree's, if you look at the 60 & 90 compression setting's pics, there is a difference in what is discernable around the trunking. (Or my eye's are playing tricks on me, quite possible)

In the process of setting up a police station (hence the camera name gun store) but once we have the server online i'll have another play with these.

JG
Joel Gall
Nov 01, 2014
IPVMU Certified

Greetings,

I used the marathon picture (originally 62 KB) provided. Without changing resolution (500 x 333 pixels), and only adjusting quality using Gimp , here are the picture results (all jpegs):

Image quality: lowered 50% (quality 45), File size: 40KB

Image quality: lowered 75% (quality 20), File size 26 KB

As the quality of the picture is lowered, the storage size is smaller. If this was video, the bandwidth used would also be lower. The picture quality does degrade from the original to compressing at 50% but the quality is good enough to clearly capture most runner's numbers and facial features. The 75% compression still has decent facial recognition but quality is getting very low. From a sales perspective, decent (but not great) quality will definitely reduce cost for the customer. Boom!!

ES
Edward Shaw
Nov 05, 2014
IPVMU Certified

Look at the shadow at the top of each pic.

Quant Comp Axis M3004

ES
Edward Shaw
Nov 05, 2014
IPVMU Certified

They saved as JPEG images 1280x800:

Low Quant - 93 KB

Normal Quant - 93.7 KB

High Quant - 53.9 KB

Also, FPS is at 10

SK
Stavros Karpontinis
Nov 13, 2014
IPVMU Certified

I used an Axis P3304 camera at 720P
Default compression setting of 30 resulted in:
Bitrate: 1155 kbps
Average DRF: 29.87
File size for a 30 second clip at 15ips: 4.12 MB

Resulting image capture:

Higher compression setting of 80 resulted in:
Bitrate: 291.54 kbps
Average DRF: 38.80
File size for a 30 second clip at 15ips: 1.03 MB

Resulting image capture:

You can see some degradation in the lines but it becomes really noticable in the image of the person's face. However, for the tradeoff of bandwidth and storage, all else being equal, the difference is worth the slightly lesser quality.

Brian

JH
John Honovich
Nov 13, 2014
IPVM

Brian, excellent work!

One thing about your conclusion: "for the tradeoff of bandwidth and storage, all else being equal, the difference is worth the slightly lesser quality."

I agree with you in this scene but I suspect it's because the FoV is so narrow. In a more typical 30' wide, 50' wide scene, with lower PPF on people / objects, I think the practical degradation would be more significant.

SK
Stavros Karpontinis
Nov 13, 2014
IPVMU Certified

Excellent point John, thank you.

TD
Tom Diethrich
Nov 27, 2014

I used the image in the link which was 60.5 KB, and compressed the image to 43.8 then 24.6. The quiality decreased of course, especially when I zoomed in on the compressed photos. How do I figure out the bandwidth for these images, or is that something I can only do if I take the screenshot from one of our cameras?

Thanks, sorry for being behind, work has been a bit hectic.

TD
Tom Diethrich
Nov 27, 2014

Whoops, I see your response to Emaldin about measuring bandwidth.

Here the images I compressed.

compressed to 43.8kb

compressed to 24.6kb

Avatar
Oleksiy Zayonchkovskyy
Dec 07, 2014
IPVMU Certified

I have selected Printer testing table for this assignment

The original table (100% quality) is 800x533 and 175 KBytes of disk space

Now after reducing quality to 40% some noise was added to picture and its volume is now 44 KBytes. The chart takes only 25% of disk space and quality degradation is not too high so this conversion is beneficial.

And the third picture shows quality of 5% from original. Image now consume 19.9 KBytes of space but quality is too low with major artifacts and loss of minor colors.

AM
Aoife McDonnell
Dec 07, 2014
IPVMU Certified

I used the marathon picture for this exercise. Without changing any settings, the picture was 61kb:

After changing the quality levels to 50%, I got the following image which was 42kb.

There isn't much less detail in this image but there is a significant reduction in the size.

LG
Luke Grim
Dec 08, 2014
IPVMU Certified

100% Quality 218 KB

70% Quality 58.7 KB

40% Quality 38.1 KB

One can see as the file size shrinks sharpness and the quality of the image decreases as the compression scheme merges similar colors into one creating larger and larger "grains."

LL
Lionel Le Scolan
Dec 08, 2014
IPVMU Certified

I used GIMP to export the original image (61KB) to a .jpg file at different quality levels.

We can see the differences for 2 Quality level (I zoomed on the clouds in the sky):

At 50 Q level: 34KB

At 20 Q level: 21KB

Block artefacts are clearly visible when compression is applied.

JH
John Honovich
Dec 08, 2014
IPVM

Lionel, The images are good. One thing I would suggest, as a general principle, is that your test object should be the most critical object being monitored.

To that end, in this case, while the clouds do show quality loss, unless you are monitoring clouds, you'd be better off picking another object in the scene, like a person or a car, etc.

LL
Lionel Le Scolan
Dec 08, 2014
IPVMU Certified

John, I understand your point of course but for me this part of the image (cloud) is where the default are the more visible if I do not zoom out. Compression is usually more visible on large area of uniform colors than on area with details.

For the purpose of video surveillance obviously we are all more focus on people than on clouds!

BM
Brian Matlock
Dec 08, 2014
IPVMU Certified

I see noticeable difference between the two images in the facial details and the numbered tags on the runners...both of which would be key parts of the image in surveillance.

New discussion

Ask questions and get answers to your physical security questions from IPVM team members and fellow subscribers.

Newest discussions