Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 17th January 2013, 14:29   #1  |  Link
laserfan
Aging Video Hobbyist
 
Join Date: Dec 2004
Location: Off the Map
Posts: 2,444
Detecting motion-only to compose time lapse video

I have set-up a still camera which is taking jpg pictures every 2 seconds on a building construction project, which has generated many thousands of stills that I can import to VirtualDub and output as "accelerated video" and even re-encode using x264 to Blu-ray disc. It's very cool indeed, but...

There are a good number of occasions where nothing much is happening in the frame, and while I can remove those pics by hand it's a time-consuming process for sure.

Does anyone know of a way to have Avisynth compare frames for motion such that I can discard those "quiet" images where nothing is happening? I've searched here and found some pretty sophisticated image processing (e.g. PlanetCrop) so wonder if anyone has invented this wheel already?

If no easier way is apparent, I think I will try AviDemux or VideoReDo and edit the video afterwards (vs. discarding pics up-front). Might be easier than discarding individual jpgs up-front.
laserfan is offline   Reply With Quote
Old 17th January 2013, 14:48   #2  |  Link
Pomegranate
Registered User
 
Pomegranate's Avatar
 
Join Date: Oct 2012
Posts: 66
You could try one of those listed here : http://avisynth.org/mediawiki/External_filters#Duplicate_Frame_Detectors
Pomegranate is offline   Reply With Quote
Old 17th January 2013, 18:40   #3  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,681
Quote:
Just a little idea of where this might be useful, security cameras where you want just the interesting bits
and omit the masses of static frames that are of no interest but you might want to raise the condition above 0.1 as
used above to avoid false alarms.
See here:
http://forum.doom9.org/showthread.ph...59#post1539459

Also see posts #14 & #16 a few posts later.

EDIT: Almost same script but modified to use FrameSelect() Plugin rather than Prune().
http://forum.doom9.org/showthread.ph...78#post1607578

EDIT: Give me an hour or two and I'll knock up a script to compare frames with the previously output frame
rather than the previous frame to avoid the possibility of someone slowly creeping across the building site
and defeating the previous script.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 17th January 2013 at 23:54.
StainlessS is offline   Reply With Quote
Old 17th January 2013, 23:55   #4  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,681
Bit more than an hour or two, but here it is:
http://forum.doom9.org/showthread.ph...14#post1611514

Say if not working correctly.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 18th January 2013, 02:13   #5  |  Link
laserfan
Aging Video Hobbyist
 
Join Date: Dec 2004
Location: Off the Map
Posts: 2,444
Wow great stuff, I will take a look; thanks you guys.

laserfan is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:40.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.