this post was submitted on 10 Jul 2023
1 points (66.7% liked)

Firefox

134 readers
171 users here now

The latest news and developments on Firefox and Mozilla, a global non-profit that strives to promote openness, innovation and opportunity on the web.

You can subscribe to this community from any Kbin or Lemmy instance:

Related

Rules

While we are not an official Mozilla community, we have adopted the Mozilla Community Participation Guidelines as far as it can be applied to a bin.

Rules

  1. Always be civil and respectful
    Don't be toxic, hostile, or a troll, especially towards Mozilla employees. This includes gratuitous use of profanity.

  2. Don't be a bigot
    No form of bigotry will be tolerated.

  3. Don't post security compromising suggestions
    If you do, include an obvious and clear warning.

  4. Don't post conspiracy theories
    Especially ones about nefarious intentions or funding. If you're concerned: Ask. Please don’t fuel conspiracy thinking here. Don’t try to spread FUD, especially against reliable privacy-enhancing software. Extraordinary claims require extraordinary evidence. Show credible sources.

  5. Don't accuse others of shilling
    Send honest concerns to the moderators and/or admins, and we will investigate.

  6. Do not remove your help posts after they receive replies
    Half the point of asking questions in a public sub is so that everyone can benefit from the answers—which is impossible if you go deleting everything behind yourself once you've gotten yours.

founded 1 year ago
MODERATORS
 

Re-buffering happens if you replay a video after it buffers completely till the end and if you click on the timeline far enough back during buffering.

I've looked through many threads but didn't find any fix/workaround for this. I saw some users saying changing values for media.cache_readahead_limit and media.cache_resume_threshold to 99999 fixed it but that didn't help and actually caused Firefox to stop buffering midway through videos.

top 13 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

not sure , but maybe it is media codec/encoding related?

You could maybe try https://addons.mozilla.org/en-US/firefox/addon/enhanced-h264ify/ to check.

[–] [email protected] 1 points 1 year ago (1 children)

It's not, because my CPU supports VP9 hardware decoding.

[–] [email protected] 1 points 1 year ago (1 children)

By anychance, do you have free ram? Sometimes this happen when the ram is not available... so yeah.. You should check it first. Also check about:memory I guess

[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago (1 children)

Is the about:cache is full? Or it's too small? I mean if it's to small it could be the cause.

[–] [email protected] 1 points 1 year ago (1 children)

I didn't know about that. It does seem small. It's just 32 MB. So I googled around and

http://kb.mozillazine.org/Browser.cache.memory.capacity

https://tweakguides.pcgamingwiki.com/Firefox_10.html

changed browser.cache.memory.capacity value from -1 to 1000000 and changed media.cache_readahead_limit / media.cache_resume_threshold to 999999 but I didn't notice any difference. Rebuffering still happens.

What I did notice was that after hitting the replay button, if I press right arrow quickly enough to skip forward (40% or more), the buffer reppears and my network activity reflects that.

So it seems to me is that Firefox caches about 60% of the video (latter half) and when you replay it, it starts rebuffering the lost 40% of the first half of the video. I reverted my settings back to default values (the 3 prefs I mentioned above) and it still behaves this way.

[–] [email protected] 1 points 1 year ago (1 children)

ugh, I'm out of idea tbh. Seems you need to ask others about it. Also are your video in 2k or probably 4k? or it's normal 1080 or even only 720?

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Same. I even came across this comment after doing that. Did everything it said (browser.cache.offline.enable perf wasn't there for some reason, so I made one) and still no change. Changed the values of perfs mentioned in my post again as well, combined with that comment's proposed changes but still nothing.

And yeah, it's 1440p but I've tested this on 1080p videos as well. Length of 1440p video is 2-3 mins and the 1080p one is just over 11 mins.

Honestly, I give up at this point. Btw, thank you so much for trying to help.

[–] [email protected] 1 points 1 year ago (1 children)

I just compared the behavior in both Chromium and Firefox on my machine, and as far as I can tell, they act the same.

Steps to reproduce:

  1. Open a video: https://www.youtube.com/watch?v=erQ_9yEz0ls
  2. Play the last 10 seconds
  3. Click "replay" button in the YouTube player

What happens:

The buffer is cleared in both browsers.

What are you seeing that is different?

[–] [email protected] 1 points 1 year ago

You're supposed to let it play/buffer all the way till the end. Then press replay or when you're like 50-60% through the video, click on the timeline far enough back i.e < 1 min.

For example, when this video https://www.youtube.com/watch?v=2tdiKTSdE9Y finishes playing for me, and I press replay, YouTube starts rebuffering the video from scratch. In Chrome's case, the buffer is still there.

[–] [email protected] 1 points 1 year ago

Wouldn't surprise me if nothing could be done to fix this. It might help if the quality level was fixed instead of variable.

[–] [email protected] 0 points 1 year ago (1 children)

Nope. That's one of the ways Google intentionally disadvantages browsers other than Chrome.

Install a user agent switcher and set it to the most recent Chrome agent string. You'll probably see a long of jank go away...

[–] [email protected] 1 points 1 year ago

Yeah. And I actually tried changing user agent with this but still no luck. Tried incognito as well with chrome's UA. Re-buffers the same as always.

load more comments
view more: next ›