A problem was recently found. A 1.MP4 file was recorded on the mobile phone, and the mainstream browsers can be played normally. However, the use format factory transfers the RMVB file to 2.MP4 but cannot be played. After finding the relevant information, it is finally solved. The following shares it for your reference learning. Let's take a look at the detailed introduction:
Problem analysisVideo attribute recorded by mobile phone:
Video attributes of the transcoding of the Format Factory:
First, the problem of code, path problem, browser do not support problems. The transcoding video encoding is MP4V, which is the reason why it cannot be played. It can be converted to AVC (H264) encoding.
Check the document, and the video format and coding supported by the Video label:Through the above information, we found that there are only H264 encoded MP4 videos (MPEG-LA), VP8-encoded Webm format video (Google), and the OGG format videos coded by Theora (iTouch) can support HTML5's <VIDEO> tags in HTML5 Essence
SolutionVideo label allows multiple source elements. Source elements can link different video files. The browser will use the first recognizable format to solve the browser compatibility problem.
<video Controls = Controls Width = 100%> <Source SRC = 1.MP4 Type = VIDEO/MP4> <Source SRC = 1.OGG TYPE = VIDEO/OGG> Your Browser Does Not Support T he video tag. </Video>Summarize
The above is all the contents of this article. I hope that the content of this article will help everyone's learning or work. If you have any questions, you can leave a message to communicate. Thank you for your support for VEVB Wulin.com.