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
|
|
|
|
2019-04-30 14:31:41 +02:00
|
|
|
- 10GB of free space
|
2018-08-22 08:44:51 +02:00
|
|
|
- Ubuntu 16.04.5 or higher
|
2016-03-29 04:10:52 +02:00
|
|
|
|
2017-04-16 20:42:27 -03:00
|
|
|
## Install deps
|
2016-03-29 04:10:52 +02:00
|
|
|
//Install Git
|
|
|
|
apt-get update && apt-get install git
|
|
|
|
|
2017-04-16 20:42:27 -03:00
|
|
|
## Build libffmpeg
|
2016-05-30 15:10:57 +02:00
|
|
|
|
|
|
|
git clone https://github.com/iteufel/nwjs-ffmpeg-prebuilt.git
|
|
|
|
cd nwjs-ffmpeg-prebuilt
|
2016-03-29 04:10:52 +02:00
|
|
|
|
2016-05-30 15:10:57 +02:00
|
|
|
//Build ffmpeg ia32
|
2016-05-30 15:15:23 +02:00
|
|
|
sudo python build_ffmpeg.py --target_arch=ia32
|
2016-03-29 04:10:52 +02:00
|
|
|
|
2016-05-30 15:10:57 +02:00
|
|
|
//Build ffmpeg x64
|
2016-06-15 03:11:28 +02:00
|
|
|
sudo python build_ffmpeg.py --target_arch=x64
|
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`
|