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
// timout of the spawned ffmpeg sub-processes in seconds (optional, defaults to 30)
109
-
timeout: 30,
110
-
// default priority for all ffmpeg sub-processes (optional, defaults to 0 which is no priorization)
111
-
priority: 0,
112
-
// set a custom [winston](https://github.com/flatiron/winston) logging instance (optional, default null which will cause fluent-ffmpeg to spawn a winston console logger)
113
-
logger: null,
114
-
// completely disable logging (optional, defaults to false)
115
-
nolog: false
116
-
})
117
-
// .withSize('450x?')
118
-
.addOption('-vframes','1')
119
-
.onProgress(function(progress){
120
-
// console.log(progress);
121
-
})
122
-
.saveToFile(image_path,function(retcode,error){
123
-
console.log('file has been converted succesfully');
0 commit comments