{"action":"created","issue":{"url":"https://api.github.com/repos/psirenny/gulp-fluent-ffmpeg/issues/2","repository_url":"https://api.github.com/repos/psirenny/gulp-fluent-ffmpeg","labels_url":"https://api.github.com/repos/psirenny/gulp-fluent-ffmpeg/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/psirenny/gulp-fluent-ffmpeg/issues/2/comments","events_url":"https://api.github.com/repos/psirenny/gulp-fluent-ffmpeg/issues/2/events","html_url":"https://github.com/psirenny/gulp-fluent-ffmpeg/issues/2","id":169196754,"number":2,"title":"Error: Cannot find ffmpeg","user":{"login":"217Wilder-User1","id":11576905,"avatar_url":"https://avatars.githubusercontent.com/u/11576905?v=3","gravatar_id":"","url":"https://api.github.com/users/217Wilder-User1","html_url":"https://github.com/217Wilder-User1","followers_url":"https://api.github.com/users/217Wilder-User1/followers","following_url":"https://api.github.com/users/217Wilder-User1/following{/other_user}","gists_url":"https://api.github.com/users/217Wilder-User1/gists{/gist_id}","starred_url":"https://api.github.com/users/217Wilder-User1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/217Wilder-User1/subscriptions","organizations_url":"https://api.github.com/users/217Wilder-User1/orgs","repos_url":"https://api.github.com/users/217Wilder-User1/repos","events_url":"https://api.github.com/users/217Wilder-User1/events{/privacy}","received_events_url":"https://api.github.com/users/217Wilder-User1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-03T18:11:42Z","updated_at":"2016-08-04T18:42:51Z","closed_at":"2016-08-03T22:12:33Z","body":"@psirenny I'm using NPM gulp-fluent-ffmpeg 1.0.2 and I'm running into an error.  I used the same code gulp.task code in the readme and when I run the task I get an `Error: Cannot find ffmpeg`\r\n\r\nAny thoughts on why this is happening?  Am I Missing something?\r\n\r\n```\r\n[13:56:13] Starting 'audio'...\r\nevents.js:72\r\n        throw er; // Unhandled 'error' event\r\n              ^\r\nError: Cannot find ffmpeg\r\n    at C:\\Projects\\CODE\\FFMpeg-Gulp\\node_modules\\gulp-fluent-ffmpeg\\node_modules\\fluent-ffmpeg\\lib\\processor.js:131:22\r\n    at C:\\Projects\\CODE\\FFMpeg-Gulp\\node_modules\\gulp-fluent-ffmpeg\\node_modules\\fluent-ffmpeg\\lib\\capabilities.js:123:9\r\n    at C:\\Projects\\CODE\\FFMpeg-Gulp\\node_modules\\gulp-fluent-ffmpeg\\node_modules\\fluent-ffmpeg\\node_modules\\async\\dist\\async.js:486:20\r\n    at nextTask (C:\\Projects\\CODE\\FFMpeg-Gulp\\node_modules\\gulp-fluent-ffmpeg\\node_modules\\fluent-ffmpeg\\node_modules\\async\\dist\\async.js:5008:33)\r\n    at C:\\Projects\\CODE\\FFMpeg-Gulp\\node_modules\\gulp-fluent-ffmpeg\\node_modules\\fluent-ffmpeg\\node_modules\\async\\dist\\async.js:5015:17\r\n    at C:\\Projects\\CODE\\FFMpeg-Gulp\\node_modules\\gulp-fluent-ffmpeg\\node_modules\\fluent-ffmpeg\\node_modules\\async\\dist\\async.js:339:31\r\nProcess terminated with code 8.\r\n    at C:\\Projects\\CODE\\FFMpeg-Gulp\\node_modules\\gulp-fluent-ffmpeg\\node_modules\\fluent-ffmpeg\\node_modules\\async\\dist\\async.js:847:20\r\n    at C:\\Projects\\CODE\\FFMpeg-Gulp\\node_modules\\gulp-fluent-ffmpeg\\node_modules\\fluent-ffmpeg\\lib\\capabilities.js:116:11\r\n    at C:\\Projects\\CODE\\FFMpeg-Gulp\\node_modules\\gulp-fluent-ffmpeg\\node_modules\\fluent-ffmpeg\\lib\\utils.js:223:16\r\n    at F (C:\\Projects\\CODE\\FFMpeg-Gulp\\node_modules\\gulp-fluent-ffmpeg\\node_modules\\fluent-ffmpeg\\node_modules\\which\\which.js:69:16)\r\n```\r\n\r\nHere's the gulpfile.js code I'm using\r\n```\r\nvar gulp = require('gulp');\r\nvar ffmpeg = require('gulp-fluent-ffmpeg');\r\n\r\ngulp.task('audio', function () {\r\n    // transcode ogg files to mp3\r\n    return gulp.src('src/audio/*.ogg')\r\n      .pipe(ffmpeg('mp3', function (cmd) {\r\n          return cmd\r\n            .audioBitrate('128k')\r\n            .audioChannels(2)\r\n            .audioCodec('libmp3lame')\r\n      }))\r\n      .pipe(gulp.dest('dest/audio'));\r\n});\r\n```\r\nPackage.json = \r\n\r\n```\r\n{\r\n    \"name\": \"ffmpegtest\",\r\n    \"version\": \"1.0.0\",\r\n    \"private\": true,\r\n  \"dependencies\": {\r\n    \r\n  },\r\n  \"devDependencies\": {\r\n    \"gulp-fluent-ffmpeg\": \"1.0.2\",\r\n    \"gulp\": \"3.9.1\",\r\n    \"gulp-util\": \"3.0.7\"\r\n  }\r\n}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/psirenny/gulp-fluent-ffmpeg/issues/comments/237645362","html_url":"https://github.com/psirenny/gulp-fluent-ffmpeg/issues/2#issuecomment-237645362","issue_url":"https://api.github.com/repos/psirenny/gulp-fluent-ffmpeg/issues/2","id":237645362,"user":{"login":"217Wilder-User1","id":11576905,"avatar_url":"https://avatars.githubusercontent.com/u/11576905?v=3","gravatar_id":"","url":"https://api.github.com/users/217Wilder-User1","html_url":"https://github.com/217Wilder-User1","followers_url":"https://api.github.com/users/217Wilder-User1/followers","following_url":"https://api.github.com/users/217Wilder-User1/following{/other_user}","gists_url":"https://api.github.com/users/217Wilder-User1/gists{/gist_id}","starred_url":"https://api.github.com/users/217Wilder-User1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/217Wilder-User1/subscriptions","organizations_url":"https://api.github.com/users/217Wilder-User1/orgs","repos_url":"https://api.github.com/users/217Wilder-User1/repos","events_url":"https://api.github.com/users/217Wilder-User1/events{/privacy}","received_events_url":"https://api.github.com/users/217Wilder-User1/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T18:42:51Z","updated_at":"2016-08-04T18:42:51Z","body":"@psirenny I was able to get the video working!  Here's some example code.\r\n\r\n````\r\nvar gulp = require(\"gulp\");\r\nvar ffmpeg = require('gulp-fluent-ffmpeg');\r\n\r\ngulp.task('video', function () {\r\n    // transcode mp4 to mp4\r\n    return gulp.src('./src/video/*.mp4')\r\n      .pipe(ffmpeg('mp4', function (cmd) {\r\n          return cmd\r\n              .setFfmpegPath(\"C:\\\\Projects\\\\CODE\\\\FFMpeg-testing\\\\bin\\\\ffmpeg.exe\")\r\n              .outputOptions('-loglevel warning')\r\n              .outputOptions('-bsf:v h264_mp4toannexb')\r\n              .outputOptions('-bsf:v dump_extra')\r\n              .outputOptions('-movflags frag_keyframe+empty_moov')\r\n            .on('error', function (err, stdout, stderr) {\r\n                //console.log('An error occurred: ' + err.message);\r\n                console.log('an error happened: ' + err.message, stdout, stderr);\r\n            })\r\n            .on('end', function () {\r\n                console.log('Processing finished !');\r\n            })\r\n      }))\r\n      .pipe(gulp.dest('./dest/video'));\r\n});\r\n```"}}
{"actor":{"display_login":"217Wilder-User1"}}