Open Bug 1817497 Opened 2 years ago Updated 2 years ago

YouTube video buffer not stored in RAM for at least several hours, buffer data seems to get flushed after specific time or due to inactive tab

Categories

(Core :: Audio/Video: Playback, defect)

Firefox 110
defect

Tracking

()

REOPENED

People

(Reporter: e412byoy7, Unassigned, NeedInfo)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0

Steps to reproduce:

Open a YouTube video, pause it half way. Then switch to other tabs for 3-4 hours, switch back to this video, continue playing it

Actual results:

it will instantly flash in black color very shortly, indicating a reload of the entire video buffer.

Expected results:

Should continue playing the video data stored in Firefox.exe in the user's RAM memory

(the reload of the video buffer of course is also visible in the bottom of the player, the grey buffer-bar in the player UI)

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

Hi Dan, thanks for reporting this. It will be very helpful for further investigation of this issue if you can capture what's wrong in Firefox Profiler with Media preset and share the information in your about:support page to us.

Flags: needinfo?(e412byoy7)
Attached file about:support (deleted) —
got it. the last 3-4 seconds of this media-profile are where I see youtube start page but video-audio playing in background. Does it contain enough data or should I include any additional data from the profiler settings? https://share.firefox.dev/3KiIO6A about:support:

About:support data in the attached file.

Flags: needinfo?(e412byoy7)

please take a look into the profile track "GPU Process (8132)", subsection "IPC-MediaSupervisor #37", to me it looks like the pink bar could be displaying the running audio in the background starting at about 25 seconds?

Flags: needinfo?(cchang)

Sorry, please remove my previous 3 comments, I mixed up this bugreport with another YouTube bugreport... Once I see this issue again I will create the media profile, sorry!

Flags: needinfo?(cchang)
Blocks: media-triage

Hi Dan, if the video page idles too long, Firefox will free its resources. You can check if "DORMANT" appears on the log messages when this happens.
https://paul.cx/public/about-logging-presentation.webm demonstrate how to get the logs. I am going to close this bug for now since the behavior meets the design (although it may cause confusion). Feel free to open another bug, or reopen it if you find this is not caused by "DORMANT" state.

No longer blocks: media-triage
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX

I have 64GB RAM in my system. Doesn't Firefox recognize the user's RAM amount? Are other Windows programs able to force Firefox to free up ressources or at what point will Firefox free those?

Flags: needinfo?(cchang)

I did not find "dormant" in Marker Table in MediaDecoderState using the steps in the video you linked. Please check it yourself: https://share.firefox.dev/3KJGJAZ

Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: