Posted: . At: 1:25 PM. This was 3 years ago. Post ID: 15268
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


Interesting FFmpeg effect.


This is a very interesting emboss and sepia effect for FFmpeg.

ffmpeg -i NOLm_Ambowide2_1207.mp4 -vf "curves=vintage,convolution=-2 -1 0 -1 1 1 0 1 2:-2 -1 0 -1 1 1 0 1 2:-2 -1 0 -1 1 1 0 1 2:-2 -1 0 -1 1 1 0 1 2" ambo.mp4

And this is a less noticeable version. But it still has a faint emboss effect.

ffmpeg -i NOLm_Ambowide2_1207.mp4 -vf "curves=vintage,convolution=-2 -1 0 -1 1 1 0 1 6:-2 -1 0 -1 1 1 0 1 6:-2 -1 0 -1 1 1 0 1 6:-2 -1 0 -1 1 1 0 1 9" ambo2.mp4

This version is negatively embossed, it looks quite good, this is an interesting effect.

ffmpeg -i NOLm_Ambowide2_1207.mp4 -vf "curves=vintage,convolution=-2 -1 0 -1 1 1 0 1 6:-2 -1 0 -1 1 1 0 1 6:-2 -1 0 -1 1 1 0 1 6:-2 -1 0 -1 1 1 0 1 9" ambo3.mp4

Below is an example of the above command`s output. This is a very cool sepia and embossing effect.

This is the FFmpeg command to encode this 5-second webm file.

ffmpeg -i ambo2.mp4 -c:v libvpx -b:v 3200k -t 5 -an -sn -copyts -threads 4 ambo.webm

Putting the two filters together in one string is easily done.

curves=vintage,convolution=-2 -1 0 -1 1 1 0 1 2:-2 -1 0 -1 1 1 0 1 2:-2 -1 0 -1 1 1 0 1 2:-2 -1 0 -1 1 1 0 1 2

Place a comma betwixt each filter and they may be combined easily.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.