3

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

Orignal

orignal

Haze Effect

Haze

Monochrome Effect (This is not sepia effect)

Monochrome

Your help would be appreciated.

4
  • How to increase contrast via command ?, and what about monochrome effect.? Commented May 29, 2019 at 18:48
  • So I assume you want to increase the contrast for your effect you called "haze"? Did you use Photoshop to create these previews?
    – llogan
    Commented May 29, 2019 at 18:50
  • yes if it got same result then it ll be fine. Commented May 29, 2019 at 18:51
  • actually i found this effect from github.com/MasayukiSuda/ExoPlayerFilter, and it was a preview screenshot that and put it here. i am not making it in Photoshop. Commented May 29, 2019 at 18:56

1 Answer 1

4

Monochrome

monochrome original

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)

increase contrast original

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
3
  • 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? Commented May 30, 2019 at 4:03
  • and second thing How to use ffplay for live preview in android, i am really stuck to do that in android. any solution? Commented May 30, 2019 at 7:31
  • @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
    Commented May 30, 2019 at 17:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.