0

I am porting Gstreamer to Android. It works fine to play audio.

But when playing video only few audio frame can be displayed at start, the others are dropped in GstRingBuffer::default_commit function.

In default_commit function, writeseg is less than segdone and GstAudioSink send 0x00000000 to GstAudioFlingerSink.

My doubt is the reader thread get one segment once time, but the writer thread compose one segment need several invokes.

Could you kindly give me some suggestion or information on this issues.

4

1 回答 1

0

你用的是什么视频接收器?你用的是playbin2吗?您能否修改视频接收器以立即从 render() vmethod 返回(实际上不显示任何内容)以排除视频渲染正在使音频线程饥饿。

于 2012-09-09T19:01:16.943 回答