Optimizing Video Processing: Trim, Crop, and Speed Up Your Workflow

Table of Contents

Reading time: 4 min

video processing optimization

Digital videos are constantly getting more and more bulky. Nowadays it is not uncommon to work on CCTV footage with resolution above Full-HD, sometimes even 4K. Unfortunately, this huge gain in resolution is often frustrated by extremely aggressive compression (at the end of the day, the video must fit into a DVR hard drive). And there is one more collateral effect of working with hi-res videos: the processing time increases. This makes video processing optimization more important than ever.

Even if you are running Amped FIVE on a powerful computer, you may experience a significant slow-down when applying some filters to your footage. Remember that Amped FIVE processes your video in “live mode”. All filters in the chain are applied on the fly, and the result is rendered on the screen. If you feel the video is not playing fast enough, today’s Tuesday Tip is here to help you! 

Trim and Crop: Essential Tools for Video Processing Optimization

Our suggestion for effective video processing optimization is to focus your analysis on the portion of footage that really matters, both in time and space.

Focusing in space basically means cropping. As we all know (alas!), the object of interest often occupies a tiny percentage of the frame. The rest of the pixels act as a “useless background”. You can use the Crop filter to select a portion of the video and work only with that for the rest of the workflow. This simple trick can save you a lot of processing time. All successive filters in the chain will run on a smaller amount of data (usually, much smaller).

If the object is moving, you have many options:

  • you may crop the whole region spanned by its path, if it’s not too large
  • you can set the cropped region to track the object, as shown below

If you’re wondering which kind of tracking method you should use, take a look at this past Tip Tuesday!

Screenshot of the Crop filter settings window in Amped FIVE software showing Static Region selection option highlighted

Focusing in time means that if your object of interest stays in the video for 10 seconds, you just “limit” the video to those 10 seconds. Amped FIVE gives you several simple ways of doing that:

1) Range selector: using this filter will make it so that every filter occurring later in the chain will be only applied to the frames you selected.

Screenshot of the Range Selector filter settings panel in Amped FIVE software, displaying frame selection fields for First Frame, Last Frame, and Step value, with options for setting or jumping to specific frames and a Lossless Trim button

2) Lossless Trim: after you have selected your range, you may even want to create a new video file containing just the piece of footage that you’re interested in. Lossless Trim will simply “take out” from the original stream the smallest possible portion that covers your range. Since it is designed to be a lossless operation, Lossless Trim can be only applied right after a Video Loader filter. The trim is not exact at the frame level for a reason. To cut the video without having to re-encode it we need to start from the first key-frame preceding the beginning of the selected Range. Avoiding re-encoding is the key to lossless trimming, so you will not change a pixel.

3) Video Writer: if cropping and trimming haven’t delivered enough video processing optimization, consider writing part of the video to an uncompressed file using the Video Writer filter. To do so, just select “Raw video” as the output format in the Video Writer parameters. (Remember that uncompressed video takes a lot of hard drive space, so be sure to properly focus in space and time before running this step!) Then, load the produced in another “auxiliary” chain and continue working on that. This is a forensically sound step since no pixel information is lost.

The advantage is that your processed video runs just as fast as the original. Even more, if you also applied cropping before writing the video. When your work is done, you may consider copying the filters from your auxiliary chain to the original chain. This will simplify the workflow for presentation by removing the “video writer.” Nobody will know that you saved a lot of time, reaching exactly the same result!

Screenshot of the Video Writer filter settings in Amped FIVE showing export file options including File name, Format dropdown with multiple video codec !mkv - Raw video" highlighted

Reducing the computational load has two main advantages:

  1. You can view the video at its original frame rate, or even faster;
  2. When tuning filter parameters, you will see the impact of your adjustment in a much more responsive way. This can help a lot to find the best settings (as in the case of tuning parameters of the Motion Deblurring filter).

Conclusion

Before concluding, an important remark: remember that some filters must be applied before cropping or trimming the video!

To cite the most important:

  • Undistort should be applied before cropping, because it assumes that the optical center of the image is close to central pixels;
  • Deinterlace is better applied before trimming the video, so to avoid switching the order of fields.

In summary, cropping and trimming are not just about aesthetics, they’re powerful tools for video processing optimization. Focus only on what’s essential in both space and time. This way you’ll reduce computational load, speed up playback, and make filter adjustments more responsive.

This week’s take-away is: focus your work and process only what you really need! We hope you enjoyed this week’s Tuesday Tip, stay tuned and don’t miss the next ones!

Table of Contents

Share on

Subscribe to our Blog

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Subscribe to our Blog

Related posts

Amped Engine Updates

Amped DVRConv and Engine Update 36977

Reading time: 2 minThis latest release introduces support for new proprietary CCTV formats and extended support for existing formats and variants. We have also added a new audio

Read More »