我的代码不适用于手机录制的视频 (MP4)。
测试过其他视频mp4,工作正常。
他不支持可视电话吗?
Video Features :
Format : MPEG - 4
Format profile: Base Media
Codec ID : isom
File size: 29.8 MiB
Duration : 21mn 2s
Overall bit rate: 198 Kbps
Writing application : Lavf52.84.0
Video
ID: 1
Format : MPEG - 4 Visual
Format profile: Simple @ L1
Format settings , BVOP : No
Format settings , QPEL On
Format settings , GMC : No warppoints
Format settings , Matrix : Default ( H.263 )
Codec ID: 20
Duration : 21mn 2s
Bit rate: 97.5 Kbps
Width : 176 pixels
Height : 144 pixels
Display aspect ratio : 1.222
Frame rate mode: Constant
Frame rate: 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type: Progressive
Compression mode: Lossy
Bits / ( Pixel * Frame) : 0.128
Stream size: 14.7 MiB ( 49 % )
Writing library : Lavc52.97.0
audio
ID: 2
Format : MPEG Audio
Format version: Version 1
Format profile: Layer 3
Mode: Joint stereo
Mode extension: MS Stereo
Codec ID: 6B
Duration : 21mn 2s
Bit rate mode: Constant
Bit rate: 96.0 Kbps
Channel ( s ) : 2 channels
Sampling rate: 44.1 KHz
Compression mode: Lossy
Stream size: 14.4 MiB ( 48 % )
Writing library : LAME3.98.4
最佳答案
您的视频格式是 MPEG-4 Visual,chrome 不支持。 http://code.google.com/p/chromium/issues/detail?id=54036
这很令人困惑,但这与使用 h.264 编解码器的更标准 MP4 文件不同。您的信息应如下所示:
General
Complete name : filename.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
...
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e2a08391878e8b8c87a2aed1ccd2" rel="noreferrer noopener nofollow">[email protected]</a>
Format settings, CABAC : No
Format settings, ReFrames : 2 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
...
关于Video.js 与 mp4 视频不兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18802909/