{"action":"created","issue":{"url":"https://api.github.com/repos/cargomedia/puppet-packages-ubuntu/issues/2","labels_url":"https://api.github.com/repos/cargomedia/puppet-packages-ubuntu/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/cargomedia/puppet-packages-ubuntu/issues/2/comments","events_url":"https://api.github.com/repos/cargomedia/puppet-packages-ubuntu/issues/2/events","html_url":"https://github.com/cargomedia/puppet-packages-ubuntu/issues/2","id":112598777,"number":2,"title":"Decklink/Blackmagic driver","user":{"login":"kris-lab","id":1843523,"avatar_url":"https://avatars.githubusercontent.com/u/1843523?v=3","gravatar_id":"","url":"https://api.github.com/users/kris-lab","html_url":"https://github.com/kris-lab","followers_url":"https://api.github.com/users/kris-lab/followers","following_url":"https://api.github.com/users/kris-lab/following{/other_user}","gists_url":"https://api.github.com/users/kris-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/kris-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kris-lab/subscriptions","organizations_url":"https://api.github.com/users/kris-lab/orgs","repos_url":"https://api.github.com/users/kris-lab/repos","events_url":"https://api.github.com/users/kris-lab/events{/privacy}","received_events_url":"https://api.github.com/users/kris-lab/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cargomedia/puppet-packages-ubuntu/labels/ready","name":"ready","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"ppp0","id":1888714,"avatar_url":"https://avatars.githubusercontent.com/u/1888714?v=3","gravatar_id":"","url":"https://api.github.com/users/ppp0","html_url":"https://github.com/ppp0","followers_url":"https://api.github.com/users/ppp0/followers","following_url":"https://api.github.com/users/ppp0/following{/other_user}","gists_url":"https://api.github.com/users/ppp0/gists{/gist_id}","starred_url":"https://api.github.com/users/ppp0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppp0/subscriptions","organizations_url":"https://api.github.com/users/ppp0/orgs","repos_url":"https://api.github.com/users/ppp0/repos","events_url":"https://api.github.com/users/ppp0/events{/privacy}","received_events_url":"https://api.github.com/users/ppp0/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-21T14:14:58Z","updated_at":"2015-11-11T10:17:02Z","closed_at":"2015-11-11T10:17:01Z","body":"#### Decklink Blackmagic Studio 4K Installation\r\n\r\n##### BIOS\r\nMake sure the PCI Express configuration of motherboard fits requirements of Blackmagic card. Currently the Decklink/Blackmagic uses `PCI Express of 2nd` generation so the motherboard setting has to be updated (4th generation is default e.g. for Asus)\r\n\r\n##### Listing PCI\r\n```sh\r\nlspci | grep Blackmagic\r\n# 03:00.0 Multimedia video controller: Blackmagic Design DeckLink Studio 4K\r\n```\r\n\r\n##### Install drivers\r\n```sh\r\n# should work\r\nsudo apt-get install desktopvideo\r\n# if not, check for the newest drivers\r\nwget \"http://sw.blackmagicdesign.com/DesktopVideo/v10.5/Blackmagic_Desktop_Video_Linux_10.5.tar.gz\r\ntar xfv Blackmagic_Desktop_Video_Linux_10.5.tar.gz\r\ncd Blackmagic_Desktop_Video_Linux_10.5\r\nsudo dpkg -i desktopvideo_*.deb\r\n```\r\n\r\n##### Load kernel modules\r\n```\r\nmodprobe blackmagic\r\nmodprobe blackmagic_io\r\n```\r\n\r\n##### Verify kernel modules\r\n```\r\nlsmod | grep blackmagic\r\n# blackmagic            585728  0\r\n# blackmagic_io         430080  1 \r\n```\r\n\r\n##### List Blackmagic devices\r\n```\r\nls /dev/blackmagic/*\r\n# io0  ttyio0\r\n```\r\n\r\n##### Verify PCI and Upgrade\r\n```\r\n/usr/bin/BlackmagicFirmwareUpdater status\r\n# 0:\t/dev/blackmagic/io0 [DeckLink Studio 4K]\t0x7d\tOK\r\n\r\n/usr/bin/BlackmagicFirmwareUpdater update /dev/blackmagic/io0\r\n# /dev/blackmagic/io0 firmware update completed successfully.                                    \r\n# Please reboot your system now to activate new firmware\r\n```\r\n\r\n##### Update Gstreamer\r\nIt must be in version `1.5.2` or higher. Please follow [this step](https://github.com/cargomedia/rndmvr/issues/16#issuecomment-120643250) to install `gst-plugins-bad` which includes `Decklink` support.\r\n\r\n##### Running Gstreamer\r\n```sh\r\n$ gst-launch-1.0 -v decklinkvideosrc connection=hdmi ! queue ! videoconvert ! vp8enc ! webmmux ! filesink location=/tmp/test.webm\r\n```"},"comment":{"url":"https://api.github.com/repos/cargomedia/puppet-packages-ubuntu/issues/comments/155724509","html_url":"https://github.com/cargomedia/puppet-packages-ubuntu/issues/2#issuecomment-155724509","issue_url":"https://api.github.com/repos/cargomedia/puppet-packages-ubuntu/issues/2","id":155724509,"user":{"login":"ppp0","id":1888714,"avatar_url":"https://avatars.githubusercontent.com/u/1888714?v=3","gravatar_id":"","url":"https://api.github.com/users/ppp0","html_url":"https://github.com/ppp0","followers_url":"https://api.github.com/users/ppp0/followers","following_url":"https://api.github.com/users/ppp0/following{/other_user}","gists_url":"https://api.github.com/users/ppp0/gists{/gist_id}","starred_url":"https://api.github.com/users/ppp0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppp0/subscriptions","organizations_url":"https://api.github.com/users/ppp0/orgs","repos_url":"https://api.github.com/users/ppp0/repos","events_url":"https://api.github.com/users/ppp0/events{/privacy}","received_events_url":"https://api.github.com/users/ppp0/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T10:17:01Z","updated_at":"2015-11-11T10:17:01Z","body":"Solved in https://github.com/cargomedia/puppet-packages/issues/975"}}