| 22 | #include "../src/lib/audio/audioStreamInfo.h" |
| 23 | |
| 24 | void printUsage(const char *path) |
| 25 | { |
| 26 | std::cout << "This executable takes two audio/video files A and B and determines " << std::endl |
| 27 | << "how much B needs to be shifted in order to be synchronized with A." << std::endl |
| 28 | << std::endl |
| 29 | << path << " <main audio file> <second audio file>" << std::endl |
| 30 | << "\t-h, --help\n\t\tDisplay this help" << std::endl |
| 31 | << "\t--fft\n\t\tUse Fourier Transform (FFT) to calculate the offset. This only takes" << std::endl |
| 32 | << "\t\tO(n log n) time compared to O(n²) when using normal correlation and should be " << std::endl |
| 33 | << "\t\tfaster for large data (several minutes)." << std::endl |
| 34 | << "\t--profile=<profile>\n\t\tUse the given profile for calculation (run: melt -query profiles)" << std::endl |
| 35 | << "\t--no-images\n\t\tDo not save envelope and correlation images" << std::endl; |
| 36 | } |
| 37 | |
| 38 | int main(int argc, char *argv[]) |
| 39 | { |