2014-01-08 7 views
1

나는 mp4 및 ogg 소스가있는 html5 비디오 태그가 있습니다. 그것은 IE 11/10/9를 제외하고는 어디에서나 잘 작동합니다/...하지만 .mp4 파일을 IE에 직접 열면 재생됩니다. 내 여기 검색 후 은, 내가 찾은 주요 조언IE의 MP4 동영상

AddType video/ogg .ogv 
AddType video/mp4 .mp4 
AddType video/webm .webm 

와 마임 타입을 지정와 gzip이 활성화되지 있는지 확인하는 것입니다. 그러나 여전히 효과가 없을 것입니다. 이 질문에 지정된대로 페이지가 here

편집 을 찾을 수 있습니다, 그것은 코덱 문제였다. 이 비디오는 FFmpeg 생성되기 때문에, 여기 내 수정 명령의 다음 MP4의 비디오 트랙 비디오 요소에 재생할 수 코덱 브라우저를 사용

ffmpeg -r 10 -y -i ./path/to/%05d.jpg -vcodec libx264 -preset slow -crf 24 -pix_fmt yuv420p ./path/to/video.mp4 

답변

2

(MPEG-4 비주얼/MPEG-4 파트 2) . 브라우저에 직접 URL을 입력하면 IE가 Windows Media Player 또는 다른 플러그인을 사용하여 재생하는 것을 상상해보십시오. 다른 브라우저는 ogg 버전을 재생할 수 있습니다.

h264 코덱을 사용하여 MP4를 다시 인코딩해야합니다.

mediainfo video.mp4 
General 
Complete name       : video.mp4 
Format         : MPEG-4 
Format profile       : Base Media 
Codec ID         : isom 
File size        : 27.4 MiB 
Duration         : 2mn 25s 
Overall bit rate       : 1 581 Kbps 
Writing application      : Lavf52.31.0 

Video 
ID          : 1 
Format         : MPEG-4 Visual 
Format profile       : [email protected] 
Format settings, BVOP     : No 
Format settings, QPel     : No 
Format settings, GMC      : No warppoints 
Format settings, Matrix     : Default (H.263) 
Codec ID         : 20 
Duration         : 2mn 25s 
Bit rate         : 1 580 Kbps 
Width         : 256 pixels 
Height         : 256 pixels 
Display aspect ratio      : 1.000 
Frame rate mode       : Constant 
Frame rate        : 10.000 fps 
Color space        : YUV 
Chroma subsampling      : 4:2:0 
Bit depth        : 8 bits 
Scan type        : Progressive 
Compression mode       : Lossy 
Bits/(Pixel*Frame)      : 2.412 
Stream size        : 27.4 MiB (100%) 
Writing library       : Lavc52.20.1 
관련 문제