FFMPEG Command to Cut & Trim Audio File Using Start & End Time in Terminal
246 views
Jun 3, 2025
ffmpeg -i input.mp3 -ss 00:00:30 -to 00:01:00 -c copy output.mp3
View Video Transcript
0:00
uh hello guys uh welcome to this video
0:02
so in this video I will show you how to
0:04
cut an audio file using starting time
0:06
and the ending time so if you want to
0:08
cut or trim specific portion of your
0:10
audio file inside f ofmppg so there is a
0:13
command that I will show you in this
0:14
video where you can actually cut a
0:17
specific portion from an audio file
0:19
using a starting time and the ending
0:21
time so this is we have a simple input
0:24
MP3 file right here if I play hello guys
0:27
then we file name this is a welcome to
0:29
the website and download so you can see
0:32
we have this file right here and
0:40
uh now what I will do I will simply cut
0:44
a specific portion from this video so
0:47
just open the command line and there is
0:49
a command right here i have given this
0:51
command in the description of this video
0:53
so let me just explain you this command
0:58
so first of all what we do we simply say
1:00
ffmppg- i and then we provide the input
1:03
file name which is input.mpp3 in my case
1:06
so we providing the input file name
1:10
after that we specify the starting
1:12
duration starting time like this so this
1:15
is the time format so from 38th second
1:19
and then
1:20
two
1:22
the ending time here we
1:26
provide so you can see we are cutting
1:30
the this time period trimming this
1:32
portion so you can calculate from 30 to
1:36
1 minute so this comes out to be 30
1:39
seconds so we are actually cropping out
1:42
or trimming out or cutting this portion
1:45
of the audio file and we are not
1:48
re-encoding the video so we are copying
1:50
the encoding settings so this will not
1:52
take a lot of time and this is our
1:54
output file so if I execute this command
1:56
here the command executes successfully
1:59
and it actually creates this output.mpp3
2:02
file and exactly the length of this file
2:05
as you can see it is 30 second so we
2:08
have successfully mp4
2:13
so in this easy way you can crop uh a
2:16
specific portion from the audio file so
2:18
if you want to cut if you want to get
2:21
only a specific portion you can just
2:24
execute this command it's very easy
2:26
command here you will see you provide an
2:28
input file then you provide the starting
2:30
time and the ending time we simply cut
2:34
this portion and then we copy the
2:36
encoding settings and this is your
2:37
output file so this is a very easy ffmpg
2:40
command you can use to cut or trim video
2:44
using starting time and ending time so
2:46
thank you very much for watching this
2:48
video and also check out my website
2:50
freemediatools.com which contains
2:52
thousands of tools regarding audio video
2:54
and image
#Multimedia Software
#Software