summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShi Yan <billconan@gmail.com>2019-04-04 20:19:42 +0000
committerShi Yan <billconan@gmail.com>2019-04-04 20:19:42 +0000
commitf769758e9ae076902edfe00fbead2c7ba7fe15fd (patch)
treea2399c51ca07ca04882b4a3b3cccc2f7114bc461
parent3fea1fa50b633ce6603bfba67dbce40598a8af70 (diff)
downloadgstreamer-plugins-bad-f769758e9ae076902edfe00fbead2c7ba7fe15fd.tar.gz
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
-rw-r--r--sys/nvenc/gstnvh264enc.c6
-rw-r--r--sys/nvenc/gstnvh265enc.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/nvenc/gstnvh264enc.c b/sys/nvenc/gstnvh264enc.c
index 84641c9ca..5bae28095 100644
--- a/sys/nvenc/gstnvh264enc.c
+++ b/sys/nvenc/gstnvh264enc.c
@@ -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, "
diff --git a/sys/nvenc/gstnvh265enc.c b/sys/nvenc/gstnvh265enc.c
index f05313ebb..74ec02cc0 100644
--- a/sys/nvenc/gstnvh265enc.c
+++ b/sys/nvenc/gstnvh265enc.c
@@ -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, "