Mp4 with the yuvj420p pixel format will not play in Chrome 17 but will play in Safari, IE, etc.

File from Nikon D3s (mov), converted from ffmpeg to mp4. Work without problems with all other files (avi, flv, mp4, etc.)

See file: http://shootitlive.s3.amazonaws.com/output.mp4 (The same non-working result in Chrome when working with different hosts and always works in Safari and with flash in Firefox, Chromium)

/ usr / local / bin / ffmpeg -i nonworking.MOV -acodec libfaac -ab 128k -vcodec libx264 -preset slow -crf 30-threads 0 -s 768x576 -aspect 1.33333333333 -ar 48000 output.mp4

I can not find anything strange (but I do not know what to look for):

ffmpeg -v 5 -i filename -f null - 2>error.log` 

Any ideas?

+7
source share
3 answers

I think your problem is the pixel format.

From your Chrome error report, the working video (work.mp4) has pix_fmt = yuv420p. A non-working video (qt_output.mp4) has pix_fmt = yuv j 420p. In my testing, converting the problematic video to yuv makes it play. Converting a working video to yuvj makes it not play.

I'm not sure why my pixel format analysis differs from Alek in the Chrome bug report, but it mattered to me.

Try adding -pix_fmt yuv420p to your ffmpeg command.

+17
source

Read chrome bug # 117368 , in which the developer explains that yuvj420p will not be supported soon:

Indeed, chrome does not support yuvj420p.

As a rule, we do not support video formats (or codecs), which are not very widely used, since the support burden (maintaining the quality of the code, fixing bugs, security checks, etc.) does not meet the needs of users (we can spend time on everything / energy).

Closing as WorkingAsIntended. If the format becomes more popular, we can revise it, including its support. If there is another problem here that I will miss, please open it again.

+3
source

Nothing can be done here, this is a browser problem with which you are contacting an unprocessed file. You really need to use HTML5 / FLASH / JS or another video player inside the HTML document.

This will work in all browsers that support HTML5.

 <!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> 
-one
source

All Articles