FFMPEG Convert HTML 5 Video NOT Working

后端 未结 7 1733
悲哀的现实
悲哀的现实 2021-01-30 09:49

I am using FFMPEG to convert a video to .mp4, ,ogg, .webm so that it may be viewed in all HTML5 capable browsers using the video tag

7条回答
  •  余生分开走
    2021-01-30 10:17

    Having tried most of the suggestions above, here's what actually worked for me to convert wmv files to small mp4, webm, ogg on a Windows7-64 machine:

    64bit\ffmpeg -i test.wmv test.mpg
    
    old\ffmpeg -i test.mpg -vcodec h264 -s 320x240 test.mp4
    
    32bit\ffmpeg -i test.mpg -vcodec libvpx -acodec libvorbis -f webm -s 320x240 test.webm
    
    32bit\ffmpeg -i test.mpg -vcodec libtheora -acodec libvorbis -s 320x240 test.ogg
    

    old\ffmpeg is version SVN-r5570

    64bit\ffmpeg is version N-38292-ga4c22e3 built 2/27/12 14:55:47

    32bit\ffmpeg is version N-39267-g4082198 built 3/25/12 20:25:08

    (Only the 64 bit version would read the wmv, so I used it to convert to mpg as a common format. Only the old ffmpeg would create an mp4.)

提交回复
热议问题