This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal EnableDelayedExpansion | |
for %%a in (*.webm *.mkv) do ( | |
FOR /F "usebackq" %%F IN (`ffprobe -v error -select_streams v:0 -show_entries stream^=codec_name -of default^=noprint_wrappers^=1:nokey^=1 "%%a"`) DO ( | |
if "%%F"=="vp8" ( | |
ffmpeg -hide_banner -c:v libvpx -i "%%a" -c:v prores_ks -pix_fmt yuva444p10le -profile:v 4444xq -quant_mat hq -c:a aac -q:a 5 "%%~dpna_PRORES.mov" | |
) else ( | |
if "%%F"=="vp9" ( | |
ffmpeg -hide_banner -c:v libvpx-vp9 -i "%%a" -c:v prores_ks -pix_fmt yuva444p10le -profile:v 4444xq -quant_mat hq -c:a aac -q:a 5 "%%~dpna_PRORES.mov" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal EnableDelayedExpansion | |
for %%a in (*.webm *.mkv) do ( | |
FOR /F "usebackq" %%F IN (`ffprobe -v error -select_streams v:0 -show_entries stream^=codec_name -of default^=noprint_wrappers^=1:nokey^=1 "%%a"`) DO ( | |
if "%%F"=="vp8" ( | |
ffmpeg -hide_banner -c:v libvpx -i "%%a" -pix_fmt yuva420p -c:v libvpx-vp9 -crf 0 -b:v 0 -lossless 1 -row-mt 1 -tile-columns 6 -tile-rows 2 -frame-parallel 1 -c:a libopus -b:a 96k "%%~dpna_VP9.webm" | |
) else ( | |
if "%%F"=="vp9" ( | |
ffmpeg -hide_banner -c:v libvpx-vp9 -i "%%a" -pix_fmt yuva420p -c:v libvpx-vp9 -crf 0 -b:v 0 -lossless 1 -row-mt 1 -tile-columns 6 -tile-rows 2 -frame-parallel 1 -c:a libopus -b:a 96k "%%~dpna_VP9.webm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal EnableDelayedExpansion | |
for %%a in (*.webm *.mkv) do ( | |
FOR /F "usebackq" %%F IN (`ffprobe -v error -select_streams v:0 -show_entries stream^=codec_name -of default^=noprint_wrappers^=1:nokey^=1 "%%a"`) DO ( | |
if "%%F"=="vp8" ( | |
ffmpeg -hide_banner -c:v libvpx -i "%%a" -pix_fmt rgba -c:v rawvideo -c:a aac -q:a 5 "%%~dpna_RAWVIDEO.avi" | |
) else ( | |
if "%%F"=="vp9" ( | |
ffmpeg -hide_banner -c:v libvpx-vp9 -i "%%a" -pix_fmt rgba -c:v rawvideo -c:a aac -q:a 5 "%%~dpna_RAWVIDEO.avi" |