ccextractor/docs/FFMPEG.md
grave-panda 334a87aed1 [IMPROVEMENT] Update FFMpeg guide to use markdown. (#1130)
* Rename FFMPEG.TXT to FFMPEG.md

* Update FFMPEG.md

update file to use markdown.
2019-12-02 18:37:59 -08:00

1.8 KiB

Overview

FFmpeg Integration was done to support multiple encapsulations.

Dependencies

FFmpeg libraries

Download and Install FFmpeg on your Linux pc:

Download latest source code from following link https://ffmpeg.org/download.html

Then following command to install ffmpeg: ./configure && make && make install

Note:If you installed ffmpeg on non-standard location, please change/update your environment variable $PATH and $LD_LIBRARY_PATH

Download and Install FFmpeg on your Windows pc:

Download prebuilt library from following link: http://ffmpeg.zeranoe.com/builds/

You need to download Shared Versions to run the program and Dev Versions to compile.

How to compile ccextractor

On Linux:

make ENABLE_FFMPEG=yes

On Windows:

Put the path of libs/include of ffmpeg library in library paths.

  1. In visual studio 2013 right click and select property.
  2. Select Configuration properties in left panel(column) of property.
  3. Select VC++ Directory.
  4. In the right pane, in the right-hand column of the VC++ Directory property, open the drop-down menu and choose Edit.
  5. Add path of Directory where you have kept uncompressed library of FFmpeg.

Set preprocessor flag ENABLE_FFMPEG=1

  1. In visual studio 2013 right click and select property.
  2. In the left panel, select Configuration Properties, C/C++, Preprocessor.
  3. In the right panel, in the right-hand column of the Preprocessor Definitions property, open the drop-down menu and choose Edit.
  4. In the Preprocessor Definitions dialog box, add ENABLE_FFMPEG=1. Choose OK to save your changes.

Add library in linker

  1. Open property of project
  2. Select Configuration properties
  3. Select Linker in left panel(column)
  4. Select Input
  5. Select Additional dependencies in right panel
  6. Add all FFmpeg's lib in new line