View Full Version : some uncompressed areas


Viechal
1st April 2007, 21:25
hey i already posted my batchfile for h264 encoding and i still got one think that i wanna get solved.

@echo off

set mymovie=Untitled

:-------------------
:set the path to your files here (no \ at the end)
:-------------------

set mypath=C:\x264

:-------------------
:set the audio bitrate to use here
:-------------------

set myabitrate=128

:-------------------
:set the video bitrate to use here
:-------------------

set myvbitrate=3500
:-------------------
:set the video frame rate you used here
:-------------------

set myfps=30

:-------------------
:End Configuration
:-------------------


mkdir %mypath%\temp
cls

echo AVISource("%mypath%\%mymovie%.avi") > "%mypath%\%mymovie%.avs"
echo ConvertToYV12() >> "%mypath%\%mymovie%.avs"
"%mypath%\%mymovie%.avs"



echo ======Encoding AAC audio======
"bin\faac.exe" -b %myabitrate% -o "%mypath%\temp\%mymovie%.m4a" "%mypath%\%mymovie%.wav"
echo ==============================
echo.

echo ======= x264 pass 1/3 ========
"bin\x264.exe" -p 1 --bitrate %myvbitrate% --ref 2 --direct auto --bframes 5 --filter -2,-1 --mixed-refs --no-fast-pskip --scenecut 40 --weightb --b-pyramid --subme 5 --bime --analyse all --ratetol 5.0 --8x8dct --merange 24 --threads 2 --thread-input --me hex --progress --no-psnr --stats "temp\x264.stats" --output NUL "%mymovie%.avs"

echo ==============================
echo.

echo ======= x264 pass 2/3 ========
"bin\x264.exe" -p 3 --bitrate %myvbitrate% --ref 5 --trellis 1 --direct auto --bframes 5 --filter -2,-1 --mixed-refs --no-fast-pskip --scenecut 40 --weightb --subme 6 --b-pyramid --b-rdo --bime --analyse all --ratetol 5.0 --8x8dct --merange 24 --threads 2 --thread-input --me umh --progress --no-psnr --stats "temp\x264.stats" --output NUL "%mymovie%.avs"
echo ==============================
echo.

echo ======= x264 pass 3/3 ========
"bin\x264.exe" -p 2 --bitrate %myvbitrate% --ref 8 --trellis 2 --direct auto --bframes 5 --filter -2,-1 --mixed-refs --no-fast-pskip --scenecut 40 --weightb --subme 7 --b-pyramid --b-rdo --bime --analyse all --ratetol 5.0 --8x8dct --merange 24 --threads 2 --thread-input --me esa --progress --no-psnr --stats "temp\x264.stats" --output "temp\%mymovie%.264" "%mymovie%.avs"
echo ==============================
echo.

echo === Muxing Audio and Video ===
"bin\mp4box" -new -add "%mypath%\temp\%mymovie%.264#video" -add "%mypath%\temp\%mymovie%.m4a#audio" -fps %myfps% "%mypath%\%mymovie%.mp4"
echo ==============================
echo.

if EXIST "%mypath%\%mymovie%.mp4" rmdir /S /Q temp
del "%mypath%\%mymovie%.avs"

:END
echo If you have any errors, you haven't edited makemp4.bat correctly!!!
echo Otherwise the video is now done and can be found with the filename:
echo %mymovie%.mp4
echo.
pause

I am making movies for a PC game and i have some uncompressed or bad compressed areas in my frames...
is it possible to get rid of them by changing some codecoptions?
thx in advance =))