{"action":"created","comment":{"url":"https://api.github.com/repos/timvideos/gst-switch/pulls/comments/22765033","id":22765033,"diff_hunk":"@@ -212,6 +212,27 @@ interlaced video on the sender's side;\n *FIXME: Write some example scripts which show gst-launch-1.0 usage for capturing\n from DV, v4l, decklink cards, etc.*\n \n+##### v4l2src\n+\n+To stream from a v4l2src we need to do the following things;\n+ * Decode the incoming video (it could be mjpeg, h264 or something else).\n+ * Convert the fps (videorate), color space (videoconvert) and resolution\n+   (videoscale). We use 'add-borders' to keep the aspect ratio correct.\n+ * Serialize the data (gdppay).\n+ * Send it off to the server.\n+\n+```bash\n+gst-launch-1.0 v4l2src device=/dev/video0 \\\n+        ! decodebin \\\n+        ! videorate \\\n+        ! videoconvert \\\n+        ! videoscale add-borders=1 \\\n+        ! video/x-raw,format=I420,width=300,height=200,framerate=25/1 \\","path":"README.md","position":19,"original_position":19,"commit_id":"346f2604c617b9004300d42251c460c1e359ff52","original_commit_id":"346f2604c617b9004300d42251c460c1e359ff52","user":{"login":"hyades","id":1886470,"avatar_url":"https://avatars.githubusercontent.com/u/1886470?v=3","gravatar_id":"","url":"https://api.github.com/users/hyades","html_url":"https://github.com/hyades","followers_url":"https://api.github.com/users/hyades/followers","following_url":"https://api.github.com/users/hyades/following{/other_user}","gists_url":"https://api.github.com/users/hyades/gists{/gist_id}","starred_url":"https://api.github.com/users/hyades/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyades/subscriptions","organizations_url":"https://api.github.com/users/hyades/orgs","repos_url":"https://api.github.com/users/hyades/repos","events_url":"https://api.github.com/users/hyades/events{/privacy}","received_events_url":"https://api.github.com/users/hyades/received_events","type":"User","site_admin":false},"body":"this should be updated for 720p.","created_at":"2015-01-11T08:07:33Z","updated_at":"2015-01-11T08:07:33Z","html_url":"https://github.com/timvideos/gst-switch/pull/112#discussion_r22765033","pull_request_url":"https://api.github.com/repos/timvideos/gst-switch/pulls/112","_links":{"self":{"href":"https://api.github.com/repos/timvideos/gst-switch/pulls/comments/22765033"},"html":{"href":"https://github.com/timvideos/gst-switch/pull/112#discussion_r22765033"},"pull_request":{"href":"https://api.github.com/repos/timvideos/gst-switch/pulls/112"}}},"pull_request":{"url":"https://api.github.com/repos/timvideos/gst-switch/pulls/112","id":27156122,"html_url":"https://github.com/timvideos/gst-switch/pull/112","diff_url":"https://github.com/timvideos/gst-switch/pull/112.diff","patch_url":"https://github.com/timvideos/gst-switch/pull/112.patch","issue_url":"https://api.github.com/repos/timvideos/gst-switch/issues/112","number":112,"state":"open","locked":false,"title":"Updating README.md with gst-launch commands.","user":{"login":"mithro","id":21212,"avatar_url":"https://avatars.githubusercontent.com/u/21212?v=3","gravatar_id":"","url":"https://api.github.com/users/mithro","html_url":"https://github.com/mithro","followers_url":"https://api.github.com/users/mithro/followers","following_url":"https://api.github.com/users/mithro/following{/other_user}","gists_url":"https://api.github.com/users/mithro/gists{/gist_id}","starred_url":"https://api.github.com/users/mithro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mithro/subscriptions","organizations_url":"https://api.github.com/users/mithro/orgs","repos_url":"https://api.github.com/users/mithro/repos","events_url":"https://api.github.com/users/mithro/events{/privacy}","received_events_url":"https://api.github.com/users/mithro/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-10T23:18:46Z","updated_at":"2015-01-11T08:07:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ac4904e14bf5f471e0d782f5021d62102f77113","assignee":null,"milestone":{"url":"https://api.github.com/repos/timvideos/gst-switch/milestones/2","labels_url":"https://api.github.com/repos/timvideos/gst-switch/milestones/2/labels","id":911889,"number":2,"title":"At TimVideos Sprints","description":"Things to be fixed at the TimVideos sprints","creator":{"login":"mithro","id":21212,"avatar_url":"https://avatars.githubusercontent.com/u/21212?v=3","gravatar_id":"","url":"https://api.github.com/users/mithro","html_url":"https://github.com/mithro","followers_url":"https://api.github.com/users/mithro/followers","following_url":"https://api.github.com/users/mithro/following{/other_user}","gists_url":"https://api.github.com/users/mithro/gists{/gist_id}","starred_url":"https://api.github.com/users/mithro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mithro/subscriptions","organizations_url":"https://api.github.com/users/mithro/orgs","repos_url":"https://api.github.com/users/mithro/repos","events_url":"https://api.github.com/users/mithro/events{/privacy}","received_events_url":"https://api.github.com/users/mithro/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":24,"state":"open","created_at":"2014-12-22T06:04:20Z","updated_at":"2015-01-10T23:54:14Z","due_on":"2015-01-11T13:30:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/timvideos/gst-switch/pulls/112/commits","review_comments_url":"https://api.github.com/repos/timvideos/gst-switch/pulls/112/comments","review_comment_url":"https://api.github.com/repos/timvideos/gst-switch/pulls/comments/{number}","comments_url":"https://api.github.com/repos/timvideos/gst-switch/issues/112/comments","statuses_url":"https://api.github.com/repos/timvideos/gst-switch/statuses/346f2604c617b9004300d42251c460c1e359ff52","head":{"label":"mithro:master","ref":"master","sha":"346f2604c617b9004300d42251c460c1e359ff52","user":{"login":"mithro","id":21212,"avatar_url":"https://avatars.githubusercontent.com/u/21212?v=3","gravatar_id":"","url":"https://api.github.com/users/mithro","html_url":"https://github.com/mithro","followers_url":"https://api.github.com/users/mithro/followers","following_url":"https://api.github.com/users/mithro/following{/other_user}","gists_url":"https://api.github.com/users/mithro/gists{/gist_id}","starred_url":"https://api.github.com/users/mithro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mithro/subscriptions","organizations_url":"https://api.github.com/users/mithro/orgs","repos_url":"https://api.github.com/users/mithro/repos","events_url":"https://api.github.com/users/mithro/events{/privacy}","received_events_url":"https://api.github.com/users/mithro/received_events","type":"User","site_admin":false},"repo":{"id":26175629,"name":"gst-switch","full_name":"mithro/gst-switch","owner":{"login":"mithro","id":21212,"avatar_url":"https://avatars.githubusercontent.com/u/21212?v=3","gravatar_id":"","url":"https://api.github.com/users/mithro","html_url":"https://github.com/mithro","followers_url":"https://api.github.com/users/mithro/followers","following_url":"https://api.github.com/users/mithro/following{/other_user}","gists_url":"https://api.github.com/users/mithro/gists{/gist_id}","starred_url":"https://api.github.com/users/mithro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mithro/subscriptions","organizations_url":"https://api.github.com/users/mithro/orgs","repos_url":"https://api.github.com/users/mithro/repos","events_url":"https://api.github.com/users/mithro/events{/privacy}","received_events_url":"https://api.github.com/users/mithro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mithro/gst-switch","description":"A DVswitch replacement basing on GStreamer.","fork":true,"url":"https://api.github.com/repos/mithro/gst-switch","forks_url":"https://api.github.com/repos/mithro/gst-switch/forks","keys_url":"https://api.github.com/repos/mithro/gst-switch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mithro/gst-switch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mithro/gst-switch/teams","hooks_url":"https://api.github.com/repos/mithro/gst-switch/hooks","issue_events_url":"https://api.github.com/repos/mithro/gst-switch/issues/events{/number}","events_url":"https://api.github.com/repos/mithro/gst-switch/events","assignees_url":"https://api.github.com/repos/mithro/gst-switch/assignees{/user}","branches_url":"https://api.github.com/repos/mithro/gst-switch/branches{/branch}","tags_url":"https://api.github.com/repos/mithro/gst-switch/tags","blobs_url":"https://api.github.com/repos/mithro/gst-switch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mithro/gst-switch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mithro/gst-switch/git/refs{/sha}","trees_url":"https://api.github.com/repos/mithro/gst-switch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mithro/gst-switch/statuses/{sha}","languages_url":"https://api.github.com/repos/mithro/gst-switch/languages","stargazers_url":"https://api.github.com/repos/mithro/gst-switch/stargazers","contributors_url":"https://api.github.com/repos/mithro/gst-switch/contributors","subscribers_url":"https://api.github.com/repos/mithro/gst-switch/subscribers","subscription_url":"https://api.github.com/repos/mithro/gst-switch/subscription","commits_url":"https://api.github.com/repos/mithro/gst-switch/commits{/sha}","git_commits_url":"https://api.github.com/repos/mithro/gst-switch/git/commits{/sha}","comments_url":"https://api.github.com/repos/mithro/gst-switch/comments{/number}","issue_comment_url":"https://api.github.com/repos/mithro/gst-switch/issues/comments/{number}","contents_url":"https://api.github.com/repos/mithro/gst-switch/contents/{+path}","compare_url":"https://api.github.com/repos/mithro/gst-switch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mithro/gst-switch/merges","archive_url":"https://api.github.com/repos/mithro/gst-switch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mithro/gst-switch/downloads","issues_url":"https://api.github.com/repos/mithro/gst-switch/issues{/number}","pulls_url":"https://api.github.com/repos/mithro/gst-switch/pulls{/number}","milestones_url":"https://api.github.com/repos/mithro/gst-switch/milestones{/number}","notifications_url":"https://api.github.com/repos/mithro/gst-switch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mithro/gst-switch/labels{/name}","releases_url":"https://api.github.com/repos/mithro/gst-switch/releases{/id}","created_at":"2014-11-04T15:43:10Z","updated_at":"2015-01-10T10:10:57Z","pushed_at":"2015-01-10T23:40:12Z","git_url":"git://github.com/mithro/gst-switch.git","ssh_url":"git@github.com:mithro/gst-switch.git","clone_url":"https://github.com/mithro/gst-switch.git","svn_url":"https://github.com/mithro/gst-switch","homepage":null,"size":3160,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"timvideos:master","ref":"master","sha":"27a2d4052be8893532680e31b3396e1e271e48a9","user":{"login":"timvideos","id":811205,"avatar_url":"https://avatars.githubusercontent.com/u/811205?v=3","gravatar_id":"","url":"https://api.github.com/users/timvideos","html_url":"https://github.com/timvideos","followers_url":"https://api.github.com/users/timvideos/followers","following_url":"https://api.github.com/users/timvideos/following{/other_user}","gists_url":"https://api.github.com/users/timvideos/gists{/gist_id}","starred_url":"https://api.github.com/users/timvideos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timvideos/subscriptions","organizations_url":"https://api.github.com/users/timvideos/orgs","repos_url":"https://api.github.com/users/timvideos/repos","events_url":"https://api.github.com/users/timvideos/events{/privacy}","received_events_url":"https://api.github.com/users/timvideos/received_events","type":"Organization","site_admin":false},"repo":{"id":7572862,"name":"gst-switch","full_name":"timvideos/gst-switch","owner":{"login":"timvideos","id":811205,"avatar_url":"https://avatars.githubusercontent.com/u/811205?v=3","gravatar_id":"","url":"https://api.github.com/users/timvideos","html_url":"https://github.com/timvideos","followers_url":"https://api.github.com/users/timvideos/followers","following_url":"https://api.github.com/users/timvideos/following{/other_user}","gists_url":"https://api.github.com/users/timvideos/gists{/gist_id}","starred_url":"https://api.github.com/users/timvideos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timvideos/subscriptions","organizations_url":"https://api.github.com/users/timvideos/orgs","repos_url":"https://api.github.com/users/timvideos/repos","events_url":"https://api.github.com/users/timvideos/events{/privacy}","received_events_url":"https://api.github.com/users/timvideos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/timvideos/gst-switch","description":"A DVswitch replacement basing on GStreamer.","fork":true,"url":"https://api.github.com/repos/timvideos/gst-switch","forks_url":"https://api.github.com/repos/timvideos/gst-switch/forks","keys_url":"https://api.github.com/repos/timvideos/gst-switch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timvideos/gst-switch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timvideos/gst-switch/teams","hooks_url":"https://api.github.com/repos/timvideos/gst-switch/hooks","issue_events_url":"https://api.github.com/repos/timvideos/gst-switch/issues/events{/number}","events_url":"https://api.github.com/repos/timvideos/gst-switch/events","assignees_url":"https://api.github.com/repos/timvideos/gst-switch/assignees{/user}","branches_url":"https://api.github.com/repos/timvideos/gst-switch/branches{/branch}","tags_url":"https://api.github.com/repos/timvideos/gst-switch/tags","blobs_url":"https://api.github.com/repos/timvideos/gst-switch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timvideos/gst-switch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timvideos/gst-switch/git/refs{/sha}","trees_url":"https://api.github.com/repos/timvideos/gst-switch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timvideos/gst-switch/statuses/{sha}","languages_url":"https://api.github.com/repos/timvideos/gst-switch/languages","stargazers_url":"https://api.github.com/repos/timvideos/gst-switch/stargazers","contributors_url":"https://api.github.com/repos/timvideos/gst-switch/contributors","subscribers_url":"https://api.github.com/repos/timvideos/gst-switch/subscribers","subscription_url":"https://api.github.com/repos/timvideos/gst-switch/subscription","commits_url":"https://api.github.com/repos/timvideos/gst-switch/commits{/sha}","git_commits_url":"https://api.github.com/repos/timvideos/gst-switch/git/commits{/sha}","comments_url":"https://api.github.com/repos/timvideos/gst-switch/comments{/number}","issue_comment_url":"https://api.github.com/repos/timvideos/gst-switch/issues/comments/{number}","contents_url":"https://api.github.com/repos/timvideos/gst-switch/contents/{+path}","compare_url":"https://api.github.com/repos/timvideos/gst-switch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timvideos/gst-switch/merges","archive_url":"https://api.github.com/repos/timvideos/gst-switch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timvideos/gst-switch/downloads","issues_url":"https://api.github.com/repos/timvideos/gst-switch/issues{/number}","pulls_url":"https://api.github.com/repos/timvideos/gst-switch/pulls{/number}","milestones_url":"https://api.github.com/repos/timvideos/gst-switch/milestones{/number}","notifications_url":"https://api.github.com/repos/timvideos/gst-switch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timvideos/gst-switch/labels{/name}","releases_url":"https://api.github.com/repos/timvideos/gst-switch/releases{/id}","created_at":"2013-01-12T07:31:28Z","updated_at":"2015-01-10T07:25:23Z","pushed_at":"2015-01-10T07:25:22Z","git_url":"git://github.com/timvideos/gst-switch.git","ssh_url":"git@github.com:timvideos/gst-switch.git","clone_url":"https://github.com/timvideos/gst-switch.git","svn_url":"https://github.com/timvideos/gst-switch","homepage":null,"size":3508,"stargazers_count":17,"watchers_count":17,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":52,"forks":7,"open_issues":52,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/timvideos/gst-switch/pulls/112"},"html":{"href":"https://github.com/timvideos/gst-switch/pull/112"},"issue":{"href":"https://api.github.com/repos/timvideos/gst-switch/issues/112"},"comments":{"href":"https://api.github.com/repos/timvideos/gst-switch/issues/112/comments"},"review_comments":{"href":"https://api.github.com/repos/timvideos/gst-switch/pulls/112/comments"},"review_comment":{"href":"https://api.github.com/repos/timvideos/gst-switch/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/timvideos/gst-switch/pulls/112/commits"},"statuses":{"href":"https://api.github.com/repos/timvideos/gst-switch/statuses/346f2604c617b9004300d42251c460c1e359ff52"}}}}