Quantcast
Channel: VideoHelp Forum
Viewing all articles
Browse latest Browse all 45481

Help tweak code please? (h264)

$
0
0
Hello, I was wondering if anyone could help tweak this h264 code? I found it on the internet and using it to go from 10bit video to 8bit. However, when I use MEdiainfo to grab the info I notice it says High@3.1. Normally I notice my files are at High@4.1. Is there a way to get this code to go from 3.1 to 4.1? Is there a difference in this? From what I read it has to do with framerates? sorry if this is a stupid question.
Thank you!!!!

@echo off
setlocal
FOR /f "delims=" %%i IN ('dir /b *.mkv') DO call :recode "%%i"
goto :done
:recode
set oldfile=%1
echo %oldfile% | find /i "[8bit]" > nul:
if not errorlevel 1 goto :eof
set newfile=%oldfile:.mkv= [8bit].mkv%
if exist %newfile% goto :eof
echo %oldfile%
set tmpfile=%oldfile:.mkv=.tmp.mkv%
if exist %tmpfile% del /f /q %tmpfile%
x264 --preset veryfast --tune animation --crf 15 -o %tmpfile% %oldfile%
mkvmerge -o %newfile% -D %oldfile% %tmpfile%
if exist %tmpfile% del /f /q %tmpfile%
goto :eof
:done
endlocal

Viewing all articles
Browse latest Browse all 45481

Trending Articles