1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Compiling FFmpeg From Source

Steps to follow in order to compile FFmpeg from source manually

  1. Chris D

    Chris D XenForo Developer Staff Member

    Chris D submitted a new resource:

    Compiling FFmpeg From Source - Steps to follow in order to compile FFmpeg from source manually

    Read more about this resource...
     
    Glockie likes this.
  2. Liam W

    Liam W Well-Known Member

    Glockie likes this.
  3. Chris D

    Chris D XenForo Developer Staff Member

    What specifically didn't work?
     
  4. otto

    otto Well-Known Member

    Hello,

    I have ubuntu 12.0.4 LTS run and ffmpeg is properly installed at "/usr/bin/ffmpeg" - but when I will save this path in my gallery settings, then it says:

    Bevor I have set open_basedir to "none" to resolve a open_basedir error message...

    Any idea?
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    First update to XFMG 1.1.1 and then try again. There was improved error detection added so you may get a more detailed error.
     
  6. otto

    otto Well-Known Member

    Ah - ok, then I will do this first and see again. Thanks, Chris. :)
     
  7. otto

    otto Well-Known Member

    After Update all errors are gone and now it works. ;)
     
  8. tonmo

    tonmo Active Member

    I'm not sure what didn't work for Liam, however, I am on CentOS and my hosting provider helped install ffmpeg (after my own attempts failed). I've asked them if these were the instructions they followed.

    I noticed that the CentOS instructions above do not include an install of libvo_aacenc. I raise this, because the error I am getting when entering settings in Gallery Options is as follows:

    Code:
     XenForo Media Gallery requires the following encoders to be enabled in FFMPEG: libvo_aacenc 
    Any thoughts or guidance?
     
  9. Chris D

    Chris D XenForo Developer Staff Member

    That guide doesn't cover the pre-requisites required for XFMG.

    Specifically the libvo_aacenc encoder isn't installed.

    If it's easier, you might want to consider just using a static build:

    http://johnvansickle.com/ffmpeg/

    The above URL is actually recommended as a source by the FFmpeg team. For the most part it should be as simple as downloading, extracting, and making the ffmpeg binary accessible on the server.
     
    tonmo and MattW like this.
  10. MattW

    MattW Well-Known Member

    This is also what I've started doing in all my server builds, and it works perfectly.
     
    tonmo and Chris D like this.
  11. 51463

    51463 Well-Known Member

    I am unable to extract the files from http://johnvansickle.com/ffmpeg/

    it's a .xz file,

    also, did ffmpeg change a lot in the past couple months?

    my server has version 4.9.3

    but on the website i see the newest release build is 3.0

    what happened

    .
    .
     
  12. Chris D

    Chris D XenForo Developer Staff Member

    There has never been a version 4.9.3. I think the version string lists "gcc 4.9.3", this is the compiler version and not related to FFmpeg itself.

    This guide is specifically about compiling the FFmpeg from its source code repository. If you follow the instructions you'll see that the http://johnvansickle.com/ffmpeg/ page is not mentioned.
     
  13. Nirjonadda

    Nirjonadda Active Member

    @Chris D Please can you let me know that How To Install FFmpeg and FFmpeg-PHP Extension on CentOS 7 with cPanel?
     
  14. Chris D

    Chris D XenForo Developer Staff Member

    The PHP Extension is not required.

    So installing FFmpeg is the only step. If you're not comfortable compiling things from source, you may want to try using one of the static builds here: https://johnvansickle.com/ffmpeg/
     
  15. Nirjonadda

    Nirjonadda Active Member

    But How i can Install FFmpeg? Does not find out any installation instructions.
     
  16. Chris D

    Chris D XenForo Developer Staff Member

    You just download it from the link and that's it. You just point the FFmpeg binary path in the options to the ffmpeg file.
     
  17. Nirjonadda

    Nirjonadda Active Member

    Is this correct to Installing FFmpeg?

    Code:
    # Download ffmpeg binaries to your /opt folder.
    cd /opt
    curl -O https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
    
    # Untar the downloaded file. tar -xf ffmpeg-release-64bit-static.tar.xz rm ffmpeg-release-64bit-static.tar.xz
    
    Note: This require xz to be installed. If the untar command fails run
    
    yum install xz
    
    # Symlink FFmpeg and ffprobe to `/usr/bin` to make the commands accessible
    # to the ftrack user.
    # Replace the part between <> with the specific version installed.
    ln -s /opt/ffmpeg-<FFMPEG VERSION>/ff* /usr/bin
    OR

    Code:
    cd to the the /usr/local/bin directory
    
    $ cd /usr/local/bin
    
    Inside the /usr/local/bin directory, create an /ffmpeg directory
    
    $ mkdir ffmpeg
    
    cd into the new directory
    
    $ cd ffmpeg
    
    $ wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
    
    The file should now be in /usr/local/bin/ffmpeg. Untar it…
    
    $ tar xf ffmpeg-release-64bit-static.tar.xz
    
    Run it and check what the latest version is
    
    $ ./ffmpeg -version
    
    Move the contents of your static untarred folder into the parent /ffmpeg dir
    $ mv * ../
    If you want to be able to execute $ ffmpeg from any directory, you’ll need to create a symlink inside /usr/bin:
    $ ln -s /usr/local/bin/ffmpeg/ffmpeg /usr/bin/ffmpeg
    $ ln -s /usr/local/bin/ffmpeg/ffprobe /usr/bin/ffprobe #for ffprobe
    done. You are now able to run the $ ffmpeg command from anywhere.
     
  18. Chris D

    Chris D XenForo Developer Staff Member

    I guess either?
     
  19. Nirjonadda

    Nirjonadda Active Member

    What does happen if not Install FFmpeg? FFmpeg required?
     

Share This Page