问题
Im trying to get a HTML page set up where a video is playing.
My video is an .mkv file. It works fine on Chrome, but I dont have any sound. Audio codec is AC3.
My code:
<p><video src="video.mkv" type='video/x-matroska; codecs="a_ac3, avc"' autoplay controls onerror="failed(event)" ></video></p>
https://jsfiddle.net/wc2fn02s/
回答1:
AC3 is not supported by Chrome due to licensing issues.
No support for ac3 and dts - Current status: WontFix
Media player silently ignores AC3 audio (pun intended).
The first link talks about third party plugins like this one that can play it, though.
来源:https://stackoverflow.com/questions/38146541/video-soundcodec-ac3-mkv