{"action":"created","issue":{"url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/405","labels_url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/405/comments","events_url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/405/events","html_url":"https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/issues/405","id":85456192,"number":405,"title":"How to transcode input stream to another stream by use fluent-ffmpeg?","user":{"login":"vmespace","id":8912915,"avatar_url":"https://avatars.githubusercontent.com/u/8912915?v=3","gravatar_id":"","url":"https://api.github.com/users/vmespace","html_url":"https://github.com/vmespace","followers_url":"https://api.github.com/users/vmespace/followers","following_url":"https://api.github.com/users/vmespace/following{/other_user}","gists_url":"https://api.github.com/users/vmespace/gists{/gist_id}","starred_url":"https://api.github.com/users/vmespace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmespace/subscriptions","organizations_url":"https://api.github.com/users/vmespace/orgs","repos_url":"https://api.github.com/users/vmespace/repos","events_url":"https://api.github.com/users/vmespace/events{/privacy}","received_events_url":"https://api.github.com/users/vmespace/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-05T07:03:09Z","updated_at":"2015-06-05T08:03:35Z","closed_at":null,"body":"my code is below:\r\n\r\n```\r\nvar fs = require('fs');\r\nvar url = \"rtmp://192.168.235.36/live/livestream5 live=1\";\r\n//var url = \"1.mp4\";\r\nvar out = \"rtmp://192.168.235.60/live/livestream5432\";\r\n//var out = \"11.mp4\";\r\nvar ffmpeg = require('fluent-ffmpeg');\r\nvar ffmpegPath = \"\";\r\nvar os = require('os');\r\nif(os.platform() === 'win32'){\r\n    ffmpegPath = 'F:\\\\Downloads\\\\ffmpeg-20140512-git-5460ab7-win32-shared\\\\bin\\\\ffmpeg.exe';\r\n}else{\r\n    ffmpegPath = '/usr/local/bin/ffmpeg';\r\n}\r\n\r\nvar proc = new ffmpeg({ source: url, nolog: false});\r\nproc.setFfmpegPath(ffmpegPath);\r\nproc.addOptions([\r\n        '-vcodec copy',\r\n        '-acodec copy',\r\n        '-f flv',\r\n        '-y'\r\n    ]);\r\n\r\nproc.on('error', function(err, stdout, stderr){\r\n    console.log(\"11111111111111 -------------video: \" + err);\r\n});\r\n\r\nproc.writeToStream(out, function(return_code, error){\r\n    console.log('11111111111' , return_code, \"222222222\", error);\r\n});\r\n```\r\n\r\nnow,it works when the out is \"11.mp4\", What I expect is that out is \"rtmp://192.168.235.60/live/livestream5432\", now error code is \"11111111111111 -------------video: Error: ffmpeg exited with code 1\"\r\n\r\nffmpeg version is :\"2.6.3\" fluent-ffmpeg is : \"1.7.2\""},"comment":{"url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/comments/109197741","html_url":"https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/issues/405#issuecomment-109197741","issue_url":"https://api.github.com/repos/fluent-ffmpeg/node-fluent-ffmpeg/issues/405","id":109197741,"user":{"login":"vmespace","id":8912915,"avatar_url":"https://avatars.githubusercontent.com/u/8912915?v=3","gravatar_id":"","url":"https://api.github.com/users/vmespace","html_url":"https://github.com/vmespace","followers_url":"https://api.github.com/users/vmespace/followers","following_url":"https://api.github.com/users/vmespace/following{/other_user}","gists_url":"https://api.github.com/users/vmespace/gists{/gist_id}","starred_url":"https://api.github.com/users/vmespace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmespace/subscriptions","organizations_url":"https://api.github.com/users/vmespace/orgs","repos_url":"https://api.github.com/users/vmespace/repos","events_url":"https://api.github.com/users/vmespace/events{/privacy}","received_events_url":"https://api.github.com/users/vmespace/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T08:03:35Z","updated_at":"2015-06-05T08:03:35Z","body":"the real order of the below is : \"ffmpeg -i \"rtmp://192.168.235.36/live/livestream5 live=1\" -vcodec copy -acodec copy -f flv -y rtmp://192.168.235.60/live/livestream5\", it works by cmd. Trouble me."}}