{"action":"opened","issue":{"url":"https://api.github.com/repos/psirenny/gulp-fluent-ffmpeg/issues/1","repository_url":"https://api.github.com/repos/psirenny/gulp-fluent-ffmpeg","labels_url":"https://api.github.com/repos/psirenny/gulp-fluent-ffmpeg/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/psirenny/gulp-fluent-ffmpeg/issues/1/comments","events_url":"https://api.github.com/repos/psirenny/gulp-fluent-ffmpeg/issues/1/events","html_url":"https://github.com/psirenny/gulp-fluent-ffmpeg/issues/1","id":142819697,"number":1,"title":"Convert to mp4 format","user":{"login":"perrin4869","id":5774716,"avatar_url":"https://avatars.githubusercontent.com/u/5774716?v=3","gravatar_id":"","url":"https://api.github.com/users/perrin4869","html_url":"https://github.com/perrin4869","followers_url":"https://api.github.com/users/perrin4869/followers","following_url":"https://api.github.com/users/perrin4869/following{/other_user}","gists_url":"https://api.github.com/users/perrin4869/gists{/gist_id}","starred_url":"https://api.github.com/users/perrin4869/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perrin4869/subscriptions","organizations_url":"https://api.github.com/users/perrin4869/orgs","repos_url":"https://api.github.com/users/perrin4869/repos","events_url":"https://api.github.com/users/perrin4869/events{/privacy}","received_events_url":"https://api.github.com/users/perrin4869/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-23T00:31:13Z","updated_at":"2016-03-23T00:31:13Z","closed_at":null,"body":"Trying to convert an mp3 file to mp4, I got the following error: `ffmpeg exited with code 1: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument`\r\n\r\nAfter doing some digging, it turns out that you cannot convert to using pipes. That means that while the following works:\r\n\r\n```\r\nffmpeg -i client/audio/foo.mp3  -c:a libfdk_aac -f mp4 ./foo.mp4\r\n```\r\n\r\nThe following won't work:\r\n\r\n```\r\ncat client/audio/foo.mp3 | ffmpeg -i pipe:0  -c:a libfdk_aac -f mp4 pipe:1 | cat > foo.mp4\r\n```\r\n\r\nI was wondering if there is a way to support converting to `mp4` using this plugin after all. Thanks!"}}