You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varvideoshow=require("videoshow");varimages=getFrames("./anim");varvideoOptions={fps: 25,loop: 5,// secondstransition: true,transitionDuration: 1,// secondsvideoBitrate: 1024,videoCodec: "libx264",size: "640x?",audioBitrate: "128k",audioChannels: 2,format: "mp4",pixelFormat: "yuv420p",};functiongetFrames(dir){returnnewPromise((resolve,reject)=>{fs.readdir(dir,(err,files)=>{if(err)throwerr;files=files.sort((a,b)=>parseInt(a)-parseInt(b));files=files.map((file)=>dir+"/"+file);resolve(files);});});}videoshow(images,videoOptions).save("video.mp4").on("start",function(command){console.log("ffmpeg process started:",command);}).on("error",function(err,stdout,stderr){console.error("Error:",err);console.error("ffmpeg stderr:",stderr);}).on("end",function(output){console.error("Video created in:",output);});
I'm getting this error
returnvideoshow.images.map(function(image){^
TypeError: videoshow.images.mapisnotafunctionatconvertImages(F:\Paradise\Projects\PersonalProjects\active\automated-osu-videos-generator\node_modules\videoshow\lib\render.js:41:27)atprocessVideo(F:\Paradise\Projects\PersonalProjects\active\automated-osu-videos-generator\node_modules\videoshow\lib\render.js:32:19)
at F:\Paradise\Projects\PersonalProjects\active\automated-osu-videos-generator\node_modules\videoshow\lib\render.js:25:5atprocessTicksAndRejections(node:internal/process/task_queues:78:11)
The text was updated successfully, but these errors were encountered:
I ran the example code on node v16.13.1
I'm getting this error
The text was updated successfully, but these errors were encountered: