首页 > 系统相关 >Ubuntu22.04安装FFmpeg

Ubuntu22.04安装FFmpeg

时间:2023-06-20 10:35:51浏览次数:72  
标签:FFmpeg Ubuntu22.04 sudo apt version install Ubuntu 安装

参考文章https://phoenixnap.com/kb/install-ffmpeg-ubuntu

依次输入以下三个命令即可

sudo apt update && sudo apt upgrade
sudo apt install ffmpeg
ffmpeg -version

 安装好以后可以通过以下命令验证一下:

ffplay  视频文件 

看能否正常播放

 

 

参考文章复制粘贴如下:

Installing FFmpeg on Ubuntu

October 13, 2022 linuxsnapubuntu        

 

 

Introduction

FFmpeg is a command-line tool that records, transcodes, mixes, formats, and streams multimedia content. This cross-platform framework is open-source and shares audio and video libraries (libavutil, libavcodec, libavformat, libavdevice, libavfilter, libswscale, and libswresample) with users for free.

In this tutorial, you will learn about installing FFmpeg on Ubuntu using two methods.

Installing FFmpeg on Ubuntu

Prerequisites

  • Ubuntu installed (this guide uses Ubuntu 20.04).
  • A user with root or sudo privileges.
  • Access to the terminal.

Install FFmpeg on Ubuntu with apt

The FFmpeg package is included in Ubuntu repositories, but the version may not be the latest. Still, apt is frequently used as it is one of the easiest ways to install FFmpeg on Ubuntu.

Step 1: Update the Repository

Update and upgrade the system packages to get the FFmpeg version currently available in the repository. Execute the following command:

sudo apt update && sudo apt upgrade

 

sudo apt update && sudo apt upgrade terminal output

Hit y to continue when prompted:

Step 2: Install FFmpeg

After upgrading the repository, install FFmpeg by running the following:

sudo apt install ffmpeg
sudo apt install ffmpeg terminal output

Step 3: Verify the Installation

Confirm that FFmpeg has been installed with:

ffmpeg -version
ffmpeg version terminal output

The command verifies that the 4.2.7 version of FFmpeg is installed. The 4.2.7 is the latest stable FFmpeg version in the Ubuntu 20.04 repositories. However, apps in Ubuntu repositories are not always up-to-date.

To update FFmpeg to the latest version, use snappy.

Install FFmpeg on Ubuntu with snappy

Get the latest version of FFmpeg with the Snap package manager (snappy).

The snap tool packs an app and its dependencies in a snap package, a container that works on any Linux distribution. Moreover, unlike FFmpeg packages in official Ubuntu repositories, snaps are updated automatically and continually, ensuring users get the latest FFmpeg version.

Step 1: Install Snap

Start by checking whether Snap is already installed on the system, as is the case on Ubuntu. Execute the following:

snap version
snap version terminal output

The output verifies that Snap is running. In case Ubuntu does not have Snap, the command prints the following:

sanpd not installed terminal output

To add Snap to the machine, follow these steps:

1. Update and upgrade the repository with:

sudo apt update && sudo apt upgrade
sudo apt update && sudo apt upgrade before snap terminal output

2. Install Snap by running:

sudo apt install snapd
sudo apt install snapd terminal output

3. Verify the installation using:

snap version
snap version terminal output

Step 2: Install FFmpeg

To install FFmpeg, run:

sudo snap install ffmpeg
download snap ffmpeg from channel stable terminal output

The terminal displays the progress bar. Once the installation completes, the output looks like this:

sudo snap install ffmpeg terminal output  

Note: If you previously installed ffmpeg using apt, uninstall the tool, restart the system, and then use snap to install ffmpeg again.

Step 3: Verify the Installation

To verify that FFmpeg is installed, run:

ffmpeg -version
ffmpeg version post snap terminal output

The version of FFmpeg installed with Snap is 4.3.1, a more recent version than the one installed via apt (4.2.7).

Conclusion

After going through this tutorial, you now understand how to install FFmpeg on Ubuntu using apt or snappy. Next, learn about the differences between Snap, Flatpack, and AppImage package formats.

If you are a Windows user, read our tutorial and learn how to install FFmpeg on Windows, and if you are a Mac user, learn how to install FFmpeg on MacOS..

 

