x265 [error]: Unsupported color space (1) on input

Issue #128 resolved
Selur created an issue

using yuv420p10le with "--profile main444-10 --input-depth 10" gives me an 'Unsupported color space' error

ffmpeg -y -loglevel fatal -threads 8 -i "F:\TestClips&Co\test.avi" -ma
p 0:0 -an -sn -vsync 0 -r 25000/1000 -pix_fmt yuv420p10le -f rawvideo - | x265-1
6bit --pmode --pme --pools '*' --input - --input-depth 10 --input-res 640x352 --
fps 25 --profile main444-10 --no-high-tier --no-open-gop --psy-rd 1 --no-rdoq-le
vel --no-psy-rdoq --cu-lossless --colormatrix bt470bg --output "H:\Temp\test_new
_19_26_01_6110_01.265"
yuv  [info]: 640x352 fps 25000/1000 i444p10 unknown frame count
raw  [info]: output file: H:\Temp\test_new_19_26_01_6110_01.265
x265 [info]: HEVC encoder version 1.6+205-f9c0e1f233cc
x265 [info]: build info [Windows][GCC 4.9.2][64 bit] 16bpp
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZ
CNT BMI2
x265 [info]: Main 4:4:4 10 profile, Level-2.1 (Main tier)
x265 [warning]: No thread pool allocated, --wpp disabled
x265 [warning]: No thread pool allocated, --pme disabled
x265 [warning]: No thread pool allocated, --pmode disabled
x265 [info]: frame threads / pool features       : 3 / none
x265 [info]: Internal bit depth                  : 10
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut       : 25 / 250 / 40
x265 [info]: Cb/Cr QP Offset                     : 6 / 6
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 0 / 3
x265 [info]: Rate Control / AQ-Strength / CUTree : CRF-28.0 / 1.0 / 1
x265 [info]: tools: rd=3 psy-rd=1.00 cu-lossless signhide tmvp
x265 [info]: tools: strong-intra-smoothing deblock sao
x265 [error]: Unsupported color space (1) on input

aborted at input frame 1, output frame 0

-> shouldn't 4:4:4 support 4:2:0, 4:2:2 and 4:4:4 ?

Comments (6)

  1. Steve Borho

    yes, it should.

    unrelated, but --pools '*' is not working. your shell is not treating the single-quotes as escape chars and passing '*' directly into the encoder, which makes it think you do not want any pool threads. the easiest fix is to just not specify it, since that is already the default

  2. Selur reporter

    input is 4:2:0 10bit (yuv420p10le), which is why I only specified '--input-depth 10', since the sampling is 4:2:0 which should be the default. -> So, do I need to use '--input-csp i420' because of the '--input-depth 10', even if it should be the default ?

  3. Selur reporter

    I edited my first comment, I missed your point.

    Okay.

    the easiest fix is to just not specify it, since that is already the default

    -> will do

  4. Steve Borho

    level: do not try to configure color space in x265_param_apply_profile()

    Each profile has restrictions on which color spaces are allowed, and those must be enforced, but applying a profile should not affect the input color space defined by the user. We cannot change the input color space, doing so here was both futile and incorrect. (fixes #128)

    → <<cset 2f5b57e5de1f>>

  5. Log in to comment