<p>This is an interesting question, but I don't think that you will find a good solution without changing your inputs (the video elements you are using). I'm not aware of any software that allows you to prioritize compression by area. The compressor itself usually makes all these kinds of decisions for you.</p>

<p>Aside from that, you said the magic (not good) word for compression: Youtube. Even if you could find a way to do the above, you basically give it all up when you upload it to Youtube, where they will run their own fixed compression algorithms that will ruin all your work.</p>

<p>I think there are a couple of things you can do (perhaps all of them in combination):</p>

<ol>
<li><p>If you haven't already, try doing 2-pass compression, instead of one-pass. This will take longer, but the compressor will have a chance to analyze the video on the first pass, and that may possibly help improve your output a little.</p></li>
<li><p>Massage that water footage. If you can get rid of it completely and replace it with something else that causes less trouble, do it. If not, you can try things like:</p>

<ul>
<li><p>Apply some blur (either chroma [color portion of the signal], luma [monochrome portion of the signal] or both) to the footage.</p></li>
<li><p>It would also help to run the water footage through a denoiser first.</p></li>
</ul></li>
</ol>

<p>Both denoising and slight blurring should help reduce the amount of bandwidth that your compressor needs to dedicate to that area of your video.</p>

CC BY-SA 3.0
2017-11-06T18:16:56.437Z
2017-11-06T18:16:56.437Z
optic
<p>I'm not sure if what I'm asking is possible, but here's the situation.</p>

<p>I have a video I have made for distribution on the Internet (YouTube, Vimeo, etc.)</p>

<p>The video clip is a composite of the following:</p>

<ul>
<li>a person talking (shot against a green screen)</li>
<li>a city scene in a harbor at night; the bottom half of the frame is filled with moving water (the ocean)</li>
</ul>

<p>So, when I compress this using standard settings, the waves are given the most detail (because they move the most?), and the person shows more compression artifacts.</p>

<p>However, ideally, I want the person to be kept in the highest possible detail, and the water to be compressed more.</p>

<p>The compressor itself doesn't have any settings for something like this, but since the clip is a composite, I was thinking there might be a way to compress the layers separately...  Can this kind of thing be done?</p>

<p>I'm using Davinci Resolve but I also have access to FCPX.</p>

CC BY-SA 3.0
2017-02-01T20:20:10.333Z
It would require writing code that executes x264 via API and sets higher quantizer for the macroblocks that contain waves and lower for the subject. I would just apply a soft blur to the offending BG areas.
Gyan
<compression><compositing>
Video compression- how to prioritize one area over another?
Patrick Kenny
# Video compression- how to prioritize one area over another?

(Asked by: username_0 on 2017-02-01)

I'm not sure if what I'm asking is possible, but here's the situation.

I have a video I have made for distribution on the Internet (YouTube, Vimeo, etc.)

The video clip is a composite of the following:

* a person talking (shot against a green screen)
* a city scene in a harbor at night; the bottom half of the frame is filled with moving water (the ocean)

So, when I compress this using standard settings, the waves are given the most detail (because they move the most?), and the person shows more compression artifacts.

However, ideally, I want the person to be kept in the highest possible detail, and the water to be compressed more.

The compressor itself doesn't have any settings for something like this, but since the clip is a composite, I was thinking there might be a way to compress the layers separately... Can this kind of thing be done?

I'm using Davinci Resolve but I also have access to FCPX.

**Tags:** compression, compositing

> **Comments:**
> **username_1**: It would require writing code that executes x264 via API and sets higher quantizer for the macroblocks that contain waves and lower for the subject. I would just apply a soft blur to the offending BG areas.  

---

## 1 answers

### Answer by username_2 on 2017-11-06. Score: 4

This is an interesting question, but I don't think that you will find a good solution without changing your inputs (the video elements you are using). I'm not aware of any software that allows you to prioritize compression by area. The compressor itself usually makes all these kinds of decisions for you.

Aside from that, you said the magic (not good) word for compression: Youtube. Even if you could find a way to do the above, you basically give it all up when you upload it to Youtube, where they will run their own fixed compression algorithms that will ruin all your work.

I think there are a couple of things you can do (perhaps all of them in combination):

1. If you haven't already, try doing 2-pass compression, instead of one-pass. This will take longer, but the compressor will have a chance to analyze the video on the first pass, and that may possibly help improve your output a little.
2. Massage that water footage. If you can get rid of it completely and replace it with something else that causes less trouble, do it. If not, you can try things like:

   * Apply some blur (either chroma [color portion of the signal], luma [monochrome portion of the signal] or both) to the footage.
   * It would also help to run the water footage through a denoiser first.

Both denoising and slight blurring should help reduce the amount of bandwidth that your compressor needs to dedicate to that area of your video.


---

