Page 1 of 1

FFmpeg: Diff 2 videos in realtime

Posted: Wed Nov 21, 2018 12:49 am
by peter_b
FFmpeg's video player "ffplay" can be used to quickly render the visual difference between 2 videos:

Code: Select all

ffplay -f lavfi \
"movie=original.mkv[org]; \
 movie=encoded.mkv[enc]; \
 [org][enc]blend=all_mode=difference"
If you want/need to render this difference to a file, in lossless encoding for full "pixel-forensic" possibilities 8) :

Code: Select all

ffmpeg -i original.mkv -i encoded.mkv \
-filter_complex "blend=all_mode=difference" \
-c:v ffv1 -slices 24 -c:a copy output.mkv
Thanks to LordNeckbeard's answer on Stackoverflow