Hello,
I want to synchronise a patch which generate sounds with a short video. My idea to succeed it is to detect cuts into montage. Does anybody think it's possible and leading which method ?
Many thanks,
Hummm
How detect a a cut in a video ?
Hello,
I want to synchronise a patch which generate sounds with a short video. My idea to succeed it is to detect cuts into montage. Does anybody think it's possible and leading which method ?
Many thanks,
Hummm
hi - if yr not using audio tracks in the movie, then you could record an audible tone on the movie sound track at the desired point & get PD to listen for this as a trigger. This is an old idea that can be taken quite a way (like having a continuous frequency on the film soundtrack & using pitch-following to control stuff too).
Sort of like playing with super-8 film 25 years ago
Ash
That seems to be a godd idea !
I suppose I may use the adc~object instead dac ~?
adc~ is a audio input
dac~ is an output.
For a continuous tone, you would want the adc~ coming in for your source of audio.
Then, use something like fiddle~ to get pitch and amplitude readouts which you can use to trigger from.
puredata punx http://www.cyberpunki.biz
you could also make an array, and get pd to write a 1 to the array everytime the video cuts. if you play back your array at the same speed as the video, then you just need [sel 1] to trigger a bang on each cut.
this is assuming that you know the frame position of each cut. if you don't know that, and you want pd to analyze the video for sudden changes, then that would be possible i guess, but would probably take a bit of hard work to set up.
i would go with the array idea. you can save the array to a textfile to re-use later. check pd's help docs on arrays for more info.
or, to advance that idea, you could get pd to write a 1 on the first cut, a 2 on the second cut, a 3 on the 3rd...etc.....that way you could trigger different audio reactions to different sections of the montage.
there is the pix_movement object that come with Gem that can do movement detection. Simple way to found cuts in a video is to checking the average brightness of a frame substracted by the previous one. if it is really bright, lot of chance it is a cut.
neko, your method seems also practical...
I'll try this evening. I think I would be more familiar with pix_movement, I used it for a tracking performance, less accustomed with arrays..
cool, you now have 3 options:
a) my old analogue art-school boy method
triggering from a table of cue-points
c) movement-detection
This is all kind of like 'good automation' - not where you just press a button & everything assembles itself - but where you get involved in aspects of making your work (where you may have least expected) that open holes in the software AND your methodology... blah blah
Ash
Oops! Looks like something went wrong!