FFmpeg: Diff 2 videos in realtime
Posted: Wed Nov 21, 2018 12:49 am
FFmpeg's video player "ffplay" can be used to quickly render the visual difference between 2 videos:
If you want/need to render this difference to a file, in lossless encoding for full "pixel-forensic" possibilities :
Thanks to LordNeckbeard's answer on Stackoverflow
Code: Select all
ffplay -f lavfi \
"movie=original.mkv[org]; \
movie=encoded.mkv[enc]; \
[org][enc]blend=all_mode=difference"
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