Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert stereo sound to mono with FFmpeg?

Tags:

I use the FFmpeg library for a personnal project and I need help about one thing. I have a music file in stereo sound and I want to convert this stereo sound to mono sound ? Is it possible with this library ? Is there a function inside to do this job ? My project is in C/C++.

I searched on the Doxygen documentation on the FFmpeg website and on this forum but I didn't find something interesting.

Thanks for reading !

like image 976
Meugiwara Avatar asked Sep 14 '16 10:09

Meugiwara


People also ask

Can FFmpeg convert audio?

FFmpeg is a great tool for quickly changing an AV file's format or quality, extracting audio, creating GIFs, and more.


1 Answers

You can just use ffmpeg. Direct command is present for the purpose-

ffmpeg -i stereo.flac -ac 1 mono.flac 

Would convert your stereo file into mono channel. For more details, you can look at this page-

https://trac.ffmpeg.org/wiki/AudioChannelManipulation

like image 95
Neeraj Shukla Avatar answered Sep 20 '22 21:09

Neeraj Shukla