Some problems when using the appsrc

surprised 1028554060 at qq.com
Sat Oct 19 07:17:45 UTC 2019


Hi,everyone.
    Recently,I want to use the gstreamer's appsrc element to send an images
to the gstreamer's pipeline as live video stream. I want to emit
"push-buffer" every time each frame is generated.I tried the two mode(push
mode and pull mode),but all failed because under all of them, the frequency
that the "push-buffer" signal function was called was much slower than the
speed of the frame coming. 
    Then,I tried another method:Calling the "push-buffer" function manually
every time each frame is generated. In this way,I can achieve my
purpose:Emiting "push-buffer" every time each frame is generated. But there
is one bug:The memory occupation was increasing gradually until it 
overflowed. 
     I am trying to debug but failed. I want you to help me find the problem
or some solutions which can achieve my purpose.Thank you!
     My key code part is showing as the following:
appsrc.cpp
<http://gstreamer-devel.966125.n4.nabble.com/file/t378717/appsrc.cpp>  



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list