Skip to content

Instantly share code, notes, and snippets.

@okazunori2013
Last active February 20, 2022 03:05
Show Gist options
  • Save okazunori2013/c0eb314949c3568311123731fa7d1d3d to your computer and use it in GitHub Desktop.
Save okazunori2013/c0eb314949c3568311123731fa7d1d3d to your computer and use it in GitHub Desktop.
vfrにしよう!
echo off
chcp 65001
:SYORI
echo 実行します。
for %%f in (%*) do (
ffmpeg -i %%f -loglevel 16 -vcodec hevc_nvenc -preset:v p7 -profile:v main10 -vsync vfr -vf mpdecimate -rc:v constqp -rc-lookahead 0 -spatial-aq 1 -temporal-aq 0 -weighted_pred 0 -init_qpI 21 -init_qpP 21 -init_qpB 24 -b_ref_mode 1 -dpb_size 4 -multipass 2 -g 60 -bf 3 -pix_fmt yuv420p10le -acodec libfdk_aac -profile:a aac_he %%~dpnfup%%~xf
)
title 終了
pause
@okazunori2013
Copy link
Author

okazunori2013 commented Jan 27, 2022

-profile:a aac_he はステレオ音声なら-profile:a aac_he_v2にした方がより良い

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment