<h1>Monochrome</h1>

<p><a href="https://i.sstatic.net/6q4gV.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6q4gV.jpg" alt="monochrome"></a> <img src="https://i.sstatic.net/MoQKq.png" alt="original"></p>

<p>One method is to use the <a href="https://ffmpeg.org/ffmpeg-filters.html#hue" rel="nofollow noreferrer">hue</a> filter to desaturate.</p>

<pre><code>ffmpeg -i input -vf hue=s=0 -c:a copy output
ffplay -vf hue=s=0 input
</code></pre>

<h1>De-haze (increase contrast)</h1>

<p><a href="https://i.sstatic.net/RzX5M.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/RzX5M.jpg" alt="increase contrast"></a> <img src="https://i.sstatic.net/MoQKq.png" alt="original"></p>

<p>The <a href="https://ffmpeg.org/ffmpeg-filters.html#curves" rel="nofollow noreferrer">curves</a> filter has several presets including a few that increase contrast. You can also make your own curves in Photoshop, export the ACV file and use it via the <code>psfile</code> option in the curves filter.</p>

<pre><code>ffmpeg -i input -vf curves=preset=increase_contrast -c:a copy output
ffplay -vf curves=preset=increase_contrast input
</code></pre>

CC BY-SA 4.0
2019-05-30T04:03:54.553Z
Thanks alot for your answer @llogan, as per your answer monochrome effect is same as grayscale effect, can you make command like my monochrome out put?
Nikunj Paradva
CC BY-SA 4.0
2019-05-30T07:31:09.640Z
and second thing How to use ffplay for live preview in android, i am really stuck to do that in android. any solution?
Nikunj Paradva
CC BY-SA 4.0
2019-05-30T17:28:04.730Z
@NikunjParadva You are showing the sepia image from the link you provided (refer to the animation in the link), but you said you wanted monochrome which I assumed meant a grayscale.  Upon viewing the link again I see "monochrome" is actually a grayscale with more contrast. But now it seems you actually want sepia? I don't know anything about Android.
llogan
CC BY-SA 4.0
2019-05-29T19:05:52.620Z
2019-05-29T19:05:52.620Z
llogan
<p>I have a lots of searching but i coudn't find the FFMPEG command for Monochrome effect and Haze Effect on video.</p>
<p><strong>Orignal</strong></p>
<p><img src="https://i.sstatic.net/MoQKq.png" alt="orignal" /></p>
<p><strong>Haze Effect</strong></p>
<p><img src="https://i.sstatic.net/yDC8c.png" alt="Haze" /></p>
<p><strong>Monochrome Effect</strong>  (This is not sepia effect)</p>
<p><img src="https://i.sstatic.net/c3i4F.png" alt="Monochrome" /></p>
<p>Your help would be appreciated.</p>

CC BY-SA 4.0
2019-05-29T18:48:27.597Z
How to increase contrast via command ?, and what about monochrome effect.?
Nikunj Paradva
CC BY-SA 4.0
2019-05-29T18:50:21.463Z
So I assume you want to increase the contrast for your effect you called "haze"? Did you use Photoshop to create these previews?
llogan
CC BY-SA 4.0
2019-05-29T18:51:20.767Z
yes if it got same result then it ll be fine.
Nikunj Paradva
CC BY-SA 4.0
2019-05-29T18:56:27.890Z
actually i found this effect from https://github.com/MasayukiSuda/ExoPlayerFilter, and it was a preview screenshot that and put it here. i am not making it in Photoshop.
Nikunj Paradva
<ffmpeg>
How to Monochrome, Haze video Effect in FFmpeg?
Nikunj Paradva
# How to Monochrome, Haze video Effect in FFmpeg?

(Asked by: username_0 on 2019-05-29)

I have a lots of searching but i coudn't find the FFMPEG command for Monochrome effect and Haze Effect on video.

**Orignal**

![orignal](https://i.sstatic.net/MoQKq.png)

**Haze Effect**

![Haze](https://i.sstatic.net/yDC8c.png)

**Monochrome Effect** (This is not sepia effect)

![Monochrome](https://i.sstatic.net/c3i4F.png)

Your help would be appreciated.

**Tags:** ffmpeg

> **Comments:**
> **username_0**: How to increase contrast via command ?, and what about monochrome effect.?  
> **username_1**: So I assume you want to increase the contrast for your effect you called "haze"? Did you use Photoshop to create these previews?  
> **username_0**: yes if it got same result then it ll be fine.  
> **username_0**: actually i found this effect from https://github.com/MasayukiSuda/ExoPlayerFilter, and it was a preview screenshot that and put it here. i am not making it in Photoshop.  

---

## 1 answers

### Answer by username_1 on 2019-05-29. Score: 4 | Accepted answer

Monochrome
 
One method is to use the hue filter to desaturate.
ffmpeg -i input -vf hue=s=0 -c:a copy output
ffplay -vf hue=s=0 input

De-haze (increase contrast)
 
The curves filter has several presets including a few that increase contrast. You can also make your own curves in Photoshop, export the ACV file and use it via the psfile option in the curves filter.
ffmpeg -i input -vf curves=preset=increase_contrast -c:a copy output
ffplay -vf curves=preset=increase_contrast input

> **Comments:**
> **username_0**: Thanks alot for your answer @username_1, as per your answer monochrome effect is same as grayscale effect, can you make command like my monochrome out put?  
> **username_0**: and second thing How to use ffplay for live preview in android, i am really stuck to do that in android. any solution?  
> **username_1**: @NikunjParadva You are showing the sepia image from the link you provided (refer to the animation in the link), but you said you wanted monochrome which I assumed meant a grayscale.  Upon viewing the link again I see "monochrome" is actually a grayscale with more contrast. But now it seems you actually want sepia? I don't know anything about Android.  

---

