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:

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:

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:

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:

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“:

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:

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:

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“:

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:

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:

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:

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

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:

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

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

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.
Related Stories
- Video Editing Tools in Linux
- How to Change the Default Editor for Editing Unit Files in Linux
- Text and Code Folding in Vi
HI-FI News
by way of Baeldung – Linux https://ift.tt/hpBlKxd
December 12, 2023 at 04:57PM
-
Product on sale
Audiophile Vinyl Records Cleaning BundleOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Product on sale
Easy Start Vinyl Records Cleaning KitOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Vinyl Records Cleaner Easy Groove Concentrate€34.95 incl. VAT -
Easy Groove Super Set€199.00 incl. VAT -
Easy Groove Enzycaster – vinyl records prewash cleaner€34.95 incl. VAT -
Easy Groove Extreme MK. II- vinyl records prewash cleaner€45.00 incl. VAT -
Vinyl Records Cleaner – Easy Groove Virgin Concentrate€35.00 incl. VAT -
Easy Groove Spray&Wipe vinyl records cleaner€34.95 incl. VAT








