Closed Bug 981680 Opened 10 years ago Closed 10 years ago

audio/video sync busted in upstream 3.41 update


(Core :: WebRTC: Audio/Video, defect, P1)




Tracking Status
firefox27 --- unaffected
firefox28 --- affected
firefox29 + fixed
firefox30 --- fixed
relnote-firefox --- 29+


(Reporter: jesup, Assigned: jesup)




(Keywords: regression, relnote, Whiteboard: [webrtc][webrtc-uplift][p=2, 1.5:p1, ft:webrtc])


(2 files, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #964312 +++

> There have been reports of A/V sync issues with TURN (or with TURN TCP due to it being incorrectly selected) in recent weeks.  We need to investigate this.

Ok, while there may be a problem with TURN TCP (so I'm cloning the bug instead of repurposing it), I found that google badly broke a/v sync in 3.41 and did not correct it for some time (and never backported to fix to any stable branch).  While they had a/v sync module tests, they didn't have an end-to-end test until a while after they fixed this bug.

It was broken in Chrome 31 it appears, and the fix did not go out until Chrome 33; it can cause up to 5 seconds of A/V sync mismatch (though 2 seconds would be more common when it happens).  There might be a few cases where video is delivered significantly behind audio where the sync code will delay audio to match up better with video, but this should fix any case where video was leading audio.  We can look at disabling the "delay audio more" case, or limiting it extremely, if needed (it may already be handled reasonably).

It's unclear exactly when A/V would get bad with this bug; this may be where TURN TCP interacts with this bug to make sync go off.  From reports in the issue (2608), this is very bad on a high-loss or long-delay network (and the reporter was recommending Firefox to their users at the time).

The upstream patch applies cleanly and appears to solve the problem; my debugs for a/v offset dropped from hours or days to +- 20ms or so.  I have a smaller patch I did while investigating this before finding the upstream fix which might be acceptable for beta.

We should uplift the main patch here to Aurora asap after landing and basic manual tests.

Issue 2608:
Fixed in r5102 landing:
Attachment #8388593 - Attachment is obsolete: true
Closed: 10 years ago
Resolution: --- → FIXED
Comment on attachment 8388870 [details] [diff] [review]
Upstream webrtc patch for avsync (r5102) rs=jesup

[Approval Request Comment]
Bug caused by (feature/regressing bug #): Landing of upstream 3.41 in 28

User impact if declined: audio/video sync will not work; reports from developers indicate on iffy networks you can get 2 or even 5 seconds of offset sync.

Testing completed (on m-c, etc.): on m-c, in upstream since Nov 8, in Chrome 33

Risk to taking this patch (and alternatives if risky): almost none.  There's a minimal patch on this bug that doesn't clean up as much (and is a subset of the upstream changes basically).

String or IDL/UUID changes made by this patch: none
Attachment #8388870 - Flags: approval-mozilla-aurora?
relnote-firefox: --- → ?
Keywords: relnote
Attachment #8388870 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Whiteboard: [webrtc][webrtc-uplift] → [webrtc][webrtc-uplift][s=fx32]
Whiteboard: [webrtc][webrtc-uplift][s=fx32] → [webrtc][webrtc-uplift][p=2, 1.5:p1, ft:webrtc]
You need to log in before you can comment on or make changes to this bug.