gStreamer Video Recording Memory Leak

2019-05-11 20:18发布

HI I am trying to record rtsp stream coming from camera(H264 format).

I am using following gst command to do recording in MPEG4 Format

gst-launch -e rtspsrc location=rtsp://10.17.8.136/mediainput/h264 latency=100 ! decodebin ! ffenc_mpeg4 ! avimux ! filesink location=test.mp4

and H264 format

gst-launch-0.10  -e rtspsrc location="rtsp://10.17.8.136/mediainput/h264" latency=100 ! rtph264depay byte-stream=false ! capsfilter caps="video/x-h264,width=1920,height=1080,framerate=(fraction)25/1" ! mp4mux ! filesink location=testh264.mp4

Both are doing recording but i have observed that There is RAM mermory is gradually increasing.

Does gStreamer has memory leak. or there is problem in my pipeline command?

1条回答
ら.Afraid
2楼-- · 2019-05-11 20:42

That is not a leak, the mp4 muxer is building the index table in memory, before writing it out to disk on eos.

查看更多
登录 后发表回答