How to Convert WebM Videos to Any Format in Linux

by Isai Mills
16 minutes read

How to Convert WebM Videos to Any Format in Linux

Vlc Media Player Primary Interface In Ubuntu Linux

While WebM is a light-weight and also favorable internet-courteous video layout, it can be sly to administer it jobs on unalike machines and also platforms. One workaround is to convert your WebM papers to plenty of other contemporary layouts advice MP4, AVI, or MKV to make certain compatibility through assorted media players and also platforms.

This write-up mirrors you how to convert WebM video clips to your favorite layouts on Ubuntu Linux filching advantage of assorted contraptions such as FFmpeg, VLC, and also Handbrake.

Content
  • Intro to WebM Format
  • Reinventing WebM Video clips Gaining take advantage of of FFmpeg
  • Reinventing WebM Video clips Gaining take advantage of of VLC
  • Reinventing WebM Video clips Gaining take advantage of of HandBrake
  • Reinventing Numerous WebM Files Gaining take advantage of of Revelry Script

Note: While the guideline here is focused on Linux, the contraptions made take advantage of of are cross-platform applicable, which typicals they will job on macOS and also Abode windows also.

Intro to WebM Format

WebM is a unshackle and also open-source media record layout that is largely made take advantage of of to cede video web content on the Web. It is made to lend high-attribute video at a smaller record dimension loved one to plenty of other layouts advice MP4 or AVI. WebM is based on the VP8 and also VP9 video codecs and also the Piece and also Vorbis audio codecs.

Reinventing WebM Video clips Gaining take advantage of of FFmpeg

FFmpeg is a multimedia structure that is unshackle, open-source, and also jobs on assorted platforms advice Abode windows, Linux, and also macOS. You can intake the FFmpeg command jabber tool to convert, record, stream, and also juggle video and also audio papers of assorted layouts.

Arrangement

Previously we overture changing, make certain that you have FFmpeg obtainable on your clauses. You can authenticate your iteration filching advantage of this command:

ffmpeg -version
weighing iteration of FFmpeg in command jabber terminal

If FFmpeg is placement, you’ll investigate its iteration info. If not, you can intake your default methodology company to ranked it.

For example, on Ubuntu/Debian-based units, run this:

sudo apt install ffmpeg
Mounting FFmpeg filching advantage of apt methodology company

To ranked FFmpeg on CentOS/Fedora or REHEL-based distro, you can intake this command:

sudo dnf install ffmpeg

Just as, for Arc Linux, run the obeying command:

sudo pacman -S ffmpeg

Conversion

Navigate to the directory internet site that has the video filching advantage of the cd command in the terminal.

After that, type the obeying ffmpeg command, reconditioning output.mp4 through your favorite outcome filename:

ffmpeg -i myvideo.webm output.mp4
changing webm video to mp4 filching advantage of FFmpeg Linux tool

Listed beneath -i flag establishes the input record, and also the rest is quite straightforward. Hit get in, and also FFmpeg will overture changing your WebM record to MP4.

You can in a identical way intake the previous ffmpeg command to convert WebM to plenty of other layouts by pinpointing the favorite outcome layout extension, such as .avi, .mkv.

If you yearn more equalize throughout the conversion process, you can determine second standards. For example, to inscribe a WebM video to MP4 through the H.264 video codec and also the AAC audio codec, your command would most certainly look advice this:

ffmpeg -i input.webm -c:v libx264 -c:a aac output.mp4

Listed beneath, -c:v libx264 establishes the H.264 video codec, and also -c:a aac earns a choice the AAC audio codec.

In healing, you can equalize the outcome attribute filching advantage of the -qscale or -crf solutions:

ffmpeg -i sample.webm -q 0 sample2_ffmpeg.mkv

You can in a identical way equalize the bitrate, CRF benefit, and also plenty of other solutions to administer the the majority of of the outcome attribute and also record dimension based on your requires.

Reinventing WebM Video clips Gaining take advantage of of VLC

VLC is an additional cross-platform multimedia gamer that can be made take advantage of of for changing video papers. While not as amenity-prodigal as FFmpeg, VLC bargains a feasible graphical interface for need conversions.

Arrangement

A agglomeration of Linux clauses ordinarily have VLC pre-mounted on them. If it isn’t placement, you can ranked it by filching advantage of your default methodology company, such as apt.

For example, on Ubuntu/Debian-based units, intake:

sudo apt install vlc
Mounting VLC media gamer filching advantage of apt methodology company

