LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

AVI video size

Solved!
Go to solution

Hi there.
We want to form a CCTV system, with three cameras, in the VI that we made we record the video and we can take an image at the user's choice.
I need help since the size of the videos is large, 1 minute approximately 1gb the format is AVI
We look for a reference to reduce the size but we cannot find it.

I share the VI and the data of the cameras
I hope you can help us

Sorry for the mess on the Vi but it's not finished yet
We use lv 2020

 

regards

Download All
0 Kudos
Message 1 of 5
(1,955 Views)

There are several factors (some of which you can control) that determine the size of a Video file --

  • Image size (expressed in pixels, such as 640 x 480)
  • Image representation (Gray Scale, 1 Byte/Pixel; Color, 4 Bytes/Pixel)
  • Frame Rate (Frames/second)
  • AVI Codec (Video/Image Compression paradigm)

Let's assume a 640 x 480 Gray Scale Image at 30 FPS.  This is on the "low resolution" side.  A minute of video will be about 0.5 Gb, ignoring any compression that might be handled by the Codec.  On the other hand, the Webcam on my laptop can take a 1280 x 720 Color MPG at 30 FPS which (again, ignoring compression) is 6.6 Gb/minute.  

 

The amount that the Codec will save you depends on the nature of the Image (how much pixel-to-pixel variation is there in space (within a single image) and time (how much changes frame-to-frame).  You'll have to do some tests to determine what works for your images.

 

Bob Schor

0 Kudos
Message 2 of 5
(1,928 Views)
Solution
Accepted by topic author Orozco_1

Yeah in your source you get the list of Codec Names, but just leave it blank.  I'd suggest trying the various codecs the system has installed and see which is the smallest.  If none of them satisfy your needs you might want to look into some post processing from programs that are dedicated to file size and quality adjustment.

 

I've used Handbrake in the past and not only does it have hardware accelerated support (so using your GPU to reencode more efficiently than the CPU), it also has some command line options.  VLC also might have some options.

0 Kudos
Message 3 of 5
(1,909 Views)

Hi

I have the same problem and I can't understand you. please take a look at in my code and help me to reduce the size. I use the webcam of laptop to get film.
Thanks a lot

Download All
0 Kudos
Message 4 of 5
(1,404 Views)

@Ostad1248 wrote:

I have the same problem and I can't understand you. please take a look at in my code and help me to reduce the size. I use the webcam of laptop to get film.


Welcome to the Forum.  Please be polite, and do not "take over" another user's Post, but start your own Topic.

 

When you want us to "look at your code", you need to attach your code.  In LabVIEW, code is usually a file with the extension ".vi", a file that we can open (unless you are using LabVIEW 2023, but I'll get to that), can edit (to "shrink" the size of a VI from 6 laptop screens down to one, so we can actually see it and "follow the wires"), and, most important, so we can try to run it ourselves and pinpoint where it fails and how to fix it.

 

Please do the following:

  • Do not post again on this particular Thread.
  • Start a new Topic.  Call it something like "Create Video from my Laptop Camera".
  • Explain the Hardware and Software you are using.  Hardware = type of Camera (I'm assuming it is the camera on your Laptop), Software includes LabVIEW Version (Year number, 32- or 64-bit version -- note many, maybe most, of us use 32-bit version), any special Modules/Toolkits you've installed (I assume Video Development Module and IMAQdx drivers).
  • Attach your LabVIEW Code, using "Save for Previous Version" and specify LabVIEW 2019 or 2021 if more recent than 2021.

I'll look out for your New Topic, and can probably provide help.  You can also search this Forum for Solutions to similar questions.

 

Bob Schor

0 Kudos
Message 5 of 5
(1,358 Views)