How do you convert an entire directory with ffmpeg?

前端 未结 26 2128
长发绾君心
长发绾君心 2020-11-22 04:33

How do you convert an entire directory/folder with ffmpeg via command line or with a batch script?

26条回答
  •  心在旅途
    2020-11-22 04:53

    Only this one Worked for me, pls notice that you have to create "newfiles" folder manually where the ffmpeg.exe file is located.

    Convert . files to .wav audio Code:

    for %%a in ("*.*") do ffmpeg.exe -i "%%a" "newfiles\%%~na.wav"
    pause
    

    i.e if you want to convert all .mp3 files to .wav change ("*.*") to ("*.mp3").

    The author of this script is :

    https://forum.videohelp.com/threads/356314-How-to-batch-convert-multiplex-any-files-with-ffmpeg

    hope it helped

提交回复
热议问题