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.