2019-12-03 08:07:59 +05:30
|
|
|
# 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:
|
2023-03-14 03:47:30 +05:30
|
|
|
1. Download vcpkg (prefer version `2023.02.24` as it is supported)
|
|
|
|
|
2. Integrate vcpkg into your system, run the below command in the downloaded vcpkg folder:
|
2023-03-21 22:23:55 +05:30
|
|
|
```
|
|
|
|
|
vcpkg integrate install
|
|
|
|
|
```
|
2023-03-14 03:47:30 +05:30
|
|
|
3. Set Environment Variable for Vcpkg triplet, you can choose between x86 or x64 based on your system.
|
2023-03-21 22:23:55 +05:30
|
|
|
```
|
2023-05-22 18:38:52 +05:30
|
|
|
setx VCPKG_DEFAULT_TRIPLET "x64-windows-static"
|
|
|
|
|
setx RUSTFLAGS "-Ctarget-feature=+crt-static"
|
2023-03-21 22:23:55 +05:30
|
|
|
```
|
|
|
|
|
4. Install ffmpeg from vcpkg
|
|
|
|
|
|
|
|
|
|
|
2023-05-22 18:38:52 +05:30
|
|
|
In this step we are using `x64-windows-static` triplet, but you will have to use the triplet you set in Step 3
|
2023-03-21 22:23:55 +05:30
|
|
|
|
|
|
|
|
```
|
2023-05-22 18:38:52 +05:30
|
|
|
vcpkg install ffmpeg --triplet x64-windows-static
|
2023-03-21 22:23:55 +05:30
|
|
|
```
|
2019-12-03 08:07:59 +05:30
|
|
|
|
|
|
|
|
## How to compile ccextractor
|
|
|
|
|
|
|
|
|
|
### On Linux:
|
|
|
|
|
`make ENABLE_FFMPEG=yes`
|
|
|
|
|
|
|
|
|
|
### On Windows:
|
|
|
|
|
#### Set preprocessor flag `ENABLE_FFMPEG=1`
|
2024-08-10 16:25:21 +05:30
|
|
|
1. In visual studio 2022 right click <Project> and select property.
|
2019-12-03 08:07:59 +05:30
|
|
|
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.
|