Hi,
I am using ffmpeg conversion from wav format to mp3 format. I want to convert the length of the audio file as well. The length of wav audio file 35 sec and I want to convert it to 15 seconds. Is there any way I can convert the length of the file to 15 secs.
Thanks in advance.

Recommended Answers

All 2 Replies

Use the t option to limit the transcoding:

ffmpeg -t 15 -i file.wav -f mp3 file.mp3

For more information type man ffmpeg or read this link (it's the same manual):

bye!

Thanks, I got my problem solved

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.