Má to za úkol encodovat soubor .avi (v našem případě "set mymovie=nananana") do formátu .mp4.
Tohle je obsah mé složky x264

Tohle je .bat soubor, který lze jako jediný spustit normálně (jedná se o makemp4.bat)

A tady jsou 3 .exe soubory, které když spustím, tak mi jen problikne ten příkazový řádek a nic se neděje.

@echo off
:-------------------
: See
http://wiki.meaz.org/index.php?title=Codecs:x264 for latest info
:-------------------
:START
:-------------------
: Start Configuration
:-------------------
: You need to export your movie as an avi with a filename.
: You need to export your movie sound as a wav with the same filename.
: Set the filename you will use on here.
set mymovie=nananana
:-------------------
:set the path to your files here (no \ at the end)
:-------------------
set mypath=C:\x264
:-------------------
:set the audio bitrate to use here
:-------------------
set myabitrate=192
:-------------------
:set the video bitrate to use here
:-------------------
set myvbitrate=5100
:-------------------
:set the video frame rate you used here
:-------------------
set myfps=60
:-------------------
:End Configuration
:-------------------
mkdir %mypath%\temp
cls
echo AVISource("%mypath%\%mymovie%.avi") > "%mypath%\%mymovie%.avs"
echo Crop(0,0,-0,-0) >> "%mypath%\%mymovie%.avs"
echo ConvertToYV12() >> "%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 3 --bframes 3 --subme 6 --weightb --analyse all --8x8dct --qpmin 4 --qpstep 6 --merange 24 --me umh --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 3 --bframes 3 --subme 6 --weightb --analyse all --8x8dct --qpmin 4 --qpstep 6 --merange 24 --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 3 --bframes 3 --subme 6 --weightb --analyse all --8x8dct --qpmin 4 --qpstep 6 --merange 24 --me umh --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