This solution solves the problem that some MP4 Video tags cannot be played. html5video

Source: Internet
Author: User

This solution solves the problem that some MP4 Video tags cannot be played. html5video

Currently, webpage videos are widely used. In actual projects, Beijing website production company cloud point interconnection found that some MP4 files can be played normally on H5 webpages, but some cannot, why?

1. First, I downloaded an MP4 file from the Internet. Both IE10 and Google can play normally. Then, I converted an RMVB file to MP4 using the formatting factory, and then the file cannot be played.

For example, when I select MP4 format conversion, the configuration file in it is also called many times, but it cannot be played. IE10 has no response at all. Google can make sound, but the image cannot be used.

2. I directly right-click the file to view the file attributes-Details, basically the same.

3. I used potplayer to play two different files and potplayer to view the properties of the two files,

The attributes of a video that can be normally played using the video tag downloaded from the Internet are as follows:

We can see that the video encoding is AVC.

The video encoding for factory transcoding is as follows:

I found that the video I transcoded is mp4v.

4. Find the AVC encoding format in the formatting factory, as shown in figure

5. Use the AVC format encoding. After transcoding, use the video tag to play the video normally.

In the final analysis, the problem of video encoding format is not a problem of Webpage Programs.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.