Skip to content

Duplicate Frames Report

Jerry Hogsett edited this page Jun 27, 2023 · 1 revision

Duplicate Frames Report - Detect and report duplicate PNG frame files

How It Works

  1. Set Input PNG Files Path to a path on this server for the PNG files to report on
  2. Set Detect Threshold to specify the sensitivity to frame differences
    • A lower value finds fewer duplicates; a higher value finds more
    • This value requires experimentation. See More Details below.
  3. Set Maximum Duplicates Per Group to limit consecutive found duplicate frames
    • This can help to find a suitable upper limit for Detect Threshold
    • Values:
      • Set to 0 to not limit the number of consecutive duplicates
      • Set to 1 to prevent duplicates altogether
      • Set to any other value to limit the consecutive duplicates
    • Tip: in most cases, actual duplicates will be limited to several frames only
  4. Click Create Report
  5. A text file version of the report can be downloaded from the Download box
  6. The report, or any errors encountered, are shown in the Report box

Important

  • ffmpeg.exe must be available on the system path
  • The values for the Threshold slider can be changed in the config.yaml file section deduplicate_settings

More Details

  • The FFmpeg mpdecimate video filter is used to detect and remove duplicates
    • The hi and lo mpdecimate parameters are set to the specified theshold
    • the frac mpdecimate parameter is set to 1
  • Example: a 30 FPS video with 24 FPS real frames (20% duplicated frames)
    • With Threshold set to the minimum 0, 1 frame was removed
    • When set to maximum 25000, all frames except 1 were removed
    • When set to the default 2500, 20% of the frames were removed
Clone this wiki locally