{"action":"created","issue":{"url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/681","repository_url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg","labels_url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/681/labels{/name}","comments_url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/681/comments","events_url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/681/events","html_url":"https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/issues/681","id":216654168,"number":681,"title":"Error: ffmpeg exited with code 126","user":{"login":"yangwenhaowenhe","id":19327261,"avatar_url":"https://avatars2.githubusercontent.com/u/19327261?v=4","gravatar_id":"","url":"https://api.github.com/users/yangwenhaowenhe","html_url":"https://github.com/yangwenhaowenhe","followers_url":"https://api.github.com/users/yangwenhaowenhe/followers","following_url":"https://api.github.com/users/yangwenhaowenhe/following{/other_user}","gists_url":"https://api.github.com/users/yangwenhaowenhe/gists{/gist_id}","starred_url":"https://api.github.com/users/yangwenhaowenhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangwenhaowenhe/subscriptions","organizations_url":"https://api.github.com/users/yangwenhaowenhe/orgs","repos_url":"https://api.github.com/users/yangwenhaowenhe/repos","events_url":"https://api.github.com/users/yangwenhaowenhe/events{/privacy}","received_events_url":"https://api.github.com/users/yangwenhaowenhe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-03-24T05:08:41Z","updated_at":"2017-10-14T04:44:57Z","closed_at":null,"author_association":"NONE","body":"<!-- Please fill the following template -->\r\n\r\n### Version information\r\n\r\n* fluent-ffmpeg version: 2.1.0\r\n* ffmpeg version :ffmpeg-3.2.4\r\n* OS:  CentOS release 6.8 (Final)\r\n\r\n\r\n### Code to reproduce\r\n\r\n```js\r\nfs.chmod(config.ffmpegPath, 751, (err) => {\r\n      if (!err) {\r\n        ffmpeg.setFfmpegPath(config.ffmpegPath)\r\n        let stream = ffmpeg(request.get(`${config.down_voice_url}access_token=${token}&media_id=${media_id}`))\r\n          .noVideo()\r\n          .audioCodec('libmp3lame')\r\n          .on('start', function (commandLine) {\r\n            console.log('Spawned FFmpeg with command: ' + commandLine);\r\n          })\r\n          .on('error', (err) => {\r\n            console.log('error when transcoding audio: ', err)\r\n          })\r\n          .on('end', () => {\r\n            console.log('transcoding to mp3 success')\r\n          })\r\n          .pipe()\r\n        request.post({\r\n          url: config.storeFileUrl,\r\n          formData: {\r\n            value: stream,\r\n            contentType: 'audio/mpeg'\r\n          }\r\n        },\r\n          (err, res, body) => {\r\n            callback(JSON.parse(body).data.url)\r\n          })\r\n      }\r\n    })\r\n\r\n```\r\n\r\n(note: if the problem only happens with some inputs, include a link to such an input file)\r\n\r\n### Expected results\r\n\r\n\r\n\r\n### Observed results\r\n\r\n\r\n\r\n### Checklist\r\n\r\n<!-- you may delete that checklist when you have checked everything -->\r\n\r\n* [ ] I have read the [FAQ](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/wiki/FAQ)\r\n* [ ] I tried the same with command line ffmpeg and it works correctly (hint: if the problem also happens this way, this is an ffmpeg problem and you're not reporting it to the right place)\r\n* [ ] I have included full stderr/stdout output from ffmpeg\r\n"},"comment":{"url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/comments/336609713","html_url":"https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/issues/681#issuecomment-336609713","issue_url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/681","id":336609713,"user":{"login":"pikitgb","id":2738018,"avatar_url":"https://avatars3.githubusercontent.com/u/2738018?v=4","gravatar_id":"","url":"https://api.github.com/users/pikitgb","html_url":"https://github.com/pikitgb","followers_url":"https://api.github.com/users/pikitgb/followers","following_url":"https://api.github.com/users/pikitgb/following{/other_user}","gists_url":"https://api.github.com/users/pikitgb/gists{/gist_id}","starred_url":"https://api.github.com/users/pikitgb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pikitgb/subscriptions","organizations_url":"https://api.github.com/users/pikitgb/orgs","repos_url":"https://api.github.com/users/pikitgb/repos","events_url":"https://api.github.com/users/pikitgb/events{/privacy}","received_events_url":"https://api.github.com/users/pikitgb/received_events","type":"User","site_admin":false},"created_at":"2017-10-14T04:44:57Z","updated_at":"2017-10-14T04:44:57Z","author_association":"NONE","body":"Hi guys getting this error in the AWS Lambda too, maybe is related to the fact that the node library can't find ffmpeg installed on the computer ? "}}
{"actor":{"display_login":"pikitgb"}}