Advertisement
Guest User

Untitled

a guest
Aug 20th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. @echo off
  2. set ffmpeg=S:\ffmpeg\bin\
  3. set subt=-sn
  4. set scaleV=720
  5. set namae=%1
  6. set /P ss=Enter start time[sec.mS or HH:MM:SS.mS](leave blank to set min):
  7. set /P to=Enter end time[sec.mS or HH:MM:SS.mS](leave blank to set max):
  8. if defined ss (
  9. set sst=-ss
  10. )
  11. if defined to (
  12. set tot=-to
  13. )
  14. if not defined namae (
  15. set /P name=Write path to input file or use dragNDrop:
  16. )
  17. set /P state=This video is (1-dynamic,2-static,3-combined):
  18. if %state% == 1 (
  19. set bv=1500K
  20. set crf=22
  21. set gop=240
  22. )
  23. if %state% == 2 (
  24. set bv=0
  25. set crf=24
  26. set gop=480
  27. )
  28. if %state% == 3 (
  29. set bv=0
  30. set crf=32
  31. set gop=120
  32. )
  33. %ffmpeg%ffmpeg.exe -i %1%name% %subt% -c:v libvpx-vp9 -y -b:v %bv% -qmin 10 -qmax 42 -crf %crf% -threads 4 -frame-parallel 0 -tile-columns 2 -strict -2 -rc_lookahead 25 -lag-in-frames 16 -g %gop% -sc_threshold 40 -auto-alt-ref 1 -arnr_strength 3 -arnr_max_frames 8 -arnr-type centered -c:a libopus -b:a 64K -vf scale=-1:%scaleV% -pix_fmt yuv420p %hsp% -speed 4 -pass 1 %sst% %ss% %tot% %to% -f webm NUL
  34. %ffmpeg%ffmpeg.exe -i %1%name% %subt% -c:v libvpx-vp9 -y -b:v %bv% -qmin 10 -qmax 42 -crf %crf% -threads 4 -frame-parallel 0 -tile-columns 2 -strict -2 -rc_lookahead 25 -lag-in-frames 16 -g %gop% -sc_threshold 40 -auto-alt-ref 1 -arnr_strength 3 -arnr_max_frames 8 -arnr-type centered -c:a libopus -b:a 64K -vf scale=-1:%scaleV% -pix_fmt yuv420p %hsp% -speed 1 -pass 2 %sst% %ss% %tot% %to% -f webm %1%name%.webm
  35. pause
  36. exit /B
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement