mp4 with pixel format yuvj420p won't play in Chrome 17, but plays in Safari, IE etc mp4 with pixel format yuvj420p won't play in Chrome 17, but plays in Safari, IE etc google-chrome google-chrome

mp4 with pixel format yuvj420p won't play in Chrome 17, but plays in Safari, IE etc


I think your problem is the pixel format.

From your Chrome bug report, the working video (working.mp4) has pix_fmt=yuv420p. The non-working video (qt_output.mp4) has pix_fmt=yuvj420p. In my testing, converting the problematic video to yuv makes it play. Converting the working video to yuvj makes it not play.

I'm not sure why my analysis of the pixel format differs from Alek's on the Chrome bug report, but that made the difference for me.

Try adding -pix_fmt yuv420p to your ffmpeg command.


Please read chromium bug #117368, in which a developer explains that yuvj420p will not be supported soon:

Indeed, chromium doesn't support yuvj420p.

Generally we don't support video formats (or codecs) that aren't very widely used, because the support burden (maintaining code quality, fixing bugs, security reviews, etc) is out of proportion with user benefit (relative to everything else we can spend our time/energy on).

Closing as WorkingAsIntended. If the format becomes more widely popular we can reconsider including support for it.If there's another issue here that I'm missing, please reopen.


There's nothing that can be done here, it's a browser issue you're linking to a raw file.You really need to use an HTML5/FLASH/JS or other video player inside of an HTML document.

This will work in all HTML5-capable browsers:

<!DOCTYPE html><head>    <meta charset="utf-8" /></head><body>    <video height="250" width="320">        <source src="http://shootitlive.s3.amazonaws.com/output.mp4" type="video/mp4" />    </video></body>