# 10bit to 8bit bat file

1. Forgive me if this is the wrong place but i was wondering how i would go about writing a batch file to convert a folder of fansubbed anime from 10bit to 8bit so i can watch it on my Popcorn Hour. Currently i am doing them one by one (using a bat file with "x264 --preset slow --tune animation --crf 18 -o %1.8bit.mkv %1") but was hoping there is a way to put all the files in one folder, convert them and then output the 8bit videos to a separate folder once they have been converted.

Thanks.
2. Batch file:

Code:
for %%a in ("*.mkv") do x264 --preset slow --tune animation --crf 18 -o "\path\to\%%~na.8bit.mkv" "%%a"
Change the extension in the for loop spec, and the output folder, if necessary.
3. Thanks jagabo, working perfectly
4. Thank you !

Statistics