I'm converting my videos to HEVC, and I'm using a batch script with this command:
md hevc
start /affinity 0x7 for %%k in (*.mkv *.mp4) do ffmpeg -i "%%k" -map 0 -c copy -c:v libx265 -y "hevc\%%~nk.mkv"
I'm using the Start /affinity to limit FFmpeg to 3/4 threads, otherwise my computer gets chocked. It works fine, except it uses the same affinity value for an entire folder, and I'd rather rotate the affinity values between 0x7, 0xb, 0xd and x0e, so that it changes the active cores each time a another video starts. I've tried putting the start /affinity in different positions in the command line, and I've tried running a loop within a loop, but nothing I've tried has worked. Any ideas?
md hevc
start /affinity 0x7 for %%k in (*.mkv *.mp4) do ffmpeg -i "%%k" -map 0 -c copy -c:v libx265 -y "hevc\%%~nk.mkv"
I'm using the Start /affinity to limit FFmpeg to 3/4 threads, otherwise my computer gets chocked. It works fine, except it uses the same affinity value for an entire folder, and I'd rather rotate the affinity values between 0x7, 0xb, 0xd and x0e, so that it changes the active cores each time a another video starts. I've tried putting the start /affinity in different positions in the command line, and I've tried running a loop within a loop, but nothing I've tried has worked. Any ideas?