Add 'final/final.bat'
parent
04c8ba305e
commit
d26418d5a4
|
@ -0,0 +1,36 @@
|
|||
mkdir "final/%2"
|
||||
mkdir "final/%2/thumbs"
|
||||
Rem Thumbnails for scrubbing the video
|
||||
ffmpeg -i %1 -c:v libwebp -vf fps=1/10,scale=512x288 "final/%2/thumbs/output%%03d.webp"
|
||||
|
||||
Rem High quality 1440p WebM
|
||||
ffmpeg -i %1 -vf scale=2560:-2 -b:v 7000k -minrate 4500k -maxrate 8000k -pix_fmt yuv420p -sws_flags bicubic -tile-columns 4 -sc_threshold 0 -row-mt 1 -threads 10 -quality good -c:v libvpx-vp9 -an -pass 1 -speed 4 "final/%2/1440pHQ.webm"
|
||||
ffmpeg -i %1 -vf scale=2560:-2 -b:v 7000k -minrate 4500k -maxrate 8000k -pix_fmt yuv420p -sws_flags bicubic -tile-columns 4 -sc_threshold 0 -row-mt 1 -threads 10 -quality good -c:v libvpx-vp9 -an -pass 2 -speed 2 -y "final/%2/1440pHQ.webm"
|
||||
|
||||
Rem High quality 1080p WebM
|
||||
ffmpeg -i %1 -vf scale=1920:-2 -b:v 4500k -minrate 3000k -maxrate 6000k -pix_fmt yuv420p -sws_flags bicubic -tile-columns 4 -sc_threshold 0 -row-mt 1 -threads 10 -quality good -c:v libvpx-vp9 -an -pass 1 -speed 4 "final/%2/1080pHQ.webm"
|
||||
ffmpeg -i %1 -vf scale=1920:-2 -b:v 4500k -minrate 3000k -maxrate 6000k -pix_fmt yuv420p -sws_flags bicubic -tile-columns 4 -sc_threshold 0 -row-mt 1 -threads 10 -quality good -c:v libvpx-vp9 -an -pass 2 -speed 2 -y "final/%2/1080pHQ.webm"
|
||||
|
||||
Rem Medium quality 1080p MP4
|
||||
ffmpeg -i %1 -vf scale=1920:-2 -b:v 3500k -maxrate 4000k -bufsize 4000k -pix_fmt yuv420p -sws_flags bicubic -level 42 -profile:v high -preset veryslow -tune film -c:v libx264 -an "final/%2/1080pMQ.mp4"
|
||||
|
||||
Rem Medium quality 720p MP4 with MOOV atom
|
||||
ffmpeg -i %1 -vf scale=1280:-2 -b:v 2850K -maxrate:v 3000K -bufsize 3000K -pix_fmt yuv420p -level 32 -profile:v high -preset veryslow -tune film -sws_flags bicubic -c:v libx264 -c:a aac -b:a 128K -movflags +faststart "final/%2/720pMQ.mp4"
|
||||
|
||||
Rem Low quality 576p MP4
|
||||
ffmpeg -i %1 -vf scale=1024:-2 -b:v 1014K -maxrate:v 1200K -bufsize 1200K -pix_fmt yuv420p -level 32 -profile:v high -preset veryslow -tune film -sws_flags bicubic -c:v libx264 -c:a aac -b:a 96K "final/%2/576pLQ.mp4"
|
||||
|
||||
Rem High quality OPUS
|
||||
ffmpeg -i %1 -vn -c:a libopus -b:a 256k "final/%2/hqOPUS.opus"
|
||||
|
||||
Rem Medium quality OPUS
|
||||
ffmpeg -i %1 -vn -c:a libopus -b:a 130k "final/%2/mqOPUS.opus"
|
||||
|
||||
Rem Low quality OPUS
|
||||
ffmpeg -i %1 -vn -c:a libopus -b:a 96k "final/%2/lqOPUS.opus"
|
||||
|
||||
Rem Create HQ thumbnail 20 seconds into the video
|
||||
ffmpeg -i %1 -c:v libwebp -ss 00:00:20.000 -vf scale=1280x720 -vframes 1 "final/%2/ThumbHQ.webp"
|
||||
|
||||
Rem Create MQ thumbnail 20 seconds into the video
|
||||
ffmpeg -i %1 -ss 00:00:20.000 -vframes 1 -vf scale=640x360 "final/%2/ThumbMQ.jpg"
|
Loading…
Reference in New Issue