Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) Jetson Orin NX 16 GB
• DeepStream Version deepstream:6.3-triton-multiarch docker container
• JetPack Version (valid for Jetson only) 5.1.1 - L4T r35.3.1
• TensorRT Version irrelevant
• NVIDIA GPU Driver Version (valid for GPU only) irrelevant
Hello everyone, I modified the gst-nvdewarper plugin to make it cleaner and simple so that I can build an application on top of it however it is not working as I expected. It produces only black frames. When I compile the unchanged source, it works properly. I also tried the dewarp parts of the code in another application that is not a gstreamer plugin, it is also working. I suspect the CUDA context or driver is not initialized properly because of the multithreaded structure of the gstreamer.
I uploaded the code please help me. I added debug lines there to output the first frame and abort.
compile command:
CUDA_VER=11.4 make install
run command:
gst-launch-1.0 uridecodebin uri=file:///workspace/input_video.mp4 \
! nvvidconv ! 'video/x-raw(memory:NVMM), width=4000, height=1500, framerate=30/1, format=RGBA' \
! nvdewarper output-resolution=1920x1080 \
! nvvidconv ! 'video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1, format=I420' \
! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=output_video.mp4
gst-nvdewarper.zip (13.8 KB)