Anonymous
02/23/2019 (Sat) 18:48:19
No.30902
del
>>30900breddy gud output
@Echo off
SETLOCAL
SET vidbitrateavg=899
SET vidbitratemin=10
SET vidbitratemax=1500
SET audiobitrate=299
SET d=[2pass%vidbitratemin%.%vidbitrateavg%.%vidbitratemax%_yuv420p]
SET t=[2pass%vidbitratemin%.%vidbitrateavg%.%vidbitratemax%_yuv420p]
SET metacomment=https://coub.com/view/1i77uf
for %%f in (*.mp4) do (
ffmpeg -y -i "%%~f" -map 0:0 -map 0:1 -c:v:0 libvpx-vp9 -minrate %vidbitratemin%k -b:v %vidbitrateavg%k -maxrate %vidbitratemax%k -c:a:%audiobitrate% libopus -cpu-used:v 0 -deadline best -tile-columns 4 -frame-parallel 1 -threads 8 -metadata:s:v:0 title="%%~nf %t%" -metadata title="%%~nf %t%" -metadata comments="%metacomment%" -pix_fmt yuv420p -pass:v 1 -f webm NUL
ffmpeg -y -i "%%~f" -map 0:0 -map 0:1 -c:v:0 libvpx-vp9 -minrate %vidbitratemin%k -b:v %vidbitrateavg%k -maxrate %vidbitratemax%k -c:a:%audiobitrate% libopus -cpu-used:v 0 -deadline best -tile-columns 4 -frame-parallel 1 -threads 8 -metadata:s:v:0 title="%%~nf %t%" -metadata title="%%~nf %t%" -metadata comments="%metacomment%" -pix_fmt yuv420p -pass:v 2 "%%~nf %d%.webm"
)
Pause