Skip to content

Instantly share code, notes, and snippets.

@OleksandrKucherenko
Created October 13, 2018 08:08
Show Gist options
  • Save OleksandrKucherenko/9ea417932ee9d428cc186fcf67bc24ff to your computer and use it in GitHub Desktop.
Save OleksandrKucherenko/9ea417932ee9d428cc186fcf67bc24ff to your computer and use it in GitHub Desktop.
Convert multiple files to MP4 compatible with chromecast
call :convert "02. Pup Pup Boogie + Pups in a Fog.mkv"
exit 0
:convert
SET VIDEO=%~1
SET IN_FOLDER=C:\Users\alexk\Downloads\PAW.Patrol.S01.720p.WEB-DL
SET OUT_FOLDER=D:\downloads\paw-patrol
ffmpeg ^
-i "%IN_FOLDER%\%VIDEO%" ^
-f mp4 -vcodec h264 -acodec aac ^
-map 0:v:0 -map 0:a:1 ^
-vsync 0 -profile:v main -level 3.1 -qmax 22 -qmin 20 -x264opts no-cabac:ref=2 -threads 0 ^
"%OUT_FOLDER%\%VIDEO%"
goto :EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment