Skip to content

Instantly share code, notes, and snippets.

@Bonno
Created February 10, 2015 09:24
Show Gist options
  • Star 40 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Bonno/73873ed4ac523adc9611 to your computer and use it in GitHub Desktop.
Save Bonno/73873ed4ac523adc9611 to your computer and use it in GitHub Desktop.
Convert mp4 to WAV with ffmpeg
ffmpeg -i <infile> -ac 2 -f wav <outfile>
@StanSilas
Copy link

thanks

@poespas
Copy link

poespas commented Jan 2, 2020

Brilliant! Much appreciated

@jabarrioss
Copy link

Thanks a lot

@JoaoMirandaXP
Copy link

Thank you!

@dojekon
Copy link

dojekon commented Jan 15, 2022

Thank you very much!

@spearkkk
Copy link

spearkkk commented Feb 9, 2022

thanks

@chauminhquang10
Copy link

Awesome! i've tried and it works

@duanbiaowu
Copy link

thanks

@wellington1993
Copy link

Thanks!

@tomchang25
Copy link

Thanks!

@lehend1010
Copy link

Thanks!

@FriendofAI
Copy link

is there a file size limit?

@Prograb
Copy link

Prograb commented Jul 28, 2023

Thank you very much! What does -ac do?

@cweaver-logitech
Copy link

cweaver-logitech commented Aug 3, 2023

Thank you very much! What does -ac do?

It mixes the audio channels of the input down to stereo
Manipulating audio channels

I only want the left channel so will be using ffmpeg -i <infile> -af "pan=mono|c0=c0" -f wav <outfile>

@viniciusgonmelo
Copy link

thank you

@Prograb
Copy link

Prograb commented Dec 12, 2023

Thank you very much! What does -ac do?

It mixes the audio channels of the input down to stereo Manipulating audio channels

I only want the left channel so will be using ffmpeg -i <infile> -af "pan=mono|c0=c0" -f wav <outfile>

Thanks a lot man !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment