本文介绍了gStreamer视频录制内存泄漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试记录来自摄像机(H264格式)的rtsp流.
HI I am trying to record rtsp stream coming from camera(H264 format).
我正在使用以下gst命令以MPEG4格式进行记录
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
和H264格式
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
两个都在做记录,但是我发现RAM内存在逐渐增加.
Both are doing recording but i have observed that There is RAM mermory is gradually increasing.
gStreamer是否存在内存泄漏.还是我的管道命令有问题?
Does gStreamer has memory leak. or there is problem in my pipeline command?
推荐答案
这不是泄漏,mp4混合器先在内存中建立索引表,然后再将其写到eos上的磁盘上.
That is not a leak, the mp4 muxer is building the index table in memory, before writing it out to disk on eos.
这篇关于gStreamer视频录制内存泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!