Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) AGX Xavier
• DeepStream Version 5.0
• JetPack Version (valid for Jetson only) 4.4
I use /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/dee
pstream-test1/deepstream_test1_app.c as template to modify the source from “filesrc” to “appsrc” to feed into the same pipeline that is
appsrc!h264parse!nvv4l2decoder!nvstreamux!nvinfer!nvvideoconvert!nvdsosd!nvegltransform!nveglglessink
Question: how do we setup the cap for appsrc for this pipeline?
I try the following setup but it doesn’t seem working:
appsrc = gst_element_factory_make ("appsrc", "app-source");
g_object_set (G_OBJECT (appsrc), "caps", gst_caps_new_simple ("video/x-raw", "format", G_TYPE_STRING, "RGBA", "width", G_TYPE_INT, 1920, "height", G_TYPE_INT, 1080, "framerate", GST_TYPE_FRACTION, 30, 1, NULL), NULL);
How to setup the appsrc cap correctly? What should be the “format” of the cap for this pipeline? What am I missing? Please advise. Thank you.