FFMPEG Convert HTML 5 Video NOT Working

后端 未结 7 1748
悲哀的现实
悲哀的现实 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:21

    I would try this code first. It is as simple as possible.

        
    

    Creating mp4 files, minimal number of arguments. Unfortunately, I haven't tested it much.

        ffmpeg -i input_file -vcodec libx264 -vpre medium output_file.mp4
    

    To creating ogv files You should use ffmpeg2theora. There are too many problems with ffmpeg.

提交回复
热议问题