Reputation: 105
Can't find much information on this, as I believe it's a pretty noobish problem and there aren't really any tutorials on it. Can anyone explain how I can use ffmpeg in a powershell script? I downloaded ffmpeg and I have the path to ffmpeg.exe. Shouldn't I be able to do something like this?
"C:\path\ffmpeg.exe" -i stuff.mp3 stuff.wav
It returns an error message along the lines of -i not being a recognized parameter. Am I missing something pretty basic here? Thanks for any help. I'm trying to convert some audio files between .wav, .mp3. and .flac, and if anyone has any better suggestions than ffmpeg then please let me know.
Upvotes: 1
Views: 5847
Reputation: 952
My prefered way is the & operator. Example:
& "C:\path\ffmpeg.exe" -i stuff.mp3 stuff.wav
Another alternatives: http://social.technet.microsoft.com/wiki/contents/articles/7703.powershell-running-executables.aspx
Upvotes: 3