24 Commits

Author SHA1 Message Date
Zhangzhi Hu
e83354d625 QString refactor: replace QString() with QStringLiteral()
Replace `QString()` constructors with `QStringLiteral()` macro to improve
performance.
2024-10-21 06:59:47 +00:00
Camille Moulin
445f56256c chore(REUSE): Add SPDX info to CMakelists.txt files 2023-08-05 23:40:37 +02:00
Alexander Lohnau
b147288703 Header SPDX harmonisation 2021-09-18 22:41:52 +00:00
Nicolas Carion
4bb8959e5b [MAINTENANCE] clang format + remove most warnings + update test libs 2019-02-09 20:32:01 +01:00
Montel Laurent
072d51ab05 Astyle kdelibs 2016-12-11 10:37:20 +01:00
Jean-Baptiste Mardelle
aadd9305b0 First step in KF5 porting. Compiles but startup crash 2014-12-02 21:05:23 +01:00
Vincent PINON
85e85cb220 krazy fix: QLatin1String for search functions
git grep -l "\(starts\|ends\)With(\(\"[^\"]*\"\))" | xargs sed -i
"s/\(starts\|ends\)With(\(\"[^\"]*\"\))/\1With(QLatin1String(\2))/g"
2014-07-07 16:25:04 +02:00
Jean-Baptiste Mardelle
d21a500c4e Make audio align work asynchronously, fix timeline corruption when trying to move clip before 0
Conflicts:
	src/customtrackview.cpp
	src/customtrackview.h
2014-04-29 01:04:19 +02:00
Alberto Villa
cdb1c3a5d4 Update FindMLT.cmake to adhere to CMake standards
Also, pass MLT_PREFIX via config-kdenlive.h.
Version checking is gained for free.

Conflicts:
	src/CMakeLists.txt
2014-04-28 21:42:12 +02:00
Montel Laurent
d7224c861d const'ref, Remove not necessary virtual keyword. Fix includes 2013-05-30 09:16:50 +02:00
Jean-Baptiste Mardelle
cbf0c0c6e3 * Fix stabilized clips not loading:
http://www.kdenlive.org/mantis/view.php?id=2711
2012-09-07 19:30:56 +02:00
Jean-Baptiste Mardelle
be563b527d Use const & with foreach loops where possible [krazy 46/46] by Mikko Rapeli 2012-07-23 10:51:08 +02:00
Simon A. Eugster
98d5394404 Added option to enable Audio Alignment in the config dialog.
AA is disabled by default since it currently leads to crashes
in some cases, due to unknown reasons, and marked as experimental.
2012-04-19 11:54:30 +02:00
Simon A. Eugster
e8f7593667 FFT correlation is now used for larger audio samples when aligning.
Additional changes:
* FFTTools class moved to lib/
* FFT correlation usage simplified
* audioOffset executables combined, FFT can be used with --fft
* Debug output defined away
* Comments added
2012-02-21 14:31:10 +01:00
Simon A. Eugster
69774d0fad FFT based correlation works.
Previous commit used convolution instead of correlation.
2012-02-20 23:42:58 +01:00
Simon A. Eugster
fc658bb3f4 Working on FFT based correlation
Correlation for two samples of 3 min length are calculated in 2 ms
compared to 16 ms with O(n²) correlation.
Not the same result yet however ...
2012-02-20 13:53:38 +01:00
Simon A. Eugster
daf4290d90 QString::toStdString() replaced by QString::toLocal8Bit() as KDE4
disables STL support with QT_NO_STL.

Also, changed delete to delete[].
2012-02-14 19:22:32 +01:00
Simon A. Eugster
5aa35dcbf5 Audio alignment libraries moved to src/lib/audio/
I suggest to put other libraries to src/lib/ as well in future.

Some comments added.
2012-02-14 16:31:33 +01:00
Simon A. Eugster
753c45e28c 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>.
2012-02-14 16:05:01 +01:00
Simon A. Eugster
9e475c571a Calculating correlation to synchronize audio tracks 2012-02-14 13:36:21 +01:00
Simon A. Eugster
61379786d6 Audio envelope calculation extracted into own class, mean and standard deviation added 2012-02-14 11:58:56 +01:00
Simon A. Eugster
6be4bb3669 Volume envelope calculation
The AudioInfo class reads audio information from a MLT producer
for easy access to sampling rate etc.

AudioOffset now generates the volume envelope of an audio file
and saves it as image.
2012-02-12 16:57:31 +01:00
Simon A. Eugster
90c14d4bb8 Successfully dumping audio information from the input files now :) 2012-02-12 12:46:15 +01:00
Simon A. Eugster
a861023c28 Audio alignment: Attempts to get familiar with mlt 2012-02-11 16:08:38 +01:00