{"id":162,"date":"2010-02-13T13:17:21","date_gmt":"2010-02-13T13:17:21","guid":{"rendered":"http:\/\/hosting-marketers.com\/news\/?p=162"},"modified":"2010-10-30T18:26:05","modified_gmt":"2010-10-30T18:26:05","slug":"how-to-install-the-latest-ffmpeg-mplayer-mencoder-ffmpeg-php-on-centos-server","status":"publish","type":"post","link":"https:\/\/hosting-marketers.com\/news\/2010\/02\/13\/how-to-install-the-latest-ffmpeg-mplayer-mencoder-ffmpeg-php-on-centos-server\/","title":{"rendered":"How To Install FFmpeg, Mplayer, Mencoder, FFmpeg-PHP on a CentOS server"},"content":{"rendered":"<p>I tried first to use the installer of <a href=\"http:\/\/scriptmantra.info\/2008\/06\/yum-ffmpeg-svn-client-installation-script\/\" target=\"_blank\" rel=\"noopener\">ScriptMantra<\/a> but for some reason there were errors sometimes the Liba52, sometimes the Mplayer were not installed, so I just gave up and used the autoinstaller just to remove all traces of ffmpeg on the server, then I used the yum to install it, it was quicker and everything was installed, lets go step by step then.<\/p>\n<p style=\"text-align: center;\"><strong>Install ffmpeg, mplayer, mencoder with all supported modules.<\/strong><\/p>\n<p style=\"text-align: left;\"><strong># <\/strong>yum -y install ffmpeg ffmpeg-devel mplayer mencoder flvtool2<\/p>\n<p style=\"text-align: left;\">it will download everything to your server and install it, depending on your server connection to the internet, but on my server it was very quick perhaps 10 minutes.<\/p>\n<p style=\"text-align: center;\"><strong>Install FFMPEG-PHP<\/strong><\/p>\n<p style=\"text-align: left;\">ffmpeg-php is an extension for PHP that adds an easy to use, object-oriented API for accessing and retrieving information from video and audio files. ffmpeg-devel and php-devel is needed to compile ffmpeg-php from source code. Use following steps to install ffmpeg-php<\/p>\n<p style=\"text-align: left;\"># cd \/usr\/src<br \/>\n# wget http:\/\/downloads.sourceforge.net\/project\/ffmpeg-php\/ffmpeg-php\/0.6.0\/ffmpeg-php-0.6.0.tbz2?use_mirror=ignum<br \/>\n# tar jxvf ffmpeg-php-0.6.0.tbz2<br \/>\n# cd ffmpeg-php-0.6.0<br \/>\n# phpize<br \/>\n# .\/configure<br \/>\n# make<br \/>\n# make install<\/p>\n<p style=\"text-align: left;\">It will copy the ffmpeg.so module in php default module location. Now you have to edit php.ini file to enable ffmpeg-php support in it by using ffmpeg.so module.<\/p>\n<p style=\"text-align: left;\">Go to your server php.ini normally it should be on \/usr\/local\/lib\u00a0 and add the following line at the bottom:<\/p>\n<p style=\"text-align: left;\">extension=ffmpeg.so<\/p>\n<p style=\"text-align: left;\">Restart Apache, you can use the WHM\u00a0 or enter the command in shell<\/p>\n<p style=\"text-align: left;\"># \/etc\/init.d\/httpd restart<\/p>\n<p style=\"text-align: left;\">Now run following command to ffmpeg module listing in php.<\/p>\n<p style=\"text-align: left;\">#php -m | grep ffmpeg<\/p>\n<p style=\"text-align: left;\">Thats it! Easy no?<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>I tried first to use the installer of ScriptMantra but for some reason there were errors sometimes the Liba52, sometimes the Mplayer were not installed, so I just gave up and used the autoinstaller just to remove all traces of ffmpeg on the server, then I used the yum to install it, it was quicker [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2],"tags":[140],"class_list":["post-162","post","type-post","status-publish","format-standard","hentry","category-hosting-marketers-news","tag-installing-ffmpeg"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p9Yxzd-2C","jetpack-related-posts":[{"id":822,"url":"https:\/\/hosting-marketers.com\/news\/2019\/07\/16\/installing-ffmpeg-and-ffprobe-on-centos-with-the-latest-ffmpeg-version\/","url_meta":{"origin":162,"position":0},"title":"Installing FFMPEG and FFprobe on Centos with the latest FFMPEG version","author":"Admin","date":"July 16, 2019","format":false,"excerpt":"how to install ffmpeg and ffprobe on centos 7 with the latest ffmpeg version","rel":"","context":"In &quot;Hosting Marketers News&quot;","block_context":{"text":"Hosting Marketers News","link":"https:\/\/hosting-marketers.com\/news\/category\/hosting-marketers-news\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":220,"url":"https:\/\/hosting-marketers.com\/news\/2011\/06\/07\/using-ffmpeg-to-create-a-single-thumbnail-image-from-a-red5-recorded-flv-file\/","url_meta":{"origin":162,"position":1},"title":"Using ffmpeg to create a single thumbnail image from a red5 recorded flv file","author":"Admin","date":"June 7, 2011","format":false,"excerpt":"Below is a simple php code to manipulate with ffmpeg and create a thumbnail image from a recorded flv file. Assuming that we used oflaDemo to record the video and we want the image to be the frame on the 4th second of the video: <?php \/\/Set video flv path\u2026","rel":"","context":"In &quot;Hosting Marketers News&quot;","block_context":{"text":"Hosting Marketers News","link":"https:\/\/hosting-marketers.com\/news\/category\/hosting-marketers-news\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":170,"url":"https:\/\/hosting-marketers.com\/news\/2010\/08\/26\/red5-and-ffmpeg\/","url_meta":{"origin":162,"position":2},"title":"red5 and ffmpeg","author":"Admin","date":"August 26, 2010","format":false,"excerpt":"One of our customers asked if he could stream through the ffmpeg folder. FFmpeg is a software which converts video files in different formats to video files in flv format this videos are then streamed through a swf player just like the streaming of red5 videos, which are also on\u2026","rel":"","context":"In &quot;Hosting Marketers News&quot;","block_context":{"text":"Hosting Marketers News","link":"https:\/\/hosting-marketers.com\/news\/category\/hosting-marketers-news\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65,"url":"https:\/\/hosting-marketers.com\/news\/2008\/07\/09\/ffmpeg-hosting-to-support-your-video-site\/","url_meta":{"origin":162,"position":3},"title":"FFmpeg hosting to support your video site","author":"Admin","date":"July 9, 2008","format":false,"excerpt":"FFmpeg hosting is meant to support the web sites that display their contents in the form of video files. FFmpeg hosting is required to transfer the video files created with the help of scripting languages such as Phpmotion, You tube etc to .flv format to display the videos in the\u2026","rel":"","context":"In &quot;Hosting Marketers News&quot;","block_context":{"text":"Hosting Marketers News","link":"https:\/\/hosting-marketers.com\/news\/category\/hosting-marketers-news\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":55,"url":"https:\/\/hosting-marketers.com\/news\/2007\/09\/25\/phpmotion\/","url_meta":{"origin":162,"position":4},"title":"PHPmotion","author":"Admin","date":"September 25, 2007","format":false,"excerpt":"PHPmotion is a video sharing software application that allows the user to create a web site similar to YouTube. It is written in PHP language and it is the latest of this kind of scripts popping up on the net due to the enthusiasm that video sharing sites have, with\u2026","rel":"","context":"In &quot;Hosting Marketers News&quot;","block_context":{"text":"Hosting Marketers News","link":"https:\/\/hosting-marketers.com\/news\/category\/hosting-marketers-news\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":127,"url":"https:\/\/hosting-marketers.com\/news\/2009\/10\/21\/installing-red5-the-simple-way\/","url_meta":{"origin":162,"position":5},"title":"Installing red5, the simple way!","author":"Admin","date":"October 21, 2009","format":false,"excerpt":"It is not working any more, some files have been changed and our installer is now outdated, soon we will fix the issue. January 2010. The following steps are intended to automate the installation of Red 5 versions 0.5 , 0.6.3 and 0.7.0 . I know there is now 0.8\u2026","rel":"","context":"In &quot;Hosting Marketers News&quot;","block_context":{"text":"Hosting Marketers News","link":"https:\/\/hosting-marketers.com\/news\/category\/hosting-marketers-news\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/posts\/162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/comments?post=162"}],"version-history":[{"count":6,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/posts\/162\/revisions"}],"predecessor-version":[{"id":164,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/posts\/162\/revisions\/164"}],"wp:attachment":[{"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/media?parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/categories?post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/tags?post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}