标签:FFmpeg,Ubuntu22.04,sudo,apt,version,install,Ubuntu,安装
From: https://www.cnblogs.com/heweiren-cheng/p/17492937.html

相关文章

  • 第十七节:Centos8.x版本上安装nodejs(含npm)
    一.        二.        三.         !作       者:Yaopengfei(姚鹏飞)博客地址:http://www.cnblogs.com/yaopengfei/声     明1:如有错误,欢迎讨论,请勿谩骂^_^。声     明2:原创博客请在转载......
  • Qt5.9.1的下载和安装注意事项
    下载地址qt5.9downlaod安装过程编译器是可选的若本地环境没有VisualStdio,就不要勾选关于它的编译器。一般至少要勾选MingGW编译器......
  • 安装部署 Kubernetes 仪表板(Dashboard)
    简介Kubernetes仪表板(Dashboard)是基于网页的Kubernetes用户界面。你可以使用仪表板:展示了Kubernetes集群中的资源状态信息和所有报错信息。把容器应用部署到Kubernetes集群中。对容器应用排错。管理集群资源。获取运行在集群中的应用的概览信息。创建或者修改Kub......
  • Maven项目架构管理工具的安装、使用和Idea配置Tomcat
    ——在我们Javaweb开发过程中,需要手动导入大量的jar包,这个时候我们需要一个工具帮助我们自动导入和管理,由此Maven诞生了。目录一、Maven的下载二、配置Maven环境变量三、阿里云镜像四、本地仓库五、创建Maven项目:1.maven依赖导入资源问题;2.无法解析maven依......
  • Windows环境下Redis的安装以及Redis Desktop Manager的下载安装
    ————本文介绍了Windows环境下Redis的安装,以及Redis数据库管理工具RedisDesktopManager的下载和安装目录|一、Windows环境下安装Redis||--|--||二、RedisDesktopManager的下载及安装|一、Windows环境下安装Redis下载地址:https://github.com/tporadowski/redis/......
  • MySQL的卸载、下载、安装详细讲解
    MySQL的卸载、下载、安装、环境变量配置、Navicat安装目录:本文比较长,详细说明了MySQL的卸载、下载、安装、环境变量配置、Navicat安装;顺序以目录为准。一、彻底卸载删除数据库二、下载MySQL数据库三、安装MySQL数据库——3.1,MySQL5.5.49版本的数据库——3.......
  • JDK下载安装以及idea环境变量的配置(详细步骤)
    (——idea环境变量的配置,文章先说了一下卸载jdk(若没有安装过则可直接看:二、下载和安装jdk部分);然后下载和安装jdk,并进行环境变量的配置)一、JDK的卸载1.右击此电脑,点击“属性”,选择“高级系统配置”2.然后选择“高级”,点击“环境变量”3.在系统变量中,找到“JAVA_HOME”,双击......
  • photoshop哪个版本最好用?PS电脑版下载安装 软件大全
    Photoshop2023最新版是一款由Adobe公司在2022年10月份推出的最新图像图形处理工具。该软件拥有十分多强大且专业的图像处理功能,可以帮助用户在线打开编辑各种格式的图像。相较于旧版本的PS来说,它新加入了批量图片P图功能,通过最新的AI技术支持可以一键快速P图,并且处理的图片也是相当......
  • premiere下载2023正版下载安装 软件大全
    软件介绍adobepremiereprocs6是由Adobe公司研发出品的一款超强大的视频编辑软件。Premiere功能强大,为您提供采集,剪辑,添加字幕等功能于一体,满足您的工作要求,让你制作出高品质的作品。[下载地址]:后台私信我软件对比adobepremiere和Vegas的对比1、PR的优点在于其专业性,输出的视频......
  • docker 安装zookeeper(单机版)
    Docker安装ZK查看本地镜像和检索拉取Zookeeper镜像#查看本地镜像dockerimages#检索ZooKeeper镜像dockersearchzookeeper#拉取ZooKeeper镜像最新版本dockerpullzookeeper:latest#我使用的版本dockerpullzookeeper:3.5.7 创建ZooKeeper挂载目录(数据挂载......