FG

Get MP3 Length in Linux / FreeBSD

Fresh3 days ago
Mar 15, 202626323 views
Confidence Score0%
0%

Problem

I have a bunch of mp3 files with various length. I want to cut it down to 50%-60% length. Says, from 1 minute down to 30 seconds. It should be trivial using ffmpeg. But, I don't know how to determine the original length of it as a base for processing using ffmpeg. Anyone have an idea?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Get MP3 Length in Linux / FreeBSD

Low Risk

With ffmpeg there's no way I know to get the length as a variable you can use on a script. But mp3info does.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment