Как обновить ffmpeg linux

Как обновить ffmpeg linux

Привет всем. Что такое ffmpeg? Это огромный, мощный медиакомбайн. Он способен сделать с любым видеофайлом практически все, что угодно. Резка, склейка, конвертация, кодирование и многое другое. Для многих новичков в Linux, ffmpeg представляется чем-то абстрактным, сложным и неукротимым. Моя же задача на сегодня — показать, что это вполне конкретный рабочий инструмент, который может принести много пользы.

Как обновить FFMPEG и не потерять NVENC?

Как известно, в Ubuntu 18.04 и множестве других дистрибутивов уже «из коробки» ffmpeg собран и установлен с поддержкой аппаратного кодека nvenc. Он позволяет записывать игры с рабочего стола, вести прямые трансляции на Youtube и быстро кодировать видео, силами видекарты Nvidia. Для сравнения, один и тот же видеоролик может кодироваться с помощью NVENC в несколько раз (. ) быстрее, чем при использование ЦП и кодека libx264. Круто? Круто!

Как известно, ffmpeg регулярно обновляется, в него добавляются новейшие возможности и новые кодеки. Поэтому, ffmpeg желательно поддерживать в актуальном состоянии.
Но как обновить его правильно? При неудачном стечении обстоятельств, вы можете получить свежую версию ffmpeg, но без nvenc. А уж отдельно собирать его из исходников не каждый линуксоид захочет.

Проблема:

Решение:

1. Подключаем PPA-репозиторий с ffmpeg командой :
sudo add-apt-repository -y ppa:mc3man/trusty-media
2. Обновляем список пакетов:
sudo apt update
3. Обновляем системный ffmpeg до новейшей версии
sudo apt install —only-upgrade ffmpeg (два дефиса перед only)

На правах автора хочу напомнить, что у нас есть группа вк и телеграм-чат, где можно пообщаться на компьютерную и сетевую тематику.

Источник

Linux Mint Forums

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

Baldlygo Level 3
Posts: 115 Joined: Wed Feb 16, 2011 6:28 am Location: Haute Vienne, France Contact:

Updating to latest ffmpeg [SOLVED]

Post by Baldlygo » Wed Aug 24, 2016 5:20 am

Since updating to the latest get_iplayer I am getting an error which suggests to me that I also need to update my ffmpeg.

INFO: Begin converting file: /media/paul/Linux Xtr/Videos/Britains_Pompeii_A_Village_Lost_in_Time_-__b07myxws_original.partial.mp4.ts [mp4 @ 0x2492bc0] pts (1800) < dts (3600) in stream 0 av_interleaved_write_frame(): Invalid argument

My ffmpeg says - ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014

If I view Software Manager it warms me that if I remove ffmpeg - The following packages would be removed: winff-gtk2, dvdstyler, kdenlive, libav-tools, devede, get-iplayer, dvd-slideshow, winff - a big list that I don't want to loose

Читайте также:  Linux забыл пароль от phpmyadmin

So my question is how can I update ffmpeg to the latest version without loosing the other packages? I have 17.3 Qiana
Thanks - Paul

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

all41 Level 18
Posts: 8917 Joined: Tue Dec 31, 2013 9:12 am Location: Computer, Car, Cage

Re: Updating to latest ffmpeg

Post by all41 » Wed Aug 24, 2016 7:39 am

You can get the latest ffmpeg here:
https://launchpad.net/~mc3man/+archive/ . usty-media
instructions are on this page.

Baldlygo Level 3
Posts: 115 Joined: Wed Feb 16, 2011 6:28 am Location: Haute Vienne, France Contact:

Re: Updating to latest ffmpeg

Post by Baldlygo » Wed Aug 24, 2016 11:53 am

Thank you all41. Having read through the instructions I think I will hold off for a while - I'm not brave enough to risk other things going wrong get_iplayer still downloads and plays ok so I'll wait and see if the regular ffmpeg gets updated through Software Manager.

phd21 Level 20
Posts: 10102 Joined: Thu Jan 09, 2014 9:42 pm Location: Florida

Re: Updating to latest ffmpeg [SOLVED]

Post by phd21 » Wed Aug 24, 2016 12:46 pm

Hi "Baldlygo", & Anyone Else Interested in this,

I just read your post and the good replies to it. Here are my thoughts on this as well.

Good catch on not removing "FFmpeg". It is important for all users to be watchful when installing any software application or removing any application (in any operating system), that the process does not want to remove other software that you and or other applications and programs might need. If you are unsure, then say "No" and ask here, like you did.

It would help to know more about your system setup. If you run " inxi -Fxzd " from the console terminal prompt, highlight the results, copy and paste them back here, that should provide enough information.

