HTML5 video: ffmpeg-encoded MP4 not playing in any browser (plays in VLC though)

删除回忆录丶 提交于 2019-12-03 08:32:17

No MP4-playing browsers actually seem to have full support for MP4 - especially problematic for MS and Apple's browsers which are trying to create a royalty-hell / monopoly around the format.

I got it to work by re-encoding with the following FFMPEG parameters:

-pix_fmt yuv420p
-preset slow
-profile:v baseline

Giving a full command line of:

ffmpeg
  <INPUT DEFINITION>
  -an
  -s hd720
  -vcodec libx264
  -b:v BITRATE
  -vcodec libx264
  -pix_fmt yuv420p
  -preset slow
  -profile:v baseline
  -movflags faststart
  -y <OUTPUT PATH>

The problem was ultimately yet another example of proprietary software vendors not properly supporting their own standards.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!