Created
December 7, 2021 03:44
-
-
Save Philmist/4eee90f61584009b1d8b76e68c9d7f4f to your computer and use it in GitHub Desktop.
FFmpegとPowerShellを使ってチャットと名前欄をマスクするやつ
This file contains hidden or 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
$black_y_pos = [Object[]]::new(7) | |
for ($i = 0; $i -lt $black_y_pos.count; $i++) { $black_y_pos[$i] = 190 + 29*$i } | |
$filter_str = "" | |
for ($i = 0; $i -lt $black_y_pos.count; $i++) { $filter_str = $filter_str + "[1]overlay=shortest=1:x=885:y={0}[_{1}];[_{1}]" -f $black_y_pos[$i], ($i+1) } | |
ffmpeg -ss 6 -to 12:13 -i '.\2021-12-07 06-08-00.mkv' -f lavfi -i "color=s=112x10:c=black" -f lavfi -i "color=s=332x107:c=black" -filter_complex ("[0:0]"+$filter_str+"[2]overlay=shortest:x=22:y=546") -c:v h264_nvenc -b:v 1M -c:a aac -shortest youtube.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment