]> git.sesse.net Git - kdenlive/commit
Audio alignment works.
authorSimon A. Eugster <simon.eu@gmail.com>
Tue, 14 Feb 2012 15:05:01 +0000 (16:05 +0100)
committerSimon A. Eugster <simon.eu@gmail.com>
Tue, 14 Feb 2012 15:05:01 +0000 (16:05 +0100)
commit753c45e28c73b1366b08ff846d27cba897881420
treed7d8e913e5dc66608c62d36bda97883802d16b58
parent9e475c571a1a3f985663879cbc40678168f7a323
Audio alignment works.

This is at the moment still a brute-force attack (correlation
currently requires O(n²) time) but /works/ and is reasonnably
fast for clips with reasonnable length (not too many minutes).

Later the correlation can be replaced with an FFT version which
would only require O(n log n) time.

Example usage of the executable:
$ ./audioOffset mainVideo.avi someSound.wav

This will e.g. tell you that someSound.wav needs to be shifted
by 42 frames in order to be aligned. The MLT profile can be
specified with --profile=<mlt profile>.
testingArea/CMakeLists.txt
testingArea/audioCorrelation.cpp [new file with mode: 0644]
testingArea/audioCorrelation.h [new file with mode: 0644]
testingArea/audioCorrelationInfo.cpp [new file with mode: 0644]
testingArea/audioCorrelationInfo.h [new file with mode: 0644]
testingArea/audioOffset.cpp