2013-05-16 134 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)。