Nvdrmvideosink restriction

Hi,
We tested the sample code that the algorithm closes the whole pipeline can test passed 600 times.
Is there any way not to close the pipeline every time and keeps the function works?
Thanks.

[Sample Code]
Nvdrmvideosink.cpp (1.6 KB)

Hi,
Please share more information about your use-case. If the capability(width, height, format) is not changed it is possible to keep the pipeline alive without re-initialization. Would need more detail about the use-case.

Hi,

Current Status:
• Connect more than 2 CAMs.
• Create an NVDRMSINK pipeline and switch back and forth between the connected cameras. Found the switch times higher than 128 times, the NVDRMSINK crashes at 128th time.
• NV has provided the countermeasure that shut down the NVDRMSINK(shut down the pipeline) and then restarted it after the camera switches.

Requirements:
• It could connect to more CAMs, and expect to run the NVDRMSIN continuously without shut down the pipeline every time.

Thanks.

Hi,
One possible solution is to run the pipeline:

    launch_stream
    << "appsrc ! "
    << "video/x-raw,width=1920,height=1080,format=YUY2 ! "
    << "nvvidconv ! video/x-raw(memory:NVMM),format=NV12 ! nvdrmvideosink sync=0 ";

And handle switching camera source in appsrc. If some sources have different resolution, you would need to upscale/downscale the resolution to be identical to the capability(video/x-raw,width=1920,height=1080,format=YUY2 in the example).

Hi,

We followed the suggestions to add “sync=0” into the “nvdrmvideosink”, but it still crashed at the 128th time on the EVK.
Please refer to the attachment.
test_evk_20211020.cpp (11.0 KB)

Thanks.

Hi,
The sample does not follow the suggestion. You would need to use appsrc as the source and keep the pipeline alive. For the camera sources, have to create pipeline like

v4l2src ! appsink

So that you can get the buffer in appsink and send to appsrc.

For getting buffer in appsink and sending to appsrc, you may refer to
Starvation (?) of gstreamer threads - #12 by DaneLLL

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.