mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
Increase nvenc's encoding height to 4096
According to https://developer.nvidia.com/nvidia-video-codec-sdk the minimum resolution nvenc supports should be 4096x4096
This commit is contained in:
parent
3fea1fa50b
commit
f769758e9a
2 changed files with 6 additions and 6 deletions
|
@ -45,7 +45,7 @@ G_DEFINE_TYPE (GstNvH264Enc, gst_nv_h264_enc, GST_TYPE_NV_BASE_ENC);
|
|||
";" \
|
||||
"video/x-raw(memory:GLMemory), " \
|
||||
"format = (string) { NV12, Y444 }, " \
|
||||
"width = (int) [ 16, 4096 ], height = (int) [ 16, 2160 ], " \
|
||||
"width = (int) [ 16, 4096 ], height = (int) [ 16, 4096 ], " \
|
||||
"framerate = (fraction) [0, MAX]," \
|
||||
"interlace-mode = { progressive, mixed, interleaved } "
|
||||
#else
|
||||
|
@ -57,7 +57,7 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("video/x-raw, " "format = (string) { NV12, I420 }, " // TODO: YV12, Y444 support
|
||||
"width = (int) [ 16, 4096 ], height = (int) [ 16, 2160 ], "
|
||||
"width = (int) [ 16, 4096 ], height = (int) [ 16, 4096 ], "
|
||||
"framerate = (fraction) [0, MAX],"
|
||||
"interlace-mode = { progressive, mixed, interleaved } "
|
||||
GL_CAPS_STR
|
||||
|
@ -67,7 +67,7 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("video/x-h264, "
|
||||
"width = (int) [ 1, 4096 ], height = (int) [ 1, 2160 ], "
|
||||
"width = (int) [ 1, 4096 ], height = (int) [ 1, 4096 ], "
|
||||
"framerate = (fraction) [0/1, MAX], "
|
||||
"stream-format = (string) byte-stream, " // TODO: avc support
|
||||
"alignment = (string) au, "
|
||||
|
|
|
@ -46,7 +46,7 @@ G_DEFINE_TYPE (GstNvH265Enc, gst_nv_h265_enc, GST_TYPE_NV_BASE_ENC);
|
|||
";" \
|
||||
"video/x-raw(memory:GLMemory), " \
|
||||
"format = (string) { NV12, Y444 }, " \
|
||||
"width = (int) [ 16, 4096 ], height = (int) [ 16, 2160 ], " \
|
||||
"width = (int) [ 16, 4096 ], height = (int) [ 16, 4096 ], " \
|
||||
"framerate = (fraction) [0, MAX] "
|
||||
#else
|
||||
#define GL_CAPS_STR ""
|
||||
|
@ -57,7 +57,7 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("video/x-raw, " "format = (string) { NV12, I420 }, " // TODO: YV12, Y444 support
|
||||
"width = (int) [ 16, 4096 ], height = (int) [ 16, 2160 ], "
|
||||
"width = (int) [ 16, 4096 ], height = (int) [ 16, 4096 ], "
|
||||
"framerate = (fraction) [0, MAX] "
|
||||
GL_CAPS_STR
|
||||
));
|
||||
|
@ -66,7 +66,7 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("video/x-h265, "
|
||||
"width = (int) [ 1, 4096 ], height = (int) [ 1, 2160 ], "
|
||||
"width = (int) [ 1, 4096 ], height = (int) [ 1, 4096 ], "
|
||||
"framerate = (fraction) [0/1, MAX], "
|
||||
"stream-format = (string) byte-stream, "
|
||||
"alignment = (string) au, "
|
||||
|
|
Loading…
Reference in a new issue