html5 video cannot be played, sound can be played but video cannot be played, and the screen is black;
The browser has limited support for playing videos, and videos in MP4 format only support h.264 videos;
Video Encoding: AVC1 - Built-in FFmpeg decoder (h264) can be played;
Video encoding: mp4v - Built-in FFmpeg decoder (mpeg4) cannot be played;
Method/step
1: Check the format of the video; open the video with PotPlayer, right-click -Properties, you can see the video encoding;
2: Use Format Factory to convert The format is h264;
3: After conversion, it can be opened with an html5 video web page and can be played;
[Related recommendations 】
1. html/css free video tutorial
3. Share examples of banner production using HTML5
4. Overview of the power and future development of HTML5
5. Introduction to the use of the latest h5 tag datalis
The above is the detailed content of The solution to the problem that the H5 video tag can only play sound but not video. For more information, please follow other related articles on the PHP Chinese website!