Tuesday, May 7, 2024
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 636  / 1 Year ago, wed, december 7, 2022, 9:06:57

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"


http://en.linuxreviews.org/HOWTO_Convert_audio_files



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


More From » command-line

 Answers
3

Try



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


(start at 45s, length 30s)



More info:
http://linux.die.net/man/1/ffmpeg


[#43715] Friday, December 9, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dersol

Total Points: 78
Total Questions: 100
Total Answers: 124

Location: Christmas Island
Member since Mon, Oct 19, 2020
4 Years ago
;