Skip to content

Installation: ffmpeg

afred edited this page Jun 18, 2014 · 35 revisions

Notes

You must install FFmpeg from source because the package installation will not work with HydraDAM. FFmpeg transcodes video and audio files so you can have web-streaming versions of your uploaded content.

Steps

NOTE: These instructions have been tested specifically for Centos 6.5 using version 28 of the FFmpeg install guide.

  1. Set up your library paths before compiling the libraries by entering the following commands in the terminal window.

export LD_LIBRARY_PATH=/usr/local/lib/ echo $LD_LIBRARY_PATH | sudo tee /etc/ld.so.conf.d/custom-libs.conf sudo ldconfig ```

  1. Follow the steps in the 'Compilation and Installation' section of the installation guide linked below.
    CentOS: https://trac.ffmpeg.org/wiki/CompilationGuide/Centos#FFmpeg
    Ubuntu: https://trac.ffmpeg.org/wiki/UbuntuCompilationGuide?version=90

Verification Steps

  1. Confirm that you have installed FFmpeg correctly by:

    1. Copy an mpeg or mp4 video onto the system.
    2. Use FFmpeg to render a screenshot from your video into a jpeg file by entering the command below in the terminal window. Substitue the actual name of your file for 'videofile.name' in the line below. The resulting jpeg image will be stored in the file named 'test.jpg'.
    ffmpeg  -itsoffset -4  -i videofile.name -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 test.jpg
    1. Open test.jpg and you should see a screen capture from the beginning of your video.

Next Step

Proceed to Install fits or return to the Overview page.

Clone this wiki locally