Changing the Default Terminal to Terminator on Ubuntu

Image
Terminator is a powerful tool for developers, allowing you to manage multiple terminal sessions in a single window. Features like splitting panes, tabs, and simultaneous input can significantly boost your productivity. Step 1: Install Terminator First, install Terminator using the apt package manager. sudo apt update sudo apt install terminator -y The -y option automatically answers 'yes' to any prompts during the installation process, streamlining the setup. Step 2: Set as the System Default Ubuntu uses a utility called update-alternatives to manage default applications. We'll use this tool to change the default terminal emulator ( x-terminal-emulator ) to Terminator. Run the Configuration Command Enter the following command in your terminal. A list of available terminals will appear. sudo update-alternatives --config x-terminal-emulator Select Terminator From the resulting list, enter the selection number corresponding to terminator and press Enter. ...

FFmpeg] How to Batch Trim MP3 Files Using FFmpeg on Windows

Introduction: Why Batch Trimming MP3s with FFmpeg Saves Time

If you only need to trim one or two MP3 files—like cutting out an intro or logo sound—online audio trimmers are good enough.
However, if you need to crop dozens or hundreds of MP3 files, using an online tool becomes extremely time-consuming.

That’s where FFmpeg, a free and open-source command-line tool for processing audio and video, comes in. It’s fast, efficient, and works on all major platforms.

Environment

  • OS: Windows 10 Pro x64
  • Tool: FFmpeg full build (version 2022-07-04)

FFmpeg Basics: How to Crop a Single MP3 File

Parameters explained:

  • -i: Input file path
  • -ss: Start time (can include milliseconds)
  • -t: Duration (in seconds)
  • -acodec copy: Copy audio codec (no re-encoding = faster)

Example 1: Trim from 10.123 seconds to end

ffmpeg -i input.mp3 -ss 00:00:10.123 -acodec copy output.mp3

Example 2: Trim from 5 seconds for 5 minutes

ffmpeg -i input.mp3 -ss 00:00:05 -t 300 -acodec copy output.mp3

Batch Processing: Automatically Trim Multiple MP3 Files

To batch crop MP3 files in a folder using FFmpeg on Windows 10, use the following batch script:

Script: batch_trim.bat

@echo off
for /R %cd% %%G in (*.mp3) do (
    ffmpeg.exe -i "%%G" -ss 00:00:04 -acodec copy "%%~nG_cut.mp3"
)

Script Breakdown:

  • for /R %cd% %%G in (*.mp3): Recursively loops through all MP3 files in the current directory
  • %%~nG: Gets the filename without the extension
  • Output files will be named as originalfilename_cut.mp3

✅ Tip: Place this script in the same folder as FFmpeg or ensure FFmpeg is added to your system PATH.

Final Thoughts

Batch trimming MP3s with FFmpeg is:

  • Faster than online tools
  • Customizable for any start time or duration
  • Free and open source

If you're regularly editing podcasts, intros, or background music, automating with FFmpeg will save you hours of manual work.

Comments

Popular posts from this blog

Resolving Key Exchange Failure When Connecting with SecureCRT to OpenSSH

SecureCRT] How to Back Up and Restore SecureCRT Settings on Windows

How to Set Up Vaultwarden (Bitwarden) on Synology NAS (Best Free Alternative to LastPass)