1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-17 05:22:18 +00:00

Added comment on locating ffmpeg-bar

This commit is contained in:
snobu
2020-04-10 13:29:22 +03:00
parent cd52b5cefa
commit a9ac46f3e1

View File

@@ -191,6 +191,7 @@ async function downloadVideo(videoUrls: string[], outputDirectory: string, sessi
// console.log(`Download finished: ${outputPath}`); // console.log(`Download finished: ${outputPath}`);
// }); // });
// We probably need a way to be deterministic about how we locate that ffmpeg-bar wrapper, npx maybe?
let cmd = `node_modules/.bin/ffmpeg-bar -headers "Authorization:\ Bearer\ ${session.AccessToken}" -i "${video.playbackUrl}" -y "${outputPath}"`; let cmd = `node_modules/.bin/ffmpeg-bar -headers "Authorization:\ Bearer\ ${session.AccessToken}" -i "${video.playbackUrl}" -y "${outputPath}"`;
execSync(cmd, {stdio: 'inherit'}); execSync(cmd, {stdio: 'inherit'});
console.info(`Download finished: ${outputPath}`); console.info(`Download finished: ${outputPath}`);