As user "all41" just mentioned, and I agree with, I do not know of any method to get the current FFmpeg programs updated, except by using a PPA. The repositories (repos, Software Manager, or Synaptic Package Manager (SPM)) are not as up to date with FFmpeg programs, not sure about Linux Mint 18 though. The "FFmpeg" programs are very important because they are used by a lot of applications, including browsers. There are a few reliable and safe PPA's to get the current FFmpeg, I have two installed, and I have not had any problems with my system by installing these. You can easily disable and or remove a PPA through the Update Manager if you want or need to. Some people, myself included, depending on the PPA will install the PPA, then update, and install any applications that you need or want from it, then go into the Mint Update Manager, Software Sources, PPA, and disable the PPA, by unchecking it, and refreshing.

Читайте также:  Удаленный мониторинг linux сервера

To install this using the PPA method, open a console terminal, type in, or copy & paste, each line below one by one:

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg

OR, this is what I use & have installed:
To install this using the PPA method, open a console terminal, type in, or copy & paste, each line below one by one:

sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg

Here are the available reliable PPA's for FFmpeg that I know of.

sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next
sudo add-apt-repository ppa:mc3man/trusty-media
sudo add-apt-repository ppa:jon-hedgerows/ffmpeg-backports

VIP Note: There is another PPA that has a lot of really great updated Photo and Image related software applications that "MintGuide.org" recommends (photivo, macrofusion, smartshine, fotoxx, photocollage, etc..), and it also has a version of "FFmpeg", that unfortunately wants to remove some other application programs that I want to keep, like the excellent "OBS" (open broadcast streaming app.). So, after installing this PPA and all the Photo and imaging programs that I want from it, I will disable the PPA by unchecking it in the Software Sources of the Mint Update Manager, and refreshing. If Mintguide.org notifies me of updates to any of these programs, I will re-enable the PPA, and during the updates, I will make sure to uncheck any updates to "FFmpeg" from "Dhor Trusty", then disable the PPA again. This is an extremely rare situation with PPA's in my experience.

Be cautious with this PPA.
sudo add-apt-repository ppa:dhor/myway

FYI: The above information applies to anything being installed from the Mint Update Manager. Although it is rare, if you get a message to remove something during the Mint Update process, and you know or unsure that this is not a good thing to do, or bad thing to do, you can uncheck each item one at a time, click install, and if the message to remove something is still there, re-check the item you just unchecked, and uncheck the next item, click install, and see if the message to remove something is gone or still there, until you find out which item to be updated is causing the message(s). Then, post that in this forum for people to review if it is a good update item or not. Keep in mind that some updates will remove older versions of their software and that is what it is supposed to do.

Phd21 : Mint 20 Cinnamon & xKDE (Mint Xfce + Kubuntu KDE) & KDE Neon 64-bit (new based on Ubuntu 20.04) Awesome OS's , Dell Inspiron I5 7000 (7573) 2 in 1 touch screen, Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram, Intel 4 Graphics.

Читайте также:  Linux blank screen on boot

Источник

How to Install FFmpeg on Ubuntu 22.04?

FFmpeg is a collection of tools that process audio and video files. It is open-source and completely free. Tasks that FFmpeg can perform include encoding, decoding, transcoding, streaming, filtering, muxing, demuxing, etc. It is a cross-platform compatible framework that works on Windows, Linux, Mac OS X, BDS systems, and Solaris.

If you are looking for a guide that will help in installing FFmpeg on the latest release of Ubuntu which is Ubuntu 22.04 then you are at the right place. Here we have summed up the steps through which you can install FFmpeg.

How to Install FFmpeg on Ubuntu 22.04

If you wish to learn the procedure of installing FFmpeg on Ubuntu 22.04 then read the full article.

Step 1: System update

A good practice before installing anything on your operating system is to update the system as well as the existing packages.

The system has been updated.

Step 2: Install FFmpeg

Ubuntu repositories have FFmpeg packages by default and these packages can be installed using the apt package manager. The command line that is used to install FFmpeg on Ubuntu 22.04 is as follows.

Step 3: Verify installation

Now in order to evaluate the successful installation of FFmpeg, use the following command.

FFmpeg has been installed successfully.

Step 4: Encoders & Decoders

To know the available encoders and decoders of FFmpeg use the commands given below.

These are the available encoders.

And these are existing decoders.

In this way, following these simple steps, you can install FFmpeg on Ubuntu 22.04.

How to uninstall FFmpeg on Ubuntu 22.04

If you wish to uninstall FFmpeg from the system then follow the steps below.

Step 1: Remove FFmpeg

To remove the FFmpeg package use this command.

Step 2: Clear Repository

Now clean your system repository by using the commands provided below. These commands not only clear the repository but also remove the packages that were installed because some other packages required them and now these are no longer needed.

Repository has been cleared.

Conclusion

For the purpose of installing FFmpeg on your Ubuntu 22.04 use the command $ sudo apt install ffmpeg. After running this command in order to make sure that FFmpeg was installed with success use the command $ ffmpeg -version. Moreover, there are some encoders and decoders available in FFmpeg so to check them use these commands, $ ffmpeg -encoders, and $ ffmpeg -decoders.

About the author

Naima Aftab

I am a software engineering professional with a profound interest in writing. I am pursuing technical writing as my full-time career and sharing my knowledge through my words.

Источник

Оцените статью
Adblock
detector