hello everyone!
My device is Jetson AGX Xavier 16G, I want to use gstreamer decoding, but I do n’t know how to configure appsink and appsrc parameters.Here are two functions, can anyone help me modify the parameters, thanks!
static std::string CreateAppSinkPipeline()
{
std::stringstream pipelineString;
pipelineString
<< "rtsp://192.168.31.163:554/"
<< LINK
<< "h264parse"
<< LINK
<< "mppvideodec"
<< LINK
<< "video/x-raw,format=(string)NV12"
<< LINK
<< "rgaconvert output-io-mode=dmabuf-import capture-io-mode=dmabuf vpu-stride=true"
<< LINK
<< "video/x-raw,format=BGR,width=(int)1920,height=(int)1080"
<< LINK
<< "appsink caps=video/x-raw,format=BGR name="
<< APPSINK_NAME;
return pipelineString.str();
}
static std::string CreateAppSrcPipeline()
{
std::stringstream pipelineString;
pipelineString
<< "appsrc caps=video/x-raw,format=(string)BGR,width=(int)1920,height=(int)1080,framerate=(fraction)30/1 "
"block=true name="
<< APPSRC_NAME
<< LINK
<< "rkximagesink sync=false";
return pipelineString.str();
}