Depstream decoded data

For help, how can I get every frame of data decoded by deepstream?

Please leverage dsexample plugin:


Hi, DaneLLL
When I compiled, the following error occurred:
Makefile:25: *** “CUDA_VER is not set”. Stop.
How can I solve it?

You can set it along with ‘make’

$ CUDA_VER=10.0 make

Whether the data decoded by deepstream is NV12 or not, can I convert it to BGR format through the function get_converted_mat in gst_dsexample?

Please check this sample to use cv APIs.

cv::cvtColor (in_mat, out_mat, CV_RGBA2BGR);
static gint dump = 0;
if (dump < 150) {
    char filename[64];
    snprintf(filename, 64, "/home/nvidia/image%03d.jpg", dump);
    cv::imwrite(filename, out_mat);

But I just want to get the original data decoded by deepstream. I don’t want multi-channel mixing and object detection. What should I do?How can I change deepstream-app?

If you don’t need to run deeplearning models, you may refer to gstreamer guidance for pure video decoding:

I see that the deepstream-app instance will detect people or cars. If I want to get pictures of people or cars being tested, what should I do?

If you don’t need object-detection, you may not use Deepstream SDK and better to check accelerated gstreamer user guide.

A question about setting CUDA_VER to compile gst-dsexample.
When I set CUDA_VER=10.0 via export CUDA_VER=10.0 then sudo make install fails saying that CUDA_VER is not set.
However if I run sudo CUDA_VER=10.0 make install it works just fine??

You should enter super user and then do ‘export CUDA_VER=10.0’

nvidia@nvidia-desktop:~/deepstream_sdk_v4.0.1_jetson/sources/gst-plugins/gst-dsexample$ sudo su
root@nvidia-desktop:/home/nvidia/deepstream_sdk_v4.0.1_jetson/sources/gst-plugins/gst-dsexample# export CUDA_VER=10.0
root@nvidia-desktop:/home/nvidia/deepstream_sdk_v4.0.1_jetson/sources/gst-plugins/gst-dsexample# make install
cp -rv /opt/nvidia/deepstream/deepstream-4.0/lib/gst-plugins/
'' -> '/opt/nvidia/deepstream/deepstream-4.0/lib/gst-plugins/'