HTML5视频无法在任何浏览器中播放

问题描述 投票:0回答:1

我有一个视频,其中包含以下信息It is MP4 video with H264 codec

但是,使用以下代码:

<video width="500" height="440" controls="controls">
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">

Your browser does not support the video tag.
</video>

[视频无法播放,并且在渲染Rendered Video时看起来像这样

我已经检查过编解码器为H264,并且尝试了其他浏览器,但都无法正常工作。我可以使用VLC观看视频。我正在使用本地主机,并且正在Windows 10上工作。有人可以帮助我解决此问题吗?

使用mediainfo的信息如下:

Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (isom/mp42)
File size                                : 16.3 MiB
Duration                                 : 2 min 41 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 846 kb/s
Encoded date                             : UTC 2020-04-04 23:03:29
Tagged date                              : UTC 2020-04-04 23:03:29

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings                          : CABAC / 5 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 5 frames
Format settings, GOP                     : N=1
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2 min 41 s
Bit rate                                 : 791 kb/s
Width                                    : 3 840 pixels
Height                                   : 2 060 pixels
Display aspect ratio                     : 1.85:1
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.004
Stream size                              : 15.2 MiB (93%)
Title                                    : H.264/AVC video
Encoded date                             : UTC 2020-04-04 23:03:29
Tagged date                              : UTC 2020-04-04 23:03:29
Codec configuration box                  : avcC
html video browser mp4 codec
1个回答
-1
投票
URL中更改设置

<iframe width="500" height="440" src="URL"></iframe> Loop: loop= 1 or 2 Control: controls= 1 or 2 autoplay : autoplay= 1 or 2

© www.soinside.com 2019 - 2024. All rights reserved.