Skip to content

[QUESTION] How to add fragment metadata with kvssink Gstreamer plugin #1001

Closed Answered by disa6302
sinanliuAmazon asked this question in Q&A
Discussion options

You must be logged in to vote

@sinanliuAmazon ,

There isnt a way to set metadata with command line, but you can set it up in an application that uses kvssink. You would have to use gst_element_send_event. The event name would be kvs-add-metadata.

This portion of code should give you details on what kvssink expects:

case GST_EVENT_CUSTOM_DOWNSTREAM: {
const GstStructure *structure = gst_event_get_structure(event);
std::string metadata_name, metadata_value;
gboolean persistent;
bool is_persist;
if (!gst_structure_has_name(structure, KVS_ADD_METADATA_G_STRUC…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@sinanliuAmazon
Comment options

@disa6302
Comment options

Answer selected by sinanliuAmazon
Comment options

You must be logged in to vote
0 replies
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants
Converted from issue

This discussion was converted from issue #1000 on April 14, 2023 19:04.