Skip to content

The swiss army knife of lossless video/audio editing

Handle ENOENT for cut as well (windows)

Mikael Finstadfd03dcc13908
diff --git a/src/renderer.jsx b/src/renderer.jsx
index 66bbec74..e2948440 100644
--- a/src/renderer.jsx
+++ b/src/renderer.jsx
@@ -191,7 +191,10 @@ class App extends React.Component {
this.setState({ working: true });
return ffmpeg.cut(filePath, this.state.fileFormat, cutStartTime, cutEndTime)
.catch((err) => {
- if (err.code === 1) {
+ console.error('stdout:', err.stdout);
+ console.error('stderr:', err.stderr);
+
+ if (err.code === 1 || err.code === 'ENOENT') {
alert('Whoops! ffmpeg was unable to cut this video. It may be of an unknown format or codec combination');
return;
}