Convert An mp4 File To webm Format

English

Convert an mp4 file to webm format.

The WebM format is based on a limited version of the Matroska container format. It always uses VP8 or VP9 video codec and Vorbis or Opus audio codec.

The WebM format, specifically the VP8 video codec, had been accused of patent infringement by a group of companies responding to a call from MPEG LA for the formation of a patent pool, but MPEG LA has agreed to license these patents to Google under an "eternal, Transferable, royalty-free license ".

This means that all known patents on the WebM format are licensed to all for free.

Convert an mp4 file to webm format.

webm is the format I recommend to anyone else for use on websites because it is supported by:

  • Mozilla Firefox - WebM, Ogg
  • Google Chrome - WebM, Ogg
  • Internet Explorer 9 - MP4
  • Internet Explorer 6-8 - Ej HTML5, Endast Flash!
  • Opera - WebM, Ogg
  • Safari - MP4

Begin by downloading and installing ffmpeg.

Open a terminal window and type:

sudo apt-get install ffmpeg

Press Enter.

Go into the folder where the original.mp4 file you want to convert is located:

cd folder

Then type ( all in one line ):

ffmpeg -i example-in.mp4 -vcodec libvpx -acodec libvorbis -b:v 600k
 -cpu-used 4 -threads 8 example-out.webm

But replace example-in (mp4) and example-ut.webm which becomes the result file. An mp4 of 220MB can be up to 13MB instead.

To change the quality, which also affects file size, change the "600k" value (bitrate) to higher eg.

Note: libvpx was used for .webm

Do you want to convert mp4 instead you type:

ffmpeg -i exempel-in.mp4 -vcodec libtheora -acodec libvorbis -b:v 600k -cpu-used 4 -threads 8 exempel-ut.ogv

To change the quality, which also affects file size, change the "600k" value (bitrate) to higher etc.

Note: libtheora is used for .ogv ( ogg vorbis ), non HTML5 standard.

Library categories: 

Games For Linux

Windows has always been the preferred platform for gaming, but after STEAM's interest in Linux more game developers are making their games natively available for Linux.

Disclaimer

All information on this website is published in good faith and for general educational purposes and for use in safe testing environments only. While linuxexperten.com strives to make the information on this site as accurate as possible, linuxexperten.com does not warrant its completeness, reliability and accuracy.

We are not responsible for any losses or damages associated with the use of our website. While we strive to provide only links to useful websites, we have no control over the content of these sites and links to other sites do not constitute a recommendation for all content contained on these websites.

 

Site Information

This is a professional review site that receives compensation from the companies whose products reviewed. Each service or product are thoroughly tested and given high marks if considered to be the very best. Independently owned and the opinions expressed here are no one elses.