Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gst-launch-1.0 increase memory usage gradually in Jetson Nano #119

Open
thaint2901 opened this issue Mar 15, 2022 · 1 comment
Open

Gst-launch-1.0 increase memory usage gradually in Jetson Nano #119

thaint2901 opened this issue Mar 15, 2022 · 1 comment

Comments

@thaint2901
Copy link

thaint2901 commented Mar 15, 2022

I use gst-launch with the following pipeline:

gst-launch-1.0 uridecodebin  uri=rtsp1 ! nvvideoconvert ! interpipesink name=src_0 \
  uridecodebin uri=rtsp2 ! nvvideoconvert ! interpipesink name=src_1 \
  uridecodebin uri=rtsp3 ! nvvideoconvert ! interpipesink name=src_2 \
  uridecodebin uri=rtsp4 ! nvvideoconvert ! interpipesink name=src_3 \
  interpipesrc stream-sync=restart-ts name=interpipesrc0 listen-to=src_0 ! m.sink_0 \
  nvstreammux name=m batched-push-timeout=40000 batch-size=4 width=1920 height=1080 live-source=1 ! nvinfer config-file-path=infer_arm.txt ! nvmultistreamtiler rows=2 columns=2 width=1280 height=720 ! nvvideoconvert ! nvdsosd ! nvegltransform ! nveglglessink sync=false \
  interpipesrc stream-sync=restart-ts name=interpipesrc1 listen-to=src_1 ! m.sink_1 \
  interpipesrc stream-sync=restart-ts name=interpipesrc2 listen-to=src_2 ! m.sink_2 \
  interpipesrc stream-sync=restart-ts name=interpipesrc3 listen-to=src_3 ! m.sink_3

The speed of the nvinfer is slower than the fps of the sources so I use the interpipe with stream-sync property. The memory used by GStreamer rises very slowly (from 950MB to ~2Gb in 1 day).

I have tried some properties of both interpipesink and interpipesrc but the problem is still not resolved.

@minusplusminus
Copy link

This article explains why: https://www.thegoodpenguin.co.uk/blog/finding-a-memory-leak-in-a-large-and-complex-gstreamer-pipeline/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants