need_data and enough_data don't work properly caused by sparse stream

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

need_data and enough_data don't work properly caused by sparse stream

haykav
Hi experts,

pipeline contains video-appsrc and many audio-appsrc connected to audiomixer and their streams eventually are connected to mp4mux. For some time-points i have audio-gaps(no audio-buffer) and video-appsrc doesn't send need_data signal but only enough_data. i tried to send  gst_event_new_gap to audio-appsrc but in any case the video-appsrc doesn't send need_data until i send audio-buffers.
How can i solve this problem?

Thanks in advance
Hayk

Pipeline schematic view
Reply | Threaded
Open this post in threaded view
|

Re: need_data and enough_data don't work properly caused by sparse stream

Vinod Kesti
Hi haykav,

There may be a possible deadlock. Can you add a queue just before the audio and video encoder, set it to leaky. Check if it helps.
Reply | Threaded
Open this post in threaded view
|

Re: need_data and enough_data don't work properly caused by sparse stream

haykav
This post was updated on .
Hi Vinod Kesti,

Thanks for your response.
I've added queues before the audio and video encoders and set it to be leaky, the pipeline works but there are buffer-drops and we are not get desirable result :(
Pipeline schematic view with queues
Best regards
Hayk