memory leak in webrtc stream transcode to rtm

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

memory leak in webrtc stream transcode to rtm

skylli
so many memory haven't release affter gst_element_set_state(p_tsc->e_rtpbin,GST_STATE_NULL); call. i want to transcode webrtc streamer to rtmp an send to rtmp-server. Cause server mey receive mulitiple webrtc stream. So i creat pipe when new webrtc session connect, i use rtpbin handle rtp package, when stream coming build rtpvp8depay --> vp8dec bin in pad-add event callback and link to input-selector and active the input pad. the pipe was as below. since it run in centos , it while the is no stream and no pipe and element was creat , my take almost zero memory . pipe creat and destory with stream come and go , my application was memory consumed increase . i have use valgrind to debug. but my application run so slow and collapse without reason. so far my pipe work so good except memory leak. Any Suggestions is welcome .
Reply | Threaded
Open this post in threaded view
|

Re: memory leak in webrtc stream transcode to rtm

skylli
can any one give me some advise.