0

Good day everyone. Im making my babysteps into ffmpeg, and so far this tool has been really helpfull. Anyway. Im currently using this line as a convertion basis :

ffmpeg -i name.mov -c:v libx264 name.wav

But while searching through the question here i've seen that :

ffmpeg -i video.mp4 -vn -ar 44100 -ac 1 -b:a 32k -f mp3 audio.mp3

Or even this (a script) :

%%f in (*.mp4) do ffmpeg -i "%%f" -vn -ar 44100 -ac 1 -b:a 32k -f mp3 "%%~nf.mp3"

So now let's dive into it. Im wondering if i can merge the two first ones like that :

ffmpeg -i name.mov -vn -ar 48000 -ac 2 -b:a 32k libx264 -f wav name.wav

And how i can modify it by making it scripted. Also im wondering if the ffmpeg i got is good because i don't have a command prompt that directly open cmd into cd bin. As im forced to write everytime the entire path.

Thanks in advance. S'Aarum.

2
  • "As im forced to write everytime the entire path." Add ffmpeg.exe to the environment variables. See here
    – user3643
    Jan 17, 2022 at 17:37
  • Looks like you've already seen that page. One of your commands is the example command there.
    – user3643
    Jan 17, 2022 at 17:41

1 Answer 1

0

-vn + -c:v libx264 Does not make any sense. This is saying "Don't encode video, but use libx264 to encode no video."

You also can not set a bitrate for wav because it's a noncompressed format.

So your command becomes:

ffmpeg -i name.mov -vn -ar 48000 -ac 2 name.wav

1
  • 2
    -vn can be omitted for wav output, but it makes no difference.
    – llogan
    May 3, 2019 at 18:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.