2013-05-16 135 views
0

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

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 ([email protected]) 
ID          : 1 
ID          : 1 
Format         : MPEG-4 Visual 
Commercial name       : MPEG-4 Visual 
Format profile       : [email protected] 
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       : [email protected] 
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 

回答

2

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

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