mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
x264: Add option to encode videos as bit depth 10
At compile time libx264 must be configured to encode videos in either 8 bit depth or 10 bit depth. It is not possible to compile libx264 to support both bit depths simultaneously. This exposes the bit depth compile option.
This commit is contained in:
parent
98bf3f9d39
commit
3630a37dd5
@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, yasm}:
|
||||
{stdenv, fetchurl, yasm, enable10bit ? false}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "snapshot-20141218-2245-stable";
|
||||
@ -14,7 +14,8 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
configureFlags = [ "--enable-shared" ]
|
||||
++ stdenv.lib.optional (!stdenv.isi686) "--enable-pic";
|
||||
++ stdenv.lib.optional (!stdenv.isi686) "--enable-pic"
|
||||
++ stdenv.lib.optional (enable10bit) "--bit-depth=10";
|
||||
|
||||
buildInputs = [ yasm ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user