bump libs
rewrite ytdl command - now streaming both audio and video, separated, then merging using ffmpeg
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import {FfmpegCommand} from "fluent-ffmpeg";
|
||||
|
||||
export async function performFFmpeg(buildFFmpeg: () => FfmpegCommand): Promise<void> {
|
||||
return new Promise((resolve, reject) => {
|
||||
buildFFmpeg()
|
||||
.on("end", () => {
|
||||
resolve();
|
||||
})
|
||||
.on("error", reject);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user