2017-04-16 20:42:27 -03:00
# Build FFmpeg (Linux)
2016-03-29 04:10:52 +02:00
2017-04-16 20:42:27 -03:00
## Requirements
2016-03-29 04:10:52 +02:00
2020-12-15 17:26:39 +01:00
- 15GB of free space
2018-08-22 08:44:51 +02:00
- Ubuntu 16.04.5 or higher
2020-01-21 21:48:04 +01:00
- Git
- node
2016-03-29 04:10:52 +02:00
2017-04-16 20:42:27 -03:00
## Build libffmpeg
2020-01-29 21:41:33 +01:00
//Build ffmpeg x86
npx nwjs-ffmpeg-prebuilt --arch x86
//Build ffmpeg x86
npx nwjs-ffmpeg-prebuilt --arch x64
#### Or
2016-05-30 15:10:57 +02:00
git clone https://github.com/iteufel/nwjs-ffmpeg-prebuilt.git
cd nwjs-ffmpeg-prebuilt
2020-01-21 21:48:04 +01:00
npm i
2016-03-29 04:10:52 +02:00
2020-01-21 21:48:04 +01:00
//Build ffmpeg x86
sudo node build --arch x86
2016-03-29 04:10:52 +02:00
2016-05-30 15:10:57 +02:00
//Build ffmpeg x64
2020-01-21 21:48:04 +01:00
sudo node build --arch x64
2018-08-22 08:44:51 +02:00
2020-01-29 21:41:33 +01:00
2018-08-22 08:44:51 +02:00
## Known Problems
If you have issues building FFmpeg for ia32: [crbug.com/786760 ](https://crbug.com/786760 ).
To fix this you can remove `HAVE_EBP_AVAILABLE` from `build/src/third_party/ffmpeg/BUILD.gn`
2023-01-26 20:45:49 -03:00
## Opera Browser issue
Is some exceptional cases, the build doesn't work for Opera Browser for some unknown reason. In this specific cases,
you can just execute the following steps:
1. Build the project or download the latest version through this [link ](https://github.com/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt/releases/tag/0.72.0 )
2. Unzip the compress file
3. Copy file to the following folder:
```bash
sudo cp /Downloads/cp 0.67.1-linux-x64/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/lib_extra/libffmpeg.so
```
2025-01-05 12:36:50 +01:00
Fedora users
1. Copy file to the following folder:
```bash
sudo cp Downloads/libffmpeg.so /usr/lib64/opera/libffmpeg.so
```
4. Restart your web browser.