Open Bug 1605588 Opened 4 years ago Updated 2 years ago

Mediarecorder fails to emit data a regular invervals when recording video with a timeslice smaller than 1000 ms

Categories

(Core :: Audio/Video: Recording, defect, P3)

71 Branch
defect

Tracking

()

People

(Reporter: john357smith, Unassigned)

References

(Regression)

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.94 Safari/537.36

Steps to reproduce:

  1. Start Mediarecorder.Start() with timeslice smaller than 1000 ms (e.g. 200).
  2. Wait for ondataavailable event
  3. Check whether there are available data in each event.

Actual results:

Data are available only afer 1 second (1000ms) or more.

Expected results:

Data are available in each ondataavailable event.

Such a inconsistent behaviour has been already fixed with patch for https://bugzilla.mozilla.org/show_bug.cgi?id=1411857 but it seems with patch below there is a similar problem:

https://hg.mozilla.org/mozilla-central/annotate/67e59d2a26dcdf015acf59ffcc8705c3867c4794/dom/media/MediaRecorder.cpp#l835

A check was added to limit key frame interval to be not smaller than 1 sec.

Hi john357smith,

Thank you for your report.

While I'm unable to try the steps on my end, I'll add a product and component to this ticket.

In the meantime, can you please confirm that you are able to reproduce this issue in the latest Firefox Nightly?

Audio/Video: Recording team: this issue seems to be similar to https://bugzilla.mozilla.org/show_bug.cgi?id=1411857.

Thanks!
Virginia

Component: Untriaged → Audio/Video: Recording
Flags: needinfo?(john357smith)
Product: Firefox → Core

Hi Virginia,

yes I can confirm that bug is still there even with the latest Firefox NIghtly (installed, standalone windows 7 installation, all profiles completely wiped out).

And yes, this is just only Firefox problem no such problem exists in Chrome based browsers.

Thanks.

Flags: needinfo?(john357smith)

Hi Bryce, this is possibly a regression (or maybe just expected behaviour) from Bug 1514158. With Andreas out, could you please have a quick look at triaging this? Thanks!

Flags: needinfo?(bvandyk)
Summary: mediarecorder → Mediarecorder cannot record timeslice smaller than 1000 ms

Expanding upon comment 0, the issue appears specific to recorders that are encoding video, which is consistent with the change linked there.

STR:

Assignee: nobody → bvandyk
Flags: needinfo?(bvandyk)
Priority: -- → P3
Summary: Mediarecorder cannot record timeslice smaller than 1000 ms → Mediarecorder fails to emit data a regular invervals when recording video with a timeslice smaller than 1000 ms
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Regressed by: 1514158
Has Regression Range: --- → yes
Assignee: bvandyk → nobody
Status: ASSIGNED → NEW

It sounds like args > 1000ms should also be checked to ensure they're working, per bug 1666487.

See Also: 1666487
Summary: Mediarecorder fails to emit data a regular invervals when recording video with a timeslice smaller than 1000 ms → Mediarecorder fails to emit data at expected invervals when recording video with a timeslice != 1000 ms

Sorry, I disagree per bug 1666487 comment 2.

Summary: Mediarecorder fails to emit data at expected invervals when recording video with a timeslice != 1000 ms → Mediarecorder fails to emit data a regular invervals when recording video with a timeslice smaller than 1000 ms
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.