How to create a powershell script / or windows .bat file for ffmpeg
问题 So, I want to create a Powershell or Batch file (whichever works best for the task), that I can paste in a folder and after executing it, will start to use FFmpeg to encode all videos The part that works (in .bat): for %%a in ("*.mkv") do( ffmpeg -i "%%a" -c:v libx265 -c:a copy -x265-params crf=25 "%%a [encoded].mkv" pause) This works, but in some folders, I already have [encoded] files. I'd like for the script to skip these files. I asked in reddit and received the following script: for %%a