Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new ffmpeg(video.path).screenshots({
- timestamps: ['5%', '10%', '15%', '20%', '25%'],
- filename: video.filename + ((video.alias == "") ? "" : "_" + video.alias) + "_%0i.jpg",
- folder: video.thumbpath,
- size: config.size
- }).on('error', function(filenames){
- new ffmpeg(video.path).screenshots({
- timestamps: [30, 60, 90, 120, 150],
- filename: video.filename + ((video.alias == "") ? "" : "_" + video.alias) + "_%0i.jpg",
- folder: video.thumbpath,
- size: config.size
- }).on('error', function(filenamez){
- debug += grapThumbnail + filenamez + "\n";
- //callbackFunction(video, STATUS_CONVERT);
- }).on("end", function(){
- for(var i = 1 ; i <= 5 ; i ++){
- var file = {};
- file.filename = video.filename + ((video.alias == "") ? "" : "_" + video.alias) + "_0" + i + ".jpg";
- file.filepath = video.thumbpath + video.filename + ((video.alias == "") ? "" : "_" + video.alias) + "_0" + i + ".jpg";
- file.host = config.host;
- file.username = config.username;
- file.password = config.password;
- file.path = config.path;
- _ftpqueue.push(file);
- }
- startFTPUpload();
- });
- }).on("end", function(){
- for(var i = 1 ; i <= 5 ; i ++){
- var file = {};
- file.filename = video.filename + ((video.alias == "") ? "" : "_" + video.alias) + "_0" + i + ".jpg";
- file.filepath = video.thumbpath + video.filename + ((video.alias == "") ? "" : "_" + video.alias) + "_0" + i + ".jpg";
- file.host = config.host;
- file.username = config.username;
- file.password = config.password;
- file.path = config.path;
- _ftpqueue.push(file);
- }
- startFTPUpload();
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement