The camera is stuck

HI,

使用如下命令,网路camera能正常出图,但是软件编解码,导致摄像头会很卡,没办法使用,请问一下有没有什么办法,感谢

 gst-launch-1.0 uridecodebin uri=rtsp://admin:ZKCD1234@192.168.1.64:554 latency=0  ! nv3dsink

Hi,
Please set the environment variable and check if hardware decoder is used:

 $ export GST_DEBUG=*FACTORY*:4

还是比较卡,硬解码还是OFF,帮忙看一下,感谢

log如下:
log.txt (9.5 KB)

Hi,
Please try the pipeline and see if hardware decoder can decode the stream:

$ gst-launch-1.0 rtspsrc location="rtsp://admin:ZKCD1234@192.168.1.64:554" ! rtph265depay ! h265parse ! nvv4l2decoder ! "video/x-raw(memory:NVMM)" ! nv3dsink sync=0

下面命令指令会报错

$ gst-launch-1.0 rtspsrc location="rtsp://admin:ZKCD1234@192.168.1.64:554" ! rtph265depay ! h265parse ! nvv4l2decoder ! "video/x-raw(memory:NVMM)" ! nv3dsink sync=0

log.txt (698 Bytes)

Hi,
Seems like the available memory is insufficient in the system. Please run the commands and see if nvv4l2decoder is present:

$ rm .cache/gstreamer-1.0/registry.aarch64.bin
$ gst-inspect-1.0 nvv4l2decoder

If nvv4l2decoder is present, please try the command for decoding RTSP again. If it still does not work, we suggest re-flash Jetpack 5.1.2 through SDKManager and try again.

这个办法不行,升级到5.1.2时间比较久,我们在我们自己板子上做的,需要移植很多驱动,有没有不升级的办法。我们在orin nx上试过 gst-launch-1.0 uridecodebin uri=rtsp://admin:ZKCD1234@192.168.1.64:554 latency=0 ! nv3dsink这个命令就能硬件码,延迟也比较低

Hi,
If you cannot re-flash the system, please investigate why this happens on your environment:

ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Could not open device '/dev/nvhost-nvdec' for reading and writing.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c(651): gst_v4l2_open (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
system error: Cannot allocate memory

On default L4T release this error is not seen. So it may be triggered by your customization.

我们在我们自己板子上,64G的模组硬解码能打开,32G的模组硬解码是关闭的,同一个工程的代码,Jetpack 5.1.1的,但是现象不太一样,请问一下我们如何去修复此问题,谢谢

Hi,
32GB of DRAM may be insufficient for the use-case, so decoder cannot allocate the memory in initialization. Suggest you check and try to reduce the memory usage when using Orin 32GB.

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