Setting markers to the beat via script?
Posted: Wed Jan 13, 2021 10:20 pm
Hi guys!
I would like to cut a video to a beat of a song.
Normally I play the song and set markers on the beats manually. (Transient detection doesn't work...its not a dance song )
This method normally works pretty fine but also you will get some "jitter" of a few frames just because i'm not a drummer with a perfect sense for rhythm.
Anyway...I know the tempo/bpm of the song. So my idea is:
Find a DEFINITE start of a measure (the kickdrum...) and set one marker. From that marker on, I want to set a series of markers, all 57 frames apart: because that's one measure at 105 bpm (the song) at 25 fps.
Assuming that the song does not have any tempo changes, this should generate a marker on each "One" of the song.
I guess this can be done with a LUA/python script pretty easily...but I haven't done that yet at all. (I know some programming though....)
Can anyone give me some starting tipps?
Thanks
Volker
I would like to cut a video to a beat of a song.
Normally I play the song and set markers on the beats manually. (Transient detection doesn't work...its not a dance song )
This method normally works pretty fine but also you will get some "jitter" of a few frames just because i'm not a drummer with a perfect sense for rhythm.
Anyway...I know the tempo/bpm of the song. So my idea is:
Find a DEFINITE start of a measure (the kickdrum...) and set one marker. From that marker on, I want to set a series of markers, all 57 frames apart: because that's one measure at 105 bpm (the song) at 25 fps.
Assuming that the song does not have any tempo changes, this should generate a marker on each "One" of the song.
I guess this can be done with a LUA/python script pretty easily...but I haven't done that yet at all. (I know some programming though....)
Can anyone give me some starting tipps?
Thanks
Volker