DennouNeko

hardsub.cmd

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