Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

Is it possible to convert a 30 second clip of an .mp3 to .wav via the command line?

Writer Olivia Zamora

Is it possible to convert a 30 second clip of an .mp3 to .wav in Ubuntu terminal? For example if I had an .mp3 that was 3:00 minutes long, would I be able to create a 30 second clip from 0:45-1:15?

I'm able to convert the entire song using mplayer in Ubuntu.

mplayer \ -quiet \ -vo null \ -vc dummy \ -ao pcm:waveheader:file="output.wav" "input.mp3"

I'm open to suggestions using mplayer, LAME, mpg123, mpg321 or other encoders!

0

2 Answers

Try

ffmpeg -ss 45 -t 30 -i file.mp3 output.wav

(start at 45s, length 30s)

More info:

Use that same mplayer command and add options

-ss 45 -endpos 30
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy