encoding-guide

Understanding Filtering

Filtering is like cleaning and improving your video before you save it. This process helps remove problems in the video, make it look better, and prepare it for encoding.


What is Filtering?

When you apply filters to a video, you’re fixing issues or making it look better. Think of filters as tools in a toolbox:


Why Do We Need Filters?

Filters are helpful because they:


Types of Filters (Beginner-Friendly)

1. Denoising


2. Debanding


3. Resizing


4. Cropping


5. Sharpening


6. Graining


Tips for Beginners

  1. Start Simple:
    • Use one or two filters to see how they change the video.
    • For example, try just resizing and denoising first.
  2. Watch Your Video:
    • After applying filters, preview the video to check the changes.
    • Use this command to preview:
      vspipe --y4m script.vpy - | ffplay -
      
  3. Avoid Overdoing It:
    • Too much filtering can make the video look unnatural.
    • If you’re unsure, use mild settings for each filter.

Why Filtering Order Matters

The order in which you apply filters is important. Here’s a beginner-friendly order to follow:

  1. Fix issues first (e.g., remove noise or banding).
  2. Resize or crop the video.
  3. Enhance details with sharpening or graining.

Conclusion

Filters are tools to make your video look better. Start with simple filters, preview your results, and don’t overcomplicate things. As you practice, you’ll understand how each filter works and when to use them.