Video stutters on Samsung S devices
Categories
(Firefox for Android :: Media, defect)
Tracking
()
People
(Reporter: thecrafter5455, Assigned: jhlin)
References
Details
(Whiteboard: [qa-triaged])
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
dmeehan
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-release+
|
Details | Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox for Android
Steps to reproduce:
(Fresh installation of Firefox v122, OR Firefox Nightly v124)
I went to YouTube and started a video.
I can also play any other video on any other side, as example Facebook, Twitch, etc.
Actual results:
The video stutters like it's 10FPS playback.
Expected results:
The video should play smoothly as it's intended to do.
Additional information:
If I seek forward/backward in the video, or change the resolution to make the video "re-load", it will resolve this bug until next execution of the steps above.
Screenrecording of the issue: https://youtube.com/shorts/03dMVHymcVM
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Fenix::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•1 year ago
|
||
The severity field is not set for this bug.
:tthibaud, could you have a look please?
For more information, please visit BugBot documentation.
Comment 4•1 year ago
|
||
Thank you for the response!
We were able to reproduce this issue on the 122.1.0 build, on Beta 123.0b9 and on Nightly 124.0a1, on the following devices:
- Samsung Galaxy S23 Ultra (Android 14),
- Samsung Galaxy S22 Ultra (Android 14), and a
- Samsung Galaxy S24 (Android 14).
Not reproducible 100%: had to swipe between tabs, pause/resume the video.
I'll confirm the ticket.
Comment 5•1 year ago
|
||
The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.
I also got a samsung A70 and also have exact same issue since a few builds ago, now on 125.0b1 and still got it.
Similar issue on Moto G54, latest Firefox. Play any Tiktok video in browser (mobile page), for example any video on https://www.tiktok.com/@jasonderulo , them a soon as the video repeats, it's noticably lower fps, only like 10fps.
Comment 10•1 year ago
|
||
Same issue, running
Galaxy S21 (SM-G991B/DS),
Android 14,
One UI v.6.0.
Happens both on main app and Firefox Beta (125.0b7 build #2016012543) (fresh install)
Have had this issue for a couple of months now.
I noticed this support thread that seems like the same issue here: https://support.mozilla.org/en-US/questions/1438972
Feel free to contact me if you're looking into this bug and need more info on the device.
Comment 11•1 year ago
|
||
(In reply to chriswsligo from comment #10)
Same issue, running
Galaxy S21 (SM-G991B/DS),
Android 14,
One UI v.6.0.
Happens both on main app and Firefox Beta (125.0b7 build #2016012543) (fresh install)
Have had this issue for a couple of months now.I noticed this support thread that seems like the same issue here: https://support.mozilla.org/en-US/questions/1438972
Feel free to contact me if you're looking into this bug and need more info on the device.
More info after playing about a bit more:
Fairly accurately 2/3rds of frames are dropped. Youtube's stats for nerds option shows ~0.67 frames dropped.
The resolution/framerate of the video does not matter.
This happens on any website I've tried, not just youtube's. This includes the default player (i.e. 4chan, loading a .webm file in browser, small websites)
This does not seem to occur if the player is muted. Muting and unmuting some videos toggles the stutter too. This works for youtube (desktop site) and the default player.
To get the videos playing normally with sound I skip around a little and it seems to right itself. If it (youtube) buffers it will begin stuttering again.
Sometimes the videos are okay on their own for some reason, but it's about 80% that start stuttery.
Comment 12•1 year ago
|
||
Same issue on Galaxy S22, sm-s901b/ds, Android 14, One UI 6.0. Any video player stutters until I restart the video (without reloading the page), or on some occasions, pause then play or forward/backward seek seems to do the trick.
Comment 13•1 year ago
|
||
This might be a duplicate of bug 1872354. The fix should be available in Nightly and Beta soon.
Comment 14•1 year ago
|
||
Yes, should land between 23 and 0 UTC this evening! Nice, finally! :D (according to wiki.mozilla.org)
Comment 15•1 year ago
|
||
Hm still not fixed in 127.0a1 (Build #2016018543), hg-ea25d02dac47+
Comment 16•1 year ago
|
||
Yeah, bug 1894401 needs to land first.
Comment 17•1 year ago
|
||
Argh, ok. For that bug it says "ready to land" on Phabricator, what does it mean when it will drop in Nightly? And shouldn't this mean someone can set that bug to "fixed"?
Comment 18•1 year ago
|
||
Ok my Comment 9 is related to Bug 1872354 which is reportedly fixed now.
Updated•1 year ago
|
Comment 19•11 months ago
|
||
This issue is still not fixed. Not in the stable or the latest nightly.
Pausing video causes horrible stuttering, only way to fix is to scrub to a different point in video.
Screen capture:
https://photos.app.goo.gl/wP3x6noJ8Z4BAdjb8
Comment 20•11 months ago
|
||
I can confirm that it is still an issue.
Here are reliable steps to reproduce which involve two videos - so maybe not the same issue, but the symptoms are very similar:
- Go to https://store.steampowered.com/app/1817230/HiFi_RUSH/
- Scroll down to the video gallery
- Tap the second gallery image. Video 2 starts playing.
- Tap the first gallery image. Video 1 starts playing.
- Tap on the second gallery image again. Now video 2 is playing very choppily.
Profile: https://share.firefox.dev/3V9M1tg
Seeking inside video 2 fixes the frame rate.
Matthew, can you take a look?
![]() |
||
Updated•11 months ago
|
![]() |
||
Updated•11 months ago
|
Comment 21•11 months ago
|
||
(In reply to krickit from comment #10)
Same issue, running
Galaxy S21 (SM-G991B/DS),
Android 14,
One UI v.6.0.
Happens both on main app and Firefox Beta (125.0b7 build #2016012543) (fresh install)
Have had this issue for a couple of months now.I noticed this support thread that seems like the same issue here: https://support.mozilla.org/en-US/questions/1438972
Feel free to contact me if you're looking into this bug and need more info on the device.
Hello, fixed for me in Build #2016024431 and #2016024903. I didn't keep track of the updates so couldn't tell you which build had it fixed, sorry.
Comment 22•11 months ago
|
||
(In reply to krickit from comment #21)
(In reply to krickit from comment #10)
Same issue, running
Galaxy S21 (SM-G991B/DS),
Android 14,
One UI v.6.0.
Happens both on main app and Firefox Beta (125.0b7 build #2016012543) (fresh install)
Have had this issue for a couple of months now.I noticed this support thread that seems like the same issue here: https://support.mozilla.org/en-US/questions/1438972
Feel free to contact me if you're looking into this bug and need more info on the device.
Hello, fixed for me in Build #2016024431 and #2016024903. I didn't keep track of the updates so couldn't tell you which build had it fixed, sorry.
Build 2016024903 is in the current nightly app version which I just tried but the but is definitely not fixed. Samsung S24 Ultra One UI 6.1
Assignee | ||
Comment 23•11 months ago
|
||
It seems the stutters after pausing the video are caused by the way that the audio clock position is derived.
The interpolation
part is calculated as the time passed since the last data callback, but if the audio stream is paused, the time spent in the stopped state will be counted, and the reported position
will be further than the actual value. I'll develop a fix for it.
Paul, the AAudioStream_requestStop() doc says the stream will stop after all buffered data are consumed. Is this behavior expected? Or should we use AAudioStream_requestPause() instead?
Comment 24•10 months ago
|
||
Sorry for the delay answering here, I think _requestPause()
is what we want, _requestStop()
might be for cubeb_stream_destroy()
, but maybe not even, since we have the draining logic.
Assignee | ||
Comment 25•10 months ago
|
||
(In reply to John Lin [:jhlin][:jolin] from comment #23)
It seems the stutters after pausing the video are caused by the way that the audio clock position is derived.
The
interpolation
part is calculated as the time passed since the last data callback, but if the audio stream is paused, the time spent in the stopped state will be counted, and the reportedposition
will be further than the actual value. I'll develop a fix for it.Paul, the AAudioStream_requestStop() doc says the stream will stop after all buffered data are consumed. Is this behavior expected? Or should we use AAudioStream_requestPause() instead?
GitHub pull request for the cubeb backend issues: https://github.com/mozilla/cubeb/pull/789
Assignee | ||
Comment 26•9 months ago
|
||
Comment 27•9 months ago
|
||
Comment 28•9 months ago
|
||
bugherder |
Updated•9 months ago
|
Comment 29•9 months ago
|
||
The patch landed in nightly and beta is affected.
:jhlin, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox129
towontfix
.
For more information, please visit BugBot documentation.
Comment 31•9 months ago
|
||
I can confirm that all the videos which previously had bad frame rate issues now work properly. Thank you!
Assignee | ||
Comment 32•9 months ago
|
||
Comment on attachment 9411816 [details]
Bug 1877948 - Update libcubeb to revision 063a090.
Beta/Release Uplift Approval Request
- User impact if declined: Video stutter after pausing/resuming.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): The risk is low because the changes are small and straightforward.
- String changes made/needed:
- Is Android affected?: Yes
Comment 33•9 months ago
|
||
Comment on attachment 9411816 [details]
Bug 1877948 - Update libcubeb to revision 063a090.
Approved for 129.0b4
Comment 34•9 months ago
|
||
uplift |
Updated•9 months ago
|
Comment 35•9 months ago
|
||
Verified as fixed on the latest Beta build (129.0b4).
Verified using the steps from Comment 20
The video plays smoothly.
Devices used to verify:
- Samsung Galaxy S23 Ultra (Android 14).
- Samsung Galaxy S24 (Android 14).
- Samsung Tab S8 Ultra 5G (Android 14).
Also checked on the latest Nightly build (130.0a1 from 2024-07-16) with a Samsung Galaxy S23 Ultra (Android 14).
Marking the ticket as verified on 129 and 130.
Updated•9 months ago
|
Comment 36•9 months ago
|
||
Did you want to nominate this for Release approval for next week's scheduled 128.0.2 dot release also? Note that we'd either need a rebased patch or an uplift request on bug 1905636 also for this to graft cleanly.
Assignee | ||
Comment 37•9 months ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #36)
Did you want to nominate this for Release approval for next week's scheduled 128.0.2 dot release also? Note that we'd either need a rebased patch or an uplift request on bug 1905636 also for this to graft cleanly.
Thanks for the reminder. I'll request uplifting for both.
Assignee | ||
Comment 38•9 months ago
|
||
Comment on attachment 9411816 [details]
Bug 1877948 - Update libcubeb to revision 063a090.
Beta/Release Uplift Approval Request
- User impact if declined: Serious frame droppings after the user pauses and resumes a video.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: Bug 1905636
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): The changes are small and straightforward
- String changes made/needed:
- Is Android affected?: Yes
Comment 39•9 months ago
|
||
Comment on attachment 9411816 [details]
Bug 1877948 - Update libcubeb to revision 063a090.
Approved for 128.0.2.
Updated•9 months ago
|
Comment 40•9 months ago
|
||
uplift |
Comment 41•9 months ago
|
||
Verified as fixed on the latest RC build (128.0.2).
Verified using the steps from Comment 20
The video plays smoothly.
Device used to verify: Samsung Galaxy S23 Ultra (Android 14).
Marking the ticket as verified in 128 as well.
Updated•9 months ago
|
Comment 42•9 months ago
|
||
Added to the Android 128.0.2 relnotes:
Fixed video playback stuttering on Samsung devices.
Description
•