{"action":"created","issue":{"url":"https://api.github.com/repos/trenskow/stream-transcoder.js/issues/9","labels_url":"https://api.github.com/repos/trenskow/stream-transcoder.js/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/trenskow/stream-transcoder.js/issues/9/comments","events_url":"https://api.github.com/repos/trenskow/stream-transcoder.js/issues/9/events","html_url":"https://github.com/trenskow/stream-transcoder.js/issues/9","id":43129107,"number":9,"title":"Transcode a Movie on the Fly","user":{"login":"mshafieluru","id":5220761,"avatar_url":"https://avatars.githubusercontent.com/u/5220761?v=3","gravatar_id":"","url":"https://api.github.com/users/mshafieluru","html_url":"https://github.com/mshafieluru","followers_url":"https://api.github.com/users/mshafieluru/followers","following_url":"https://api.github.com/users/mshafieluru/following{/other_user}","gists_url":"https://api.github.com/users/mshafieluru/gists{/gist_id}","starred_url":"https://api.github.com/users/mshafieluru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshafieluru/subscriptions","organizations_url":"https://api.github.com/users/mshafieluru/orgs","repos_url":"https://api.github.com/users/mshafieluru/repos","events_url":"https://api.github.com/users/mshafieluru/events{/privacy}","received_events_url":"https://api.github.com/users/mshafieluru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-09-18T12:54:23Z","updated_at":"2015-11-04T23:03:08Z","closed_at":null,"body":"Hi\r\n\r\nI have a webm file in my File System and i am trying to transcode it to MP4 to be played in IE, Safari\r\n\r\nthe code is as follows:\r\n\r\napp.js\r\n==========\r\n\r\nvar httpServer = require('http');\r\nvar Transcoder = require('stream-transcoder');\r\n\r\nvar server = httpServer.createServer(function(req, resp) {\r\nif(req.url == \"/transcode\")\r\n    {\r\n\tconsole.log(\"Inside Transcode\");\r\n\t\r\n\tresp.setHeader('Access-Control-Allow-Origin', '*');\r\n\tresp.writeHead(200, {'content-type':'video/mp4'});\r\n\t\r\n\tnew Transcoder(\"12003.webm\")\r\n\t  .maxSize(320, 240)\r\n\t  .videoCodec('h264')\r\n\t  .videoBitrate(800 * 1000)\r\n\t  .fps(25)\r\n\t  .audioCodec('libfaac')\r\n\t  .sampleRate(44100)\r\n\t  .channels(2)\r\n\t  .audioBitrate(128 * 1000)\r\n\t  .format('mp4')\r\n\t  .on('finish', function() {\r\n\t      next();\r\n        })\r\n        .stream().pipe(resp);\r\n    }\r\n}\r\nserver.listen(8000);\r\n\r\nwhen i open the url in Browser(s), the HTML5 video is not playing it shows only blank image. \r\n\r\nthe html code is\r\n\r\nindex.html\r\n===========\r\n\r\n<!DOCTYPE html>\r\n<html>\r\n<body>\r\n<video width=\"320\" height=\"240\" controls>\r\n  <source src=\"http://localhost:8000/transcode\" type=\"video/mp4\">\r\n  Your browser does not support the video tag.\r\n</video>\r\n</body>\r\n</html>\r\n\r\nDo i need to set content headers.. How can i render this stream as buffered, partical content or what should i do so that video gets played\r\n\r\nregards\r\nShafi\r\n\t"},"comment":{"url":"https://api.github.com/repos/trenskow/stream-transcoder.js/issues/comments/153897673","html_url":"https://github.com/trenskow/stream-transcoder.js/issues/9#issuecomment-153897673","issue_url":"https://api.github.com/repos/trenskow/stream-transcoder.js/issues/9","id":153897673,"user":{"login":"ripper2hl","id":2611201,"avatar_url":"https://avatars.githubusercontent.com/u/2611201?v=3","gravatar_id":"","url":"https://api.github.com/users/ripper2hl","html_url":"https://github.com/ripper2hl","followers_url":"https://api.github.com/users/ripper2hl/followers","following_url":"https://api.github.com/users/ripper2hl/following{/other_user}","gists_url":"https://api.github.com/users/ripper2hl/gists{/gist_id}","starred_url":"https://api.github.com/users/ripper2hl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripper2hl/subscriptions","organizations_url":"https://api.github.com/users/ripper2hl/orgs","repos_url":"https://api.github.com/users/ripper2hl/repos","events_url":"https://api.github.com/users/ripper2hl/events{/privacy}","received_events_url":"https://api.github.com/users/ripper2hl/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T23:03:08Z","updated_at":"2015-11-04T23:03:08Z","body":"@mshafieluru check [this](https://github.com/xat/castnow/blob/master/plugins/transcode.js)"}}