x265: Can not initialize encoder for Y444 input
Im trying to use gstreamer to stream over UDP a video using appsrc.
The source is a raw RGB video. If I encode it with x264 it works fine, but trying to use the x265 encoder gives me the Can not initialize x265 encoder.
error.
Here is the working config for x264:
video/x-raw,framerate=30/1 ! videoconvert ! x264enc speed-preset=ultrafast tune=zerolatency byte-stream=true threads=1 key-int-max=15 intra-refresh=true ! video/x-h264, profile=baseline ! rtph264pay ! udpsink host=127.0.0.1 port=5000
And here the slighlty modified version for x265 that causes an error:
video/x-raw, framerate=30/1 ! videoconvert ! video/x-raw,format=(string)I420 ! x265enc ! video/x-h265 ! rtph265pay ! udpsink host=127.0.0.1 port=5000
When going through documentation I noticed that the x265enc doesnt accept the RGB format as input, thats why I convert to I420, but the rest should work. I dont know what im missing. If I instead use videotestsrc
as an input to x265enc then it works with no problem.