![]() webm is the container format we want to use for the output file (do not change this).You can use any type of video file (AVI, WMV, MP4, etc.) my-original-video.wmv is the filename of your source file.There’s a bit going on here, so let’s break it down while you wait for your video to transcode. Compiling ffmpeg with every available codec takes a long time, so we’ll just build with the three codecs we need:įfmpeg -i my-original-video.wmv -f webm -vcodec libvpx-vp9 -vb 1024k my-new-video.webm On OSX, use homebrew to build ffmpeg on your machine. ![]() Here’s a step by step guide to getting the files you need for any browser to natively play your video. With that said, it does require you have at least a basic knowledge of multimedia encoding, so it can be a little daunting if you’re just looking to create the necessary files to use the tag on your site. It supports just about every codec going and has a relatively simple interface. The WebM filesize is 40% that of the MP4.įfmpeg is a hugely powerful tool. The same file transcoded to H.264-MP4 and VP9-WebM with the same bitrate. Using ffmpeg you can transcode any multimedia file into WebM and MP4 from your command line. ![]() Currently all major browsers support MP4, but WebM allows for a much better quality-to-filesize ratio. There are only two file types required to natively play video in any modern browser with HTML5: WebM and MP4.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |