Chrome does not play MP4

坚强是说给别人听的谎言 提交于 2020-01-04 04:40:12

问题


I get several emails everyday to my Gmail account, from my security camera system. Such mail contains links to video clips (aprox 20 sec each) from cameras in MP4 format. Strange is that on Mageia based PC after clicking on such link the clip is open and playback in new separate browser card. And it is correct situation for me. But on Ubuntu based PC, Chrome always download video clip to HDD instead playback one. I dont know is it Linux distribution related problem but both installations use Chrome ver 38. How can I change/setup to have MP4 files always be playback instead downloaded ?


回答1:


Are you using Google Chrome or Chromium on Ubuntu, as a matter of interest? Either way the issue may be that MP4 support has not been enabled.

To enable it you need to install the support for mp4 codec:

sudo apt-get install chromium-codecs-ffmpeg

The reason for this is that some codecs are not fully open source, because they may be subject to patents for example, and hence they can't be included in a fully open source release.

See some discussion and references:

  • https://github.com/videojs/video.js/issues/675
  • https://launchpad.net/ubuntu/precise/+package/chromium-codecs-ffmpeg-extra



回答2:


I resolved the problem by emailing not direct link to particular video clip but by email link to WEB page containing HTMLv5 code with "video" statement. It is more flexible because it works in any environment and in any browser compatible with HTMLv5.



来源:https://stackoverflow.com/questions/26524325/chrome-does-not-play-mp4

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