Hi All,

Firefox OS has a problem of camera preview's lag and jittering. It is Bug 
844248. The preview's lag is very significant compared to android one.

Firefox OS uses video tag and MediaStreamGraph to render camera preview. [1] 
[2] shows the current configration. MediaStreamGraph is a framework for 
synchronized audio/video processing and adds latency and does buffering. But it 
causes camera preview's lag and jittering. The jittering happens because camera 
hw has only limited number of buffers for preview. The buffering at 
MediaStreamGraph starves buffers for camera preview at camera hw. Then the 
camera hw stops preview update intermittently.

The camera preview requests no latency and no buffering at MediaStreamGraph. 
Are there any ideas to achieve this?

Right now, I am thinking to create a custom MediaStream to bypass 
MediaStreamGraph processing. attachment 725478 [3] is just an ugly temporary 
patch. Though by applying the attachment, camera preview update becomes quick 
and smooth.

[1] 
https://github.com/sotaroikeda/firefox-diagrams/blob/master/dom/dom_camera_FirefoxOS_1_1.pdf?raw=true
[2] 
https://github.com/sotaroikeda/firefox-diagrams/blob/master/dom/dom_camera_DOMCameraPreview_FirefoxOS_1_01.pdf?raw=true
[3] https://bugzilla.mozilla.org/attachment.cgi?id=725478&action=diff

Thanks in advance,
Sotaro
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media

Reply via email to