diff --git a/scripts/commands.txt b/scripts/commands.txt index 31b6ea7..fc620fe 100644 --- a/scripts/commands.txt +++ b/scripts/commands.txt @@ -1,2 +1,5 @@ -npx ts-node ./extract.ts /Users/mikehughes/Downloads/sweetHomeAlabama.mov -npx ts-node ./transcribe.ts ../storage/audio/sweetHomeAlabama.wav +npx ts-node ./extract.ts /Users/mikehughes/Downloads/Testvideo/Kurzgesagt.mov +npx ts-node ./transcribe.ts ../storage/audio/Kurzgesagt.wav + +npx ts-node ./extract.ts /Users/mikehughes/Downloads/Testvideo/GitLabMeeting.mov +npx ts-node ./transcribe.ts ../storage/audio/GitLabMeeting.wav diff --git a/services/modules/extraction/ffmpegExtractor.ts b/services/modules/extraction/ffmpegExtractor.ts index 0831859..c23c879 100644 --- a/services/modules/extraction/ffmpegExtractor.ts +++ b/services/modules/extraction/ffmpegExtractor.ts @@ -30,7 +30,7 @@ const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); // Prepare output directory (always storage/audio under project root) -const outputDir = path.join(__dirname, '..', '..', 'storage', 'audio'); +const outputDir = path.join(__dirname, '..', '..', '..', 'storage', 'audio'); if (!fs.existsSync(outputDir)) { fs.mkdirSync(outputDir, { recursive: true }); }