Closed Fyphen1223 closed 11 months ago
async function main() { const stream = ytdl(ytdl.getURLVideoID(YouTube URL), { filter: format => format.audioCodec === 'opus' && format.container === 'webm', quality: 'highest', highWaterMark: 32 * 1024 * 1024, }) .on('end', async function() { const seekStream = ffmpeg("./target.webm") .seekInput(200) .toFormat("webm") .pipe(fs.createWriteStream(`./seeked.webm`)) .on('end', function() { console.log('file has been converted succesfully'); }); console.log("Finished"); }) .pipe(fs.createWriteStream("./target.webm")); } main();
Should save seeked file to 'seeked,webm'.
Just save 478Bytes file
lol sry my bad
Version information
Code to reproduce
Expected results
Should save seeked file to 'seeked,webm'.
Observed results
Just save 478Bytes file