Closed Bug 1326026 Opened 3 years ago Closed 3 years ago

When output video frame to surface, send dummy samples.

Categories

(Firefox for Android :: Audio/Video, defect, P1)

defect

Tracking

()

RESOLVED FIXED
Firefox 53
Tracking Status
firefox53 --- fixed

People

(Reporter: jhlin, Assigned: jhlin)

References

Details

Attachments

(2 files, 1 obsolete file)

Since RemoteVideoDecoder [1] does not use the data in output buffers anyway, use dummy samples as outputs saves some shared memory allocation and IPC percel serialization efforts.

Also, logcat dumps in bug 1298300 attachment 8822140 [details] shows some devices (MTK chipset) returns null output buffers after format changes sometimes. Use dummy samples instead of shared memory also works around that.
Blocks: 1298300
Assignee: nobody → jolin
Attachment #8822345 - Attachment is obsolete: true
Attachment #8822345 - Flags: review?(snorp)
Comment on attachment 8822359 [details]
Bug 1326026 - use bufferless samples for outputs when rendering to surface.

https://reviewboard.mozilla.org/r/101308/#review103076
Attachment #8822359 - Flags: review?(snorp) → review+
Hi John,

May I know when this patch will be landed ? Will it also be merged in to Firefox53?
Since I suppose the feature (pref-on Bug 1311960) of moving Android audio/video decoder out of application process will be enabled and landed in Firefox 53?

Can you please help with this ?? Thank you very much !
Flags: needinfo?(jolin)
Pushed by jolin@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4b3a24d9a501
use bufferless samples for outputs when rendering to surface. r=snorp
(In reply to Rachelle Yang [:ryang][ryang@mozilla.com] from comment #5)
> Hi John,
> 
> May I know when this patch will be landed ? Will it also be merged in to
> Firefox53?
> Since I suppose the feature (pref-on Bug 1311960) of moving Android
> audio/video decoder out of application process will be enabled and landed in
> Firefox 53?
> 
> Can you please help with this ?? Thank you very much !

 Thanks for the reminder and sorry for not noticing the autoland failure. Just landed it in inbound manually.
Flags: needinfo?(jolin)
Thank you, John!
https://hg.mozilla.org/mozilla-central/rev/4b3a24d9a501
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
I see this bug should fix the problem reported on Bug 1298300 & Bug 1331391, but I've ran again across the issue of videos not working on youtube or other video pages (mp4, webm or html5). 
Out of the devices that I've checked on (including other devices running on Android 4), the issue was isolated to the Asus Transformers Pad (Android 4.2.1): the browser doesn't crash, but the video keeps buffering without any video or audio output.
It is reproducible also on Nightly 54. Please let me know if you think I should file a new bug.
Per comment 11, ni john.
Flags: needinfo?(jolin)
Priority: -- → P1
(In reply to Oana Horvath from comment #11)
> I see this bug should fix the problem reported on Bug 1298300 & Bug 1331391,
> but I've ran again across the issue of videos not working on youtube or
> other video pages (mp4, webm or html5). 
> Out of the devices that I've checked on (including other devices running on
> Android 4), the issue was isolated to the Asus Transformers Pad (Android
> 4.2.1): the browser doesn't crash, but the video keeps buffering without any
> video or audio output.
> It is reproducible also on Nightly 54. Please let me know if you think I
> should file a new bug.

 Oana, could you please help capture logcat output? A new bug should be filed if the remote process crash stack is different.
Flags: needinfo?(jolin)
Flags: needinfo?(oana.horvath)
I attached the logcat file captured today (2017-2-2) on the Asus Transformers Pad (Android 4) device.
(In reply to Oana Horvath from comment #14)
> Created attachment 8832849 [details]
> logcat output - bug 1326026.txt
> 
> I attached the logcat file captured today (2017-2-2) on the Asus
> Transformers Pad (Android 4) device.

 Oana, thanks a lot for the log. It doesn't show similar error as this bug, so I guess a new bug is needed after all. Also, do you mind if I share a private build with you to collect more debug info?
(In reply to John Lin [:jolin][:jhlin] from comment #15)
> (In reply to Oana Horvath from comment #14)
> > Created attachment 8832849 [details]
> > logcat output - bug 1326026.txt
> > 
> > I attached the logcat file captured today (2017-2-2) on the Asus
> > Transformers Pad (Android 4) device.
> 
>  Oana, thanks a lot for the log. It doesn't show similar error as this bug,
> so I guess a new bug is needed after all. Also, do you mind if I share a
> private build with you to collect more debug info?

Sure, happy to help.
Flags: needinfo?(oana.horvath)
See Also: → 1346235
You need to log in before you can comment on or make changes to this bug.