{"id":127307,"date":"2022-08-29T18:37:57","date_gmt":"2022-08-29T23:37:57","guid":{"rendered":"https:\/\/www.snapwhole.com\/?page_id=127307"},"modified":"2023-01-17T01:05:10","modified_gmt":"2023-01-17T01:05:10","slug":"setup-raspberry-pi-camera-to-stream-to-youtube","status":"publish","type":"page","link":"https:\/\/www.snapwhole.com\/index.php\/setup-raspberry-pi-camera-to-stream-to-youtube\/","title":{"rendered":"Setup Raspberry Pi Camera to Stream to Youtube"},"content":{"rendered":"\n<p>I wanted to stream to Youtube using a Raspberry PI with a Pi Cam<\/p>\n\n\n\n<p>A lot easier than you think&#8230;&#8230;<\/p>\n\n\n\n<p>Engineering notes:<\/p>\n\n\n\n<p>Update Raspberry Pi with latest updates:<\/p>\n\n\n\n<p>     sudo apt update &#8211;allow-releaseinfo-change<\/p>\n\n\n\n<p>     sudo apt upgrade<\/p>\n\n\n\n<p>In Youtube, Select Create -> Go Live -> Right Now -> Start -> Select Streaming Software -> Go<\/p>\n\n\n\n<p>Select if made for kids or not<\/p>\n\n\n\n<p>Edit -> Configure just like you would an uploaded video &#8211; Description, monetizing, public\/Private\/Unlisted, Add to playlist etc<\/p>\n\n\n\n<p>copy stream key -><\/p>\n\n\n\n<p>copy stream url -><\/p>\n\n\n\n<p>kill webcam service on Raspberry Pi<\/p>\n\n\n\n<p>     sudo service webcamd stop I<\/p>\n\n\n\n<p>Start the streaming on the Raspberry Pi<\/p>\n\n\n\n<p>     ssh raspberryPI_IP_Address<\/p>\n\n\n\n<p>      screen bash<\/p>\n\n\n\n<p>     raspivid -o &#8211; -t 0 -fps 25 -g 50 -rot 180 -n -a 12 -b 6000000 -vf | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i \/dev\/zero -f h264 -thread_queue_size 256 -i &#8211; -vcodec copy -acodec aac -ab 128k -strict experimental -f flv streamurl\/stream key<\/p>\n\n\n\n<p>     Make sure to add the &#8216;\/&#8217; between the url and key<\/p>\n\n\n\n<p>verify your stream start on youtube, should be automatic<\/p>\n\n\n\n<p>detach streaming session<\/p>\n\n\n\n<p>     Cntrl-A D<\/p>\n\n\n\n<p>Check your detached sessions<\/p>\n\n\n\n<p>     screen -list<\/p>\n\n\n\n<p>To Reattach a screen session:<\/p>\n\n\n\n<p>     screen -r [session name from screen -list]<\/p>\n\n\n\n<p>To terminate a screen session:<\/p>\n\n\n\n<p>     reattach a screen session<\/p>\n\n\n\n<p>     Cntl-D<\/p>\n\n\n\n<p>And its gone<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><span style=\"font-size: revert; color: initial;\">     <\/span><\/p>\n\n\n\n<p>     <\/p>\n<div class=\"pvc_clear\"><\/div><p id=\"pvc_stats_127307\" class=\"pvc_stats all  \" data-element-id=\"127307\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.snapwhole.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p><div class=\"pvc_clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>I wanted to stream to Youtube using a Raspberry PI with a Pi Cam A lot easier than you think&#8230;&#8230; Engineering notes: Update Raspberry Pi with latest updates: sudo apt update &#8211;allow-releaseinfo-change sudo apt upgrade In Youtube, Select Create -> Go Live -> Right Now -> Start -> Select Streaming Software -> Go Select if [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_127307\" class=\"pvc_stats all  \" data-element-id=\"127307\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.snapwhole.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"a3_pvc":{"activated":true,"total_views":58,"today_views":0},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Setup Raspberry Pi Camera to Stream to Youtube - SnapWhole.com<\/title>\n<meta name=\"description\" content=\"Setup Raspberry Pi Camera to Stream to Youtube\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.snapwhole.com\/index.php\/setup-raspberry-pi-camera-to-stream-to-youtube\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setup Raspberry Pi Camera to Stream to Youtube - SnapWhole.com\" \/>\n<meta property=\"og:description\" content=\"Setup Raspberry Pi Camera to Stream to Youtube\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.snapwhole.com\/index.php\/setup-raspberry-pi-camera-to-stream-to-youtube\/\" \/>\n<meta property=\"og:site_name\" content=\"SnapWhole.com\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-17T01:05:10+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.snapwhole.com\/index.php\/setup-raspberry-pi-camera-to-stream-to-youtube\/\",\"url\":\"https:\/\/www.snapwhole.com\/index.php\/setup-raspberry-pi-camera-to-stream-to-youtube\/\",\"name\":\"Setup Raspberry Pi Camera to Stream to Youtube - SnapWhole.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.snapwhole.com\/#website\"},\"datePublished\":\"2022-08-29T23:37:57+00:00\",\"dateModified\":\"2023-01-17T01:05:10+00:00\",\"description\":\"Setup Raspberry Pi Camera to Stream to Youtube\",\"breadcrumb\":{\"@id\":\"https:\/\/www.snapwhole.com\/index.php\/setup-raspberry-pi-camera-to-stream-to-youtube\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.snapwhole.com\/index.php\/setup-raspberry-pi-camera-to-stream-to-youtube\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.snapwhole.com\/index.php\/setup-raspberry-pi-camera-to-stream-to-youtube\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.snapwhole.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setup Raspberry Pi Camera to Stream to Youtube\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.snapwhole.com\/#website\",\"url\":\"https:\/\/www.snapwhole.com\/\",\"name\":\"SnapWhole.com\",\"description\":\"Your Cool Refreshing Eclectic Destination\",\"publisher\":{\"@id\":\"https:\/\/www.snapwhole.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.snapwhole.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.snapwhole.com\/#organization\",\"name\":\"Snapwhole\",\"url\":\"https:\/\/www.snapwhole.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.snapwhole.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.snapwhole.com\/wp-content\/uploads\/2021\/04\/radioactive.jpg\",\"contentUrl\":\"https:\/\/www.snapwhole.com\/wp-content\/uploads\/2021\/04\/radioactive.jpg\",\"width\":282,\"height\":268,\"caption\":\"Snapwhole\"},\"image\":{\"@id\":\"https:\/\/www.snapwhole.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setup Raspberry Pi Camera to Stream to Youtube - SnapWhole.com","description":"Setup Raspberry Pi Camera to Stream to Youtube","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.snapwhole.com\/index.php\/setup-raspberry-pi-camera-to-stream-to-youtube\/","og_locale":"en_US","og_type":"article","og_title":"Setup Raspberry Pi Camera to Stream to Youtube - SnapWhole.com","og_description":"Setup Raspberry Pi Camera to Stream to Youtube","og_url":"https:\/\/www.snapwhole.com\/index.php\/setup-raspberry-pi-camera-to-stream-to-youtube\/","og_site_name":"SnapWhole.com","article_modified_time":"2023-01-17T01:05:10+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.snapwhole.com\/index.php\/setup-raspberry-pi-camera-to-stream-to-youtube\/","url":"https:\/\/www.snapwhole.com\/index.php\/setup-raspberry-pi-camera-to-stream-to-youtube\/","name":"Setup Raspberry Pi Camera to Stream to Youtube - SnapWhole.com","isPartOf":{"@id":"https:\/\/www.snapwhole.com\/#website"},"datePublished":"2022-08-29T23:37:57+00:00","dateModified":"2023-01-17T01:05:10+00:00","description":"Setup Raspberry Pi Camera to Stream to Youtube","breadcrumb":{"@id":"https:\/\/www.snapwhole.com\/index.php\/setup-raspberry-pi-camera-to-stream-to-youtube\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.snapwhole.com\/index.php\/setup-raspberry-pi-camera-to-stream-to-youtube\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.snapwhole.com\/index.php\/setup-raspberry-pi-camera-to-stream-to-youtube\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.snapwhole.com\/"},{"@type":"ListItem","position":2,"name":"Setup Raspberry Pi Camera to Stream to Youtube"}]},{"@type":"WebSite","@id":"https:\/\/www.snapwhole.com\/#website","url":"https:\/\/www.snapwhole.com\/","name":"SnapWhole.com","description":"Your Cool Refreshing Eclectic Destination","publisher":{"@id":"https:\/\/www.snapwhole.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.snapwhole.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.snapwhole.com\/#organization","name":"Snapwhole","url":"https:\/\/www.snapwhole.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.snapwhole.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.snapwhole.com\/wp-content\/uploads\/2021\/04\/radioactive.jpg","contentUrl":"https:\/\/www.snapwhole.com\/wp-content\/uploads\/2021\/04\/radioactive.jpg","width":282,"height":268,"caption":"Snapwhole"},"image":{"@id":"https:\/\/www.snapwhole.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/pages\/127307"}],"collection":[{"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/comments?post=127307"}],"version-history":[{"count":2,"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/pages\/127307\/revisions"}],"predecessor-version":[{"id":127309,"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/pages\/127307\/revisions\/127309"}],"wp:attachment":[{"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/media?parent=127307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}