@echo off
set path=C:\Users\olivia\Downloads\BD3D2MK3D\toolset\plugins64bit;%path%
echo Encoding movie in 3D
echo Movie: Shrek 3D

echo Encoding started %date% %time%
@echo on

"C:\Users\olivia\Downloads\BD3D2MK3D\toolset\avs2yuv64.exe" ^
  "__ENCODE_3D_MOVIE.avs" -frames 129600 -o - ^
  | "C:\Users\olivia\Downloads\BD3D2MK3D\toolset\x265_x64.exe" --output-depth 10 ^
  --crf 18 --preset medium ^
  --sar 1:1 --range limited --colorprim bt709 --qpfile chapters_3D.qpfile --frames 129600 --fps 24000/1001 ^
  --output "01000_3D.265" --y4m -
@echo off
echo Encoding finished %date% %time%

REM Optionnaly mux the video and demuxed streams to MKV.
REM Note: The mux is disabled if no streams are demuxed.
if exist "__MUX_3D.cmd" cmd /c "__MUX_3D.cmd"

REM Everything done: do the post-processing (Shutdown computer...)
if exist "__POSTPROCESS_3D.cmd" cmd /c "__POSTPROCESS_3D.cmd"
exit /B

