I have several Movies/Animes in Full HD and encoded in h264 (current market standard), and I need to perform the Encode to h265 of all these files (separated by folder and subfolders) to save space, which is the proper way to execute in batch (.bat file); below current code:
for %%f in (*.mkv, *.mp4) do (
ffmpeg -i "%%a" -c:a copy -c:v libx265 -vtag hvc1 lossless=1 -preset veryslow "Out\%%~na.mkv"
)
In order to have the best compression of the final file and better image quality (which is visually identical to the current h264 file)
Obs1: I have both animations and movies and series with real people, can the "ffmpeg" configuration be different for each type?
Obs2: In most files have multiple audio and video tracks and multiple subtitles, it is necessary that all audio, video and subtitles remain in the final files.