Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SETLOCAL
- TIMER /1 /Q ON
- PATH=C:\UTIL;C:\WINDOWS;C:\WINDOWS\SYSTEM32
- SET FNAME=%@NAME[%1]
- REM possible loglevels: quiet, panic, fatal, error, warning, info, verbose, debug, trace
- SET LOGLEVEL=verbose
- : constant rate factor aka quality
- SET CRF=28
- SET PRESET=veryslow
- goto hevc
- :best-vod
- ffmpeg -y -v %LOGLEVEL% -i %* -c:v libvpx-vp9 -pass 1 -b:v 0 -crf 33 -threads 8 -speed 4 -tile-columns 6 -frame-parallel 1 -an -f webm nul
- ffmpeg -y -v %LOGLEVEL% -i %* -c:v libvpx-vp9 -pass 2 -b:v 0 -crf 33 -threads 8 -speed 2 -tile-columns 6 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25 -c:a libopus -b:a 128k -f webm %FNAME%-best-vod.webm
- :GOTO ENDE
- :1400K
- ffmpeg -y -v %LOGLEVEL% -i %* -c:v libvpx-vp9 -pass 1 -b:v 1400K -crf 33 -threads 8 -speed 4 -tile-columns 6 -frame-parallel 1 -an -f webm nul
- ffmpeg -y -v %LOGLEVEL% -i %* -c:v libvpx-vp9 -pass 2 -b:v 1400K -crf 33 -threads 8 -speed 2 -tile-columns 6 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25 -c:a libopus -b:a 64k -f webm %FNAME%-1400K.webm
- :GOTO ENDE
- :best-quality
- ffmpeg -y -v %LOGLEVEL% -i %* -c:v libvpx-vp9 -pass 1 -b:v 0 -crf %CRF% -threads 1 -speed 4 -tile-columns 0 -frame-parallel 0 -g 9999 -aq-mode 0 -an -f webm nul
- ffmpeg -y -v %LOGLEVEL% -i %* -c:v libvpx-vp9 -pass 2 -b:v 0 -crf %CRF% -threads 1 -speed 0 -tile-columns 0 -frame-parallel 0 -auto-alt-ref 1 -lag-in-frames 25 -g 9999 -aq-mode 0 -c:a libopus -b:a 64k -f webm %FNAME%-two-pass-crf%crf%.webm
- GOTO ENDE
- :crf
- ffmpeg -y -v %LOGLEVEL% -i %* -c:v libvpx-vp9 -b:v 0 -crf %CRF% -preset %PRESET% -threads 1 -speed 0 -tile-columns 0 -frame-parallel 0 -auto-alt-ref 1 -lag-in-frames 25 -g 9999 -aq-mode 0 -c:a libopus -b:a 128k %FNAME%-vp9-%PRESET%-crf%crf%.webm
- GOTO ende
- :hevc
- ffmpeg -v %LOGLEVEL% -i %* -c:v libx265 -vf yadif -b:v 0 -crf %CRF% -preset %PRESET% -threads 1 -speed 0 -tile-columns 0 -frame-parallel 0 -auto-alt-ref 1 -lag-in-frames 25 -g 9999 -aq-mode 0 -c:a aac -b:a 128k %FNAME%-HEVC-%PRESET%-crf%CRF%.mp4
- : ffmpeg -v %LOGLEVEL% -i %* -c:v libx265 -flags +ilme -b:v 0 -crf %CRF% -preset %PRESET% -threads 1 -speed 0 -tile-columns 0 -frame-parallel 0 -auto-alt-ref 1 -lag-in-frames 25 -g 9999 -aq-mode 0 -c:a aac -b:a 128k %FNAME%-HEVC-%PRESET%-crf%CRF%.mp4
- GOTO ENDE
- :ENDE
- TIMER /1 OFF
- ENDLOCAL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement