Open Bug 1262851 Opened 9 years ago Updated 2 years ago

MediaRecorder records wrong duration when frames are far apart

Categories

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

48 Branch
defect

Tracking

()

Tracking Status
firefox47 --- unaffected
firefox48 --- affected

People

(Reporter: pehrsons, Unassigned)

References

Details

Attachments

(2 files)

Hook a stream with only a video track up to a MediaRecorder. Push a frame through. Wait two seconds. Push another frame through. Wait two seconds. Stop the MediaRecorder. Expected: The resulting file should have a duration of at least 4 seconds. Actual: The resulting file has a tiny duration. This is because we now use direct listeners in MediaRecorder, but we still pass on the frames with the duration they initially had to the encoder. The encoder is not updated with the time between frames or after the last frame on recording end.
It's not as bad as it sounds. Passing on an extra frame 1 second before stopping in the STR above, it works as expected.
Attachment #8739052 - Attachment description: Simple mochitest test case (modified from the changing_video_resolution test) → Failing mochitest test case (modified from the changing_video_resolution test)
Rank: 23
Priority: -- → P2
Mass change P2->P3 to align with new Mozilla triage process.
Priority: P2 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: