[FFmpeg-user] Trying to understand ffmpeg cpu usage in this case of capturing rtsp streams

Jim Ruxton jim.ruxton at gmail.com
Sun Nov 10 07:44:27 EET 2024


>
>
>>
>> On Sat, Nov 9, 2024 at 2:12 PM Ferdi Scholten <ferdi at sttc-nlp.nl> wrote:
>>
>>>
>>>
>>> On 09-11-2024 19:31, Moritz Barsnick via ffmpeg-user wrote:
>>> > On Sat, Nov 09, 2024 at 13:11:56 -0500, Jim Ruxton wrote:
>>> >> "apt-list ffmpeg" shows the version 7 package is installed
>>> >> /jammy-apps-security,now 7:4.4.2-0ubuntu0.22.04.1+esm5 amd64
>>> [installed]
>>> > That is not version 7, that is version 4.4.2. The PPA you quoted would
>>> > supply version 7.0.1.
>>> >
>>> > (Isn't "jammy-apps-security" the name of the repo which provides the
>>> > package? If so, ffmpeg isn't cominf from said PPA.)
>>> >
>>> > Cheers,
>>> > Moritz
>>> > _____________________________________________
>>> The ffmpeg version in the ppa is 7:7.1-1build2~jammy
>>> Which is ffmpeg 7.1, your version is the default Ubuntu version for
>>> 22.04 that is fairly obsolete and unsupported by ffmpeg (the lts version
>>> is 4.4.5)
>>> The +esm5 means it is an Expanded Security Maintenance release (the
>>> fifth one) most likely cherrypicking only security updates from 4.4.5
>>> (but not feature updates)
>>>
>>> The following commands in a terminal should add the ppa to your system
>>>
>>> sudo add-apt-repository ppa:ubuntuhandbook1/ffmpeg7
>>> sudo apt update
>>>
>>> Your existing ffmpeg version should then be upgraded by the version in
>>> the ppa when you do sudo apt upgrade
>>>
>>> Thanks so much for the help and clear explanations.
>> The repository is in my ppa ie.  deb
>> https://ppa.launchpadcontent.net/ubuntuhandbook1/ffmpeg7/ubuntu/ jammy
>> main
>>
>> I did an "apt update" and "apt upgrade" . It didn't upgrade ffmpeg to 7 ,
>> I still have the same version. I also did an "apt install ffmpeg" and it
>> said the newest version is already installed which is the 4.4.2 version.
>> Could another ppa have more priority installing ffmpeg? I really appreciate
>> the help.
>>
>
> I also tried sudo apt install --reinstall ffmpeg and got the following
> below. It shows where it is getting ffmpeg from ie. not the ffmpeg7 ppa but
> https://esm.ubuntu.com/apps/ubuntu jammy-apps-security/main amd64 ffmpeg
> amd64 7:4.4.2-0ubuntu0.22.04.1+esm5
> Would it help to temporarily comment out the ppa that the 4.4.2 version is
> coming from or could that mess up upgrades going forward?
>
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> The following packages were automatically installed and are no longer
> required:
>   gconf-service gconf-service-backend gconf2-common libc++1 libc++1-14
>   libc++abi1-14 libgconf-2-4 libunwind-14 libwpe-1.0-1
> libwpebackend-fdo-1.0-1
>   linux-headers-5.15.0-124 linux-headers-5.15.0-124-generic
>   nvidia-firmware-550-550.120
> Use 'sudo apt autoremove' to remove them.
> 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not
> upgraded.
> Need to get 1,696 kB of archives.
> After this operation, 0 B of additional disk space will be used.
> Get:1 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security/main amd64
> ffmpeg amd64 7:4.4.2-0ubuntu0.22.04.1+esm5 [1,696 kB]
> Fetched 1,696 kB in 1s (1,186 kB/s)
> (Reading database ... 714150 files and directories currently installed.)
> Preparing to unpack .../ffmpeg_7%3a4.4.2-0ubuntu0.22.04.1+esm5_amd64.deb
> ...
> Unpacking ffmpeg (7:4.4.2-0ubuntu0.22.04.1+esm5) over
> (7:4.4.2-0ubuntu0.22.04.1+
> esm5) ...
> Setting up ffmpeg (7:4.4.2-0ubuntu0.22.04.1+esm5) ...
> Processing triggers for man-db (2.10.2-1) ...
>

I was finally able to get version 7.1 of ffmpeg by increasing the priority
of the ffmpeg7 ppa so it would install from there. Thanks again for all the
help with this


More information about the ffmpeg-user mailing list