gStreamer 视频录制内存泄漏
您好,我正在尝试录制来自摄像机的 rtsp 流(H264 格式)。
进行录制
gst-launch -e rtspsrc location=rtsp://10.17.8.136/mediainput/h264 latency=100 ! decodebin ! ffenc_mpeg4 ! avimux ! filesink location=test.mp4
我正在使用以下 gst 命令以 MPEG4 格式和 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 内存正在逐渐增加。
gStreamer是否存在内存泄漏。或者我的管道命令有问题?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不是泄漏,mp4 muxer 正在内存中构建索引表,然后将其写入 eos 上的磁盘。
That is not a leak, the mp4 muxer is building the index table in memory, before writing it out to disk on eos.