Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- REM For mkv hardsubbing requires in PATH ffmpeg with libass enabled
- REM (see list of enabled plugins by typing ffmpeg)
- REM http://ffmpeg.zeranoe.com/builds/
- if [%1] == [] goto usage
- set input=%1
- set output=%2
- if [%2] == [] set output=%~dpn1.avi
- ffmpeg -i "%input%" -vf "subtitles=%input%" -c:v libx264 -preset medium -f mp4 "%output%"
- pause
- exit /b
- :usage
- echo Usage: %~nx0 input.mkv [output.avi]
- pause
Advertisement
Add Comment
Please, Sign In to add comment