Reduce Video Export File Size

Is there a way to reduce the video file export size? We are using the AVI exporter and we have set the sample rate to 8000, but the total size of the exported video files is about 4 or 5 GB for a 10 minute clip of video. Is this normal?

Note: We’ve seen roughly the same size whether using the ExportSample code or using the custom project we’ve built out.

Hi.

Please try to use other codec and select a good one that provides smaller size.

Same export mechanism is used in the Smart Client so this knowledge base article would apply: https://developer.milestonesys.com/s/article/How-does-XProtect-Smart-Client-export-to-AVI-format

Thanks Bo. This might be what we’re looking for (if it can reduce the file size a little more).

I downloaded and installed the xVID codec. However it’s not showing up in the codec list here…

AVIExporter tempExporter = new VideoOS.Platform.Data.AVIExporter() { Width = 320, Height = 240, Filename = textBoxVideoFilename.Text };
tempExporter.Init();
string[] codecList = tempExporter.CodecList;
tempExporter.Close();

Is there something that needs to be done after the codec is installed? I have restarted the computer just to double check that the codec list wasn’t being cached or anything.

Nevermind, I can see the codec name showing up in the XProtect Client and it looks like I can manually set the codec name.

Now I have a question about configuring the codec. In the XProtect Client there is a way to configure the codec as seen below…



Is there any way to do this through the Component Protocol? I tried setting the encoder config from the Xvid “Encoder Config” application but it seems to get reset whenever I make the export call from the code.

Please let me know if there’s anything else I can try.

Analysis here at Milestone show that this is currently not supported in the MIP SDK.

Based on the findings Milestone has put it on the wish-list for future development to enable the support for the codec configuration. The enhancement will go through prioritization and it is too soon to say when or even if this enhancement will be developed.

Hi, any update on this? I am seeing multiple gigabyte exports for a small export of 5 to 10 minutes. This takes forever. I’d expect 10 minutes of video to be well under 100 MB - certainly good enough resolution for most purposes.

I end up exporting from Milestone, opening in Adobe Premiere and re-exporting as a smaller size. I want to be able to export directly at the lower file-size. Thx.