Maximum resolution of omxh265 encoder

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

Ok I just read in [url]https://devtalk.nvidia.com/default/topic/920426/jetson-tx1/encode-h265-on-tx1/[/url] that the jetson Tx1 supports 4k@30fps live h265 encoding (in hardware), so the question would be, does it support 3840x2160x30 = 237MByte/s, or is the resolution fixed as well? Because 7680x4320x7=221Mbytes/s would be enough for me.

Hi schwartz

The maximum resolution of H265 encoding we support in Jetson TX1 is 4k@30fps.

Thanks