The solution to the problem that the H5 video tag can only play sound but not video

Y2J
Release: 2017-05-19 13:41:42
Original
4340 people have browsed it

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;

The solution to the problem that the H5 video tag can only play sound but not video

2: Use Format Factory to convert The format is h264;

The solution to the problem that the H5 video tag can only play sound but not video

3: After conversion, it can be opened with an html5 video web page and can be played;

The solution to the problem that the H5 video tag can only play sound but not video

[Related recommendations 】

1.html/css free video tutorial

2.The MIME of IIS does not register the MP4 type, resulting in the solution that the vidoe tag cannot be recognized

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!