The swiss army knife of lossless video/audio editing
improve error msg
Mikael Finstadf6251983cc67
diff --git a/src/smartcut.js b/src/smartcut.jsindex 6f409534..e7d54924 100644--- a/src/smartcut.js+++ b/src/smartcut.js@@ -12,6 +12,7 @@ function mapInputToOutputCodec(inputCodec) {// eslint-disable-next-line import/prefer-default-exportexport async function getSmartCutParams({ path, videoDuration, desiredCutFrom, streams }) {const videoStreams = getRealVideoStreams(streams);+ if (videoStreams.length === 0) throw new Error('Smart cut only works on videos');if (videoStreams.length > 1) throw new Error('Can only smart cut video with exactly one video stream');const videoStream = videoStreams[0];