Page 1 of 1

10-bit x264 & x265

Posted: Tue Feb 06, 2018 1:06 pm
by Zeranoe
FFmpeg recently added support to encode to 8-bit and 10-bit for x264 and x265 within the same executable.

This feature has been enabled in the Zeranoe builds and can be triggered using the desired 10-bit pix_fmt:

Code: Select all

-pix_fmt yuv420p10le
Edit 2018-02-06: Note that 10-bit support is not available for x265 on Win32, per x265's restrictions. x265 says this about it:

Code: Select all

if(X64)
    # NOTE: We only officially support high-bit-depth compiles of x265
    # on 64bit architectures. Main10 plus large resolution plus slow
    # preset plus 32bit address space usually means malloc failure.  You
    # can disable this if(X64) check if you desparately need a 32bit
    # build with 10bit/12bit support, but this violates the "shrink wrap
    # license" so to speak.  If it breaks you get to keep both halves.
    # You will need to disable assembly manually.
    option(HIGH_BIT_DEPTH "Store pixel samples as 16bit values (Main10/Main12)" OFF)
endif(X64)

Re: 10-bit x264 & x265

Posted: Wed Mar 07, 2018 5:09 pm
by hydra3333
Thank you !

Re: 10-bit x264 & x265

Posted: Sun Nov 11, 2018 2:43 pm
by enctac
How about x265 12bit ?
I want to use x265 12bit.

Zeranoe ffmpeg 4.0.2 (Win x64):

ffmpeg.exe -loglevel debug -i yuv420p.y4m -pix_fmt yuv420p -c:v libx265 -crf28 yuv420p.mp4

Code: Select all

...
x265 [info]: build info [Windows][GCC 7.3.1][64 bit] 8bit+10bit
...
ffmpeg.exe -loglevel debug -i yuv420p12le.y4m -pix_fmt yuv420p12le -c:v libx265 -crf28 yuv420p12le.mp4

Code: Select all

...
Incompatible pixel format 'yuv420p12le' for codec 'libx265', auto-selecting format 'yuv420p10le'
...
build info [Windows][GCC 7.3.1][64 bit] 10bit
...