Updated guides
This commit is contained in:
parent
8b879f9385
commit
dba46a20b4
@ -6,5 +6,7 @@ FFMpeg prebuilt binaries and build instructions for window, linux and osx.
|
||||
- [Linux guide](guides/build_linux.md)
|
||||
- [Mac guide](guides/build_mac.md)
|
||||
|
||||
You can get the FFmpeg source code from [here](https://chromium.googlesource.com/chromium/third_party/ffmpeg).
|
||||
|
||||
>###License and Patent Fee
|
||||
> MP3 and H.264 codecs are licensed under the GPL in ffmpeg used by NW.js. Make sure your app are released with compatible license of GPL. And you also have to pay patent licensing royalties for using them. Consult a lawyer if you do not understand the licensing constraints and using patented media formats in your application.
|
||||
|
12
ffmpeg.patch
12
ffmpeg.patch
@ -1,12 +0,0 @@
|
||||
diff --git a/ffmpeg.gyp b/ffmpeg.gyp
|
||||
index 294dd2e..7dfcd3a 100755
|
||||
--- a/ffmpeg.gyp
|
||||
+++ b/ffmpeg.gyp
|
||||
@@ -72,7 +72,7 @@
|
||||
['chromeos == 1', {
|
||||
'ffmpeg_branding%': '<(branding)OS',
|
||||
}, { # otherwise, assume Chrome/Chromium.
|
||||
- 'ffmpeg_branding%': '<(branding)',
|
||||
+ 'ffmpeg_branding%': 'Chrome'
|
||||
}],
|
||||
],
|
@ -29,8 +29,7 @@
|
||||
//install build deps
|
||||
./src/build/install-build-deps.sh
|
||||
|
||||
//Apply the ffmpeg patch to enable Proprietary Codecs
|
||||
$(curl -fsSL https://raw.githubusercontent.com/iteufel/nwjs-ffmpeg-prebuilt/master/ffmpeg.patch) | git apply --directory src/third_party/ffmpeg -
|
||||
export GYP_DEFINES="ffmpeg_branding=Chrome ffmpeg_component=shared_library"
|
||||
|
||||
//Regenerate the gyp files
|
||||
gclient runhooks --force
|
||||
|
@ -32,8 +32,7 @@
|
||||
|
||||
##Build libffmpeg
|
||||
|
||||
//Apply the ffmpeg patch to enable Proprietary Codecs
|
||||
curl -fsSL https://raw.githubusercontent.com/iteufel/nwjs-ffmpeg-prebuilt/master/ffmpeg.patch | git apply --directory src/third_party/ffmpeg -
|
||||
export GYP_DEFINES="ffmpeg_branding=Chrome ffmpeg_component=shared_library"
|
||||
|
||||
//Regenerate the gyp files
|
||||
gclient runhooks --force
|
||||
|
@ -36,7 +36,7 @@
|
||||
##Build ffmpeg.dll x64
|
||||
//set some env
|
||||
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
|
||||
set GYP_DEFINES=clang=0
|
||||
set GYP_DEFINES=clang=0 ffmpeg_branding=Chrome ffmpeg_component=shared_library
|
||||
set GYP_MSVS_VERSION=2015
|
||||
|
||||
//Regenerate gyp files
|
||||
@ -48,9 +48,8 @@
|
||||
##Build ffmpeg.dll ia32
|
||||
//set some env
|
||||
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
|
||||
set GYP_DEFINES=target_arch=ia32 clang=0
|
||||
set GYP_DEFINES=target_arch=ia32 clang=0 ffmpeg_branding=Chrome ffmpeg_component=shared_library
|
||||
set GYP_MSVS_VERSION=2015
|
||||
|
||||
//Regenerate gyp files
|
||||
gclient runhooks --force
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user