deadlock issue in pipeline

Kaijun Tang kaijun61 at yahoo.com
Mon Jul 23 10:23:33 PDT 2012


Hi,

When an A/V stream is played in a pipeline, video and audio streams are passed downstream in separate branches. For the sake of sync. there are queue buffers between A/V codec and A/V sink. After A/V frames are pre-rolled, the sinks send message to the pipeline. When the pipeline receives both messages, A/V streams begin to play in terms of timestamp for sync. In case that one of branches is blocked, the pipeline would be deadlock. E.g. either audio buffers or video buffers are filled before one of A/V prerolls is reached. I met one case, there are many audio packets before the video packets come. I have to use a big buffer, In another case, video doesn't start from I frame, as a result, the audio buffers are quickly full. The audio branch blocks further incoming packets. Is there a better approach to oversome this issue?   


 

Kind Regards


Kai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120723/e10804ff/attachment-0001.html>


More information about the gstreamer-devel mailing list