Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Detecting identical frames.

Engaged ,
Nov 24, 2020 Nov 24, 2020

Is there a way to detect consecutive identical frames in footage inside AE? For example, I have a video with frames #100 and #101 that look identical down to every pixel. I would like to get this flagged in some way. So this would be a kind of the opposite to motion detection.

 

I understand that there are ways to do that with python scripts, etc. My question is specifically about doing this inside AE.

TOPICS
Expressions , How to , Scripting
3.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Nov 25, 2020 Nov 25, 2020

You should be able to use the sampleImage() method. You'll need to think of an algorithm to work with.

Translate
People's Champ ,
Nov 24, 2020 Nov 24, 2020

There is no built-in process in AE for duplicate frame detection.

Lloyd Alvarez's script is the most common tool for this process thast I'm aware of.

https://aescripts.com/duplicate-frame-remover/

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 25, 2020 Nov 25, 2020

Thank you Andrew. This looks like a nice script, but I just need to flag the duplicate frames, not delete them. I wonder if that script uses some built-in function in ExtendScript that can compare frames.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 25, 2020 Nov 25, 2020

You should be able to use the sampleImage() method. You'll need to think of an algorithm to work with.

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 29, 2020 Nov 29, 2020

Yes, sampleImage() is what I needed. Thank you!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 30, 2020 Nov 30, 2020

Please update us with your results when you're done.

 

BTW, if you're keen to build a Confidence Result, these can appear as Color Markers after the process. Hence, after the process (which can be assisted or automated), a user may visit the marked frames to double-check accuracy. The Confidence Result feature can also be used as a KPI to help increase accuracy during development.

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 30, 2020 Nov 30, 2020

Actually, that's what I've done. Because sampleImage() in not included in ExtendScript, I added a script to the video layer. It sets a text field in another layer to the sampleImage() output. Then, I run an ExtendScript that compares values in the text field frame-by-frame. When the difference is below a threshold, the script flags it and adds a comp marker for verification. Overall, it was not too difficult thanks to your advice!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Dec 01, 2020 Dec 01, 2020
LATEST

Great Minds think alike!  🙂
I'm happy you got it all sorted out.

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines