

under a wide variety of build environments, machine architectures, and configurations. It is also highly portable: FFmpeg compiles, runs, and passes our testing infrastructure FATE across Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc. No matter if they were designed by some standards committee, the community or a corporation. It supports the most obscure ancient formats up to the cutting edge. Install FFMpeg binariesĪs first step you will need to install FFMpeg on your development machine. FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. In this article, we'll share with you an useful snippet using PHP FFMpeg to convert a webm video to mp4 easily. Sometimes, your user will need the recorded videos outside of the browser for different reasons and your project may need as well provide support for this kind of users by simply converting the video into its mp4 version so it can be played on multiple platforms as well. A lot of WebRTC based open source projects that allow you for example, record a video from the browser and upload it to your server, use the webm format as it's one of the most known formats for the web.


The WebM file structure is based on the Matroska container. WebM is 100% free, and open-sourced under a BSD-style license. WebM files consist of video streams compressed with the VP8 or VP9 video codecs and audio streams compressed with the Vorbis or Opus audio codecs. WebM is an open, royaltyz-free, media file format designed for the web that defines the file container structure, video and audio formats.
