ffmpeg cut audio file

 

To cut audio from a big audio file we can use ffmpeg.

In following example I am trying to cut audio from input.mp3 file. Here I am cutting audio from 30th second to 50 seconds.

ffmpeg -ss 00:00:30.0 -t 00:00:20.0 -i input.mp3 -acodec copy -vcodec copy -async 1 output.mp3

where

-ss to starting time

-t to number seconds/minutes/hours after starting time.

-acodec copy will make output.mp3 with same properties (bitrate) as input.mp3

-Sany

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s