mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
qsvav1enc: Set stream-format on caps
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3946>
This commit is contained in:
parent
c99db9a42b
commit
13ae9d2067
2 changed files with 4 additions and 4 deletions
|
@ -225529,7 +225529,7 @@
|
|||
"presence": "always"
|
||||
},
|
||||
"src": {
|
||||
"caps": "video/x-av1:\n width: [ 16, 8192 ]\n height: [ 16, 8192 ]\n alignment: tu\n",
|
||||
"caps": "video/x-av1:\n width: [ 16, 8192 ]\n height: [ 16, 8192 ]\n stream-format: obu-stream\n alignment: tu\n",
|
||||
"direction": "src",
|
||||
"presence": "always"
|
||||
}
|
||||
|
|
|
@ -122,7 +122,7 @@ enum
|
|||
|
||||
#define DOC_SRC_CAPS \
|
||||
"video/x-av1, width = (int) [ 16, 8192 ], height = (int) [ 16, 8192 ], " \
|
||||
"alignment = (string) tu"
|
||||
"stream-format = (string) obu-stream, alignment = (string) tu"
|
||||
|
||||
typedef struct _GstQsvAV1EncClassData
|
||||
{
|
||||
|
@ -561,7 +561,7 @@ gst_qsv_av1_enc_set_output_state (GstQsvEncoder * encoder,
|
|||
}
|
||||
|
||||
caps = gst_caps_from_string ("video/x-av1, profile = (string) main, "
|
||||
"alignment= (string) tu");
|
||||
"stream-format = (string) obu-stream, alignment= (string) tu");
|
||||
out_state = gst_video_encoder_set_output_state (GST_VIDEO_ENCODER (encoder),
|
||||
caps, state);
|
||||
gst_video_codec_state_unref (out_state);
|
||||
|
@ -778,7 +778,7 @@ gst_qsv_av1_enc_register (GstPlugin * plugin, guint rank, guint impl_index,
|
|||
#endif
|
||||
|
||||
std::string src_caps_str = "video/x-av1, profile = (string) main, "
|
||||
"alignment = (string) tu";
|
||||
"stream-format = (string) obu-stream, alignment = (string) tu";
|
||||
src_caps_str += ", width=(int) [ 16, " + std::to_string (resolution) + " ]";
|
||||
src_caps_str += ", height=(int) [ 16, " + std::to_string (resolution) + " ]";
|
||||
|
||||
|
|
Loading…
Reference in a new issue