0

如果包含 EMBED 标签,我可以播放视频文件。但是,由于这是一个垂死的标签,我想使用 html5。到目前为止,我没有运气。我也尝试过使用 video.js。Chrome 没有给我一个明确的错误,但是 firefox 说它在使用 video.js 时无法解码视频。我不清楚为什么。该文件是每十分钟自动生成的文件(用于天气网络摄像头)。我已附上有关以下文件的信息。信息是使用 MediaInfo 提取的:

General
Count                                    : 284
Count of stream of this kind             : 1
Kind of stream                           : General
Kind of stream                           : General
Stream identifier                        : 0
Inform                                   : MPEG-4 (Base Media): 428 KiB, 6s 334ms
Count of video streams                   : 1
Video_Format_List                        : MPEG-4 Visual
Video_Format_WithHint_List               : MPEG-4 Visual
Codecs Video                             : MPEG-4 Visual
File name                                : tensecondvideo
File extension                           : mp4
Format                                   : MPEG-4
Format                                   : MPEG-4
Format/Extensions usually used           : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
Commercial name                          : MPEG-4
Format profile                           : Base Media
Internet media type                      : video/mp4
Codec ID                                 : isom
Codec ID/Url                             : http://www.apple.com/quicktime/download/standalone.html
Codec                                    : MPEG-4
Codec                                    : MPEG-4
Codec/Extensions usually used            : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
File size                                : 438299
File size                                : 428 KiB
File size                                : 428 KiB
File size                                : 428 KiB
File size                                : 428 KiB
File size                                : 428.0 KiB
Duration                                 : 6334
Duration                                 : 6s 334ms
Duration                                 : 6s 334ms
Duration                                 : 6s 334ms
Duration                                 : 00:00:06.334
Overall bit rate                         : 553583
Overall bit rate                         : 554 Kbps
Stream size                              : 941
Stream size                              : 941 Bytes (0%)
Stream size                              : 941 Bytes
Stream size                              : 941 Bytes
Stream size                              : 941 Bytes
Stream size                              : 941.0 Bytes
Stream size                              : 941 Bytes (0%)
Proportion of this stream                : 0.00215
HeaderSize                               : 36
DataSize                                 : 437366
FooterSize                               : 897
IsStreamable                             : No
File creation date                       : UTC 2013-05-16 13:17:34.737
File creation date (local)               : 2013-05-16 09:17:34.737
File last modification date              : UTC 2013-05-16 13:12:12.000
File last modification date (local)      : 2013-05-16 09:12:12.000
Writing application                      : Lavf54.59.106

Video
Count                                    : 263
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0
Inform                                   : 552 Kbps, 1280*720 (16:9), at 3.000 fps, MPEG-4 Visual (Simple@L1)
ID                                       : 1
ID                                       : 1
Format                                   : MPEG-4 Visual
Commercial name                          : MPEG-4 Visual
Format profile                           : Simple@L1
Format settings, BVOP                    : No
Format settings, BVOP                    : No
Format settings, QPel                    : No
Format settings, QPel                    : No
Format settings, GMC                     : 0
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Format settings, Matrix                  : Default (H.263)
Internet media type                      : video/MP4V-ES
Codec ID                                 : 20
Codec                                    : MPEG-4V
Codec                                    : MPEG-4 Visual
Codec/Family                             : MPEG-4V
Codec/CC                                 : 20
Codec profile                            : Simple@L1
Codec settings, Packet bitstream         : No
Codec settings, BVOP                     : No
Codec settings, QPel                     : No
Codec settings, GMC                      : 0
Codec settings, GMC                      : No warppoints
Codec settings, Matrix                   : Default (H.263)
Duration                                 : 6334
Duration                                 : 6s 334ms
Duration                                 : 6s 334ms
Duration                                 : 6s 334ms
Duration                                 : 00:00:06.334
Bit rate mode                            : Constant
Bit rate                                 : 552452
Bit rate                                 : 552 Kbps
Width                                    : 1280
Width                                    : 1 280 pixels
Height                                   : 720
Height                                   : 720 pixels
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.778
Display aspect ratio                     : 16:9
Rotation                                 : 0.000
Frame rate mode                          : CFR
Frame rate mode                          : Constant
Frame rate                               : 3.000
Frame rate                               : 3.000 fps
Frame count                              : 19
Resolution                               : 8
Resolution                               : 8 bits
Colorimetry                              : 4:2:0
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan type                                : Progressive
Interlacement                            : PPF
Interlacement                            : Progressive
Compression mode                         : Lossy
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.200
Delay                                    : 0
Delay                                    : 00:00:00.000
Delay, origin                            : Container
Delay, origin                            : Container
Stream size                              : 437358
Stream size                              : 427 KiB (100%)
Stream size                              : 427 KiB
Stream size                              : 427 KiB
Stream size                              : 427 KiB
Stream size                              : 427.1 KiB
Stream size                              : 427 KiB (100%)
Proportion of this stream                : 0.99785
Writing library                          : Lavc54.86.100
Writing library                          : Lavc54.86.100
4

1 回答 1

2

它是一个 MP4,但使用浏览器的视频元素(或 Flash 后备)无法播放的MPEG-4 Visual视频编解码器。当使用嵌入元素时,Quicktime 或其他一些插件将播放它们。

对于 HTML5 视频,您应该将这些转换为 h.264(如果您不想在 Firefox 上使用 Flash 后备,则应转换为 webm)。

于 2013-05-18T10:40:00.797 回答