{"id":666,"date":"2016-03-16T21:03:51","date_gmt":"2016-03-16T20:03:51","guid":{"rendered":"http:\/\/hannes.enjoys.it\/blog\/?p=666"},"modified":"2017-04-16T11:42:18","modified_gmt":"2017-04-16T09:42:18","slug":"ffmpeg-on-raspbian-raspberry-pi","status":"publish","type":"post","link":"https:\/\/hannes.enjoys.it\/blog\/2016\/03\/ffmpeg-on-raspbian-raspberry-pi\/","title":{"rendered":"ffmpeg on raspbian \/ Raspberry Pi"},"content":{"rendered":"<p>Since http:\/\/www.jeffreythompson.org\/blog\/2014\/11\/13\/installing-ffmpeg-for-raspberry-pi\/ is a bit messy, here is how you can compile ffmpeg with x264 on raspbian. Changes are building in your home directory, getting just a shallow git clone and building with all CPU cores. Also no unnecessary sudo&#8230;<\/p>\n<p><strong>Read the comments below!<\/strong><\/p>\n<p># In a directory of your choosing (I used ~\/ffmpeg):<\/p>\n<pre lang=\"bash\"># build and install x264\r\ngit clone --depth 1 git:\/\/git.videolan.org\/x264\r\ncd x264\r\n.\/configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl\r\nmake -j 4\r\nsudo make install\r\n\r\n# build and make ffmpeg\r\ngit clone --depth=1 git:\/\/source.ffmpeg.org\/ffmpeg.git\r\ncd ffmpeg\r\n.\/configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree\r\nmake -j4\r\nsudo make install<\/pre>\n<p><strong>Read the comments below!<\/strong><\/p>\n<p>Hopefully someone, somewhere will provide a repository for this kind of stuff some day.<\/p>\n<p>It takes just 25 minutes on a Raspberry Pi 3. Not hours or days like some old internet sources on old Raspis say.<\/p>\n<p>In case you are wondering v4l2 should work with this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since http:\/\/www.jeffreythompson.org\/blog\/2014\/11\/13\/installing-ffmpeg-for-raspberry-pi\/ is a bit messy, here is how you can compile ffmpeg with x264 on raspbian. Changes are building in your home directory, getting just a shallow git clone and building with all CPU cores. Also no unnecessary sudo&#8230; Read the comments below! # In a directory of your choosing (I used ~\/ffmpeg): # [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,3,12,36,37],"tags":[],"class_list":["post-666","post","type-post","status-publish","format-standard","hentry","category-commandline","category-guide","category-linux","category-raspberry-pi","category-raspbian"],"_links":{"self":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/comments?post=666"}],"version-history":[{"count":7,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/666\/revisions"}],"predecessor-version":[{"id":849,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/666\/revisions\/849"}],"wp:attachment":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/media?parent=666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/categories?post=666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/tags?post=666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}