{"id":2134,"date":"2017-06-01T12:26:14","date_gmt":"2017-06-01T12:26:14","guid":{"rendered":"http:\/\/www.daveakerman.com\/?p=2134"},"modified":"2017-06-01T12:28:33","modified_gmt":"2017-06-01T12:28:33","slug":"youtube-streaming-from-a-dslr","status":"publish","type":"post","link":"http:\/\/www.daveakerman.com\/?p=2134","title":{"rendered":"YouTube Streaming From a DSLR"},"content":{"rendered":"<p>One of the nice things about high altitude ballooning in the UK and Europe is the community spirit and help that launchers get from others who will receive and upload the launcher&#8217;s balloon transmissions, and freely offer advice during the flight. \u00a0I think it&#8217;s a very good idea to return that favour by providing live video streams of the launch, chase and recovery where possible. \u00a0A few HABbers do this and it would be nice if more did.<\/p>\n<p>There are various methods of uploading to different streaming services, using a phone or Pi with Pi camera or a laptop with webcam. \u00a0For a balloon launch though it would be good to use a camera with zoom lens so that the balloon can be streamed once airborne. \u00a0To do this requires an SLR.<\/p>\n<p>So, how to get video from an SLR into a laptop? \u00a0Again, multiple options &#8211; either use a HDMI video capture device (higher quality but a tad expensive) or send the video over USB. \u00a0Here we will explore the USB option.<\/p>\n<p>So we need some software on the PC to receive the video stream from the camera, and to upload to a streaming service. \u00a0Again, each of these has a choice. \u00a0I&#8217;m using a Canon EOS 760D and that comes with &#8220;EOS Utility&#8221; which displays the video in a window (which we can then capture), but a neater option is a \u00a350 program called <a href=\"http:\/\/sparkosoft.com\/\">SparkoCam<\/a>, which makes a modern Canon or Nikon DSLR appear as a regular webcam thus making it easy to pass the stream onto another program. \u00a0If you want to spend nothing then instead you can use the EOS utility or Nikon equivalent plus OBS (see below) to capture from the PC screen.<\/p>\n<p>To upload to a streaming service, we need a suitable video encoder. \u00a0I&#8217;ve used Adobe&#8217;s <a href=\"https:\/\/offers.adobe.com\/en\/na\/leap\/landings\/fmle3.html\">Flash Media Live Encoder<\/a> which works well, and which works from a webcam including SparkoCam&#8217;s virtual webcam. \u00a0Here though we are going to use <a href=\"https:\/\/obsproject.com\/\">OBS (Open Broadcasting Software)<\/a>\u00a0which is rather more powerful and flexible.<\/p>\n<h1>SparkoCam<\/h1>\n<p>First,\u00a0install SparkoCam. \u00a0You can try it for free but it will watermark the video stream.<\/p>\n<p>Connect your DSLR and switch on. \u00a0It should automatically be selected by SparkoCam, and you will hear \u00a0the\u00a0mirror latch up as it switches to live video mode. \u00a0If nothing happens, check that the camera is on, that you used a data USB lead not just a charging one, and that your DSLR is supported by SparkoCam.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-2135\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_1.jpg\" alt=\"\" width=\"958\" height=\"733\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_1.jpg 958w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_1-300x230.jpg 300w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_1-768x588.jpg 768w\" sizes=\"(max-width: 958px) 100vw, 958px\" \/><\/p>\n<h1>Open Broadcasting Software<\/h1>\n<p>Now, install OBS and run either the 32-bit or (if available on your PC) 64-bit version. \u00a0OBS can be a pain to get running initially depending on if your PC has the required DLLs or not, and you may find that the 64-bit version doesn&#8217;t work but the 32-bit one does. \u00a0Or vice versa. \u00a0Error messages from OBS can be a bit cryptic too, but once it starts it works very well.<\/p>\n<p>The opening screen is a bit cryptic too till you realise what you need to do. \u00a0First, you need to add a video source to accept video from SparkoCam&#8217;s virtual webcam; click the &#8220;+&#8221; below the Sources panel:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-2139\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_2.jpg\" alt=\"\" width=\"287\" height=\"253\" \/><\/p>\n<p>and choose &#8220;Video Capture Device&#8221; from the popup menu. \u00a0eave the name as &#8220;Video Capture Device&#8221; or change to something appropriate e.g. &#8220;Canon DSLR&#8221;. \u00a0Click OK to save.<\/p>\n<p>A Properties window will appear with a preview; you can just click OK to accept the defaults. \u00a0Now the video stream is inside the main window in OBS.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-2138\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_3.jpg\" alt=\"\" width=\"479\" height=\"440\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_3.jpg 479w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_3-300x276.jpg 300w\" sizes=\"(max-width: 479px) 100vw, 479px\" \/><\/p>\n<p>This window is what will be streamed, and can contain several video sources if you want to get clever, but for now we&#8217;ll just expand the video source window, using the red drag lines, to fill the OBS source window.<img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-2137\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_4-1024x661.jpg\" alt=\"\" width=\"640\" height=\"413\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_4-1024x661.jpg 1024w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_4-300x194.jpg 300w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_4-768x496.jpg 768w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_4.jpg 1304w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>If it doesn&#8217;t fit exactly, choose Settings &#8211;&gt; Video to change the aspect ratio of the window to match the DSLR&#8217;s aspect ratio, and then expand to fit.<\/p>\n<h1>Streaming<\/h1>\n<p>The following is for YouTube; other live streaming sites should have similar options.<\/p>\n<p>Go to your <a href=\"https:\/\/www.youtube.com\/live_dashboard\">YouTube Live Dashboard<\/a>\u00a0and either choose &#8220;Stream Now&#8221; or create an &#8220;Event&#8221;; we&#8217;ll do the former. \u00a0With &#8220;Stream now&#8221; selected on the left of the screen, look at the &#8220;Encoder Setup&#8221; in the &#8220;Basic Info&#8221; section, where you will see the Server URL and Stream name\/key. \u00a0Click &#8220;Reveal&#8221; and copy the stream name to your clipboard.<\/p>\n<p>Now, in OBS, click the Settings button and then click on &#8220;Stream&#8221;. \u00a0Choose YouTube as the Service, and paste your key into &#8220;Stream key&#8221;. \u00a0Click OK to save.<\/p>\n<p>Now to start the streaming from your PC, just click the &#8220;Start Streaming&#8221; button in OBS.<\/p>\n<p>YouTube likes to buffer, but after a few seconds your YouTube page should show the stream as &#8220;Live&#8221;.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-2140\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_5.jpg\" alt=\"\" width=\"654\" height=\"552\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_5.jpg 654w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2017\/06\/a_5-300x253.jpg 300w\" sizes=\"(max-width: 654px) 100vw, 654px\" \/><\/p>\n<p>And that&#8217;s it !<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the nice things about high altitude ballooning in the UK and Europe is the community spirit and help that launchers get from others who will receive and upload the launcher&#8217;s balloon transmissions, and freely offer advice during the flight. \u00a0I think it&#8217;s a very good idea to return [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/posts\/2134"}],"collection":[{"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2134"}],"version-history":[{"count":3,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/posts\/2134\/revisions"}],"predecessor-version":[{"id":2142,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/posts\/2134\/revisions\/2142"}],"wp:attachment":[{"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2134"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}