How to Quickly Trim Audio and Video in Linux

How to Quickly Trim Audio and Video in Linux

1. Overview

In this text, we’ll focus on the completely different GUI utilities to trim audio and video information in Linux. We’ll discover the strengths of every trimming instrument and spotlight the most effective use circumstances for them.

2. Video Trimmer

Video Trimmer is a GNOME-based software to shortly trim movies with out re-encoding. By default, it’s not put in in GNOME. So we’ll have to obtain it.

2.1. Installation

Usually, we set up it from a software program retailer like Ubuntu Software Centre, the place we are able to set up it as a Snap:

Video Trimmer in Ubuntu Software

Alternatively, we are able to additionally use the snap instrument:

$ sudo snap set up video-trimmer

Similarly, we are able to additionally set up it as Flatpak. However, we have to add the Flathub repository first:

$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Now, we set up it from Flathub:

$ flatpak set up org.gnome.gitlab.YaLTeR.VideoTrimmer

2.2. Trimming a Video

Once put in, it ought to be obtainable within the purposes menu. Upon launching, we’ll be offered with a easy person interface:

Video Trimmer Main View

Let’s open a video file by clicking the “Open Video” button or urgent Ctrl+O. Then, we are able to visually choose the beginning and finish of the clip by arranging the markers:

Video Trimmer: Trim Operation

Alternatively, we are able to additionally put the instances ourselves into the textual content packing containers.

Once set, we are able to save the clip by urgent the “Trim” button, which shows the save dialog to save lots of the clip, in addition to toggle a few extra choices for the file.

3. LosslessCut

LosslessCut is a cross-platform instrument for reducing media information. It’s quite simple to make use of but very efficient at performing fundamental operations with none high quality loss. Unlike Video Trimmer, LosslessCut is kind of complete.

However, it’s constructed utilizing Electron, which regularly has a status for being heavy on assets. So, on older computer systems, we would need to use one thing else.

3.1. Installation

The simple strategy to set up LosslessCut is from Snap Store or Flathub:

# Snap Store
$ sudo snap set up losslesscut
# Flathub
$ flatpak set up no.mifi.losslesscut

After set up, we are able to launch it from the purposes menu.

3.2. Trimming Media Files

Once we launch this system, we go to File → Open to open a neighborhood audio or a video file. LosslessCut shows a preview of the media file together with the playback and trimming controls.

In the search bar, we set the place for the beginning and finish of the clip:

LosslessCut: Trim Video

Afterward, we choose the “Export” button to save lots of the clip with our configured output choices.

4. Plumber

Plumber is a video manipulation instrument that lets us trim movies in addition to convert them to GIFs. In addition to manipulating native information, it could actually trim on-line movies from YouTube and supported web sites. It does so with out downloading all the video, thereby saving us lots of bandwidth.

4.1. Installation

Officially, it’s solely obtainable within the Snap Store:

$ sudo snap set up plumber

If Snap isn’t an choice, then we are able to construct it from supply.

4.2. Initial Config

On the primary launch, Plumber prompts us to obtain the Plumber engine, which allows it to trim on-line movies. The Plumber engine relies on the well-known youtube-dl instrument. Let’s go forward and click on “OK“:

Plumber: Download Engine

Afterward, it shows the output and encoding settings. In the panel, we’ll choose “Copy the container of media (Fast)” to shortly trim native information. However, on-line movies can be re-encoded both means. Apart from this, we are able to additionally set the GIF encoding choices:

Plumber: Encoding Settings

4.3. Trimming and Exporting

Once we’re accomplished establishing, we are able to paste a video hyperlink within the URL enter. Then, we press the “Start” button to let Plumber probe the video on the Internet. It downloads the mandatory metadata for the video:

Plumber: Probe Video

Afterward, we are able to modify the clip slider by dragging the beginning and finish markers. Then, we are able to optionally choose the vacation spot. Next, we choose the output sort, which we set to “Gif“:

Plumber: Clip Video

Once we’re set, we press “Clip” to trim after which export the clip as a GIF.

5. Pitivi

We checked out very fundamental instruments that had been solely designed for trimming video and audio information. Now, we’ll discover a considerably superior instrument that provides us extra management.

Pitivi offers an intuitive interface to edit video and audio information. Not solely can it trim audio and video information, however it could actually additionally be a part of a number of clips, apply results and filters, crop clips, and extra.

5.1. Installation

Pitivi is offered in most official package deal repositories beneath its canonical title pitivi:

$ sudo apt set up -y pitivi

Alternatively, we are able to additionally set up it from Flathub:

$ flatpak set up flathub org.pitivi.Pitivi

5.2. Using Pitivi

We can launch Pitivi from the applying menu. It presents us with a Welcome display screen the place we both create or open an present mission:

Pitivi: Welcome Screen

We’ll go together with “New” to create a brand new mission. Pitivi opens the editor window, the place we’ll import the required media information that we have to trim:

Pitivi: Import Media

Once we press “Import“, we’ll choose the video utilizing the file picker. The video can be positioned within the “Media Library“, from which we’ll drag the video to the timeline.

In the timeline, we search the beginning place by clicking the appropriate mouse button and, then clicking the lower button:

Pitivi: Start Position

Similarly, we search to the tip place of the clip and click on lower:

Pitivi: End Position

Next, let’s take away all the opposite clips by deciding on them and urgent the Delete button on the keyboard. This step is necessary as a result of we don’t need every other bits of the video rendered within the ultimate clip:

Pitivi: Final Clip

We save this clip by rendering the mission. So, we merely click on the “Render” button on the title bar:

Pitivi: Render Button

Pitivi shows a render dialog the place we configure the encoding choices:

Pitivi: Render Dialog

Once every thing is ready, we press the “Render” button to start the render course of.

6. Conclusion

In this text, we noticed the way to trim video and audio information utilizing the GUI instruments obtainable for Linux distributions. We additionally realized that every of those instruments offers completely different person interfaces, however the sample for trimming media information is kind of related.

Apart from that, we additionally explored the completely different makes use of for every instrument.

The put up How to Quickly Trim Audio and Video in Linux first appeared on Baeldung on Linux.

HI-FI News

by way of Baeldung – Linux https://ift.tt/hpBlKxd

December 12, 2023 at 04:57PM