mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
nvencoder: Prefer byte-stream format over packetized
Since old encoder implementation supported only byte-stream, prefers byte-stream format for backward compatibility. Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3787 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7457>
This commit is contained in:
parent
b1cda4439b
commit
63dc54906b
2 changed files with 4 additions and 4 deletions
|
@ -2189,7 +2189,7 @@ gst_nv_h264_encoder_create_class_data (GstObject * device, gpointer session,
|
|||
}
|
||||
|
||||
src_caps_str = "video/x-h264, " + resolution_str + ", " + profile_str +
|
||||
", stream-format = (string) { avc, byte-stream }, alignment = (string) au";
|
||||
", stream-format = (string) { byte-stream, avc }, alignment = (string) au";
|
||||
|
||||
system_caps = gst_caps_from_string (sink_caps_str.c_str ());
|
||||
sink_caps = gst_caps_copy (system_caps);
|
||||
|
@ -2518,7 +2518,7 @@ gst_nv_h264_encoder_register_auto_select (GstPlugin * plugin,
|
|||
}
|
||||
|
||||
src_caps_str = "video/x-h264, " + resolution_str + ", " + profile_str +
|
||||
", stream-format = (string) { avc, byte-stream }, alignment = (string) au";
|
||||
", stream-format = (string) { byte-stream, avc }, alignment = (string) au";
|
||||
|
||||
system_caps = gst_caps_from_string (sink_caps_str.c_str ());
|
||||
sink_caps = gst_caps_new_empty ();
|
||||
|
|
|
@ -2246,7 +2246,7 @@ gst_nv_h265_encoder_create_class_data (GstObject * device, gpointer session,
|
|||
+ ", interlace-mode = (string) progressive";
|
||||
|
||||
src_caps_str = "video/x-h265, " + resolution_str + ", " + profile_str +
|
||||
", stream-format = (string) { hvc1, hev1, byte-stream }" +
|
||||
", stream-format = (string) { byte-stream, hvc1, hev1 }" +
|
||||
", alignment = (string) au";
|
||||
|
||||
system_caps = gst_caps_from_string (sink_caps_str.c_str ());
|
||||
|
@ -2572,7 +2572,7 @@ gst_nv_h265_encoder_register_auto_select (GstPlugin * plugin,
|
|||
+ ", interlace-mode = (string) progressive";
|
||||
|
||||
src_caps_str = "video/x-h265, " + resolution_str + ", " + profile_str +
|
||||
", stream-format = (string) { hvc1, hev1, byte-stream }" +
|
||||
", stream-format = (string) { byte-stream, hvc1, hev1 }" +
|
||||
", alignment = (string) au";
|
||||
|
||||
system_caps = gst_caps_from_string (sink_caps_str.c_str ());
|
||||
|
|
Loading…
Reference in a new issue