View Single Post
Old 8th November 2020, 02:35   #100  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,377
Quote:
Originally Posted by VoodooFX View Post
Is there some script/plugin which would compare frames from two separate video files (expected to be identical) and return frame numbers of not identical frames? Or any ideas how to do such comparison?
WriteFileIf with a runtime function expression like lumadifference . But there was some bugs in avs+ 3.x with this. It works in 2.6 classic. There was some discussion about this somewhere IIRC. Not sure what changed or what the exact syntax change was

Something like this works in avs+ 2.6 classic
Code:
.
.
.

Subtract(clip1,clip2)
WriteFileIf (last,  "log.log",  "LumaDifference(clip1, clip2)>0", "current_frame", """ ":" """, "AverageLuma")
Other approaches would be psnr . You can print out per frame PSNR in ffmpeg (should be infinity for identical frames), but that prints out every frame value. Maybe some spreadsheet or grep function to reduce to only different frames

Last edited by poisondeathray; 8th November 2020 at 02:38.
poisondeathray is offline   Reply With Quote