I have a program which starts an RTP stream using the following pipeline:
appsrc → videoconvert → x264enc → h264parse → h264pay → udpsink.
My appsrc properties are set using the following code:
g_object_set (G_OBJECT (app->src),
"caps", gst_caps_new_simple ("video/x-raw",
"format", G_TYPE_STRING, "RGB",
"width", G_TYPE_INT, WIDTH,
"height", G_TYPE_INT, HEIGHT,
"framerate", GST_TYPE_FRACTION, 0, 1,
nullptr),
"stream-type", 0, // GST_APP_STREAM_TYPE_STREAM
"format", GST_FORMAT_TIME,
"is-live", true,
"do-timestamp", true,
"min-latency", 0,
"max-latency", 100000,
nullptr);
How can I change this pipeline to work on the jetson nano? I have tried using nvv4l2h264enc as the encoder and nvvidconv as the videoconverter but get linking errors.