qsvav1enc: Set stream-format on caps

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3961>
This commit is contained in:
Seungha Yang 2023-02-12 23:12:21 +09:00 committed by GStreamer Marge Bot
parent cde31d23c0
commit 11ef5ce745
2 changed files with 4 additions and 4 deletions

View file

@ -225397,7 +225397,7 @@
"presence": "always" "presence": "always"
}, },
"src": { "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", "direction": "src",
"presence": "always" "presence": "always"
} }

View file

@ -122,7 +122,7 @@ enum
#define DOC_SRC_CAPS \ #define DOC_SRC_CAPS \
"video/x-av1, width = (int) [ 16, 8192 ], height = (int) [ 16, 8192 ], " \ "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 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, " 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), out_state = gst_video_encoder_set_output_state (GST_VIDEO_ENCODER (encoder),
caps, state); caps, state);
gst_video_codec_state_unref (out_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 #endif
std::string src_caps_str = "video/x-av1, profile = (string) main, " 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 += ", width=(int) [ 16, " + std::to_string (resolution) + " ]";
src_caps_str += ", height=(int) [ 16, " + std::to_string (resolution) + " ]"; src_caps_str += ", height=(int) [ 16, " + std::to_string (resolution) + " ]";