1.6 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 vcpkg (prefer version
2023.02.24as it is supported) -
Integrate vcpkg into your system, run the below command in the downloaded vcpkg folder:
vcpkg integrate install -
Set Environment Variable for Vcpkg triplet, you can choose between x86 or x64 based on your system.
setx VCPKG_DEFAULT_TRIPLET "x64-windows-static" setx RUSTFLAGS "-Ctarget-feature=+crt-static" -
Install ffmpeg from vcpkg
In this step we are using
x64-windows-statictriplet, but you will have to use the triplet you set in Step 3vcpkg install ffmpeg --triplet x64-windows-static
How to compile ccextractor
On Linux:
make ENABLE_FFMPEG=yes
On Windows:
Set preprocessor flag ENABLE_FFMPEG=1
- In visual studio 2013 right click and select property.
- In the left panel, select Configuration Properties, C/C++, Preprocessor.
- In the right panel, in the right-hand column of the Preprocessor Definitions property, open the drop-down menu and choose Edit.
- In the Preprocessor Definitions dialog box, add
ENABLE_FFMPEG=1. Choose OK to save your changes.