Page MenuHomePhabricator

Some MP4 videos do not play in Chrome
Closed, ResolvedPublic

Assigned To
Authored By
epriestley
Feb 6 2017, 5:33 PM
Attached Files
F2597145: Screen Shot 2017-02-06 at 9.34.02 AM.png
Feb 6 2017, 5:34 PM
F2597111: meow.mp4
Feb 6 2017, 5:33 PM
F2597106: badge.mp4
Feb 6 2017, 5:33 PM

Description

This MP4 video does not play in Chrome:

This one does:

On this install only, T12079 may be a confounding factor in reproducing this.

Event Timeline

Here's what I see in Chrome at time of writing:

Screen Shot 2017-02-06 at 9.34.02 AM.png (1×1 px, 796 KB)

I can't play the top one in safari either

Yeah, same here. Both videos are of similar size (1.6MB vs 2.1MB) and both appear to legitimately be MP4 / H264 videos (neither is some kind of obviously spooky magic like an AVI named .mp4).

My best guess is that this might be a general Content-Range issue (see also T8266). I know our Content-Range behavior for encrypted files is wrong in some cases (T12079) and all files on this install are encrypted, but I believe there's also some kind of bug even in the unencrypted case.

I think that the problem is the content itself. This is evident by thumbnail fails to be generated when the second one is ok. On my OS/browser combo (Gentoo/firefox) first video loads very slowly while the second is perfectly ok. On Chrome first video refuses to load.
After downloading and testing locally, everything is fine. My guess is that chrome and firefox can guess proper values for decoders for "normal" video, while for "weird" video firefox tries it's best and chrome just gives up.

epriestley claimed this task.

This appears to be resolved for me, now. Handling Range: bytes=123- and Range: bytes=0- (plus the fixes for the broader issues in T8266 and T12079) seemed to be the key issues.