[FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

Bo Berglund bo.berglund at gmail.com
Mon Sep 30 11:04:41 EEST 2024


On Mon, 30 Sep 2024 07:55:54 +0200, Bo Berglund <bo.berglund at gmail.com> wrote:

>Basic install question on Linux:
>
>If one wants to get to the latest version of ffmpeg and it is not provided by
>the Linux distribution used, how can one upgrade to it?

I checked with CharGPT and got the following:

[quote]
The hybrid_fragmented flag was added to FFmpeg in version 6.0, released on June
5, 2024. This feature allows for the creation of hybrid
fragmented/non-fragmented MP4 files, which can be useful for ensuring file
readability even if writing is interrupted
[/quote]

For installing a newer version than with the distribution:

[quote]
You can install the latest version of FFmpeg from a PPA that maintains
up-to-date builds.
[/quote]

Warning:

[quote]
if you encounter issues after upgrading, you can revert back to the version
provided by the official Ubuntu repositories. This can be done using a tool
called ppa-purge, which not only disables the PPA but also downgrades any
packages that were upgraded via that PPA back to the versions available from
Ubuntu's official sources.
[/quote]

Procedure:

[quote]
1) Install ppa-purge:
sudo apt install ppa-purge

2) Add the PPA:
sudo add-apt-repository ppa:jonathonf/ffmpeg-4
sudo apt update

3) Install or Upgrade ffmpeg:
sudo apt install ffmpeg

4) If something goes haywire:
sudo ppa-purge ppa:jonathonf/ffmpeg-4

Using ppa-purge will revert FFmpeg and any other packages affected back to their
versions in the official repositories, ensuring system stability.
[/quote]

I will test this on one of the backup systems first....


-- 
Bo Berglund
Developer in Sweden



More information about the ffmpeg-user mailing list