Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To convert a complete directory using ffmpeg, follow these steps:

  1. Open a command prompt or terminal window.
  2. Navigate to the directory where the files to be converted are located.
  3. Run the following command to convert all files with a specific extension in the directory to the desired format:
for %%a in ("*.extension") do ffmpeg -i "%%a" -c:v desired_codec -c:a desired_codec "converted_%%~na.extension"

Replace "extension" with the original file format's extension, "desiredcodec" with the desired audio or video codec, and "converted" with the desired prefix for the converted files.

  1. Press Enter to execute the command, and ffmpeg will convert all files in the directory with the specified extension.
  2. Once the conversion is complete, check the directory for the converted files with the specified prefix.