FredThompson
8th July 2003, 23:40
I'm looking for a way to conditionally choose frames from one of two streams based on scene change detection. It doesn't have to be absolutely perfect.
Here's the thought:
Starting with a raw source stream, establish a second stream through a filter.
A test is done such that frame X comes from the filtered stream unless a test of frame X+n shows a scene change. This allows a way to reduce the unwanted effects of temporal smoothing across scene changes.
If Donald Graft's Dup is modified such that it would, if instructed, return only a boolean for change detection given the frames X and X+n, this would be fairly easy from a user standpoint. The regular Dup functionality could be used to tune configuration for a given source.
Construction of the output stream would, essentially, be choosing frames from either input stream based on the state switch of the boolean.
Questions:
1) Is there a filter which provides scene change detection for a specified frame and returns a boolean?
2) If so, how would a stream be constructed from two source streams?
Here's the thought:
Starting with a raw source stream, establish a second stream through a filter.
A test is done such that frame X comes from the filtered stream unless a test of frame X+n shows a scene change. This allows a way to reduce the unwanted effects of temporal smoothing across scene changes.
If Donald Graft's Dup is modified such that it would, if instructed, return only a boolean for change detection given the frames X and X+n, this would be fairly easy from a user standpoint. The regular Dup functionality could be used to tune configuration for a given source.
Construction of the output stream would, essentially, be choosing frames from either input stream based on the state switch of the boolean.
Questions:
1) Is there a filter which provides scene change detection for a specified frame and returns a boolean?
2) If so, how would a stream be constructed from two source streams?