Advertisement
Guest User

convert mkv's

a guest
Feb 17th, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. echo off
  2. for %%f in (*x264*.mkv) do (call :convertit "%%f"
  3. )
  4. goto :EOF
  5.  
  6. :convertit
  7. setlocal ENABLEDELAYEDEXPANSION
  8. set input=%~1
  9. set end=ReEncode_BTV.mkv
  10. set output=%input:x264=HEVC%
  11. set endbit=%output:*HEVC-=%
  12. call set output=%%output:!endbit!=!end!%%
  13. set qual=18
  14. ffmpeg -i "%input%" -metadata title="%output%" -c:v hevc_nvenc -rc constqp -cq %qual% -rc-lookahead 32 -g 600 -c:a copy -c:s copy "%output%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement