{"action":"opened","number":48,"pull_request":{"url":"https://api.github.com/repos/StreamMachine/StreamMachine/pulls/48","id":43095840,"html_url":"https://github.com/StreamMachine/StreamMachine/pull/48","diff_url":"https://github.com/StreamMachine/StreamMachine/pull/48.diff","patch_url":"https://github.com/StreamMachine/StreamMachine/pull/48.patch","issue_url":"https://api.github.com/repos/StreamMachine/StreamMachine/issues/48","number":48,"state":"open","locked":false,"title":"Source Mounts","user":{"login":"ewr","id":204350,"avatar_url":"https://avatars.githubusercontent.com/u/204350?v=3","gravatar_id":"","url":"https://api.github.com/users/ewr","html_url":"https://github.com/ewr","followers_url":"https://api.github.com/users/ewr/followers","following_url":"https://api.github.com/users/ewr/following{/other_user}","gists_url":"https://api.github.com/users/ewr/gists{/gist_id}","starred_url":"https://api.github.com/users/ewr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewr/subscriptions","organizations_url":"https://api.github.com/users/ewr/orgs","repos_url":"https://api.github.com/users/ewr/repos","events_url":"https://api.github.com/users/ewr/events{/privacy}","received_events_url":"https://api.github.com/users/ewr/received_events","type":"User","site_admin":false},"body":"_This is a WIP feature... I still need to wrap a few edge cases up before I'll merge it._\r\n\r\nSource Mounts create an abstraction between sources and the streams that they feed. They allow multiple streams to be driven by one source input feed. For instance, at KPCC we have two variants for our HLS, a 64k mp3 stream and a standalone AAC stream. Right now that means an encoder running in the station sending three copies of our source stream up to StreamMachine. With Source Mounts, all of those streams could be driven by the same original input, with the transcoding done on the StreamMachine master.\r\n\r\nIf a stream includes a `source` value in its configuration, it will be connected to the source mount with that key. If it does not, a source mount will be auto-created using the stream name as a key, allowing existing configurations to work unchanged.\r\n\r\nIf a stream includes both a `source` value and an `ffmpeg_args` value, the data coming out of the source mount will be transcoded before it is fed into the stream.\r\n\r\n_Still to do:_\r\n\r\n* [ ] Move the sourceless alerting over to Source Mounts\r\n* [ ] Do more testing around handoffs\r\n* [ ] Flesh out the rest of the `/sources/` API functions","created_at":"2015-08-22T02:21:27Z","updated_at":"2015-08-22T02:21:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/StreamMachine/StreamMachine/pulls/48/commits","review_comments_url":"https://api.github.com/repos/StreamMachine/StreamMachine/pulls/48/comments","review_comment_url":"https://api.github.com/repos/StreamMachine/StreamMachine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StreamMachine/StreamMachine/issues/48/comments","statuses_url":"https://api.github.com/repos/StreamMachine/StreamMachine/statuses/b394aaed5ea9554334cdcf0d33765912d234301c","head":{"label":"StreamMachine:SourceMounts","ref":"SourceMounts","sha":"b394aaed5ea9554334cdcf0d33765912d234301c","user":{"login":"StreamMachine","id":1715159,"avatar_url":"https://avatars.githubusercontent.com/u/1715159?v=3","gravatar_id":"","url":"https://api.github.com/users/StreamMachine","html_url":"https://github.com/StreamMachine","followers_url":"https://api.github.com/users/StreamMachine/followers","following_url":"https://api.github.com/users/StreamMachine/following{/other_user}","gists_url":"https://api.github.com/users/StreamMachine/gists{/gist_id}","starred_url":"https://api.github.com/users/StreamMachine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StreamMachine/subscriptions","organizations_url":"https://api.github.com/users/StreamMachine/orgs","repos_url":"https://api.github.com/users/StreamMachine/repos","events_url":"https://api.github.com/users/StreamMachine/events{/privacy}","received_events_url":"https://api.github.com/users/StreamMachine/received_events","type":"Organization","site_admin":false},"repo":{"id":4255505,"name":"StreamMachine","full_name":"StreamMachine/StreamMachine","owner":{"login":"StreamMachine","id":1715159,"avatar_url":"https://avatars.githubusercontent.com/u/1715159?v=3","gravatar_id":"","url":"https://api.github.com/users/StreamMachine","html_url":"https://github.com/StreamMachine","followers_url":"https://api.github.com/users/StreamMachine/followers","following_url":"https://api.github.com/users/StreamMachine/following{/other_user}","gists_url":"https://api.github.com/users/StreamMachine/gists{/gist_id}","starred_url":"https://api.github.com/users/StreamMachine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StreamMachine/subscriptions","organizations_url":"https://api.github.com/users/StreamMachine/orgs","repos_url":"https://api.github.com/users/StreamMachine/repos","events_url":"https://api.github.com/users/StreamMachine/events{/privacy}","received_events_url":"https://api.github.com/users/StreamMachine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StreamMachine/StreamMachine","description":"An experiment in next-generation streaming audio infrastructure for radio stations.","fork":false,"url":"https://api.github.com/repos/StreamMachine/StreamMachine","forks_url":"https://api.github.com/repos/StreamMachine/StreamMachine/forks","keys_url":"https://api.github.com/repos/StreamMachine/StreamMachine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StreamMachine/StreamMachine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StreamMachine/StreamMachine/teams","hooks_url":"https://api.github.com/repos/StreamMachine/StreamMachine/hooks","issue_events_url":"https://api.github.com/repos/StreamMachine/StreamMachine/issues/events{/number}","events_url":"https://api.github.com/repos/StreamMachine/StreamMachine/events","assignees_url":"https://api.github.com/repos/StreamMachine/StreamMachine/assignees{/user}","branches_url":"https://api.github.com/repos/StreamMachine/StreamMachine/branches{/branch}","tags_url":"https://api.github.com/repos/StreamMachine/StreamMachine/tags","blobs_url":"https://api.github.com/repos/StreamMachine/StreamMachine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StreamMachine/StreamMachine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StreamMachine/StreamMachine/git/refs{/sha}","trees_url":"https://api.github.com/repos/StreamMachine/StreamMachine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StreamMachine/StreamMachine/statuses/{sha}","languages_url":"https://api.github.com/repos/StreamMachine/StreamMachine/languages","stargazers_url":"https://api.github.com/repos/StreamMachine/StreamMachine/stargazers","contributors_url":"https://api.github.com/repos/StreamMachine/StreamMachine/contributors","subscribers_url":"https://api.github.com/repos/StreamMachine/StreamMachine/subscribers","subscription_url":"https://api.github.com/repos/StreamMachine/StreamMachine/subscription","commits_url":"https://api.github.com/repos/StreamMachine/StreamMachine/commits{/sha}","git_commits_url":"https://api.github.com/repos/StreamMachine/StreamMachine/git/commits{/sha}","comments_url":"https://api.github.com/repos/StreamMachine/StreamMachine/comments{/number}","issue_comment_url":"https://api.github.com/repos/StreamMachine/StreamMachine/issues/comments{/number}","contents_url":"https://api.github.com/repos/StreamMachine/StreamMachine/contents/{+path}","compare_url":"https://api.github.com/repos/StreamMachine/StreamMachine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StreamMachine/StreamMachine/merges","archive_url":"https://api.github.com/repos/StreamMachine/StreamMachine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StreamMachine/StreamMachine/downloads","issues_url":"https://api.github.com/repos/StreamMachine/StreamMachine/issues{/number}","pulls_url":"https://api.github.com/repos/StreamMachine/StreamMachine/pulls{/number}","milestones_url":"https://api.github.com/repos/StreamMachine/StreamMachine/milestones{/number}","notifications_url":"https://api.github.com/repos/StreamMachine/StreamMachine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StreamMachine/StreamMachine/labels{/name}","releases_url":"https://api.github.com/repos/StreamMachine/StreamMachine/releases{/id}","created_at":"2012-05-08T00:11:24Z","updated_at":"2015-08-13T02:58:59Z","pushed_at":"2015-08-22T02:12:24Z","git_url":"git://github.com/StreamMachine/StreamMachine.git","ssh_url":"git@github.com:StreamMachine/StreamMachine.git","clone_url":"https://github.com/StreamMachine/StreamMachine.git","svn_url":"https://github.com/StreamMachine/StreamMachine","homepage":"","size":13972,"stargazers_count":82,"watchers_count":82,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":9,"forks":9,"open_issues":9,"watchers":82,"default_branch":"master"}},"base":{"label":"StreamMachine:master","ref":"master","sha":"04c02a40d15bcea9ced191bc4813a132e1ae274a","user":{"login":"StreamMachine","id":1715159,"avatar_url":"https://avatars.githubusercontent.com/u/1715159?v=3","gravatar_id":"","url":"https://api.github.com/users/StreamMachine","html_url":"https://github.com/StreamMachine","followers_url":"https://api.github.com/users/StreamMachine/followers","following_url":"https://api.github.com/users/StreamMachine/following{/other_user}","gists_url":"https://api.github.com/users/StreamMachine/gists{/gist_id}","starred_url":"https://api.github.com/users/StreamMachine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StreamMachine/subscriptions","organizations_url":"https://api.github.com/users/StreamMachine/orgs","repos_url":"https://api.github.com/users/StreamMachine/repos","events_url":"https://api.github.com/users/StreamMachine/events{/privacy}","received_events_url":"https://api.github.com/users/StreamMachine/received_events","type":"Organization","site_admin":false},"repo":{"id":4255505,"name":"StreamMachine","full_name":"StreamMachine/StreamMachine","owner":{"login":"StreamMachine","id":1715159,"avatar_url":"https://avatars.githubusercontent.com/u/1715159?v=3","gravatar_id":"","url":"https://api.github.com/users/StreamMachine","html_url":"https://github.com/StreamMachine","followers_url":"https://api.github.com/users/StreamMachine/followers","following_url":"https://api.github.com/users/StreamMachine/following{/other_user}","gists_url":"https://api.github.com/users/StreamMachine/gists{/gist_id}","starred_url":"https://api.github.com/users/StreamMachine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StreamMachine/subscriptions","organizations_url":"https://api.github.com/users/StreamMachine/orgs","repos_url":"https://api.github.com/users/StreamMachine/repos","events_url":"https://api.github.com/users/StreamMachine/events{/privacy}","received_events_url":"https://api.github.com/users/StreamMachine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StreamMachine/StreamMachine","description":"An experiment in next-generation streaming audio infrastructure for radio stations.","fork":false,"url":"https://api.github.com/repos/StreamMachine/StreamMachine","forks_url":"https://api.github.com/repos/StreamMachine/StreamMachine/forks","keys_url":"https://api.github.com/repos/StreamMachine/StreamMachine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StreamMachine/StreamMachine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StreamMachine/StreamMachine/teams","hooks_url":"https://api.github.com/repos/StreamMachine/StreamMachine/hooks","issue_events_url":"https://api.github.com/repos/StreamMachine/StreamMachine/issues/events{/number}","events_url":"https://api.github.com/repos/StreamMachine/StreamMachine/events","assignees_url":"https://api.github.com/repos/StreamMachine/StreamMachine/assignees{/user}","branches_url":"https://api.github.com/repos/StreamMachine/StreamMachine/branches{/branch}","tags_url":"https://api.github.com/repos/StreamMachine/StreamMachine/tags","blobs_url":"https://api.github.com/repos/StreamMachine/StreamMachine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StreamMachine/StreamMachine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StreamMachine/StreamMachine/git/refs{/sha}","trees_url":"https://api.github.com/repos/StreamMachine/StreamMachine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StreamMachine/StreamMachine/statuses/{sha}","languages_url":"https://api.github.com/repos/StreamMachine/StreamMachine/languages","stargazers_url":"https://api.github.com/repos/StreamMachine/StreamMachine/stargazers","contributors_url":"https://api.github.com/repos/StreamMachine/StreamMachine/contributors","subscribers_url":"https://api.github.com/repos/StreamMachine/StreamMachine/subscribers","subscription_url":"https://api.github.com/repos/StreamMachine/StreamMachine/subscription","commits_url":"https://api.github.com/repos/StreamMachine/StreamMachine/commits{/sha}","git_commits_url":"https://api.github.com/repos/StreamMachine/StreamMachine/git/commits{/sha}","comments_url":"https://api.github.com/repos/StreamMachine/StreamMachine/comments{/number}","issue_comment_url":"https://api.github.com/repos/StreamMachine/StreamMachine/issues/comments{/number}","contents_url":"https://api.github.com/repos/StreamMachine/StreamMachine/contents/{+path}","compare_url":"https://api.github.com/repos/StreamMachine/StreamMachine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StreamMachine/StreamMachine/merges","archive_url":"https://api.github.com/repos/StreamMachine/StreamMachine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StreamMachine/StreamMachine/downloads","issues_url":"https://api.github.com/repos/StreamMachine/StreamMachine/issues{/number}","pulls_url":"https://api.github.com/repos/StreamMachine/StreamMachine/pulls{/number}","milestones_url":"https://api.github.com/repos/StreamMachine/StreamMachine/milestones{/number}","notifications_url":"https://api.github.com/repos/StreamMachine/StreamMachine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StreamMachine/StreamMachine/labels{/name}","releases_url":"https://api.github.com/repos/StreamMachine/StreamMachine/releases{/id}","created_at":"2012-05-08T00:11:24Z","updated_at":"2015-08-13T02:58:59Z","pushed_at":"2015-08-22T02:12:24Z","git_url":"git://github.com/StreamMachine/StreamMachine.git","ssh_url":"git@github.com:StreamMachine/StreamMachine.git","clone_url":"https://github.com/StreamMachine/StreamMachine.git","svn_url":"https://github.com/StreamMachine/StreamMachine","homepage":"","size":13972,"stargazers_count":82,"watchers_count":82,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":9,"forks":9,"open_issues":9,"watchers":82,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StreamMachine/StreamMachine/pulls/48"},"html":{"href":"https://github.com/StreamMachine/StreamMachine/pull/48"},"issue":{"href":"https://api.github.com/repos/StreamMachine/StreamMachine/issues/48"},"comments":{"href":"https://api.github.com/repos/StreamMachine/StreamMachine/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/StreamMachine/StreamMachine/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/StreamMachine/StreamMachine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StreamMachine/StreamMachine/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/StreamMachine/StreamMachine/statuses/b394aaed5ea9554334cdcf0d33765912d234301c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":1076,"deletions":893,"changed_files":40}}