#!/usr/bin/env ts-node import { extractAudioFromVideo } from "../services/modules/extraction/ffmpegExtractor.ts"; const videoPath = process.argv[2]; if (!videoPath) { console.error("Usage: ts-node extractAudio.ts "); process.exit(1); } (async () => { try { console.log(`Extracting audio from: ${videoPath}`); await extractAudioFromVideo(videoPath); // Call the extraction function (ffmpegExtractor.ts in services/modules/extraction) console.log("Audio extraction completed successfully."); } catch (err) { console.error("Audio extraction failed:", err); process.exit(1); } })();