В сообщении от Monday 07 January 2019 02:32:22 Terje J Hanssen написал(а):
A follow up: Shouldn't ffmpeg according to the reference below, list 'yuv422p10le' among the supported pixel formats on my system?
ffmpeg -h encoder=libx264 ......... Supported pixel formats: yuv420p yuvj420p yuv422p yuvj422p yuv444p yuvj444p nv12 nv16 nv21
ffmpeg -h encoder=libx265 ............ Supported pixel formats: yuv420p yuv422p yuv444p gbrp gray
--------- Terje J. H
your ffmpeg must be one after https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/c6558e8840fbb2386bf8742e4d68... (author Luca Barbato <[email protected]> Tue, 26 Dec 2017 14:32:42 +0300 (12:32 +0100) committer Luca Barbato <[email protected]> Wed, 27 Dec 2017 18:59:45 +0300 (15:59 +0000) commit c6558e8840fbb2386bf8742e4d68dd6e067d262e tree 9f079a15424ed70fec0d131e45cd3fafd13cd65c tree | snapshot parent 2beba58e0e4bda688bf96e12413231607ceafdd4 commit | diff x264: Support version 153) and x264 revision obviously must be >= 153. If it still doesn't work - may be ffmpeg and/or x264 teams broke it unintentionally again :/
https://video.stackexchange.com/questions/13164/encoding-422-in-10-bit-with -libx264/13166#13166
|ffmpeg|
If using |ffmpeg| you can see what pixel formats and bit depths are
supported by libx264: |$ ffmpeg -h encoder=libx264 [...] Supported pixel formats: yuv420p
yuvj420p yuv422p yuvj422p yuv444p yuvj444p nv12 nv16 nv21 yuv420p10le yuv422p10le yuv444p10le nv20le |
10-bit pixel formats are: yuv420p10le, yuv422p10le, yuv444p10le.
Previously you had to compile x264 with |--bit-depth=10|, and then link your |ffmpeg| to either an 8-bit or 10-bit libx264, but that is now unnecessary. See Unify 8-bit and 10-bit CLI and libraries <https://git.videolan.org/?p=x264.git;a=commit;h=71ed44c7312438fac7c5c530 1e45522e57127db4> for more info.
edited Nov 29 '18 at 19:23 <https://video.stackexchange.com/posts/13166/revisions>