FFmpeg: Diff 2 videos in realtime

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
peter_b
Chatterbox
Posts: 383
Joined: Tue Nov 12, 2013 2:05 am

FFmpeg: Diff 2 videos in realtime

Post 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
Post Reply