Home > database >  Save file gatreamer push flow problem
Save file gatreamer push flow problem

Time:11-10

[demand]
Tee is used at the same time push the flow + save the file, save the file, when arrived at specified time stop, but push real-time flow to continue

[solution a]
Will save the file of pipeline state is set to NULL, it can stop the save the file to do so, but was still going on, but the data cache up, only to explode cause memory is more and more big,

Solution for [2]
In the save file need_data callback release resources directly, use gst_buffer_unref (buffer);
Gst_sample_unref (sample);
Found the problem and solution, is to stop the save the file, but was still going on, but the data cache up, only to explode cause memory is more and more big, and invoke gst_sample_unref (sample); When the reference count is unusual, I will gst_sample_unref (sample); This is commented out, don't call the gst_buffer_unref (buffer); Don't have to call gst_sample_unref (sample); A????

Above problem also please teach a great god, thank you!!!!!
  • Related