Ponder
12th May 2011, 06:22
@Gavino
I want to construct "YDifferenceFrom_frame_5" in a Runtime environment. Can this be done?
Could you provide some insight, I may be already on the wrong approach. :-()
For example:
Given a clip has four scenes(mostly static, with very litte panning), basic scenes are A,B,C,D.
The whole clip is a random combinations of these 4 scenes' - ABADCABCBACD...
Want to do this, if scene A found, perform some operations, if scene B found, speed up 15%
if scene C found do nothing. If scene D found, delete these frames.
By browsing through the clip, I can choose 4 reference pictures from A B C D, say, frame 5 for A,
frame 270 for B, frame 100 for C, frame 900 for D. In order to find similar scenes,
The comparison to will be done in the Runtime environment, but what syntax do I need to store these
4 reference frames, meanwhile? or, how do one refer to a frame by an exact location
(frame number)?
Pseudo codes:
c = GFrameEvaluate(c, "global diff = 0.50*YDifferenceFrom_frame_5(clip)
\ + 0.25*UDifferenceFrom_frame_5(clip) + 0.25*VDifferenceFrom_frame_5(clip)")
return c
eventually..
c = GFrameEvaluate(c, ... diff( frame5 - current_frame) < 10... found scene A
.
c = GFrameEvaluate(c, ... diff( frame270 - current_frame) < 10... found scene B
c = GFrameEvaluate(c, ... diff( frame900 - current_frame) < 10... found scene D
At the end, the clip will be ABACABC.. with no scene D.
I want to construct "YDifferenceFrom_frame_5" in a Runtime environment. Can this be done?
Could you provide some insight, I may be already on the wrong approach. :-()
For example:
Given a clip has four scenes(mostly static, with very litte panning), basic scenes are A,B,C,D.
The whole clip is a random combinations of these 4 scenes' - ABADCABCBACD...
Want to do this, if scene A found, perform some operations, if scene B found, speed up 15%
if scene C found do nothing. If scene D found, delete these frames.
By browsing through the clip, I can choose 4 reference pictures from A B C D, say, frame 5 for A,
frame 270 for B, frame 100 for C, frame 900 for D. In order to find similar scenes,
The comparison to will be done in the Runtime environment, but what syntax do I need to store these
4 reference frames, meanwhile? or, how do one refer to a frame by an exact location
(frame number)?
Pseudo codes:
c = GFrameEvaluate(c, "global diff = 0.50*YDifferenceFrom_frame_5(clip)
\ + 0.25*UDifferenceFrom_frame_5(clip) + 0.25*VDifferenceFrom_frame_5(clip)")
return c
eventually..
c = GFrameEvaluate(c, ... diff( frame5 - current_frame) < 10... found scene A
.
c = GFrameEvaluate(c, ... diff( frame270 - current_frame) < 10... found scene B
c = GFrameEvaluate(c, ... diff( frame900 - current_frame) < 10... found scene D
At the end, the clip will be ABACABC.. with no scene D.