Chrome浏览器不播放MP4 [英] Chrome does not play MP4
问题描述
奇怪的是,在基于Mageia的PC上点击这样的链接后,剪辑被打开并在新的独立浏览器卡中播放。对我来说这是正确的情况。但在基于Ubuntu的PC上,Chrome始终将视频剪辑下载到HDD,而不是播放一个。
我不知道是不是Linux发行版相关的问题,但两个安装都使用Chrome的版本38.
如何更改/设置让MP4文件始终播放而不是下载?
您是否在Ubuntu上使用Google Chrome或Chromium?无论哪种方式,问题可能是MP4支持尚未启用。
要启用它,您需要安装对mp4编解码器的支持:
sudo apt-get install chromium-codecs -ffmpeg
原因是一些编解码器是不完全开放源代码,因为它们可能会受到专利保护,因此它们不能包含在完全开源版本中。
查看一些讨论和参考资料:
- https://github.com/videojs/video.js/issues/675
- https://launchpad.net/ubuntu/precise/+package/chromium-codecs-ffmpeg-extra
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 ?
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
这篇关于Chrome浏览器不播放MP4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!