On Fedora or CentOS, run the obeying command:

sudo dnf install vlc

For Arc Linux, intake this:

sudo pacman -S vlc

Conversion

Responsive the VLC media gamer. Next, open the conversion window by pick Media -> Convert/Preserve:

Opening Convert/Preserve window from Media dropdown menu of VLC

Click the Incorporate switch and also earn a choice the WebM record you aim to convert. After that, click the Convert/Preserve switch to open the conversion window:

Opening and also pick WebM video papers in Responsive Media window

Within the conversion window, determine your outcome layout by clicking the Peruse switch cozy to the Location Document contingency. After that, from the Account dropdown menu, pick your favorite outcome layout (e.g., MP4):

adding profile and also pinpointing outcome and also layout to imparted sample WebM record

Last however not least, click Prelude, and also VLC will convert your WebM video to an MP4 video filching advantage of the H.264 codec and also MP3 audio.

That’s it! VLC will snatch treatment of the rest, and also you’ll have your video transformed to the favorite layout.

Better, you can equalize the video inscribing settings, such as video bitrate and also resolution, by clicking on the Settings switch.

Reinventing WebM Video clips Gaining take advantage of of HandBrake

HandBrake is an open-source video transcoder that can snatch treatment of multiple video layouts, entailing WebM. It bargains both GUI and also CLI individual interfaces for changing video clips.

Arrangement

Merely advice VLC and also FFmpeg, HandBrake is in a identical way discovered in the repositories of assorted Linux clauses. For example, to ranked HandBrake on Ubuntu or Debian, run this:

sudo apt install handbrake
posturing HandBrake filching advantage of apt methodology company

This will ranked the graphical interface of the HandBrake. Yet, you can intake the beneath command to ranked a command-jabber interface:

sudo apt install handbrake-cli

On Arc Linux, Fedora, or CentOS, you can ranked HandBrake filching advantage of Flatpak:

flatpak install flathub fr.handbrake.ghb

Conversion

Takeoff HandBrake and also click the Responsive Source switch positioned at the apex disowned. Support your favorite WebM record and also click Responsive:

opening WebM video record in HandBrake from the Responsive Source contingency

Next, earn a choice your favorite outcome layout from the Preset dropdown menu (e.g., MP4). After that, determine the layout of the outcome video and also its destination locale along through the outcome record name:

changing WebM pic to Mp4 filching advantage of HandBrake Linux tool

HandBrake lends assorted solutions for tweaking settings advice video attribute, bitrate, and also audio inscribing. You can equalize them based on your requires by swapping to their particular subsection.

Once you are used through your healing, you can click Prelude Encode to start the conversion process.

That’s it, you have transformed the WebM video clips to MP4 layout.

Better, if you advice to intake HandBrake CLI, you can intake the obeying command to inscribe WebM to MP4 filching advantage of the x264 video codec and also a attribute formulating of 20:

HandBrakeCLI -i input_file.webm -o output_file.mp4 -f mp4 -e x264 -q 20
Reinventing WebM record to Mp4 filching advantage of HandBrake CLI interface

You can in a identical way convert any kind of video papers to H.264 MP4 layout filching advantage of the HandBrake command jabber tool.

Reinventing Numerous WebM Files Gaining take advantage of of Revelry Script

Implement you yearn to convert multiple WebM video clips to any kind of plenty of other layout at as speedily as? If yes, then look zero further than party scripting. For example, to convert with one voice WebM papers to MP4 layout filching advantage of FFmpeg, you can intake this manuscript:

#!/bin/bash #WebM Converting Bash Script for file in *.webm; do     ffmpeg -i "$file" -c:v libx264 -c:a aac "${file%.webm}.mp4" done

After designing a manuscript, you have to save this manuscript as a record, such as sample_script.sh, and also administer it executable through this command:

chmod +x sample_script.sh

Lastly, run the manuscript to initiate the batch conversion:

./convert_webm.sh
enforcing party manuscript to convert multiple WebM papers to MP4 layout

This manuscript will proclaim over with one voice WebM papers in the specified directory internet site and also inscribe them to MP4 filching advantage of the AAC audio codec and also H.264 video codec.

In healing, you can tailor this manuscript to determine a unalike outcome layout by equalizing the extension in the FFmpeg command in the party manuscript.

Coating Upward

You’ve successfully discovered out assorted methodologies to convert WebM video clips to plenty of other video layouts on Linux. For Abode windows users, you can try these video converters also.

With one voice images and also screenshots by Haroon Javed.

Related Posts