10-bit x264 & x265

Announcements made by Zeranoe.
Post Reply
User avatar
Zeranoe
Site Admin
Posts: 700
Joined: Sat May 07, 2011 7:12 pm
Contact:

10-bit x264 & x265

Post by Zeranoe » Tue Feb 06, 2018 1:06 pm

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)

hydra3333
Posts: 179
Joined: Sun Apr 28, 2013 1:03 pm
Contact:

Re: 10-bit x264 & x265

Post by hydra3333 » Wed Mar 07, 2018 5:09 pm

Thank you !

enctac
Posts: 5
Joined: Sun Aug 06, 2017 8:49 am

Re: 10-bit x264 & x265

Post by enctac » Sun Nov 11, 2018 2:43 pm

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
...

Post Reply