batch convert mutliple file extentions?

Questions involving a Windows version of FFmpeg.
Post Reply
ENunn
Posts: 1
Joined: Tue Sep 03, 2019 10:44 pm

batch convert mutliple file extentions?

Post by ENunn » Tue Sep 03, 2019 10:58 pm

Is there a way to batch convert multiple extensions in a folder? I mainly use avi and mp4 and I want to compress them to an mp4 for video editing.

my command right now is

Code: Select all

for %%a in ("*.avi") do ffmpeg -i "%%a" -c:v h264_nvenc -qp 20 -c:a aac -r 59.94 -pix_fmt yuv420p "D:\gameplay recordings\!-FFMPEG COMPRESS AND ORIGINAL RAW FILES-!\compress\output\video\%%a.mp4"
is there any way to also convert the mp4 files in the same script?

Reino
Posts: 73
Joined: Thu Aug 22, 2013 5:14 pm
Contact:

Re: batch convert mutliple file extentions?

Post by Reino » Mon Sep 09, 2019 4:47 pm

Code: Select all

FOR %%A IN (*.avi *.mp4) DO [...]

Post Reply
'