Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud

How to Install and Use FFmpeg on Ubuntu 18.04

by Cloudbooklet
5 years ago
in Google Cloud, Compute Engine
How To Install And Use Ffmpeg On Ubuntu 18.04
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

How to Install and Use FFmpeg on Ubuntu 18.04. FFmpeg is a great tool to record, convert and stream audio and video. This tutorial covers the steps required to install FFmpeg on Ubuntu 18.04. We will use the ffmpeg command line tool to convert audio, add text to video and many more. Not using Ubuntu […]

ADVERTISEMENT

How to Install and Use FFmpeg on Ubuntu 18.04. FFmpeg is a great tool to record, convert and stream audio and video.

This tutorial covers the steps required to install FFmpeg on Ubuntu 18.04. We will use the ffmpeg command line tool to convert audio, add text to video and many more.

Not using Ubuntu 18.04? Choose a different OS:

ADVERTISEMENT

Ubuntu 18.04 LTS

CentOS 7

Debian 9

ADVERTISEMENT

This setup instructions works on Ubuntu 16.04 and any Ubuntu based distribution, including Linux Mint and Elementary OS. This tutorial is tested on Google Cloud for automatic image and video processing.

You might also like

How To Setup Ssh Keys On Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

4 months ago
Draggan Ai Editing Tool Install And Use Draggan Photo Editor

DragGAN AI Editing Tool Install and Use DragGAN Photo Editor

4 months ago

Prerequisites

A Ubuntu system with sudo privileges.

ADVERTISEMENT

If you are using Google Cloud you need to have some additional requirements fulfilled.

  • A running Compute Engine, see the Setting up Compute Engine Instance with Ubuntu 18.04.
  • Initial Ubuntu Server Set up.

Install FFmpeg 4.x on Ubuntu

FFmpeg 4 is available from the Jonathon F’s PPA.

ADVERTISEMENT

01. Start by adding the jonathonf/ffmpeg-4 PPA

sudo add-apt-repository ppa:jonathonf/ffmpeg-4

02. Now you can install FFmpeg with the following command.

ADVERTISEMENT
sudo apt install ffmpeg

03. Verify the installation.

ffmpeg -version

The output will be something similar to this.

Output
ffmpeg version 4.1-1~16.04.york1 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609

Now, FFmpeg is installed successfully and ready to be used.

FFmpeg Examples

In this part, we will look at some basic examples to use the ffmpeg utility.

Basic conversion

While converting the audio and the video files with ffmpeg you don’t need to specify the input and output formats. The input file format is detected automatically and the output format is selected from the file extension.

Convert a video file from webm to mp4

ffmpeg -i input.webm output.mp4

Convert an audio file from ogg to mp3

ffmpeg input.ogg output.mp3

Specifying codecs

You can specify the codecs you want to use with the -c flag option. The codec can be the name of any supported decoder/encoder or a special value copy which simply copies the input stream.

Convert a video file from webm to mp4 using the libvpx video codec and libvorbis audio codec

ffmpeg -i input.webm -c:v libvpx -c:a libvorbis output.mp4

Convert an audio file from ogg to mp3 encoded with the libopus codec.

ffmpeg -i input.ogg -c:a libopus output.mp3

Conclusion

Now you have learned how to install FFmpeg on your Ubuntu system.

Thanks for your time. If you face any problem or any feedback, just leave a comment below.

Tags: Ubuntu 18.04
Share2Tweet1SendShare
Cloudbooklet

Cloudbooklet

Comments 3

  1. Avatar Of Jarp JARP says:
    3 years ago

    Thanks!

    Reply
  2. Avatar Of Thelebdev thelebdev says:
    3 years ago

    You missed an important step, whereby whenever you add a ppa repo you have to run `sudo apt update` so that the references in the operating system (as far as I know at the very least) get updated. The reason for that is, I tried doing everything I could to upgrade ffmpeg from v2 to v4, it never worked until I ran `update` after installing the new repo

    Reply
  3. Avatar Of Nesco Nesco says:
    3 years ago

    I have a server on compute engine. I installed ffmpeg successfully on it. i can run ffmpeg commands in the terminal successfully. But when i try to execute using the php exec function on my live website it throws an error

    ffmpeg: symbol lookup error: /lib/x86_64-linux-gnu/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordinates

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

Set Up Deep Learning With Nvidia, Cuda, Cudnn On Ubuntu

How to Set Up Deep Learning with Nvidia, CUDA, cuDNN on Ubuntu 22.04

7 months ago
How To Install Or Upgrade Php 8.2 On Ubuntu 22.04

How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

9 months ago
How To Change Timezone On Ubuntu 22.04

How to Change Timezone on Ubuntu 22.04

1 year ago
How To Install Ansible On Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

1 year ago

Follow Us

Trending Articles

Microsoft Editor Vs Grammarly

Microsoft Editor vs Grammarly: Which is the Best Grammar Checker?

September 18, 2023

5 Best TikTok Private Account Viewer in 2023

10 Best AI Prompts for Writers to Improve Website SEO

Amazon Prime Big Deal Days 2023: Best Deals

7 Best Lyric Video Maker Software for Music Lovers

Top 10 Advantages of a Cloud VPS Server

Popular Articles

Email Autoresponder Tool

10 Best Email Autoresponder Tool for Lead Generation

September 1, 2023

What is Copy AI and How to Use It for Your Business

How to Use Midjourney Vary Region Editor to Create Stunning Images

TinyLlama: A 1.1B Parameter Language Model Pre-trained on 3 Trillion Tokens

Create High Quality AI Cover Song with Covers AI

10 Free Business Email Account Providers in 2023

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.