Batch processing removal of closed captions in video files with ffmpeg

I am trying to find an easier way of removing closed captions with ffmpeg from a lot of files, so far I have been using this and copy pasting file names in

“C:\ffmpeg\bin\ffmpeg.exe” -i “E:\Videos.mkv” -bsf:v “filter_units=remove_types=6” -c copy “E:.mkv”

Is there some way to make it do all files within the initial folder so I don’t have to do each file name?

I have seen similar inquiries in regards to closed captions from 10+ years ago on this site but after a bit of using the search feature could not find anything that may relate to my specific need.

This kind of thing is all new to me and there was a way to batch remove video titles easily but no idea how I would go about figuring the above out.

Thank you for taking the time to read through my jibber jabba.

This section is not currently applicable.

I did see this thread but it is for subtitles and not closed captions and unfortunately with my limited knowledge I don’t understand it.

FFmpeg remove subtitles from file “if exists”

Read more here: Source link