1

I have read https://stackoverflow.com/questions/25774996/ , but "blend=all_mode=difference" is green. How do I get more colorful diffrence using blend filter?

Sample command is

ffplay -f lavfi "movie=left.mp4,split[a1][a2]; movie=right.mp4,split[b1][b2]; [a1][b1]blend=all_mode=difference[blend];[a2]pad=2*iw:2*ih[left];[left][b2]overlay=w[tmp];[tmp][blend]overlay=0:h"

enter image description here

using "hue=s=0", color chenges monochrome.

ffplay -f lavfi "movie=left.mp4,split[a1][a2]; movie=right.mp4,split[b1][b2]; [a1][b1]blend=all_mode=difference,hue=s=0[blend];[a2]pad=2*iw:2*ih[left];[left][b2]overlay=w[tmp];[tmp][blend]overlay=0:h"

enter image description here

My goal is this video. If you have a niconico account. http://www.nicovideo.jp/watch/sm24864058

If you don't have a niconico account, embed page is http://www.nicozon.net/watch/sm24864058

2
  • Do any of the other blend modes provide what you need?
    – llogan
    Dec 20, 2014 at 19:20
  • If that works for you then you can write and accept your own answer to your own question.
    – llogan
    Dec 21, 2014 at 19:20

1 Answer 1

2

When using "c0_mode" instead of "all_mode" is fine.

ffplay -f lavfi "movie=left.mp4,setpts=PTS-STARTPTS,split[a1][a2];
                movie=right.mp4,setpts=PTS-STARTPTS,split[b1][b2];
                [a1][b1]blend=c0_mode=difference,pad=2*iw:ih:0:0[down];
                [a2][b2]hstack[up];[up][down]vstack"

enter image description here

Anothre way to compare 2 videos.

ffplay -f lavfi "movie=left.mp4,setpts=PTS-STARTPTS,split=3[a0][a1][a2];
                movie=right.mp4,setpts=PTS-STARTPTS,split[b0][b1];
                [a0][b0]blend=c0_mode=difference[y];
                [a1]lutyuv=y=val:u=128:v=128[uv];
                [y][uv]mergeplanes=0x001112:yuv420p,pad=2*iw:ih:0:0[down];
                [a2][b1]hstack[up];[up][down]vstack"
1
  • Adding three screenshots.
    – nico_lab
    Dec 25, 2014 at 12:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .