Memory leak in mpegtsmux

HT ht.techdev at gmail.com
Wed Mar 21 00:09:13 UTC 2018


Hi

Under Ubuntu 14.04 with gstreamer 1.12,  specifying pids in mpegtsmux 
program-map, causes memory leak, e.g. the following pipeline  leaks: (As 
seen by "top")

gst-launch-1.0 videotestsrc is-live=true pattern=zone-plate kx2=20 
ky2=20 kxy=4 kt2=10 ! video/x-raw, format=I420,width=1280,height=720 ! 
videoconvert ! openh264enc ! h264parse  ! muxer.sink_49 mpegtsmux 
name=muxer prog-map=program_map,sink_49=1 ! fakesink

Whereas, this one does not:

gst-launch-1.0 videotestsrc is-live=true pattern=zone-plate kx2=20 
ky2=20 kxy=4 kt2=10 ! video/x-raw, format=I420,width=1280,height=720 ! 
videoconvert ! openh264enc ! h264parse  ! mpegtsmux name=muxer  ! fakesink

  Actually, it gets a bit more complicated. If pid is a 3 digit number, 
no leaks are detected, i.e., this pipeline does not leak:

gst-launch-1.0 videotestsrc is-live=true pattern=zone-plate kx2=20 
ky2=20 kxy=4 kt2=10 ! video/x-raw, format=I420,width=1280,height=720 ! 
videoconvert ! openh264enc ! h264parse ! muxer.sink_149 mpegtsmux 
name=muxer prog-map=program_map,sink_149=1 ! fakesink

(Tried this with msdkh265 encoder, with similar results.)

Any thoughts?

Cheers,




More information about the gstreamer-devel mailing list