Hi!
I’m trying to use the omxh265enc plugin for gstreamer-1.0 with higher resolutions.
To clarify, the encode example from “TEGRA X1/TEGRA LINUX DRIVER PACKAGE MULTIMEDIA USER GUIDE” works fine.
gst-launch-1.0 videotestsrc ! 'video/x-raw, format=(string)I420, width=(int)640, height=(int)480' ! omxh265enc ! filesink location=test.h265 -e
Now h265 should support a maximum resolution of 8192×4320.
Setting the resolution to 4320x4320, framerate 1 yields an empty file, which grows to 4kb when gstreamer is closed.
gst-launch-1.0 videotestsrc ! 'video/x-raw, format=(string)I420, width=(int)4320, height=(int)4320, framerate=1/1' ! omxh265enc ! filesink location=test.h265 -e
A resolution of 7680x4320 does produce the following output:
ubuntu@tegra-ubuntu:~/work/bmp$ gst-launch-1.0 videotestsrc ! 'video/x-raw, format=(string)I420, width=(int)4320, height=(int)7680, framerate=1/1' ! omxh265enc ! filesink location=test.h265 -e
Setting pipeline to PAUSED ...
Inside NvxLiteH264DecoderLowLatencyInitNvxLiteH264DecoderLowLatencyInit set DPB and MjstreamingInside NvxLiteH265DecoderLowLatencyInitNvxLiteH265DecoderLowLatencyInit set DPB and MjstreamingPipeline is PREROLLING ...
Framerate set to : 1 at NvxVideoEncoderSetParameterERROR: from element /GstPipeline:pipeline0/GstOMXH265Enc-omxh265enc:omxh265enc-omxh265enc0: GStreamer error: negotiation problem.
Additional debug info:
gstvideoencoder.c(1368): gst_video_encoder_chain (): /GstPipeline:pipeline0/GstOMXH265Enc-omxh265enc:omxh265enc-omxh265enc0:
encoder not initialized
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
using gst-inspect-1.0 doesn’t help, since the max resolutions are just set to 2^31
SINK template: 'sink'
Availability: Always
Capabilities:
video/x-raw(memory:NVMM)
format: { I420, NV12 }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
video/x-raw
format: { I420, NV12 }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
I had trouble finding the sourcecode for this plugin, is it out yet? And does anyone know about this topic? I would like to encode somewhat around 8fps with 7680x4320 live to h265.
Best regards!
Olav Schwartz