Askthewind’s diary

個人的なメモ

2018-12-01から1ヶ月間の記事一覧

FFmpegで動画と画像をブレンド合成して透過する

Blend video and image and opacity into each other overlay mode FFmpegでプレビュー ffmpeg -i input.mp4 -i input.png -filter_complex "[0][1]blend=all_mode='overlay':all_opacity=0.7" -f matroska - | ffplay -i - FFmpegでエンコード ffmpeg -i in…

FFmpegで2入力した動画を横に並べて黒帯をつけて16:9で出力する

2Align the input movies side-by-side with a black band 2Align the input movies side-by-side with a black band 16:9 to 16:9 FFmpegで2入力した16:9の動画を横に並べて黒帯をつけて16:9で出力する FFmpegでプレビュー ffmpeg -i input1.mp4 -i input2.…

FFmpegのdrawtextでカウントダウンタイマーをつける

Show countdown with drawtext Add countdown timer with drawtext FFmpegのdrawtextでカウントダウンタイマーをつける FFmpegでプレビュー ffmpeg -i "input.mp4" -filter_complex "format=yuv444p,drawtext=fontfile='C\:/WINDOWS/Fonts/Alial.ttf':text='…

FFmpegでテキストにテレビ放送局風の半透明のボックスを付ける

Add opacity of drawbox like a TV station to text TV station style telop テレビ局風のテロップ FFmpegでプレビュー ffmpeg -i "input.mp4" -filter_complex "format=yuv444p,drawbox=y=ih*0.7:w=iw:h=56:t=fill:color=black@0.4:enable='between(t,0,10)…

FFmpegでpng画像1枚からズームするgifアニメーションを作る

Creating a GIF animation from one PNG From upper left 左上からズームアップ(デフォルト) ffmpegでプレビュー ffmpeg -i input.png -filter_complex "zoompan=z='zoom+0.0015':d='25*4':s='480*270',split[a],palettegen,[a]paletteuse" -f matroska - | …

FFmpegで動画におしゃれなカーテンエフェクトをつける

Add fashionable curtain(barn door) and circle wipe effects Curtains, unveiled Horizontal 真ん中から左右へフェードアウトするカーテンエフェクト FFmpegでプレビュー ffmpeg -f lavfi -i "testsrc2=s='480*360'" -filter_complex "[0]format=yuv444p,s…

FFmpegでテキストをフェードインフェードアウトする

Show text fading in and out (appearing/disappearing) alpha command FFmpegでプレビュー ffmpeg -f lavfi -i "color='aliceblue:480*360'" -filter_complex "drawtext=fontfile='C\:/Windows/Fonts/impact.ttf':fontsize='30':fontcolor='white':borderco…

FFmpegで動画を中央から2分割して左右に表示する

FFmpeg Crop with side by side Split left and right FFmpegで動画を中央から2分割して左右に表示する FFmpegでプレビュー ffmpeg -f lavfi -i "color=red:480*270" -filter_complex "split[a][b];[a]crop=iw/2:ih:0:0[c];[b]lutyuv=170:166:16,crop=iw/2:i…