Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] unhandledRejection: Error: ENOENT: no such file or directory, scandir '...\photobooth\timecut-temp-1715854229528' #76

Open
joshuasir opened this issue May 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@joshuasir
Copy link

i'm getting eror
unhandledRejection: Error: ENOENT: no such file or directory, scandir '...\photobooth\timecut-temp-1715854229528' any idea on why is this happening

action.tsx
const timecut = require('timecut');

export const snapRecord = async () =>{
timecut({
url: 'file://' + path.join(__dirname, '../../components/CanvasVideo.tsx'),
viewport: {
width: 800, // sets the viewport (window size) to 800x600
height: 600
},
selector: '#container', // crops each frame to the bounding box of '#container'
left: 0, top: 0, // further crops the left by 20px, and the top by 40px
right: 60, bottom: 300, // and the right by 6px, and the bottom by 30px
fps: 30, // saves 30 frames for each virtual second
duration: 20, // for 20 virtual seconds
output: 'video.mp4' // to video.mp4 of the current working directory
}).then(function () {
console.log('Done!');
});
}

called on main file
useEffect(() => {
snapRecord()

}, []);

@joshuasir joshuasir added the bug Something isn't working label May 16, 2024
@joshuasir joshuasir changed the title [BUG] [BUG] unhandledRejection: Error: ENOENT: no such file or directory, scandir '...\photobooth\timecut-temp-1715854229528' May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant