{"id":3100,"date":"2013-03-21T18:56:37","date_gmt":"2013-03-21T18:56:37","guid":{"rendered":"http:\/\/178.62.14.192\/?p=3100"},"modified":"2013-03-21T18:56:37","modified_gmt":"2013-03-21T18:56:37","slug":"first-encoded-video-from-my-raspberrypi-camera-module-raspberry_pi","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=3100","title":{"rendered":"First encoded video from my #RaspberryPi camera module \/ @Raspberry_Pi"},"content":{"rendered":"<p>After much messing around with both ffmpeg and avconv, I&#8217;ve finally found a combination that works to convert a raw H264 recording from the camera module to something usable. I converted it to an Ogg-format video. That means that it\u00a0<em>should<\/em> display below. I haven&#8217;t figured out how to convert to MP4 yet, but if you&#8217;re using Chrome you shouldn&#8217;t have any problems.<\/p>\n<p>You may be wondering why I chose such a dull thing to point the camera at &#8211; well, you don&#8217;t get trees blowing in the breeze\u00a0<em>anywhere, <\/em>ya know!<\/p>\n<p>The call to avconv I used was as follows:<\/p>\n<p>avconv -i sample-video.h264 -b 1500k -vcodec libtheora -acodec libvorbis -ab 160000 -g 30 -s 800&#215;600 out.ogv<\/p>\n<p><video width=\"800\" height=\"600\" controls=\"controls\"><source src=\"http:\/\/109.153.184.137\/out.ogv\" type=\"video\/ogg; codecs=&quot;theora, vorbis&quot;\" \/><\/video><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After much messing around with both ffmpeg and avconv, I&#8217;ve finally found a combination that works to convert a raw H264 recording from the camera module to something usable. I converted it to an Ogg-format video. That means that it\u00a0should&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=3100\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8,36,52],"tags":[],"class_list":["post-3100","post","type-post","status-publish","format-standard","hentry","category-camera-module","category-photography","category-video"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>First encoded video from my #RaspberryPi camera module \/ @Raspberry_Pi - Raspberry Pi Pod<\/title>\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.recantha.co.uk\/blog\/?p=3100\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"First encoded video from my #RaspberryPi camera module \/ @Raspberry_Pi - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"After much messing around with both ffmpeg and avconv, I&#8217;ve finally found a combination that works to convert a raw H264 recording from the camera module to something usable. I converted it to an Ogg-format video. That means that it\u00a0should&hellip;Read more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=3100\" \/>\n<meta property=\"og:site_name\" content=\"Raspberry Pi Pod\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/recantha\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-03-21T18:56:37+00:00\" \/>\n<meta name=\"author\" content=\"Michael Horne\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@recantha\" \/>\n<meta name=\"twitter:site\" content=\"@recantha\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Horne\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=3100#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=3100\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"First encoded video from my #RaspberryPi camera module \/ @Raspberry_Pi\",\"datePublished\":\"2013-03-21T18:56:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=3100\"},\"wordCount\":133,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"articleSection\":[\"Camera module\",\"Photography\",\"Video\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=3100#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=3100\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=3100\",\"name\":\"First encoded video from my #RaspberryPi camera module \/ @Raspberry_Pi - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"datePublished\":\"2013-03-21T18:56:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=3100#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=3100\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=3100#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"First encoded video from my #RaspberryPi camera module \/ @Raspberry_Pi\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"name\":\"Raspberry Pi Pod\",\"description\":\"Experiences with the Raspberry Pi micro computer and microcontroller\",\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\",\"name\":\"Raspberry Pi Pod\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"width\":800,\"height\":337,\"caption\":\"Raspberry Pi Pod\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/recantha\/\",\"https:\/\/x.com\/recantha\",\"https:\/\/www.linkedin.com\/in\/recantha\/\",\"https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\",\"name\":\"Michael Horne\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"caption\":\"Michael Horne\"},\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"First encoded video from my #RaspberryPi camera module \/ @Raspberry_Pi - Raspberry Pi Pod","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.recantha.co.uk\/blog\/?p=3100","og_locale":"en_US","og_type":"article","og_title":"First encoded video from my #RaspberryPi camera module \/ @Raspberry_Pi - Raspberry Pi Pod","og_description":"After much messing around with both ffmpeg and avconv, I&#8217;ve finally found a combination that works to convert a raw H264 recording from the camera module to something usable. I converted it to an Ogg-format video. That means that it\u00a0should&hellip;Read more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=3100","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2013-03-21T18:56:37+00:00","author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=3100#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=3100"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"First encoded video from my #RaspberryPi camera module \/ @Raspberry_Pi","datePublished":"2013-03-21T18:56:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=3100"},"wordCount":133,"commentCount":4,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"articleSection":["Camera module","Photography","Video"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=3100#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=3100","url":"https:\/\/www.recantha.co.uk\/blog\/?p=3100","name":"First encoded video from my #RaspberryPi camera module \/ @Raspberry_Pi - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"datePublished":"2013-03-21T18:56:37+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=3100#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=3100"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=3100#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"First encoded video from my #RaspberryPi camera module \/ @Raspberry_Pi"}]},{"@type":"WebSite","@id":"https:\/\/www.recantha.co.uk\/blog\/#website","url":"https:\/\/www.recantha.co.uk\/blog\/","name":"Raspberry Pi Pod","description":"Experiences with the Raspberry Pi micro computer and microcontroller","publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.recantha.co.uk\/blog\/#organization","name":"Raspberry Pi Pod","url":"https:\/\/www.recantha.co.uk\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","width":800,"height":337,"caption":"Raspberry Pi Pod"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/recantha\/","https:\/\/x.com\/recantha","https:\/\/www.linkedin.com\/in\/recantha\/","https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg"]},{"@type":"Person","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263","name":"Michael Horne","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","caption":"Michael Horne"},"url":"https:\/\/www.recantha.co.uk\/blog\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2RsaV-O0","jetpack-related-posts":[{"id":7145,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=7145","url_meta":{"origin":3100,"position":0},"title":"Timelapse photography with the #RaspberryPi, Python and avconv","author":"Michael Horne","date":"27 November 2013","format":false,"excerpt":"Trevor Appleton has done a very good, comprehensive tutorial on using a combination of Python and avconv to take photos with the camera module and then string them together as a video. Read the tutorial here","rel":"","context":"In &quot;Camera module&quot;","block_context":{"text":"Camera module","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=8"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4106,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=4106","url_meta":{"origin":3100,"position":1},"title":"Installing avconv on the #RaspberryPi","author":"Michael Horne","date":"16 May 2013","format":false,"excerpt":"Some of you with the camera may have been trying to install avconv by using the following: sudo apt-get install avconv As you have probably discovered, this does not work and it reports that it cannot find the package. (I know, it's confusing). But it's not actually missing, it's just\u2026","rel":"","context":"In &quot;Camera module&quot;","block_context":{"text":"Camera module","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=8"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4052,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=4052","url_meta":{"origin":3100,"position":2},"title":"Streaming live with the #RaspberryPi camera module to Bambuser","author":"Michael Horne","date":"14 May 2013","format":false,"excerpt":"With the release of the camera module to a wider audience, I thought I'd share some of things I've learnt. To start off, here's some information about using the camera with Bambuser.com. This is in part taken from Marcus Olsson's blog post about streaming with a webcam. First of all,\u2026","rel":"","context":"In &quot;Camera module&quot;","block_context":{"text":"Camera module","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=8"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/static.bambuser.com\/themes\/b4\/images\/b4\/bambuser-logo.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":16113,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=16113","url_meta":{"origin":3100,"position":3},"title":"Live streaming to YouTube from your Raspberry Pi","author":"Michael Horne","date":"20 December 2016","format":false,"excerpt":"Christian Cawley over at makeuseof.com\u00a0has done a great tutorial on using avconv together with a Raspberry Pi camera module to stream to YouTube. Take a look here.","rel":"","context":"In &quot;Camera module&quot;","block_context":{"text":"Camera module","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=8"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/cdn.makeuseof.com\/wp-content\/uploads\/2015\/08\/muo-diy-picamera-device.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/cdn.makeuseof.com\/wp-content\/uploads\/2015\/08\/muo-diy-picamera-device.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/cdn.makeuseof.com\/wp-content\/uploads\/2015\/08\/muo-diy-picamera-device.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":5337,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=5337","url_meta":{"origin":3100,"position":4},"title":"#RaspberryPi timelapse photography and encoding to video","author":"Michael Horne","date":"28 July 2013","format":false,"excerpt":"Matthew Manning of Raspberry Pi IV Beginners has done an excellent video of how to take timelapse photographs with the Raspberry Pi camera module and then convert them into a video with mencoder. Great job, Matt!","rel":"","context":"In &quot;Camera module&quot;","block_context":{"text":"Camera module","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=8"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4083,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=4083","url_meta":{"origin":3100,"position":5},"title":"Convert #RaspberryPi camera module output to MP4 or FLV","author":"Michael Horne","date":"16 May 2013","format":false,"excerpt":"Once the camera module has captured video, you are left with an raw H264 file. Now, some players can already play this but what you really want to do is convert it to a common format like MP4. (This is actually 'wrapping' the H264 output inside an MP4 'container', but\u2026","rel":"","context":"In &quot;Camera module&quot;","block_context":{"text":"Camera module","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=8"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/cdn-static.cnet.co.uk\/i\/c\/blg\/cat\/desktops\/raspberry-pi-camera-module-1.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/cdn-static.cnet.co.uk\/i\/c\/blg\/cat\/desktops\/raspberry-pi-camera-module-1.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/cdn-static.cnet.co.uk\/i\/c\/blg\/cat\/desktops\/raspberry-pi-camera-module-1.jpg?resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3100"}],"version-history":[{"count":0,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3100\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}