gStreamer Video Recording Memory Leak

此生再无相见时 提交于 2019-12-22 11:11:08

问题


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:


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



来源:https://stackoverflow.com/questions/8982053/gstreamer-video-recording-memory-leak

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!