toast.fire({timer:10000,icon:'success',title:`Export completed! Output file(s) can be found at: ${getOutDir(customOutDir,filePath)}. You can change the output directory in settings`});
toast.fire({timer:5000,icon:'success',title:`Export completed! Output file(s) can be found at: ${getOutDir(customOutDir,filePath)}. You can change the output directory in settings`});
}catch(err){
console.error('stdout:',err.stdout);
console.error('stderr:',err.stderr);
if(err.code===1||err.code==='ENOENT'){
errorToast(`Whoops! ffmpeg was unable to export this video. Try one of the following before exporting again:\n1. Select a different output format from the ${fileFormat} button (matroska takes almost everything).\n2. Exclude unnecessary tracks`);
toast.fire({icon:'error',title:`Whoops! ffmpeg was unable to export this video. Try one of the following before exporting again:\n1. Select a different output format from the ${fileFormat} button (matroska takes almost everything).\n2. Exclude unnecessary tracks\n3. Try "Normal cut" and "Keyframe cut"`,timer:10000});