I want to use the following gstreamer pipeline for multiple IP cameras as an infinite process to keep the video buffer of a fixed duration always. Below is a sample pipeline I am using:
gst-launch-1.0 -e rtspsrc location="rtsp://<user>:<password>@<IP_ADDR>:554/cam/realmonitor?channel=1&subtype=0" name = d \ ! rtph264depay ! h264parse ! splitmuxsink name = mux location=a_video%02d.mp4 max-size-bytes=5000000 max-size-time=2000000000 max-files=5
But when I run this pipeline for 4 IP cameras on the actual target (iMX6UL) I am facing an excessive memory usage where ultimately the OOM_Killer will be started and one of the application gets killed. I have tried the same scenario on two three other setups below are the observations:
Ran the 4 pipelines. RAM’s used memory kept growing rapidly, and within 15 minutes OOM_Killer task has killed few processes. Also observed that some segment files generated by splitmuxsink are growing upto 80MB at times. This should ideally not cross more than 5MB (max-size-bytes = 5000000 and max-size-time=2000000000)
Ran the 4 pipelines. RAM’s used memory kept growing rapidly to 600 MB within 30 minutes, didn’t wait till OOM_Killer to start. Manually stopped the processes.
Ran the 4 pipelines for about 6 hours. Consistent RAM of 96MB used memory for these pipelines. No OOM_Kill situation occurred
Ran the 4 pipelines for about 1 hour. Consistent RAM of 96MB used memory. No OOM_Kill situation occurred
From these observations it looks like some additional settings related to Memory management needs to be done to use the memory efficiently. Cases 3 and 4 show that processes actually doesn’t need more than 100MB of memory but somehow the memory is being used excessively in cases 1 and 2. Any idea what settings will prevent this situation? I have tried GST_DEBUG with TRACE but unable to deduce anything the flood of debug messages. Is there a better way to debug only the buffers flowing in and out of splimuxsink? Thanks Tarun _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
I specifically see this issue only when more than 3 pipelines are running simultaneously. Posting the OOM killer log: https://pastebin.com/yzi6BwSx On Mon, Sep 24, 2018 at 2:49 PM Tarun Tej K <[hidden email]> wrote:
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |