{"action":"created","issue":{"url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/393","labels_url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/393/comments","events_url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/393/events","html_url":"https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/issues/393","id":72674912,"number":393,"title":"gridfs as output stream","user":{"login":"caglarcem","id":3239685,"avatar_url":"https://avatars.githubusercontent.com/u/3239685?v=3","gravatar_id":"","url":"https://api.github.com/users/caglarcem","html_url":"https://github.com/caglarcem","followers_url":"https://api.github.com/users/caglarcem/followers","following_url":"https://api.github.com/users/caglarcem/following{/other_user}","gists_url":"https://api.github.com/users/caglarcem/gists{/gist_id}","starred_url":"https://api.github.com/users/caglarcem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caglarcem/subscriptions","organizations_url":"https://api.github.com/users/caglarcem/orgs","repos_url":"https://api.github.com/users/caglarcem/repos","events_url":"https://api.github.com/users/caglarcem/events{/privacy}","received_events_url":"https://api.github.com/users/caglarcem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-02T17:36:04Z","updated_at":"2015-05-12T11:45:19Z","closed_at":null,"body":"Hi there, thanks for the great package.\r\n\r\nCan we use gridfs as output stream? I used to do it by writing to a temp location then piping into gridfs before. I suspect now it is possible (after upgrading to v2.0.1) to pipe directly to gridfs without temp file, but the following doesn't work for me.  Is it possible, if so how, what am I doing wrong?\r\n\r\n\"ffmpeg exited with code 1: pipe:1: Invalid argument\"\r\n\r\n    var writeStream = gridFs.createWriteStream({ filename: updatedSaveLocation,\r\n                        metadata: { actualFileName: fileName } });\r\n\r\n    new FFmpeg({source: sourcePath, timeout:0})\r\n        .on('error', function(err) {\r\n            console.log('An error occurred: ' + err.message);\r\n        })\r\n        .on('end', function() {\r\n            console.log('Transcoded successfully!');\r\n        })\r\n    .pipe(writeStream);"},"comment":{"url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/comments/101249007","html_url":"https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/issues/393#issuecomment-101249007","issue_url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/393","id":101249007,"user":{"login":"phaux","id":1270987,"avatar_url":"https://avatars.githubusercontent.com/u/1270987?v=3","gravatar_id":"","url":"https://api.github.com/users/phaux","html_url":"https://github.com/phaux","followers_url":"https://api.github.com/users/phaux/followers","following_url":"https://api.github.com/users/phaux/following{/other_user}","gists_url":"https://api.github.com/users/phaux/gists{/gist_id}","starred_url":"https://api.github.com/users/phaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phaux/subscriptions","organizations_url":"https://api.github.com/users/phaux/orgs","repos_url":"https://api.github.com/users/phaux/repos","events_url":"https://api.github.com/users/phaux/events{/privacy}","received_events_url":"https://api.github.com/users/phaux/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T11:45:19Z","updated_at":"2015-05-12T11:45:19Z","body":"You need to specify output format with `.outputFormat('format')`"}}