{"id":1426,"date":"2018-10-23T02:34:54","date_gmt":"2018-10-23T02:34:54","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=1426"},"modified":"2018-10-24T02:22:39","modified_gmt":"2018-10-24T02:22:39","slug":"ffmpeg-install-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/23\/ffmpeg-install-on-centos-7\/","title":{"rendered":"FFMpeg Install On CentOS 7"},"content":{"rendered":"<p>FFmpeg is a video editing software that can be used to convert audio and video streams in linux. Compiling ffmpeg from source can be quite complex, so there are a couple alternatives, either installing from yum or a static build already created. If you are looking for a more recent release than you should follow the static built as opposed to installing from a repository. More information can be found about ffmpeg on their <a href=\"https:\/\/ffmpeg.org\/\">site<\/a><\/p>\n<h2>Installing FFmpeg from a repository<\/h2>\n<p>First install the epel-release<\/p>\n<p>yum -y install epel-release<\/p>\n<p>Install the nux repository<\/p>\n<p>rpm -Uvh http:\/\/li.nux.ro\/download\/nux\/dextop\/el7\/x86_64\/nux-dextop-release-0-5.el7.nux.noarch.rpm<\/p>\n<p>Install ffmpeg and ffmpeg -devel packages<\/p>\n<p>yum install ffmpeg ffmpeg-devel -y<\/p>\n<p>Make sure it works:<\/p>\n<p># ffmpeg -version<br \/>\nffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers<br \/>\nbuilt with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)<br \/>\nconfiguration: &#8211;prefix=\/usr &#8211;bindir=\/usr\/bin &#8211;datadir=\/usr\/share\/ffmpeg &#8211;incdir=\/usr\/include\/ffmpeg &#8211;libdir=\/usr\/lib64 &#8211;mandir=\/usr\/share\/man &#8211;arch=x86_64 &#8211;optflags=&#8217;-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong &#8211;param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic&#8217; &#8211;enable-bzlib &#8211;disable-crystalhd &#8211;enable-gnutls &#8211;enable-ladspa &#8211;enable-libass &#8211;enable-libcdio &#8211;enable-libdc1394 &#8211;enable-libfaac &#8211;enable-nonfree &#8211;enable-libfdk-aac &#8211;enable-nonfree &#8211;disable-indev=jack &#8211;enable-libfreetype &#8211;enable-libgsm &#8211;enable-libmp3lame &#8211;enable-openal &#8211;enable-libopenjpeg &#8211;enable-libopus &#8211;enable-libpulse &#8211;enable-libschroedinger &#8211;enable-libsoxr &#8211;enable-libspeex &#8211;enable-libtheora &#8211;enable-libvorbis &#8211;enable-libv4l2 &#8211;enable-libx264 &#8211;enable-libx265 &#8211;enable-libxvid &#8211;enable-x11grab &#8211;enable-avfilter &#8211;enable-avresample &#8211;enable-postproc &#8211;enable-pthreads &#8211;disable-static &#8211;enable-shared &#8211;enable-gpl &#8211;disable-debug &#8211;disable-stripping &#8211;shlibdir=\/usr\/lib64 &#8211;enable-runtime-cpudetect<br \/>\nlibavutil 54. 20.100 \/ 54. 20.100<br \/>\nlibavcodec 56. 26.100 \/ 56. 26.100<br \/>\nlibavformat 56. 25.101 \/ 56. 25.101<br \/>\nlibavdevice 56. 4.100 \/ 56. 4.100<br \/>\nlibavfilter 5. 11.102 \/ 5. 11.102<br \/>\nlibavresample 2. 1. 0 \/ 2. 1. 0<br \/>\nlibswscale 3. 1.101 \/ 3. 1.101<br \/>\nlibswresample 1. 1.100 \/ 1. 1.100<br \/>\nlibpostproc 53. 3.100 \/ 53. 3.100<\/p>\n<p>That is it for installing with a repository.<\/p>\n<h2>Installing a static prebuilt version of FFmpeg<\/h2>\n<p>Get the installer script:<\/p>\n<p>wget https:\/\/raw.githubusercontent.com\/q3aql\/ffmpeg-install\/master\/ffmpeg-install<\/p>\n<p>Make it executable<\/p>\n<p>chmod a+x ffmpeg-install<\/p>\n<p>Install a release version<\/p>\n<p>.\/ffmpeg-install &#8211;install release<\/p>\n<p>Make sure it works:<\/p>\n<p># ffmpeg -version<br \/>\nffmpeg version 3.3.2-static http:\/\/johnvansickle.com\/ffmpeg\/ Copyright (c) 2000-2017 the FFmpeg developers<br \/>\nbuilt with gcc 5.4.1 (Debian 5.4.1-11) 20170519<br \/>\nconfiguration: &#8211;enable-gpl &#8211;enable-version3 &#8211;enable-static &#8211;disable-debug &#8211;disable-ffplay &#8211;disable-indev=sndio &#8211;disable-outdev=sndio &#8211;cc=gcc-5 &#8211;enable-fontconfig &#8211;enable-frei0r &#8211;enable-gnutls &#8211;enable-gray &#8211;enable-libass &#8211;enable-libfreetype &#8211;enable-libfribidi &#8211;enable-libmp3lame &#8211;enable-libopencore-amrnb &#8211;enable-libopencore-amrwb &#8211;enable-libopenjpeg &#8211;enable-libopus &#8211;enable-librtmp &#8211;enable-libsoxr &#8211;enable-libspeex &#8211;enable-libtheora &#8211;enable-libvidstab &#8211;enable-libvo-amrwbenc &#8211;enable-libvorbis &#8211;enable-libvpx &#8211;enable-libwebp &#8211;enable-libx264 &#8211;enable-libx265 &#8211;enable-libxvid &#8211;enable-libzimg<br \/>\nlibavutil 55. 58.100 \/ 55. 58.100<br \/>\nlibavcodec 57. 89.100 \/ 57. 89.100<br \/>\nlibavformat 57. 71.100 \/ 57. 71.100<br \/>\nlibavdevice 57. 6.100 \/ 57. 6.100<br \/>\nlibavfilter 6. 82.100 \/ 6. 82.100<br \/>\nlibswscale 4. 6.100 \/ 4. 6.100<br \/>\nlibswresample 2. 7.100 \/ 2. 7.100<br \/>\nlibpostproc 54. 5.100 \/ 54. 5.100<\/p>\n<p>Thats it for installing a static build.<\/p>\n<p>Jun 21, 2017LinuxAdmin.io<\/p>\n<p><a href=\"https:\/\/linuxadmin.io\/install-ffmpeg-on-centos-7\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>FFmpeg is a video editing software that can be used to convert audio and video streams in linux. Compiling ffmpeg from source can be quite complex, so there are a couple alternatives, either installing from yum or a static build already created. If you are looking for a more recent release than you should follow &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/23\/ffmpeg-install-on-centos-7\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;FFMpeg Install On CentOS 7&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1426","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1426","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=1426"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1426\/revisions"}],"predecessor-version":[{"id":1487,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1426\/revisions\/1487"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=1426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=1426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=1426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}